Csound Csound-dev Csound-tekno Search About

[Csnd] flooper2 kloopstart

Date2018-06-01 14:19
Fromluis antunes pena
Subject[Csnd] flooper2 kloopstart

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>



Date2018-06-01 14:46
FromVictor Lazzarini
SubjectRe: [Csnd] flooper2 kloopstart
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 <antunespena@WEB.DE> 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 Csound@listserv.heanet.ie 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

Date2018-06-01 14:48
FromVictor Lazzarini
SubjectRe: [Csnd] flooper2 kloopstart
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 <Victor.Lazzarini@MU.IE> 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 <antunespena@WEB.DE> 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 Csound@listserv.heanet.ie 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 Csound@listserv.heanet.ie 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

Date2018-06-01 16:40
FromVictor Lazzarini
SubjectRe: [Csnd] flooper2 kloopstart
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  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  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  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
>>> 
>>> 
>>> 
>>> -d -odac -A
>>> 
>>> 
>>> 
>>> 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
>>> ;-----------------------------------------------------------
>>> 
>>> 
>>> 
>>> i1 0 1000
>>> 
>>> 
>>> 
>>> 
>>> -- 
>>> http://luisantunespena.eu
>>> http://sumtone.com
>>> Csound mailing list Csound@listserv.heanet.ie 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 Csound@listserv.heanet.ie 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 Csound@listserv.heanet.ie 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
Csound@listserv.heanet.ie
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

Date2018-06-01 19:13
Fromluis antunes pena
SubjectRe: [Csnd] flooper2 kloopstart

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 <Victor.Lazzarini@mu.ie> 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 <Victor.Lazzarini@MU.IE> 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 <antunespena@WEB.DE> 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 Csound@listserv.heanet.ie 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 Csound@listserv.heanet.ie 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 Csound@listserv.heanet.ie 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
Csound@listserv.heanet.ie
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