[Csnd] flooper2 kloopstart

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

[Csnd] flooper2 kloopstart

luis antunes pena-4

Dear all,

I'm trying to change at k-time the starting point of the loop with the flooper2. With the instrument I'm using, the starting point (kloopstart) doesn't move as I would expect. He loops when kloopstart=0 and after that he just continues playing without looping - this means that the kloopend ist not set correctly.

Thanks for any help.

Luis


<CsoundSynthesizer>
<CsOptions>
-d -odac -A
</CsOptions>
<CsInstruments>

sr = 44100
ksmps = 128
nchnls = 2
0dbfs = 1.0

instr 1

Sf = "someaudio.aiff"

ilen filelen Sf ;in seconds
iftlen = ilen*sr ;in samples

;put sample into a table
itime = 0
isize = 0
igen = 1
iformat = 0
;gir ftgen     ifn,     itime, isize, igen
;            f#      time      size  1      filcod  skiptime      format      channel
gif1 ftgen     0,         itime, isize, igen, Sf,     0,            iformat,     0

kamp = .5
kpitch = 1
kloopstart randomh 0, ilen-0.1, 2
kloopend = kloopstart + 0.1

kcrossfade = 0.01
ifn1 = gif1
istart = 0
imode = 0 ;forward
ifenv = 0
iskip = 0
a1, a2 flooper2 kamp, kpitch, kloopstart, kloopend, kcrossfade, ifn1;, istart, imode, ifenv, iskip
outs a1, a2

endin
;-----------------------------------------------------------

</CsInstruments>
<CsScore>
i1 0 1000
</CsScore>
</CsoundSynthesizer>


Csound mailing list [hidden email] https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Reply | Threaded
Open this post in threaded view
|

Re: [Csnd] flooper2 kloopstart

Victor Lazzarini-2
Can you give us a minimal example?

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 1 Jun 2018, at 14:19, luis antunes pena <[hidden email]> wrote:

Dear all,

I'm trying to change at k-time the starting point of the loop with the flooper2. With the instrument I'm using, the starting point (kloopstart) doesn't move as I would expect. He loops when kloopstart=0 and after that he just continues playing without looping - this means that the kloopend ist not set correctly.

Thanks for any help.

Luis


<CsoundSynthesizer>
<CsOptions>
-d -odac -A
</CsOptions>
<CsInstruments>

sr = 44100
ksmps = 128
nchnls = 2
0dbfs = 1.0

instr 1

Sf = "someaudio.aiff"

ilen filelen Sf ;in seconds
iftlen = ilen*sr ;in samples

;put sample into a table
itime = 0
isize = 0
igen = 1
iformat = 0
;gir ftgen     ifn,     itime, isize, igen
;            f#      time      size  1      filcod  skiptime      format      channel
gif1 ftgen     0,         itime, isize, igen, Sf,     0,            iformat,     0

kamp = .5
kpitch = 1
kloopstart randomh 0, ilen-0.1, 2
kloopend = kloopstart + 0.1

kcrossfade = 0.01
ifn1 = gif1
istart = 0
imode = 0 ;forward
ifenv = 0
iskip = 0
a1, a2 flooper2 kamp, kpitch, kloopstart, kloopend, kcrossfade, ifn1;, istart, imode, ifenv, iskip
outs a1, a2

endin
;-----------------------------------------------------------

</CsInstruments>
<CsScore>
i1 0 1000
</CsScore>
</CsoundSynthesizer>


Csound mailing list [hidden email] https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list [hidden email] https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Reply | Threaded
Open this post in threaded view
|

Re: [Csnd] flooper2 kloopstart

Victor Lazzarini-2
Sorry, I didn’t see it there

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 1 Jun 2018, at 14:46, Victor Lazzarini <[hidden email]> wrote:

Can you give us a minimal example?

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 1 Jun 2018, at 14:19, luis antunes pena <[hidden email]> wrote:

Dear all,

