Skip to content

Instantly share code, notes, and snippets.

# The drum sequence from this video: https://www.youtube.com/watch?v=oNB-VddAX4o
# Instructable: https://www.instructables.com/id/A-Raspberry-Pi-Powered-Junk-Drum-Machine/
# @see: http://www.banjowise.com/post/automabeat/
import RPi.GPIO as GPIO
import time
import numpy as np
bpm = 380
bpm_fast = 550
@mnkii
mnkii / array-sequencer.py
Last active May 13, 2021 18:43
A script to program drum patterns on your Raspberry Pi based mechanical drum machine
# A script to program drum patterns on your solenoid based Raspberry Pi mechanical drum machine
# For the interactive step sequencer, @see https://github.com/mnkii/pibeat
# Instructable @see https://www.instructables.com/id/A-Raspberry-Pi-Powered-Junk-Drum-Machine/
# @see http://www.banjowise.com/post/automabeat/
import RPi.GPIO as GPIO
import time
import numpy as np
################ Tweak the variables in this section to configure your PI and create your drum pattern ################