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:
- Ask for the start values of x_old and v_old.
- Calculate x_new and v_new from x_old and v_old by means of certain recursive relations.
- Export x_new as the current audio sample value.
- Rename x_new and v_new to x_old and v_old .
- 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?