Csound Csound-dev Csound-tekno Search About

Dynamic ramping parameters during a perf-pass.

Date2016-02-11 00:34
FromBeinan Li
SubjectDynamic ramping parameters during a perf-pass.
Hi Csound,

I have a slider that outputs to a global variable: gktarget. 
gktarget is meant to be the target value of a linear ramp.
The ramp has to respond to the change in this variable so that it always ramps 
from its current value to the new gktarget, i.e., the old ramp is overridden by the new one and creates zigzags. It takes the fixed amount of time for each dynamic ramp to finish.

It seems all ramping opcodes take only i-rate parameters, but here I seem to need k-rate changes.
But if I used reinit for the ramps, there might be artifacts.

In PD, it seems to be as simple as to hook up a slider to trigger (target-var,delay) message that is fed to the line object and the output will be like what I described above. 

I wonder what would be the standard way of doing this in Csound. If I can use a few opcodes instead of an explicit logic, that would be great. 


Thanks,
Beinan

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

Date2016-02-11 00:43
FromHlöðver Sigurðsson
SubjectRe: Dynamic ramping parameters during a perf-pass.
Have you tried putting the signal from gktarget trough portk opcode before setting it to any parameter?

2016-02-11 1:34 GMT+01:00 Beinan Li <li.beinan@gmail.com>:
Hi Csound,

I have a slider that outputs to a global variable: gktarget. 
gktarget is meant to be the target value of a linear ramp.
The ramp has to respond to the change in this variable so that it always ramps 
from its current value to the new gktarget, i.e., the old ramp is overridden by the new one and creates zigzags. It takes the fixed amount of time for each dynamic ramp to finish.

It seems all ramping opcodes take only i-rate parameters, but here I seem to need k-rate changes.
But if I used reinit for the ramps, there might be artifacts.

In PD, it seems to be as simple as to hook up a slider to trigger (target-var,delay) message that is fed to the line object and the output will be like what I described above. 

I wonder what would be the standard way of doing this in Csound. If I can use a few opcodes instead of an explicit logic, that would be great. 


Thanks,
Beinan

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

Date2016-02-11 01:01
Fromthorin kerr
SubjectRe: Dynamic ramping parameters during a perf-pass.

Or lineto / tlineto

Thorin

On 11 Feb 2016 10:43 am, "Hlöðver Sigurðsson" <hlolli@gmail.com> wrote:
Have you tried putting the signal from gktarget trough portk opcode before setting it to any parameter?

2016-02-11 1:34 GMT+01:00 Beinan Li <li.beinan@gmail.com>:
Hi Csound,

I have a slider that outputs to a global variable: gktarget. 
gktarget is meant to be the target value of a linear ramp.
The ramp has to respond to the change in this variable so that it always ramps 
from its current value to the new gktarget, i.e., the old ramp is overridden by the new one and creates zigzags. It takes the fixed amount of time for each dynamic ramp to finish.

It seems all ramping opcodes take only i-rate parameters, but here I seem to need k-rate changes.
But if I used reinit for the ramps, there might be artifacts.

In PD, it seems to be as simple as to hook up a slider to trigger (target-var,delay) message that is fed to the line object and the output will be like what I described above. 

I wonder what would be the standard way of doing this in Csound. If I can use a few opcodes instead of an explicit logic, that would be great. 


Thanks,
Beinan

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

Date2016-02-11 01:04
FromSteven Yi
SubjectRe: Dynamic ramping parameters during a perf-pass.
AttachmentsLine_Target.csd  
Interesting, I never knew about lineto. :)  I was just writing a UDO
to do pretty much the same thing and have attached it here.

