-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathblues.js
30 lines (24 loc) · 1.45 KB
/
blues.js
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
var Q = require('./tambourine.js');
Q.setGlobalTime('4/4');
Q.setGlobalTempo(60);
Q.setGlobalVolume(7);
Q.setGlobalOctave(5);
// Q.setSynth(SynthType.PLUCK, 0.5,0.4);
Q.setEnv(5, 3000, 0, 600);
var topNotes = "(E,B)-- _- (E,B)- (E,`C#)-- _- (E,`C#)- (E,`D)-- _- (E,`D)- (E,`C#)-- _- (E,`C#)-|";
topNotes += "(E,B)-- _- (E,B)- (E,`C#)-- _- (E,`C#)- (E,`D)-- _- (E,`D)- (E,`C#)-- _- (E,`C#)-|";
topNotes += "(E,B)-- _- (E,B)- (E,`C#)-- _- (E,`C#)- (E,`D)-- _- (E,`D)- (E,`C#)-- _- (E,`C#)-|";
topNotes += "(E,B)-- _- (E,B)- (E,`C#)-- _- (E,`C#)- (E,`D)-- _- (E,`D)- (E,`C#)-- _- (E,`C#)-|";
topNotes += "(A,`E)-- _- (A,`E)- (A,`F#)-- _- (A,`F#)- (A,`G)-- _- (A,`G)- (A,`F#)-- _- (A,`F#)-|";
topNotes += "(A,`E)-- _- (A,`E)- (A,`F#)-- _- (A,`F#)- (A,`G)-- _- (A,`G)- (A,`F#)-- _- (A,`F#)-|";
topNotes += "(E,B)-- _- (E,B)- (E,`C#)-- _- (E,`C#)- (E,`D)-- _- (E,`D)- (E,`C#)-- _- (E,`C#)-|";
topNotes += "(E,B)-- _- (E,B)- (E,`C#)-- _- (E,`C#)- (E,`D)-- _- (E,`D)- (E,`C#)-- _- (E,`C#)-|";
topNotes += "< (F#,B)-- _- (F#,B)- (G#,B)-- _- (G#,B)- (F#,B)-- _- (F#,B)- (G#,B)-- _- (G#,B)-|";
topNotes += "(E,A)-- _- (E,A)- (F#,A)-- _- (F#,A)- (E,A)-- _- (E,A)- (F#,A)-- _- (F#,A)- >|";
topNotes += "(E,B)-- _- (E,B)- (E,`C#)-- _- (E,`C#)- (E,`D)-- _- (E,`D)- (E,`C#)-- _- (E,`C#)-|";
topNotes += "(E,B)-- _- (E,B)- (E,`C#)-- _- (E,`C#)- (E,`D)-- _- (E,`D)- (E,`C#)-- _- (E,`C#)-|";
var top = Q.createMelody(topNotes);
top.octave = 3;
top.repeat(10);
Q.play([top]);
/** TO PLAY: node blues */