-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathhmmkpn_downwardsrush.py
More file actions
24 lines (15 loc) · 915 Bytes
/
Copy pathhmmkpn_downwardsrush.py
File metadata and controls
24 lines (15 loc) · 915 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import neuronSeq
import time
import rtmidi
#an alias for the sleep-function of module time
playForSeconds = time.sleep
#The fundamental instruments (neurons eg. NNote-objects).
kick = neuronSeq.NNote(id = "Kick", note = 36, velocity = 127, duration = 0.3, channel = 1, activation = 0.09, addToCounter = 0.09, threshold = 1920.0)
snare01 = neuronSeq.NNote(id = "snare01", note = 42, velocity = 127, duration = 0.0000001, channel = 1, activation = 0.9, addToCounter = 0.000009, threshold = 1920.0)
drumConnection00 = neuronSeq.Connection(kick, snare01, -0.0000000061009, -0.00614120000009)
drumConnection00.start()
playForSeconds(10)
drumConnection00.stopSeq()
drumConnection00.join()
time.sleep(2)
drumConnection00.cleanup()