Dynamic ramping parameters during a perf-pass.
Date | 2016-02-11 00:34 |
From | Beinan Li |
Subject | Dynamic 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 |
Date | 2016-02-11 00:43 |
From | Hlöðver Sigurðsson |
Subject | Re: 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>:
|
Date | 2016-02-11 01:01 |
From | thorin kerr |
Subject | Re: 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:
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
|
Date | 2016-02-11 01:04 |
From | Steven Yi |
Subject | Re: Dynamic ramping parameters during a perf-pass. |
Attachments | Line_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 |
Date | 2016-02-11 01:57 |
From | Beinan Li |
Subject | Re: Dynamic ramping parameters during a perf-pass. |
Thanks a lot, guys!
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
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 |
Date | 2016-02-11 02:08 |
From | Beinan Li |
Subject | Re: 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: 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 |
Date | 2016-02-11 08:28 |
From | Rory Walsh |
Subject | Re: 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:
|
Date | 2016-02-11 09:23 |
From | Oeyvind Brandtsegg |
Subject | Fwd: [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 09:58 |
From | Rory Walsh |
Subject | Re: 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. |
Date | 2016-02-11 11:10 |
From | Richard Dobson |
Subject | Re: 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 |
Date | 2016-02-11 11:17 |
From | Oeyvind Brandtsegg |
Subject | Re: 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 |
Date | 2016-02-11 20:00 |
From | Beinan Li |
Subject | Re: 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:
|