forked from stewdio/beep.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
executable file
·114 lines (98 loc) · 4.11 KB
/
index.html
File metadata and controls
executable file
·114 lines (98 loc) · 4.11 KB
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
<!DOCTYPE html>
<html>
<!--
Were you looking for the source code?
https://github.com/stewdio/beep.js
-->
<head>
<title>beep.js</title>
<meta charset="utf-8">
<meta name="viewport" content="width=600">
<meta name="description" content="Beep is a JavaScript toolkit for building browser-based synthesizers.">
<meta name="keywords" content="Beep Beep.js Beep-js BeepJS Browser Synthesizer synth music audio tone generation HTML5 WebAudio WebAudioAPI JS JavaScript Stewdio Stewart Smith">
<meta name="copyright" content="Stewart Smith 2015">
<meta name="twitter:card" content="summary">
<meta name="twitter:site" content="@stewd_io">
<meta name="twitter:title" content="Beep.js">
<meta name="twitter:description" content="Beep is a JavaScript toolkit for building browser-based synthesizers.">
<meta name="twitter:creator" content="Stewart Smith">
<meta name="twitter:image" content="http://beepjs.com/media/beep-poster.png">
<meta name="twitter:url" content="http://beepjs.com">
<meta property="og:type" content="website">
<meta property="og:title" content="Beep.js">
<meta property="og:description" content="Beep is a JavaScript toolkit for building browser-based synthesizers.">
<meta property="og:url" content="http://beepjs.com">
<meta property="og:image" content="http://beepjs.com/media/beep-poster.png">
<link rel="canonical" href="http://beepjs.com/">
<link rel="icon" type="image/png" href="media/favicon-064.png">
<link rel="apple-touch-icon" href="media/favicon-144.png">
<link rel="stylesheet" type="text/css" href="beep/Beep.Trigger.css">
<link rel="stylesheet" type="text/css" href="beep/Beep.Instrument.css">
<link rel="stylesheet" type="text/css" href="beep/Beep.Editor.css">
<link rel="stylesheet" type="text/css" href="demo/demo.css">
<script charset="utf-8" src="beep/Beep.js"></script>
<script charset="utf-8" src="beep/Beep.Note.js"></script>
<script charset="utf-8" src="beep/Beep.Voice.js"></script>
<script charset="utf-8" src="beep/Beep.Trigger.js"></script>
<script charset="utf-8" src="beep/Beep.Instrument.js"></script>
<script charset="utf-8" src="beep/Beep.Editor.js"></script>
<script charset="utf-8" src="demo/analytics.js"></script>
<script charset="utf-8" src="demo/demo.js"></script>
</head>
<body>
<div id="fullscreen-container">
<h1>beep<span id="play-pause-container"></span></h1>
<div id="beep"></div>
<div class="button" id="editor-open"></div>
<div class="button" id="fullscreen-toggle"></div>
<div id="editor-container">
<div id="editor-menu">
<div>
beep.js editor
<div class="button" id="editor-apply"></div>
<div class="button" id="editor-close"></div>
</div>
</div>
<div>
<div id="editor-content"><textarea id="editor" spellcheck="false">window.synth = new Beep.Instrument()
/*
.applyVoices( function(){
this.voices.push(
new Beep.Voice( this.note, this.audioContext )
.setOscillatorType( 'sine' )
.setGainHigh( 0.50 ),
new Beep.Voice( this.note.hertz * 3 / 2, this.audioContext )
.setOscillatorType( 'triangle' )
.setGainHigh( 0.20 ),
new Beep.Voice( this.note.hertz * 4, this.audioContext )
.setOscillatorType( 'sawtooth' )
.setGainHigh( 0.01 ),
new Beep.Voice( this.note.hertz / 2, this.audioContext )
.setOscillatorType( 'square' )
.setGainHigh( 0.01 )
)
})
.addStyleClass( 'rainbow' )
.scorePlay()
*/</textarea></div>
</div>
<div><div id="eval-status"></div></div>
</div>
</div>
<footer>
<div class="button" id="github"></div>
<div class="button" id="twitter"></div>
<div class="button" id="facebook"></div>
<br>
Build your own? <a target="_blank" href="https://github.com/stewdio/beep.js" title="Beep.js on GitHub">Get the code</a>.
</footer>
<div id="cache">
<img src="media/buttons/apply-hover.svg">
<img src="media/buttons/editor-close-hover.svg">
<img src="media/buttons/play-hover.svg">
<img src="media/buttons/pause.svg">
<img src="media/buttons/pause-hover.svg">
<img src="media/buttons/fullscreen-hover.svg">
</div>
</body>
</html>