BS2 As Synthesizer?
wingflyer
Posts: 4
Hi all,
I'm trying to make a mini synthesizer/music keyboard. Is there some way I can program the BS2 to·output sounds·like a mini music keyboard? The 'freqout' command has a fixed time but I want the sound to occurr only while a condition is met in real time like while a button's depressed, or the RC time constant's in a certain range, etc. For example, in an RC circuit I can have resistors and buttons set up so each button produces a different resistance/RC time constant and for each time constant, a different note is played while its button is depressed. Is·such a program·even possible with a BS2?
Thanks for any help.
PS, does the BS2 have an A to D converter?
I'm trying to make a mini synthesizer/music keyboard. Is there some way I can program the BS2 to·output sounds·like a mini music keyboard? The 'freqout' command has a fixed time but I want the sound to occurr only while a condition is met in real time like while a button's depressed, or the RC time constant's in a certain range, etc. For example, in an RC circuit I can have resistors and buttons set up so each button produces a different resistance/RC time constant and for each time constant, a different note is played while its button is depressed. Is·such a program·even possible with a BS2?
Thanks for any help.
PS, does the BS2 have an A to D converter?
Comments
2) The BS2 does not have an ADC. It's possible to use the RCTIME statement to measure external voltages, but it's pretty slow. There's some discussion of this on this website: www.emesystems.com. Use the "app-notes" link at the bottom of the page, then read the section on the RCTIME statement to see how to measure battery voltage. It's easy to connect an external ADC like the ADC0831 or ADC0834 (or others).
I like the battery voltage RC time idea. Can you give me an example·of an external device I could use to scan for button presses? Also, would it work for a simple circuit I hack together rather than a computer keyboard?
Out of curiosity, Is there a Basic Stamp chip in the series that can do more than one thing at once, or do I need a Propeller to do that?
2) You would need to use a Propeller to do more than one thing at a time
Here's a link:
http://www.arcadechips.com/product_info.php?products_id=154
Easy to use with serial interface. It has some built-in melodies, and support for the whole range of a synthesizer with notes, pitches, octaves and what not.
It even has a 64 byte EEPROM where you can store music.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Don't worry. Be happy