Electronic Trumpet
wtvizzutti
Posts: 8
I am trying to make a trumpet using the BS2 module. I would like to add midi out in the future, but for now all I want is to use simple audio out such as FREQOUT. I don't understand how to play the note only when it is supposed to be on. I attached my source that I have so far (no sound yet), and a list of the notes with their corresponding midi number, frequency, and register.
Any hints, sample code, or ideas are greatly appreciated,
Thanks,
Matt
Any hints, sample code, or ideas are greatly appreciated,
Thanks,
Matt
Comments
How do I make FREQOUT's duration dependent on a button combination and then change with the combination?
Are there other ways to produce frequencies with code?
Matt
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·1+1=10
If there were a way to stop FREQOUT when a new combination of buttons were pressed and start a new FREQOUT, then I could settle for a predefined duration. I would also need FREQOUT to stop as needed (if silence is needed before the predefined duration)
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·1+1=10
Any idea how to implement (or even find) such a midi ic?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·1+1=10
I think a possibility for the midi audio out is usig a pda. I guess I'll be looking into this.
Thanks
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·1+1=10
I hope this project is more possible than it seems.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·1+1=10
From the BS2 code comments:
'The first pair raises and lowers the register.
' The second pair raises and lowers the octave.
Also (since I dont play trumpet) I dont see how with 3 buttons and a register (and octave button) you can get a full set of notes.
thanks
·
The same notes may be produced from the different key combinations without changing the register (ex: v1 + v2 = v3).
The registers do overlap the higher the note is. This overlap also causes there to be different valve combinations for the same note.
I hope that explains it well, otherwise the registers and notes are outlined in the notes.txt attachment in the first post. The register overlap isn't evident until beyond halfway down.