On Wed, Feb 10, 2016 at 8:01 PM, thorin kerr  wrote:
> Or lineto / tlineto
>
> Thorin
>
> On 11 Feb 2016 10:43 am, "Hlöðver Sigurðsson"  wrote:
>>
>> Have you tried putting the signal from gktarget trough portk opcode before
>> setting it to any parameter?
>>
>> 2016-02-11 1:34 GMT+01:00 Beinan Li :
>>>
>>> Hi Csound,
>>>
>>> I have a slider that outputs to a global variable: gktarget.
>>> gktarget is meant to be the target value of a linear ramp.
>>> The ramp has to respond to the change in this variable so that it always
>>> ramps
>>> from its current value to the new gktarget, i.e., the old ramp is
>>> overridden by the new one and creates zigzags. It takes the fixed amount of
>>> time for each dynamic ramp to finish.
>>>
>>> It seems all ramping opcodes take only i-rate parameters, but here I seem
>>> to need k-rate changes.
>>> But if I used reinit for the ramps, there might be artifacts.
>>>
>>> In PD, it seems to be as simple as to hook up a slider to trigger
>>> (target-var,delay) message that is fed to the line object and the output
>>> will be like what I described above.
>>>
>>> I wonder what would be the standard way of doing this in Csound. If I can
>>> use a few opcodes instead of an explicit logic, that would be great.
>>>
>>>
>>> Thanks,
>>> Beinan
>>>
>>> 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

Date2016-02-11 01:57
FromBeinan Li
SubjectRe: Dynamic ramping parameters during a perf-pass.
Thanks a lot, guys!
lineto is exactly it!

Thanks,
Beinan


On Wed, Feb 10, 2016 at 8:04 PM, Steven Yi <stevenyi@gmail.com> wrote:
Interesting, I never knew about lineto. :)  I was just writing a UDO
to do pretty much the same thing and have attached it here.

On Wed, Feb 10, 2016 at 8:01 PM, thorin kerr <thorin.kerr@gmail.com> wrote:
> Or lineto / tlineto
>
> Thorin
>
> On 11 Feb 2016 10:43 am, "Hlöðver Sigurðsson" <hlolli@gmail.com> wrote:
>>
>> Have you tried putting the signal from gktarget trough portk opcode before
>> setting it to any parameter?
>>
>> 2016-02-11 1:34 GMT+01:00 Beinan Li <li.beinan@gmail.com>:
>>>
>>> Hi Csound,
>>>
>>> I have a slider that outputs to a global variable: gktarget.
>>> gktarget is meant to be the target value of a linear ramp.
>>> The ramp has to respond to the change in this variable so that it always
>>> ramps
>>> from its current value to the new gktarget, i.e., the old ramp is
>>> overridden by the new one and creates zigzags. It takes the fixed amount of
>>> time for each dynamic ramp to finish.
>>>
>>> It seems all ramping opcodes take only i-rate parameters, but here I seem
>>> to need k-rate changes.
>>> But if I used reinit for the ramps, there might be artifacts.
>>>
>>> In PD, it seems to be as simple as to hook up a slider to trigger
>>> (target-var,delay) message that is fed to the line object and the output
>>> will be like what I described above.
>>>
>>> I wonder what would be the standard way of doing this in Csound. If I can
>>> use a few opcodes instead of an explicit logic, that would be great.
>>>
>>>
>>> Thanks,
>>> Beinan
>>>
>>> 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

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

Date2016-02-11 02:08
FromBeinan Li
SubjectRe: Dynamic ramping parameters during a perf-pass.
Thank you for the UDO, Steven!
I think the reason why I missed lineto was when I checked the canonical manual,
I only looked at:

Linear and Exponential Generators
Envelope Generators

It's not in there and to be honest I haven't figured out which category it belongs to.
I wonder if it is that not all the opcodes in Section III. Reference on the same page are not 
all categorized in Section II. Opcodes Overview:
http://www.csounds.com/manual/html/

Cheers,
Beinan


Thanks,
Beinan


On Wed, Feb 10, 2016 at 8:04 PM, Steven Yi <stevenyi@gmail.com> wrote:
Interesting, I never knew about lineto. :)  I was just writing a UDO
to do pretty much the same thing and have attached it here.