I'm trying to change at k-time the starting point of the loop with the flooper2. With the instrument I'm using, the starting point (kloopstart) doesn't move as I would expect. He loops when kloopstart=0 and after that he just continues playing without looping - this means that the kloopend ist not set correctly.

Thanks for any help.

Luis


<CsoundSynthesizer>
<CsOptions>
-d -odac -A
</CsOptions>
<CsInstruments>

sr = 44100
ksmps = 128
nchnls = 2
0dbfs = 1.0

instr 1

Sf = "someaudio.aiff"

ilen filelen Sf ;in seconds
iftlen = ilen*sr ;in samples

;put sample into a table
itime = 0
isize = 0
igen = 1
iformat = 0
;gir ftgen     ifn,     itime, isize, igen
;            f#      time      size  1      filcod  skiptime      format      channel
gif1 ftgen     0,         itime, isize, igen, Sf,     0,            iformat,     0

kamp = .5
kpitch = 1
kloopstart randomh 0, ilen-0.1, 2
kloopend = kloopstart + 0.1

kcrossfade = 0.01
ifn1 = gif1
istart = 0
imode = 0 ;forward
ifenv = 0
iskip = 0
a1, a2 flooper2 kamp, kpitch, kloopstart, kloopend, kcrossfade, ifn1;, istart, imode, ifenv, iskip
outs a1, a2

endin
;-----------------------------------------------------------

</CsInstruments>
<CsScore>
i1 0 1000
</CsScore>
</CsoundSynthesizer>


Csound mailing list [hidden email] https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list [hidden email] https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list [hidden email] https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Reply | Threaded
Open this post in threaded view
|

Re: [Csnd] flooper2 kloopstart

Victor Lazzarini-2
Ok, I had a look at this. I think what happens is this. If loopstart is given a start time
beyond the current position, the table would be played until that loop position is reached,
then the loop starts from there.

I tried for instance using this

 kloopstart randomh 10, 20, 2

and the loop starts at random positions,
but when it’s ahead, the table will be played
until that position is reached.

If you lower the frequency you will be able to check
this out.

kloopstart randomh 10, 20, 0.1
printk2 kloopstart

If the range of random is the whole file, the chances of having to wait until
the loop occurs are bigger.

========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

> On 1 Jun 2018, at 14:48, Victor Lazzarini <[hidden email]> wrote:
>
> Sorry, I didn’t see it there
>
> Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy
> Maynooth University
> Ireland
>
> On 1 Jun 2018, at 14:46, Victor Lazzarini <[hidden email]> wrote:
>
>> Can you give us a minimal example?
>>
>> Victor Lazzarini
>> Dean of Arts, Celtic Studies, and Philosophy
>> Maynooth University
>> Ireland
>>
>> On 1 Jun 2018, at 14:19, luis antunes pena <[hidden email]> wrote:
>>
>>> Dear all,
>>>
>>> I'm trying to change at k-time the starting point of the loop with the flooper2. With the instrument I'm using, the starting point (kloopstart) doesn't move as I would expect. He loops when kloopstart=0 and after that he just continues playing without looping - this means that the kloopend ist not set correctly.
>>>
>>> Thanks for any help.
>>>
>>> Luis
>>>
>>> <CsoundSynthesizer>
>>> <CsOptions>
>>> -d -odac -A
>>> </CsOptions>
>>> <CsInstruments>
>>>
>>> sr = 44100
>>> ksmps = 128
>>> nchnls = 2
>>> 0dbfs = 1.0
>>> instr 1
>>>
>>> Sf = "someaudio.aiff"
>>>
>>> ilen filelen Sf ;in seconds
>>> iftlen = ilen*sr ;in samples
>>>
>>> ;put sample into a table
>>> itime = 0
>>> isize = 0
>>> igen = 1
>>> iformat = 0
>>> ;gir ftgen     ifn,     itime, isize, igen
>>> ;            f#      time      size  1      filcod  skiptime      format      channel
>>> gif1 ftgen     0,         itime, isize, igen, Sf,     0,            iformat,     0
>>>
>>> kamp = .5
>>> kpitch = 1
>>> kloopstart randomh 0, ilen-0.1, 2
>>> kloopend = kloopstart + 0.1
>>>
>>> kcrossfade = 0.01
>>> ifn1 = gif1
>>> istart = 0
>>> imode = 0 ;forward
>>> ifenv = 0
>>> iskip = 0
>>> a1, a2 flooper2 kamp, kpitch, kloopstart, kloopend, kcrossfade, ifn1;, istart, imode, ifenv, iskip
>>> outs a1, a2
>>>
>>> endin
>>> ;-----------------------------------------------------------
>>>
>>> </CsInstruments>
>>> <CsScore>
>>> i1 0 1000
>>> </CsScore>
>>> </CsoundSynthesizer>
>>>
>>>
>>> --
>>> http://luisantunespena.eu
>>> http://sumtone.com
>>> Csound mailing list [hidden email] https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
>> Csound mailing list [hidden email] https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
> Csound mailing list [hidden email] https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here


