You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tulip/amyboardweb/sketches/drum_machine.py
+31-2Lines changed: 31 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
# AMYboard Sketch
2
-
# DESCRIPTION: Gamma9001 drum machine: three drum channels at once -- a main kit that rotates through all six banks, TR-909 hats, and a tabla/shaker percussion layer.
2
+
# DESCRIPTION: Gamma9001 drum machine: three drum channels at once -- a main kit that rotates through all six banks, TR-909 hats, and a tabla/shaker percussion layer. The OLED shows the current kit, section position and beat.
3
3
# Top-level code runs once at boot. loop() is called every 32nd note.
4
-
importamy, sequencer
4
+
importamy, amyboard, sequencer
5
5
importrandom
6
6
7
7
sequencer.tempo(118)
@@ -22,6 +22,20 @@
22
22
23
23
amy.send(reverb="0.2,0.5,0.1")
24
24
25
+
# --- OLED display: kit name, section position, beat. Safe no-ops with no
26
+
# display attached; draws to the panel in the simulator. show() only sends
27
+
# the rows that changed, in the background, so per-beat updates are cheap.
0 commit comments