On Wed, Feb 10, 2016 at 8:01 PM, thorin kerr <thorin.kerr@gmail.com> wrote:
> Or lineto / tlineto
>
> Thorin
>
> On 11 Feb 2016 10:43 am, "Hlöðver Sigurðsson" <hlolli@gmail.com> wrote:
>>
>> Have you tried putting the signal from gktarget trough portk opcode before
>> setting it to any parameter?
>>
>> 2016-02-11 1:34 GMT+01:00 Beinan Li <li.beinan@gmail.com>:
>>>
>>> Hi Csound,
>>>
>>> I have a slider that outputs to a global variable: gktarget.
>>> gktarget is meant to be the target value of a linear ramp.
>>> The ramp has to respond to the change in this variable so that it always
>>> ramps
>>> from its current value to the new gktarget, i.e., the old ramp is
>>> overridden by the new one and creates zigzags. It takes the fixed amount of
>>> time for each dynamic ramp to finish.
>>>
>>> It seems all ramping opcodes take only i-rate parameters, but here I seem
>>> to need k-rate changes.
>>> But if I used reinit for the ramps, there might be artifacts.
>>>
>>> In PD, it seems to be as simple as to hook up a slider to trigger
>>> (target-var,delay) message that is fed to the line object and the output
>>> will be like what I described above.
>>>
>>> I wonder what would be the standard way of doing this in Csound. If I can
>>> use a few opcodes instead of an explicit logic, that would be great.
>>>
>>>
>>> Thanks,
>>> Beinan
>>>
>>> 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

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

Date2016-02-11 08:28
FromRory Walsh
SubjectRe: Dynamic ramping parameters during a perf-pass.
I can't tell you how many times I've written custom code to do exactly what tlineto does. If no one is against the idea, I might add linto and tlineto to the list of 'Envelope Generators' in the user manual. That's the first place I would go to when looking for such an opcode?  

On 11 February 2016 at 02:08, Beinan Li <li.beinan@gmail.com> wrote:
Thank you for the UDO, Steven!
I think the reason why I missed lineto was when I checked the canonical manual,
I only looked at:

Linear and Exponential Generators
Envelope Generators

It's not in there and to be honest I haven't figured out which category it belongs to.
I wonder if it is that not all the opcodes in Section III. Reference on the same page are not 
all categorized in Section II. Opcodes Overview:
http://www.csounds.com/manual/html/

Cheers,
Beinan


Thanks,
Beinan


On Wed, Feb 10, 2016 at 8:04 PM, Steven Yi <stevenyi@gmail.com> wrote:
Interesting, I never knew about lineto. :)  I was just writing a UDO
to do pretty much the same thing and have attached it here.

On Wed, Feb 10, 2016 at 8:01 PM, thorin kerr <thorin.kerr@gmail.com> wrote:
> Or lineto / tlineto
>
> Thorin
>
> On 11 Feb 2016 10:43 am, "Hlöðver Sigurðsson" <hlolli@gmail.com> wrote:
>>
>> Have you tried putting the signal from gktarget trough portk opcode before
>> setting it to any parameter?
>>
>> 2016-02-11 1:34 GMT+01:00 Beinan Li <li.beinan@gmail.com>:
>>>
>>> Hi Csound,
>>>
>>> I have a slider that outputs to a global variable: gktarget.
>>> gktarget is meant to be the target value of a linear ramp.
>>> The ramp has to respond to the change in this variable so that it always
>>> ramps
>>> from its current value to the new gktarget, i.e., the old ramp is
>>> overridden by the new one and creates zigzags. It takes the fixed amount of
>>> time for each dynamic ramp to finish.
>>>
>>> It seems all ramping opcodes take only i-rate parameters, but here I seem
>>> to need k-rate changes.
>>> But if I used reinit for the ramps, there might be artifacts.
>>>
>>> In PD, it seems to be as simple as to hook up a slider to trigger
>>> (target-var,delay) message that is fed to the line object and the output
>>> will be like what I described above.
>>>
>>> I wonder what would be the standard way of doing this in Csound. If I can
>>> use a few opcodes instead of an explicit logic, that would be great.
>>>
>>>
>>> Thanks,
>>> Beinan
>>>
>>> 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

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

