Skip to content

Instantly share code, notes, and snippets.

View pibeat-demo-sequence.py
# 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 Aug 28, 2019
A script to program drum patterns on your Raspberry Pi based mechanical drum machine
View array-sequencer.py
# 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 ################
You can’t perform that action at this time.