Csound mailing list
[hidden email]
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Reply | Threaded
Open this post in threaded view
|

Re: [Csnd] flooper2 kloopstart

luis antunes pena-4

OK, that's a good explanaition! Thanks for taking a look.

Luis

Am 01.06.18 um 17:40 schrieb Victor Lazzarini:
Ok, I had a look at this. I think what happens is this. If loopstart is given a start time 
beyond the current position, the table would be played until that loop position is reached, 
then the loop starts from there. 

I tried for instance using this

 kloopstart randomh 10, 20, 2

and the loop starts at random positions,
but when it’s ahead, the table will be played
until that position is reached.

If you lower the frequency you will be able to check
this out.

kloopstart randomh 10, 20, 0.1
printk2 kloopstart

If the range of random is the whole file, the chances of having to wait until
the loop occurs are bigger.

========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

On 1 Jun 2018, at 14:48, Victor Lazzarini [hidden email] wrote:

Sorry, I didn’t see it there

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 1 Jun 2018, at 14:46, Victor Lazzarini [hidden email] wrote:

Can you give us a minimal example?

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 1 Jun 2018, at 14:19, luis antunes pena [hidden email] wrote:

Dear all,

I'm trying to change at k-time the starting point of the loop with the flooper2. With the instrument I'm using, the starting point (kloopstart) doesn't move as I would expect. He loops when kloopstart=0 and after that he just continues playing without looping - this means that the kloopend ist not set correctly.

Thanks for any help.

Luis

<CsoundSynthesizer>
<CsOptions>
-d -odac -A
</CsOptions>
<CsInstruments>

sr = 44100
ksmps = 128
nchnls = 2
0dbfs = 1.0
instr 1

Sf = "someaudio.aiff"

ilen filelen Sf ;in seconds
iftlen = ilen*sr ;in samples

;put sample into a table
itime = 0
isize = 0
igen = 1
iformat = 0
;gir ftgen     ifn,     itime, isize, igen
;            f#      time      size  1      filcod  skiptime      format      channel
gif1 ftgen     0,         itime, isize, igen, Sf,     0,            iformat,     0

kamp = .5
kpitch = 1
kloopstart randomh 0, ilen-0.1, 2
kloopend = kloopstart + 0.1

kcrossfade = 0.01
ifn1 = gif1
istart = 0
imode = 0 ;forward
ifenv = 0
iskip = 0
a1, a2 flooper2 kamp, kpitch, kloopstart, kloopend, kcrossfade, ifn1;, istart, imode, ifenv, iskip
outs a1, a2

endin
;-----------------------------------------------------------

</CsInstruments>
<CsScore>
i1 0 1000
</CsScore>
</CsoundSynthesizer>


-- 
http://luisantunespena.eu
http://sumtone.com
Csound mailing list [hidden email] https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list [hidden email] https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list [hidden email] https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list
[hidden email]
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here


Csound mailing list [hidden email] https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here