Can I record / loop the output of an internal sound source (oscillator)?

Thanks so much in advance!

Basic run down of what I’m hoping to do:

  1. I have a basic synth (oscillator / filter) setup
  2. I’d like to have a “record” button that, when held, records my performance and, when released, loops the recording.

I’ve seen some examples for recording/looping analog audio input but not internal digital audio. Am I able to record / loop the digital signal before it hits the DAC? Or would I have to let the signal go out and then back in?

Edit: Looking at the looper example, would it be possible to buffer the InterleavingOutputBuffer instead of the InterleavingInputBuffer?

Please feel free to let me know if there’s a better place on the forum to ask questions like these!

Thanks again!

Hi jfat!

This is a perfect place to ask that question :slight_smile:

Yes, you should be able to modify the looper example to “internally” record.
So instead of the in[i] in that code like shown, it could be your synth signal.

buf[pos] = buf[pos] * 0.5 + in[i] * 0.5;
1 Like