-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.html
182 lines (160 loc) Β· 8.32 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Ramsophone</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- FB/Twitter Meta Tags -->
<meta property="og:url" content="http://robertvinluan.com/Ramsophone/" />
<meta property="og:type" content="website" />
<meta property="og:title" content="Ramsophone" />
<meta property="og:description" content="Turn on sound, push buttons, refresh page.." />
<meta property="og:image" content="http://robertvinluan.com/Ramsophone/Ramsophone-horizontal.png" />
<meta name="twitter:card" content="summary" />
<meta name="twitter:site" content="@Ramsophone" />
<meta name="twitter:title" content="Ramsophone" />
<meta name="twitter:description" content="Turn on sound, push buttons, refresh page." />
<meta name="twitter:image" content="http://robertvinluan.com/Ramsophone/Ramsophone-preview.png" />
<link rel="shortcut icon" href="http://robertvinluan.com/Ramsophone/favicon.ico" />
<link rel="stylesheet" href="css/components.css">
<link rel="stylesheet" href="css/grid.css">
<script src="https://code.jquery.com/jquery-2.2.3.min.js"></script>
<script src="js/lib/teoria.js"></script>
<script src="js/lib/Tone.min.js"></script>
<!--Fonts -->
<script>
(function(d) {
var config = {
kitId: 'nev7djh',
scriptTimeout: 3000,
async: true
},
h=d.documentElement,t=setTimeout(function(){h.className=h.className.replace(/\bwf-loading\b/g,"")+" wf-inactive";},config.scriptTimeout),tk=d.createElement("script"),f=false,s=d.getElementsByTagName("script")[0],a;h.className+=" wf-loading";tk.src='https://use.typekit.net/'+config.kitId+'.js';tk.async=true;tk.onload=tk.onreadystatechange=function(){a=this.readyState;if(f||a&&a!="complete"&&a!="loaded")return;f=true;clearTimeout(t);try{Typekit.load(config)}catch(e){}};s.parentNode.insertBefore(tk,s)
})(document);
</script>
</head>
<body>
<main>
<div class="help">?</div>
<div class="cube">
<div class="front-face">
<div class="grid-master">
<!-- this is gonna be filled with JS -->
</div>
</div>
<div class="about-face">
<h1>Ramsophone</h1>
<h2>Turn on sound, push buttons, refresh page.</h2>
<p><a href="http://twitter.com/robertvinluan">Robert Vinluan</a> made this. It uses <a href="http://tonejs.org">Tone.js</a> for music synthesis, <a href="https://github.com/saebekassebil/teoria">Teoria.js</a> for theory, and lots and lots of CSS. Named after Dieter Rams. And phones. Resemblances to the <a href="https://www.youtube.com/watch?v=FpHNlx0pPIU">Stranger Things</a> theme may or may not be intentional. Hit '<span>0</span>' for debug view.</p>
<p class="share-p">Share your unique URL:</p>
<code class="unique-url-input">http://robertvinluan.com/Ramsophone/</code>
<p class="links">
<a href="http://www.facebook.com/sharer/sharer.php?u=" target="_blank" class="button-link fb">Share on Facebook</a> /
<a href="https://twitter.com/intent/tweet?url=" target="_blank" class="button-link twitter">Share on Twitter</a> /
<a href="" class="button-link">Refresh manually</a>
</p>
</div>
</div>
</main>
<div id="all-component-templates">
<div id="empty" class="module"></div>
<div id="meter" class="module">
<div class="meter"><span class="indicator"></span></div>
</div>
<div id="button-single" class="module">
<div class="button-well"><div class="button"></div></div>
</div>
<div id="knob-single" class="module">
<div class="knob"><span class="indicator"></span></div>
</div>
<div id="knob-series-small" class="module">
<div class="knob"><span class="indicator"></span></div>
</div>
<div id="knob-series-medium" class="module">
<div class="knob"><span class="indicator"></span></div>
<div class="knob"><span class="indicator"></span></div>
<div class="knob"><span class="indicator"></span></div>
</div>
<div id="slider-horizontal-3" class="module">
<div class="slider-well"><div class="slider"></div></div>
</div>
<div id="slider-horizontal-4" class="module">
<div class="slider-well"><div class="slider"></div></div>
</div>
<div id="switch-series-small" class="module radio">
<div class="switch-well">
<div class="switch"></div>
<div class="switch depressed"></div>
<div class="switch"></div>
<div class="switch"></div>
</div>
</div>
<div id="switch-series-medium">
<div class="switch-well">
<div class="switch"></div>
<div class="switch depressed"></div>
</div>
</div>
<div id="speaker-1">
<div class="speaker-box">
<div class="speaker-hole" data-clone="30"></div>
</div>
</div>
<div id="speaker-2">
<div class="speaker-box">
<div class="row"> <div class="speaker-hole" data-clone="7"></div> </div>
<div class="row"> <div class="speaker-hole" data-clone="11"></div> </div>
<div class="row"> <div class="speaker-hole" data-clone="11"></div> </div>
<div class="row"> <div class="speaker-hole" data-clone="13"></div> </div>
<div class="row"> <div class="speaker-hole" data-clone="13"></div> </div>
<div class="row"> <div class="speaker-hole" data-clone="13"></div> </div>
<div class="row"> <div class="speaker-hole" data-clone="13"></div> </div>
<div class="row"> <div class="speaker-hole" data-clone="13"></div> </div>
<div class="row"> <div class="speaker-hole" data-clone="13"></div> </div>
<div class="row"> <div class="speaker-hole" data-clone="13"></div> </div>
<div class="row"> <div class="speaker-hole" data-clone="11"></div> </div>
<div class="row"> <div class="speaker-hole" data-clone="11"></div> </div>
<div class="row"> <div class="speaker-hole" data-clone="7"></div> </div>
</div>
</div>
<div id="speaker-massive-2">
<div class="speaker-hole" data-clone="25"></div>
</div>
<div id="speaker-massive-1">
<div class="left-half">
<div class="speaker-hole" data-clone="16"></div>
</div>
<div class="right-half">
<div class="speaker-hole" data-clone="16"></div>
</div>
</div>
</main>
<script src="js/music.js"></script>
<script src="js/layout.js"></script>
<script src="js/controls.js"></script>
<script>
var url;
if(window.location.hash !== "") {
window.seed = parseInt(window.location.hash.substr(1), 10);
url = window.location.href;
} else {
var r = Math.floor( Math.random() * 10000 );
window.seed = r;
url = $(".unique-url-input").text() + "#" + r;
}
$(".unique-url-input").text(url);
$(".button-link.fb").attr("href", $(".button-link.fb").attr("href") + encodeURIComponent(url))
$(".button-link.twitter").attr("href", $(".button-link.twitter").attr("href") + encodeURIComponent(url))
Music.init();
Controls.bindEvents();
Layout.init(0,0,8,8);
Controls.zeroOut();
Controls.meta();
</script>
</body>
</html>