RedditPP Mascot

RedditPP

r/matlab • … • u/cosplayhelp

[help] Continuous acquisition of audio information form gui pushbuttons

I'm relatively new to matlab, and have some audio questions.

I'm creating a gui that looks like a single octet of piano keys. So far, when one of the keys is pressed, the correct frequency for that key is played for one second.

I'd like to add a feature where the user can click a "start recording" button, play a song by clicking the gui's keyboard, click "stop recording," and have a new .wav file of what they just played.

I've thought of just concatenating all of the matrices produced, but that would just be a recording of one-second-long notes with no spaces between them. I'd like to have the correct time.

Any ideas on where I should start?

edit: Apologies, I also am terrible at proofreading. *from

— 0