Date2016-02-11 09:23
FromOeyvind Brandtsegg
SubjectFwd: [Csnd] Dynamic ramping parameters during a perf-pass.
Yes, good call.
And perhaps they could also be listed in the "See also" section for
tonek and portk?


---------- Forwarded message ----------
From: Rory Walsh 
Date: 2016-02-11 9:28 GMT+01:00
Subject: Re: [Csnd] Dynamic ramping parameters during a perf-pass.
To: CSOUND@listserv.heanet.ie


I can't tell you how many times I've written custom code to do exactly
what tlineto does. If no one is against the idea, I might add linto
and tlineto to the list of 'Envelope Generators' in the user manual.
That's the first place I would go to when looking for such an opcode?

On 11 February 2016 at 02:08, Beinan Li  wrote:
>
> Thank you for the UDO, Steven!
> I think the reason why I missed lineto was when I checked the canonical manual,
> I only looked at:
>
> Linear and Exponential GeneratorsEnvelope Generators
> It's not in there and to be honest I haven't figured out which category it belongs to.I wonder if it is that not all the opcodes in Section III. Reference on the same page are not all categorized in Section II. Opcodes Overview:http://www.csounds.com/manual/html/
>
> Cheers,Beinan
>
> Thanks,
> Beinan
>
>
> On Wed, Feb 10, 2016 at 8:04 PM, Steven Yi  wrote:
>>
>> Interesting, I never knew about lineto. :)  I was just writing a UDO
>> to do pretty much the same thing and have attached it here.
>>
>> On Wed, Feb 10, 2016 at 8:01 PM, thorin kerr  wrote:
>> > Or lineto / tlineto
>> >
>> > Thorin
>> >
>> > On 11 Feb 2016 10:43 am, "Hlöðver Sigurðsson"  wrote:
>> >>
>> >> Have you tried putting the signal from gktarget trough portk opcode before
>> >> setting it to any parameter?
>> >>
>> >> 2016-02-11 1:34 GMT+01:00 Beinan Li :
>> >>>
>> >>> Hi Csound,
>> >>>
>> >>> I have a slider that outputs to a global variable: gktarget.
>> >>> gktarget is meant to be the target value of a linear ramp.
>> >>> The ramp has to respond to the change in this variable so that it always
>> >>> ramps
>> >>> from its current value to the new gktarget, i.e., the old ramp is
>> >>> overridden by the new one and creates zigzags. It takes the fixed amount of
>> >>> time for each dynamic ramp to finish.
>> >>>
>> >>> It seems all ramping opcodes take only i-rate parameters, but here I seem
>> >>> to need k-rate changes.
>> >>> But if I used reinit for the ramps, there might be artifacts.
>> >>>
>> >>> In PD, it seems to be as simple as to hook up a slider to trigger
>> >>> (target-var,delay) message that is fed to the line object and the output
>> >>> will be like what I described above.
>> >>>
>> >>> I wonder what would be the standard way of doing this in Csound. If I can
>> >>> use a few opcodes instead of an explicit logic, that would be great.
>> >>>
>> >>>
>> >>> Thanks,
>> >>> Beinan
>> >>>
>> >>> 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
>
>
> 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


-- 

Oeyvind Brandtsegg
Professor of Music Technology
NTNU
7491 Trondheim
Norway
Cell: +47 92 203 205

http://www.partikkelaudio.com/
http://soundcloud.com/brandtsegg
http://flyndresang.no/
http://soundcloud.com/t-emp

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

