Csound Csound-dev Csound-tekno Search About

[Csnd] stereo flooper / flooper2 opcode?

Date2014-08-10 23:49
FromKevin Welsh
Subject[Csnd] stereo flooper / flooper2 opcode?
Hello everyone.  I was wondering if there was an opcode similar to
flooper and/or flooper2 that works on stereo files.  I'm using this
hack-around instead, which seems cumbersome.

If one doesn't already exist, how difficult would it be for
flooper/flooper2 to be modified to work on either mono or stereo
files, similar to how loscil does with optional one or two channel
output?

stereo flooper hack pseudo-example:

ifile ftgenonce 0, -1, 0, inorm, , , 0, 0
ichancnt = ftchnls(ifile)

if (ichancnt >= 2) then
    ifile1 ftgenonce 0, -1, 0, inorm, , , 0, 1
    ifile2 ftgenonce 0, -1, 0, inorm, , , 0, 2
    asigL flooper2 kgain, kpitch, klstart, klend, koverlap, ifile1, iskip
    asigR flooper2 kgain, kpitch, klstart, klend, koverlap, ifile2, iskip
else
    asigL flooper2 kgain, kpitch, klstart, klend, koverlap, ifile, iskip
    asigR = asigL
endif

Thanks!
  -tg