File: drum_patternlist.py

package info (click to toggle)
bespokesynth 1.3.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 44,592 kB
  • sloc: cpp: 117,136; ansic: 18,752; python: 593; xml: 74; makefile: 4
file content (10 lines) | stat: -rw-r--r-- 253 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
#attach a pulser set to 16n

def on_pulse():
   step = bespoke.get_step(16)
   if step % 16 in [0,4,8,11]:
      this.play_note(0,127,1.0/16)
   elif step % 16 in [4,11,14]:
      this.play_note(1,127,1.0/16)
   else:
      this.play_note(2,127,1.0/16)