Date2016-02-11 09:58
FromRory Walsh
SubjectRe: Fwd: [Csnd] Dynamic ramping parameters during a perf-pass.
Turns out I don't have write access to the manual. Maybe someone else can add the change, or alternatively, give me write access to the manual.

On 11 February 2016 at 09:23, Oeyvind Brandtsegg <oyvind.brandtsegg@ntnu.no> wrote:
Yes, good call.
And perhaps they could also be listed in the "See also" section for
tonek and portk?


---------- Forwarded message ----------
From: Rory Walsh <rorywalsh@ear.ie>
Date: 2016-02-11 9:28 GMT+01:00
Subject: Re: [Csnd] Dynamic ramping parameters during a perf-pass.
To: CSOUND@listserv.heanet.ie


I can't tell you how many times I've written custom code to do exactly
what tlineto does. If no one is against the idea, I might add linto
and tlineto to the list of 'Envelope Generators' in the user manual.
That's the first place I would go to when looking for such an opcode?

On 11 February 2016 at 02:08, Beinan Li <li.beinan@gmail.com> wrote:
>
> Thank you for the UDO, Steven!
> I think the reason why I missed lineto was when I checked the canonical manual,
> I only looked at:
>
> Linear and Exponential GeneratorsEnvelope Generators
> It's not in there and to be honest I haven't figured out which category it belongs to.I wonder if it is that not all the opcodes in Section III. Reference on the same page are not all categorized in Section II. Opcodes Overview:http://www.csounds.com/manual/html/
>
> Cheers,Beinan
>
> Thanks,
> Beinan
>
>
> On Wed, Feb 10, 2016 at 8:04 PM, Steven Yi <stevenyi@gmail.com> wrote:
>>
>> Interesting, I never knew about lineto. :)  I was just writing a UDO
>> to do pretty much the same thing and have attached it here.
>>
>> On Wed, Feb 10, 2016 at 8:01 PM, thorin kerr <thorin.kerr@gmail.com> wrote:
>> > Or lineto / tlineto
>> >
>> > Thorin
>> >
>> > On 11 Feb 2016 10:43 am, "Hlöðver Sigurðsson" <hlolli@gmail.com> wrote:
>> >>
>> >> Have you tried putting the signal from gktarget trough portk opcode before
>> >> setting it to any parameter?
>> >>
>> >> 2016-02-11 1:34 GMT+01:00 Beinan Li <li.beinan@gmail.com>:
>> >>>
>> >>> Hi Csound,
>> >>>
>> >>> I have a slider that outputs to a global variable: gktarget.
>> >>> gktarget is meant to be the target value of a linear ramp.
>> >>> The ramp has to respond to the change in this variable so that it always
>> >>> ramps
>> >>> from its current value to the new gktarget, i.e., the old ramp is
>> >>> overridden by the new one and creates zigzags. It takes the fixed amount of
>> >>> time for each dynamic ramp to finish.
>> >>>
>> >>> It seems all ramping opcodes take only i-rate parameters, but here I seem
>> >>> to need k-rate changes.
>> >>> But if I used reinit for the ramps, there might be artifacts.
>> >>>
>> >>> In PD, it seems to be as simple as to hook up a slider to trigger
>> >>> (target-var,delay) message that is fed to the line object and the output
>> >>> will be like what I described above.
>> >>>
>> >>> I wonder what would be the standard way of doing this in Csound. If I can
>> >>> use a few opcodes instead of an explicit logic, that would be great.
>> >>>
>> >>>
>> >>> Thanks,
>> >>> Beinan
>> >>>
>> >>> 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
>
>
> 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


--

Oeyvind Brandtsegg
Professor of Music Technology
NTNU
7491 Trondheim
Norway
Cell: +47 92 203 205

http://www.partikkelaudio.com/
http://soundcloud.com/brandtsegg
http://flyndresang.no/
http://soundcloud.com/t-emp

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

