Hello, I’m just started on Arduinos and I’m trying to make this little sound module, with the following equipment, and an arduino one I really like this setup: https://docs.arduino.cc/built-in-examples/digital/toneMelody/ and have come up with the following logic after looking at arduino code for a while.
Note selection reads selected note
Makes selected note, noteValue1 and noteValues go up chromatically
Creates RootNoteValue
“Scale” module reads selected scale
Reads note selected
Assigns scaleValue to noteValue root note needs to become ScaleValue 1
in A minor, a is scaleValue 1, B is scaleValue 2, C is scaleValue3
Creates an array of notes in order of playing
“Octave” module reads selected value
Octave half/double of frequencies of the array
“Tempo” module reads value
Tempo value determines note duration through bpm equations
Outputs value for noteRest
“Playstyle” module reads selected value
Applies selected playstyle pattern (rising, descending, arpeggio, pentatonic, random) to the scaleValue array
Creates the 4 bar loop/melody that will be played (the note pattern)
“Fx” module reads if a button is being pressed
Turns on and off effects on the chain
Creates the effect
“Play Button” module
Adds effects to tone
This module inputs the four bar melody (note pattern) into the tone
Schedules to replay after the total noteDur + total noteRest have gone by
What do I need to use to create this and does this logic translate to arduino

