flooper Signal Generators:Sample Playback flooper flooper Function-table-based crossfading looper. Description 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, with one or two channels. Syntax asig1[, asig2] flooper kamp, kpitch, istart, idur, ifad, ifn Initialization istart -- loop start pos in seconds idur -- loop duration in seconds ifad -- crossfade duration in seconds ifn -- function table number, generally created using GEN01 Performance asig[,asig2] -- output sig (mono or stereo) kamp -- amplitude control kpitch -- pitch control (transposition ratio); negative values play the loop back in reverse Examples 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). Here is another example of the flooper opcode. It uses the file flooper.csd and fox.wav. See the sections Real-time Audio and Command Line Flags for more information on using command line flags. See also Sample Playback Credits Author: &namevictor; April 2005 New plugin in version 5 April 2005.