Date2016-02-11 11:10
FromRichard Dobson
SubjectRe: Fwd: [Csnd] Dynamic ramping parameters during a perf-pass.
Maybe add a category for "automation"? I think that would fit such dynamic/interactive uses fairly well.

Richard Dobson


On 11 Feb 2016, at 09:23, Oeyvind Brandtsegg  wrote:

> Yes, good call.
> And perhaps they could also be listed in the "See also" section for
> tonek and portk?
> 
> 
> ---------- Forwarded message ----------
> From: Rory Walsh 
> Date: 2016-02-11 9:28 GMT+01:00
> Subject: Re: [Csnd] Dynamic ramping parameters during a perf-pass.
> To: CSOUND@listserv.heanet.ie
> 
> 
> I can't tell you how many times I've written custom code to do exactly
> what tlineto does. If no one is against the idea, I might add linto
> and tlineto to the list of 'Envelope Generators' in the user manual.
> That's the first place I would go to when looking for such an opcode?
> 
> On 11 February 2016 at 02:08, Beinan Li  wrote:
>> 
>> Thank you for the UDO, Steven!
>> I think the reason why I missed lineto was when I checked the canonical manual,
>> I only looked at:
>> 
>> Linear and Exponential GeneratorsEnvelope Generators
>> It's not in there and to be honest I haven't figured out which category it belongs to.I wonder if it is that not all the opcodes in Section III. Reference on the same page are not all categorized in Section II. Opcodes Overview:http://www.csounds.com/manual/html/
>> 
>> Cheers,Beinan
>> 
>> Thanks,
>> Beinan
>> 
>> 
>> On Wed, Feb 10, 2016 at 8:04 PM, Steven Yi  wrote:
>>> 
>>> Interesting, I never knew about lineto. :)  I was just writing a UDO
>>> to do pretty much the same thing and have attached it here.
>>> 
>>> On Wed, Feb 10, 2016 at 8:01 PM, thorin kerr  wrote:
>>>> Or lineto / tlineto
>>>> 
>>>> Thorin
>>>> 
>>>> On 11 Feb 2016 10:43 am, "Hlöðver Sigurðsson"  wrote:
>>>>> 
>>>>> Have you tried putting the signal from gktarget trough portk opcode before
>>>>> setting it to any parameter?
>>>>> 
>>>>> 2016-02-11 1:34 GMT+01:00 Beinan Li :
>>>>>> 
>>>>>> Hi Csound,
>>>>>> 
>>>>>> I have a slider that outputs to a global variable: gktarget.
>>>>>> gktarget is meant to be the target value of a linear ramp.
>>>>>> The ramp has to respond to the change in this variable so that it always
>>>>>> ramps
>>>>>> from its current value to the new gktarget, i.e., the old ramp is
>>>>>> overridden by the new one and creates zigzags. It takes the fixed amount of
>>>>>> time for each dynamic ramp to finish.
>>>>>> 
>>>>>> It seems all ramping opcodes take only i-rate parameters, but here I seem
>>>>>> to need k-rate changes.
>>>>>> But if I used reinit for the ramps, there might be artifacts.
>>>>>> 
>>>>>> In PD, it seems to be as simple as to hook up a slider to trigger
>>>>>> (target-var,delay) message that is fed to the line object and the output
>>>>>> will be like what I described above.
>>>>>> 
>>>>>> I wonder what would be the standard way of doing this in Csound. If I can
>>>>>> use a few opcodes instead of an explicit logic, that would be great.
>>>>>> 
>>>>>> 
>>>>>> Thanks,
>>>>>> Beinan
>>>>>> 
>>>>>> 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
>> 
>> 
>> 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
> 
> 
> -- 
> 
> Oeyvind Brandtsegg
> Professor of Music Technology
> NTNU
> 7491 Trondheim
> Norway
> Cell: +47 92 203 205
> 
> http://www.partikkelaudio.com/
> http://soundcloud.com/brandtsegg
> http://flyndresang.no/
> http://soundcloud.com/t-emp
> 
> 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

