This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 ################ |