flooper — Function-table-based crossfading looper.


This opcode reads audio from a function table and plays it back in a loop with user-defined start time, duration and crossfade time. It also allows the pitch of the loop to be controlled, including reversed playback. It accepts non-power-of-two tables, such as deferred-allocation GEN01 tables.


asig flooper kamp, kpitch, istart, idur, ifad, ifn


istart -- loop start pos in seconds

idur -- loop duration in seconds

ifad -- crossfade duration in seconds

ifn -- function table number, generally created using GEN01


asig -- output sig

kon -- amplitude control

kpitch -- pitch control (transposition ratio); negative values play the loop back in reverse


Example 142. Example

aout flooper 16000, 1, 1, 4, 0.05, 1  ;  loop starts at 1 sec, for 4 secs 0.05 crossfade
       out aout

The example above shows the basic operation of flooper. Pitch can be controlled at the k-rate, as well as amplitude. The example assumes table 1 to contain at least 5.05 seconds of audio (4 secs loop duration, starting 1 sec into the table, using 0.05 secs after the loop end for the crossfade).


Author: Victor Lazzarini;
April 2005

New plugin in version 5

April 2005.