1/2/23: ADDING MORE DETUNED VOICES
GUI before adding the other voices
dont forget to save back ups of the code on github
“dc1 —> envelope 4” : this is the filter envelope
First, I changed everything in the set up to reflect the new GUI layout
Setting the mixer levels
Adding the waveforms
Deleted envelope 2 and 3
Then add the rest of the waveforms and update the envelope objects in the play ArpUpDownNote() function
Update the selectWaveforms() function to reflect the array
in setup
Map it between 0 and 7 because there’s 8 oscillators now
Make an array of the 8 oscillators called oscillatorsOn[]
set them to 0 to turn off, 1 to turn on
TURNING ON THE OSCILLATORS
Set the volume of each oscillator = to its value in the array
Make a four loop that turns on oscillators up until oscillatorSelect();
for ( setting the looping variable , exit condition (how many oscillators are there) , incrementing looping variable (adding 1) ) ………. if oscillatorSelect is greater than or equal to the oscillator currently being checked then turn it on, or else turn it off
DETUNE OSCILLATORS
Make an array for the frequency multiples. An Array of 8 numbers that are multiples of the frequencies (1, 1.1, etc)
set them all to 1 to start so it stays at the center frequency