Hello, we are developping a synthetiser with push buttons.
The goal is to start a recorder, then play a melody with the push buttons, let it be played after like a loopstation.
Our problem is : how to start a recorder and save the notes in the same order as their were played.
The easiest way would be to have a record button. Once you press it, it begins recording the button presses. When you press it a second time, it stops. When you are recording, you will have to keep track of which button was pressed, the time it was pressed and (maybe) how long it was pressed. Write all this information onto an SD card in a file for easy playback.
Swann17:
Our problem is : how to start a recorder and save the notes in the same order as their were played.
Use an array. Store the value(s) of interest every n units of time in sequential array locations. The reverse is to read those locations out in the same order to the playback device.