forked from gibber-cc/gibber
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.htm
169 lines (156 loc) · 7.52 KB
/
index.htm
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
<!DOCTYPE html>
<html>
<head>
<title>Gibber</title>
<link rel="stylesheet" href="css/main.css">
<link rel="stylesheet" href="js/codemirror/codemirror.css">
<link rel="stylesheet" href="css/elegant.css">
<link rel="stylesheet" href="css/thecharlie.css">
<link rel="stylesheet" href="css/dcmegamenu.css">
</head>
<body>
<div class="demo-container">
<ul id="mega-menu-1" class="mega-menu">
<li class="nolink" style="padding:0">
<span class="floaty">GIBBER</span>
<span class="num" id="beat1"> </span>
<span class="num" id="beat2"> </span>
<span class="num" id="beat3"> </span>
<span class="num" id="beat4"> </span>
</li>
<li><a>Load</a>
<ul id="fileList"></ul>
</li>
<li><a>Save</a>
<ul>
<label for="filename" >filename :</label>
<input id="filename">
<button onclick='Gibber.Environment.saveWithName( $("#filename").val() )'>Save</button>
</ul>
</li>
<!-- <li><a>Demos</a>
<ul><a><li>SubItem 11</li></a>
<a><li>SubItem 21</li></a>
</ul>
</li>
<li><a>Tutorials</a>
<ul><a><li>SubItem 11</li></a>
<a><li>SubItem 21</li></a>
</ul>
</li> -->
<li><a>Join Session</a>
<ul><li>
<label for="username">username :</label>
<input id="username"><br>
<label for="ip">ip address :</label>
<input id="ip">
<button onclick='
G.log("ATTEMPTING TO CONNECT TO MASTER...");
Gibber.Environment.slave($("#username").val(), $("#ip").val());
$(Gibber.Environment.joinWindow).remove();
Gibber.Environment.isJoinOpen = false;'
>Join</button>
</li>
</ul>
</li>
<li><a>Help</a>
<ul>
<li><a id="aboutMenuItem">About</a></li>
<li><a id="tutorialMenuItem">Intro Tutorial</a></li>
<li><a id="quickstartMenuItem">Quickstart</a></li>
<li><a id="keyCommandMenuItem">Key Commands</a></li>
<li><a href="http:://www.charlie-roberts.com/gibber/info">Website</a></li>
<li><a href="http://charlie-roberts.com/gibber/info/?forum=gibber">Forum</a></li>
</ul>
</li>
<li><a onclick="CodeMirror.keyMap.gibber['Ctrl-Enter'](window.editor);">Execute</a></li>
</ul>
</div>
<div id="about" style="display:none">
<p>
<a href="http://www.charlie-roberts.com/gibber/info">Gibber</a> is a JavaScript live coding environment with a relatively easy syntax. Gibber has only been tested in Chrome. The syntax is layered on top of the excellent <a href="https://github.com/jussi-kalliokoski/audiolib.js">audioLib.js library</a> by <a href="https://github.com/jussi-kalliokoski">Jussi Kalliokoski</a>. Gibber is open-source and <a href="https://github.com/charlieroberts/Gibber">available for download</a>.</p>
<p>Other projects/code that contribute to Gibber:</p>
<ul>
<li><a href="http://codemirror.net">CodeMirror</a></li>
<li><a href="http://jquery.com">jQuery</a></li>
<li><a href="http://saebekassebil.github.com/teoria/docs/teoria.html">teoria.js</a></li>
<li><a href="http://www.designchemical.com/lab/jquery-mega-drop-down-menu-plugin/options/">Design Chemical Mega Menu</a></li>
<li><a href="http://www.ericmmartin.com/projects/simplemodal/">SimpleModal jQuery plugin</a></li>
<li><a href="http://nodejs.org">Node.js</a></li>
</ul>
<p><a href="http://toplap.org">Learn more about live coding at Toplap.org</a></p>
<p>Some live coding environments that were particularly inspiring to this project:</p>
<ul>
<li><a href="http://www.ixi-audio.net/ixilang/">ixi lang</a></li>
<li><a href="http://www.sketchpatch.net/livecodelab/index.html">Livecodelab</a></li>
<li><a href="http://chuck.cs.princeton.edu/">ChucK</a></li>
</ul>
</div>
</div>
<div id="keyCommands" style="display:none">
<ul style="list-style:none">
<li><pre>Ctrl-Return </pre> executes selected code. If no code is selected current line of the cursor is run.</li>
<li><pre>Ctrl-Shift-Return</pre> executes code at the start of the next measure. </li>
<li><pre>Ctrl-Shift-Alt/Option-Return</pre> executes code at the start of the next beat.</li>
<li><pre>Ctrl .</pre> toggles the audio on and off</li>
<li><pre>Ctrl ` (backtick)</pre> clears all audio generators, use this to start over without refreshing the page and losing your code</li>
<li><pre>Ctrl +- (Cmd +- on OS X) </pre>change font size up and down.</li>
</ul>
</div>
<div id="quickstart" style="display:none">
<ul class="startlist">
<li>Click on a line of code.</li>
<li>Hit Ctrl-return to execute the selected line.</li>
<li>You can also highlight multiple lines to be executed at once. Most of the tutorial files that come with Gibber are designed to be run one line at a time.</li>
<li> Shift-ctrl-return executes code at the start of the next measure; this is useful to ensure the timing of arpeggios, drum beats, etc. line up correctly.
</li><li> To kill current oscillators / fx in memory, hit Cntrl-` (backtick).</li>
<li> Under Options, load up different files to learn how things work.</li>
<li> Check out <a href="http://www.charlie-roberts.com/gibber/info">the documentation</a> and visit <a href="http://charlie-roberts.com/gibber/info/?forum=gibber">the forum</a> to ask questions!</li>
</ul>
</div>
<div id="console">
<span class="consoleprompt" style="margin-left:.5em">> <span class="consoletext"></span></span>
</div>
<textarea id="code" name="code">
</textarea>
</body>
<script data-main="js/main.js" src="js/require-jquery.js"></script>
<!--<script src="js/jquery-1.5.js" type="text/javascript" charset="utf-8"></script>
<script type='text/javascript' src='js/megamenu/jquery.hoverIntent.minified.js'></script>
<script type='text/javascript' src='js/megamenu/jquery.dcmegamenu.1.3.3.min.js'></script>
<script type='text/javascript' src='js/jquery.simplemodal.1.4.2.min.js'></script>
<!--<script src="js/sink.js"></script>
<script src="js/audiolib.js"></script>
<script src="js/samples/drum-samples.js"></script>
<script src="js/gibber/audio_callback.js"></script>
<script data-main="js/gibberish/main.js" src="js/gibberish/lib/require.js"></script>
<script src="js/gibber/gibber.js"></script>
<script src="js/gibber/fx.js"></script>
<script src="js/gibber/sequence.js"></script>
<script src="js/gibber/scale_seq.js"></script>
<script src="js/gibber/arpeggiator.js"></script>
<script src="js/teoria.js"></script>
<script src="js/gibber/utilities.js"></script>
<script src="js/gibber/drums.js"></script>
<script src="js/gibber/line.js"></script>
<script src="js/gibber/beatCallback.js"></script>
<script src="js/gibber/environment.js"></script>
<script src="js/gibber/synth.js"></script>
<script src="js/gibber/poly.js"></script>
<script src="js/gibber/fm_synth.js"></script>
<script src="js/gibber/string.js"></script>
<script src="js/gibber/flanger.js"></script>
<script src="js/gibber/recorder.js"></script>
<script src="js/gibber/grains.js"></script>
<script src="js/gibber/envelopes.js"></script>
<script src="js/gibber/tutorials.js"></script>
<script src="js/gibber/pluck2.js"></script>
<script src="js/gibber/schizo.js"></script>
<script src="js/gibber/crackle.js"></script>
<script src="js/gibber/default_scripts.js"></script>
<script src="js/codemirror/codemirror.js"></script>
<script src="js/codemirror/util/loadmode.js"></script>
<script src="js/codemirror/util/overlay.js"></script>
<script src="js/node/socket.io.min.js" type="text/javascript" charset="utf-8"></script>
-->
</html>