Csound Csound-dev Csound-tekno Search About

[Csnd] Create stutter with flooper2

Date2011-05-05 09:20
FromDavid Banks
Subject[Csnd] Create stutter with flooper2
Hi all,

I've been playing around with flooper2, thanks to the great work on the 
Booki manual.  It has almost everything I want, with one exception. 
Sometimes I want to have a fixed-size period of silence after each loop 
iteration, rather than a crossfade between consecutive loops.  I thought 
I might be able to achieve this with the ifenv parameter to flooper2 and 
specifying a table of all zeroes.  However, this just silences all loops 
except for the first.  Is there a clever way to do this?

Also, if flooper2 isn't capable of doing this itself, is there any way I 
could achieve it using another method?  Maybe somehow looping a simple 
1/0 signal at the same rate so it masks out the appropriate point?  I 
tried to implement this using flooper2 but that obviously suffers from 
the same problem...

(Abusing flooper2's kcrossfade in the way proposed also has the problem 
that it's "limited to loop length" where I might want to have a period 
of silence that's larger than the loop length, but I could probably live 
with this restriction.)

   
   
   
   
   sr = 44100
   kr = 4410
   ksmps = 10
   nchnls = 1

   ; Instrument #1.
   instr 1
      ; All loops silenced!
      ; 1 second crossfade for a 2 second loop.
      a1 flooper2 16000, 1, 1, 3, 1, 1, 0, 0, 2
      out a1
   endin


   
   
   f 1 0 0 1 "beats.wav" 0 0 0
   ; all zero table
   f 2 0 2 2 0 0

   i 1 0 16
   e
   
   

Cheers,
David



Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2011-05-05 10:27
FromDavid Banks
Subject[Csnd] Re: Create stutter with flooper2
On 05/05/11 09:20, David Banks wrote:
> a1 flooper2 16000, 1, 1, 3, 1, 1, 0, 0, 2

Rather, that should be:

   a1 flooper2 16000, 1, 0.5, 1.5, 0.5, 1, 0, 0, 2

As "beats.wav" is only 2 second long.  :)

David



Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2011-05-05 11:37
FromIain McCurdy
SubjectRE: [Csnd] Create stutter with flooper2
Hi David,

I would probably approach this by triggering the instrument doing the flooping from another instrument using schedkwhen/event/scoreline something like that. You can then have gaps as long as you like between loop iterations. The idea of creating tables filled with zeroes sound a bit inefficient. If you want to keep it all within the same instrument you could do it by bypassing flooper's built-in looping function and instead instigate loop iterations using reinit.

Hope this helps,
Iain

> To: csound@lists.bath.ac.uk
> From: amoebae@gmail.com
> Date: Thu, 5 May 2011 09:20:23 +0100
> Subject: [Csnd] Create stutter with flooper2
>
> Hi all,
>
> I've been playing around with flooper2, thanks to the great work on the
> Booki manual. It has almost everything I want, with one exception.
> Sometimes I want to have a fixed-size period of silence after each loop
> iteration, rather than a crossfade between consecutive loops. I thought
> I might be able to achieve this with the ifenv parameter to flooper2 and
> specifying a table of all zeroes. However, this just silences all loops
> except for the first. Is there a clever way to do this?
>
> Also, if flooper2 isn't capable of doing this itself, is there any way I
> could achieve it using another method? Maybe somehow looping a simple
> 1/0 signal at the same rate so it masks out the appropriate point? I
> tried to implement this using flooper2 but that obviously suffers from
> the same problem...
>
> (Abusing flooper2's kcrossfade in the way proposed also has the problem
> that it's "limited to loop length" where I might want to have a period
> of silence that's larger than the loop length, but I could probably live
> with this restriction.)
>
> <CsoundSynthesizer>
> <CsOptions>
> </CsOptions>
> <CsInstruments>
> sr = 44100
> kr = 4410
> ksmps = 10
> nchnls = 1
>
> ; Instrument #1.
> instr 1
> ; All loops silenced!
> ; 1 second crossfade for a 2 second loop.
> a1 flooper2 16000, 1, 1, 3, 1, 1, 0, 0, 2
> out a1
> endin
>
>
> </CsInstruments>
> <CsScore>
> f 1 0 0 1 "beats.wav" 0 0 0
> ; all zero table
> f 2 0 2 2 0 0
>
> i 1 0 16
> e
> </CsScore>
> </CsoundSynthesizer>
>
> Cheers,
> David
>
>
>
> Send bugs reports to the Sourceforge bug tracker
> https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>