"coding even temperament"
zach
Posts: 6
I am working on a project I am calling a Digital Trombone.
Adjusting a pot scales from 1 - 36 so I can select notes across 3 octaves.
As I scan through the notes, they appear on a 7 seg. display.
The different octaves are displayed through 3 LEDs
Everything is coded except for telling the buzzer to play the specific note.
I was wanting to select the frequency of the note purely by its index of 1-36.
Pg. 228 of What is a Microcontroller tells of even temperament
which is a referenceNote multiplied by 2 * (Index/12)
That last bit is where I am having trouble.
How do I store a decimal value calculated by PBasic?
I understand I can use lookup and store 36 Words, but I was looking for an alternative.
My goal was to reference everything by the Index of 1 - 36.
Post Edited (zach) : 1/16/2010 9:54:46 PM GMT
Adjusting a pot scales from 1 - 36 so I can select notes across 3 octaves.
As I scan through the notes, they appear on a 7 seg. display.
The different octaves are displayed through 3 LEDs
Everything is coded except for telling the buzzer to play the specific note.
I was wanting to select the frequency of the note purely by its index of 1-36.
Pg. 228 of What is a Microcontroller tells of even temperament
which is a referenceNote multiplied by 2 * (Index/12)
That last bit is where I am having trouble.
How do I store a decimal value calculated by PBasic?
I understand I can use lookup and store 36 Words, but I was looking for an alternative.
My goal was to reference everything by the Index of 1 - 36.
Post Edited (zach) : 1/16/2010 9:54:46 PM GMT
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com
-Phil