Quantcast
Channel: Support - Pimoroni Buccaneers
Viewing all articles
Browse latest Browse all 6853

Having issues setting up Beat Box

$
0
0

Messing around with my Pi Beat Box setup.

https://learn.pimoroni.com/tutorial/sandyj/build-an-itty-bitty-beat-box

I noticed when I ran the drums.py example I couldn’t hit the same pad twice in a row?
I could go back to it after hitting another pad but twice in a row wouldn’t work?
I changed

def handle_release():
    pass

to

def handle_release():
    drumhat.all_off()

To fix it. You have to hold your finger on the pad for a split second but you can now click a single pad multiple times in a row.

And why does the simple-piano.py example not default to “piano sounds”?
I changed patch_index = 0 to patch_index = 1 to default to piano sounds.

Last issue that is baffling me is my beat.sh script works when run from terminal.
bash beat.sh
But fails to work when launched from crontab with
@reboot bash /home/pi/beat.sh &
The drum never works and the piano just blinks the LED’s? About 1 in 3 tries I’ll get sounds from the piano, and no drums (no leds light up and no sounds).

7 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 6853

Trending Articles