Date2016-02-11 11:17
FromOeyvind Brandtsegg
SubjectRe: Fwd: [Csnd] Dynamic ramping parameters during a perf-pass.
Yes, that might make sense. Many users might not think "envelope
generators" when they need automation.
Then again, the envelope generators could be included in the
automation category, along with line, linseg, transeg, expseg, cosseg,
jitter...

2016-02-11 12:10 GMT+01:00 Richard Dobson :
> Maybe add a category for "automation"? I think that would fit such dynamic/interactive uses fairly well.
>
> Richard Dobson
>
>
> On 11 Feb 2016, at 09:23, Oeyvind Brandtsegg  wrote:
>
>> Yes, good call.
>> And perhaps they could also be listed in the "See also" section for
>> tonek and portk?
>>
>>
>> ---------- Forwarded message ----------
>> From: Rory Walsh 
>> Date: 2016-02-11 9:28 GMT+01:00
>> Subject: Re: [Csnd] Dynamic ramping parameters during a perf-pass.
>> To: CSOUND@listserv.heanet.ie
>>
>>
>> I can't tell you how many times I've written custom code to do exactly
>> what tlineto does. If no one is against the idea, I might add linto
>> and tlineto to the list of 'Envelope Generators' in the user manual.
>> That's the first place I would go to when looking for such an opcode?
>>
>> On 11 February 2016 at 02:08, Beinan Li  wrote:
>>>
>>> Thank you for the UDO, Steven!
>>> I think the reason why I missed lineto was when I checked the canonical manual,
>>> I only looked at:
>>>
>>> Linear and Exponential GeneratorsEnvelope Generators
>>> It's not in there and to be honest I haven't figured out which category it belongs to.I wonder if it is that not all the opcodes in Section III. Reference on the same page are not all categorized in Section II. Opcodes Overview:http://www.csounds.com/manual/html/
>>>
>>> Cheers,Beinan
>>>
>>> Thanks,
>>> Beinan
>>>
>>>
>>> On Wed, Feb 10, 2016 at 8:04 PM, Steven Yi  wrote:
>>>>
>>>> Interesting, I never knew about lineto. :)  I was just writing a UDO
>>>> to do pretty much the same thing and have attached it here.
>>>>
>>>> On Wed, Feb 10, 2016 at 8:01 PM, thorin kerr  wrote:
>>>>> Or lineto / tlineto
>>>>>
>>>>> Thorin
>>>>>
>>>>> On 11 Feb 2016 10:43 am, "Hlöðver Sigurðsson"  wrote:
>>>>>>
>>>>>> Have you tried putting the signal from gktarget trough portk opcode before
>>>>>> setting it to any parameter?
>>>>>>
>>>>>> 2016-02-11 1:34 GMT+01:00 Beinan Li :
>>>>>>>
>>>>>>> Hi Csound,
>>>>>>>
>>>>>>> I have a slider that outputs to a global variable: gktarget.
>>>>>>> gktarget is meant to be the target value of a linear ramp.
>>>>>>> The ramp has to respond to the change in this variable so that it always
>>>>>>> ramps
>>>>>>> from its current value to the new gktarget, i.e., the old ramp is
>>>>>>> overridden by the new one and creates zigzags. It takes the fixed amount of
>>>>>>> time for each dynamic ramp to finish.
>>>>>>>
>>>>>>> It seems all ramping opcodes take only i-rate parameters, but here I seem
>>>>>>> to need k-rate changes.
>>>>>>> But if I used reinit for the ramps, there might be artifacts.
>>>>>>>
>>>>>>> In PD, it seems to be as simple as to hook up a slider to trigger
>>>>>>> (target-var,delay) message that is fed to the line object and the output
>>>>>>> will be like what I described above.
>>>>>>>
>>>>>>> I wonder what would be the standard way of doing this in Csound. If I can
>>>>>>> use a few opcodes instead of an explicit logic, that would be great.
>>>>>>>
>>>>>>>
>>>>>>> Thanks,
>>>>>>> Beinan
>>>>>>>
>>>>>>> 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
>>>
>>>
>>> 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
>>
>>
>> --
>>
>> Oeyvind Brandtsegg
>> Professor of Music Technology
>> NTNU
>> 7491 Trondheim
>> Norway
>> Cell: +47 92 203 205
>>
>> http://www.partikkelaudio.com/
>> http://soundcloud.com/brandtsegg
>> http://flyndresang.no/
>> http://soundcloud.com/t-emp
>>
>> 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



