I am doing a music sequencer which requires 88 separate states ie notes. I am using a pot read into an adc that divides the pot range into 12 ranges that correspond to each basic note a,a#,b,c....
I then have a second pot that I do the same thing to that determines which octave the note is in. I want to then use logic to determine the note and look up a value from a table that determines a value for a DAC tha tproduces the correct voltage for my synth. Here is my issue. Before I even begin. Can I have a lookup table with 88 elements determined by 2 separate parameters?
The second way to do it is with 88 if then statements but I already know I am limited to 21 of them. The pdf show the logic I'm looking at. The hardware is just two pots on an adc. The final determined note value for the DAC will be sent SPI to a yet to be determined 16bit or greater dac based on what is needed for accuracy.
Basically its two adc lines that determine a value that is output to a dac. Not rocket science but I want to make sure I don't hve some limit before I start and to see if there is a smarter way to do this.
Fortunately, the notes will only change at most a few times a second so speed should not be an issue. I also do not want this to be midi which isthe obvious solution as it is being feed by an analog multiplex sequencer. (see my post in the porjects for details if you want).
View attachment Note Selector.pdf
I then have a second pot that I do the same thing to that determines which octave the note is in. I want to then use logic to determine the note and look up a value from a table that determines a value for a DAC tha tproduces the correct voltage for my synth. Here is my issue. Before I even begin. Can I have a lookup table with 88 elements determined by 2 separate parameters?
The second way to do it is with 88 if then statements but I already know I am limited to 21 of them. The pdf show the logic I'm looking at. The hardware is just two pots on an adc. The final determined note value for the DAC will be sent SPI to a yet to be determined 16bit or greater dac based on what is needed for accuracy.
Basically its two adc lines that determine a value that is output to a dac. Not rocket science but I want to make sure I don't hve some limit before I start and to see if there is a smarter way to do this.
Fortunately, the notes will only change at most a few times a second so speed should not be an issue. I also do not want this to be midi which isthe obvious solution as it is being feed by an analog multiplex sequencer. (see my post in the porjects for details if you want).
View attachment Note Selector.pdf