-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathneuronSeqRun056.py
49 lines (37 loc) · 1.39 KB
/
neuronSeqRun056.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
43
44
45
46
47
import neuronSeq
import time
kick = neuronSeq.NNote(note = 36, duration = 0.06, channel = 1, velocity= 127)
snare = neuronSeq.NNote(note = 38, duration = 0.06, channel = 1, velocity = 127)
hihat = neuronSeq.NNote(note = 42, duration= 0.06, channel = 1, velocity=127)
syn01 = neuronSeq.NNote(note = 60, duration=0.6, channel=2,velocity=127)
tempokick = neuronSeq.NNote(note = 36, duration = 0.03, channel = 3, velocity=127)
kick.setNNParams(0.0, 0.00000092, 1.0)
snare.setNNParams(0.0, 0.00000124, 1.0)
hihat.setNNParams(0.0, 0.0000008, 1.0)
syn01.setNNParams(0.0, 0.00000016, 1.0)
tempokick.setNNParams(0.0, 0.0000064, 1.0)
#new style
strings = neuronSeq.NNote(id = "Strings", note = 72, velocity = 127, duration = 0.6, channel = 4, activation = 0.0 , addToCounter = 0.0000019, threshold = 1.0)
conn01 = neuronSeq.Connection(kick, snare, 0.00002, -0.0000002)
conn02 = neuronSeq.Connection(kick, hihat, 0.000008, -0.00000008)
conn03 = neuronSeq.Connection(kick, syn01, 0.0000008, 0.0000008)
conn04 = neuronSeq.Connection(tempokick, kick, 0.000002, -0.000002)
conn05 = neuronSeq.Connection(syn01, strings, 0.000000001, -0.00000001)
conn01.start()
conn02.start()
conn03.start()
conn04.start()
conn05.start()
time.sleep(120.0)
conn01.stopSeq()
conn02.stopSeq()
conn03.stopSeq()
conn04.stopSeq()
conn05.stopSeq()
conn01.join()
conn02.join()
conn03.join()
conn04.join()
conn05.join()
time.sleep(2)
conn01.cleanup()