-- 

Oeyvind Brandtsegg
Professor of Music Technology
NTNU
7491 Trondheim
Norway
Cell: +47 92 203 205

http://www.partikkelaudio.com/
http://soundcloud.com/brandtsegg
http://flyndresang.no/
http://soundcloud.com/t-emp

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

Date2016-02-11 20:00
FromBeinan Li
SubjectRe: Dynamic ramping parameters during a perf-pass.
That would be great! I went there first and didn't see them.

Thanks,
Beinan


On Thu, Feb 11, 2016 at 3:28 AM, Rory Walsh <rorywalsh@ear.ie> wrote:
I can't tell you how many times I've written custom code to do exactly what tlineto does. If no one is against the idea, I might add linto and tlineto to the list of 'Envelope Generators' in the user manual. That's the first place I would go to when looking for such an opcode?  

On 11 February 2016 at 02:08, Beinan Li <li.beinan@gmail.com> wrote:
Thank you for the UDO, Steven!
I think the reason why I missed lineto was when I checked the canonical manual,
I only looked at:

Linear and Exponential Generators
Envelope Generators

It's not in there and to be honest I haven't figured out which category it belongs to.
I wonder if it is that not all the opcodes in Section III. Reference on the same page are not 
all categorized in Section II. Opcodes Overview:
http://www.csounds.com/manual/html/

Cheers,
Beinan


Thanks,
Beinan


On Wed, Feb 10, 2016 at 8:04 PM, Steven Yi <stevenyi@gmail.com> wrote:
Interesting, I never knew about lineto. :)  I was just writing a UDO
to do pretty much the same thing and have attached it here.

On Wed, Feb 10, 2016 at 8:01 PM, thorin kerr <thorin.kerr@gmail.com> wrote:
> Or lineto / tlineto
>
> Thorin
>
> On 11 Feb 2016 10:43 am, "Hlöðver Sigurðsson" <hlolli@gmail.com> wrote:
>>
>> Have you tried putting the signal from gktarget trough portk opcode before
>> setting it to any parameter?
>>
>> 2016-02-11 1:34 GMT+01:00 Beinan Li <li.beinan@gmail.com>:
>>>
>>> Hi Csound,
>>>
>>> I have a slider that outputs to a global variable: gktarget.
>>> gktarget is meant to be the target value of a linear ramp.
>>> The ramp has to respond to the change in this variable so that it always
>>> ramps
>>> from its current value to the new gktarget, i.e., the old ramp is
>>> overridden by the new one and creates zigzags. It takes the fixed amount of
>>> time for each dynamic ramp to finish.
>>>
>>> It seems all ramping opcodes take only i-rate parameters, but here I seem
>>> to need k-rate changes.
>>> But if I used reinit for the ramps, there might be artifacts.
>>>
>>> In PD, it seems to be as simple as to hook up a slider to trigger
>>> (target-var,delay) message that is fed to the line object and the output
>>> will be like what I described above.
>>>
>>> I wonder what would be the standard way of doing this in Csound. If I can
>>> use a few opcodes instead of an explicit logic, that would be great.
>>>
>>>
>>> Thanks,
>>> Beinan
>>>
>>> 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

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