Simple game sounds on piezo speaker #971
Replies: 4 comments
-
Posted at 2018-03-27 by @gfwilliams I'd never come across beepbox - that's really cool! Looking at the JSON it looks like you'll want to scan over it and change its form a bit first - basically go over all of Then it'd just be a matter of using Of course you could use Waveform too, but I'd start out simple :) |
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-03-27 by jugglingcats I'll give it a go. I don't know how they do the 'trill' type sound when two notes are to be played together. I assume they alternate between the two notes very fast and setInterval may not be fast enough. Maybe this isn't how it's done but it doesn't sound like a proper chord. My music knowledge very limited! |
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-03-27 by @gfwilliams In hardware there's a good hack for two notes at the same time - which is just to attach the piezo to two signal pins and use PWM on both (= two channels). However if you use |
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-03-27 by jugglingcats That's a good tip to use two output pins -- will try it! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2018-03-26 by jugglingcats
I have a little piezo speaker hooked up to a Pico. I'd like to generate some simple 8-bit game-type sounds for it.
What I'd really like to be able to do is export sounds created on http://www.beepbox.co (they have JSON export) and add them to Espruino projects.
The sound would need to play in the background so I think this would need to be implemented as some kind of task, but beyond that am not sure where to start.
Any ideas appreciated!
Beta Was this translation helpful? Give feedback.
All reactions