-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathnotes.py
42 lines (21 loc) · 976 Bytes
/
notes.py
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
'''
jupyter notebooks
pyo
foxdot
Quarks.install("FoxDot")
FoxDot.start
python -m FoxDot
synth1 >> bass([(0,9), (0,7), (3,7), (0,7)], dur=4, pan=(-1,1), amp=0.7)
synth2 >> ambi([0,2,4], dur=[1,1/2,1/2], amp=[1,3/4,3/4])
# p1 >> pluck([0,2,4], dur=[1,1/2,1/2], amp=[1,3/4,3/4])
synth2 = Player()
synth3 >> growl([0,10,10,200], dur=0.5, amp=[0.6])
synth4 >> pads([0,2,(4,0)], dur=4, amp=1)
b.stop()
synth.stop()
print (SynthDefs)
ict_keys(['loop', 'play1', 'play2', 'audioin', 'pads', 'noise', 'dab', 'varsaw', 'lazer', 'growl', 'bass', 'dirt', 'crunch', 'rave', 'scatter', 'charm', 'bell', 'gong', 'soprano', 'dub', 'viola', 'scratch', 'klank', 'ambi', 'glass', 'soft', 'quin', 'pluck', 'spark', 'blip', 'ripple', 'creep', 'orient', 'zap', 'marimba', 'fuzz', 'bug', 'pulse', 'saw', 'snick', 'twang', 'karp', 'arpy', 'nylon', 'donk', 'squish', 'swell', 'piano'])
>>> synth >> ambi([0,2,4], dur=[1,1/2,1/2], amp=[1,3/4,3/4])
oct=3
Scale.default = 'major'
'''