Creating sound sample for sample with a loop – Csound Noobs

I would like to create a sound signal one sample value at a time by means of a loop. The process should run like this:

  1. Ask for the start values of x_old and v_old.
  2. Calculate x_new and v_new from x_old and v_old by means of certain recursive relations.
  3. Export x_new as the current audio sample value.
  4. Rename x_new and v_new to x_old and v_old .
  5. Goto 2.

The loop should take exactly one sample time long, so that one sample value is produced during one sample time.

Is there a way to do this in Csound?

Read more here: Source link