Csound Csound-dev Csound-tekno Search About

How To Automate Both filter Cutoff and Filter Envelope

Date2015-12-01 18:35
FromNitram
SubjectHow To Automate Both filter Cutoff and Filter Envelope
Hi there.


I basically want to automate the filter cutoff, (which I have successfully
done) and I'd also like to automate some parameters within the filter
envelope also.

It seems that I cannot automate both the filter cutoff and the filter level
parameters within the filter envelope at the same time.

If anyone has any tips on how I can automate both I'd be much obliged.

P7 in instrument "DoubleOsc" seems to override any cutoff automation done by
the "Automate" instrument.

I was under the impression that the filter parameters within the envelope
would still be reached even if the cutoff was automated. Like if the cutoff
autmation is around 4000 and a note triggers the filter envelope with a max
setting of 8000, that the filter will stray from the automation and open up
to 8000 for the duration of the envelope, and return back to the automated
level once the envelope has closed once more?

I hope this makes sense.

Please find attached my project file.

Many thanks!
Demonstration_Filter_Env_Not_Working_When_Filter_Already_Automated.csd
  



--
View this message in context: http://csound.1045644.n5.nabble.com/How-To-Automate-Both-filter-Cutoff-and-Filter-Envelope-tp5745231.html
Sent from the Csound - General mailing list archive at Nabble.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

Date2015-12-02 14:57
FromIain McCurdy
SubjectRe: How To Automate Both filter Cutoff and Filter Envelope
I think the main problem is that you first read the channel "Cutoff" with a chnget and create a variable kFiltEnv from its output.

kFiltEnv chnget "Cutoff"   

But a few lines later you create an envelope with an output with the same name. This will simply overwrite the first kFiltEnv.

kFiltEnv   expsegr      0.0001, .5,     iEnvMaxFrq,   .25,   iEnvMaxFrq,     1.5,      0.0001

Maybe you want to create two different variable and sum them?
---
kFiltManual chnget "Cutoff"   
kFiltEnv    expsegr      0.0001, .5,     iEnvMaxFrq,   .25,   iEnvMaxFrq,     1.5,      0.0001
kFiltEnv   limit   kFiltManual+kFiltEnv, 20, sr/2
---
limit is used to prevent the filter from blowing up.

Iain

> Date: Tue, 1 Dec 2015 11:35:44 -0700
> From: martcrowl@GMAIL.COM
> Subject: [Csnd] How To Automate Both filter Cutoff and Filter Envelope
> To: CSOUND@LISTSERV.HEANET.IE
>
> Hi there.
>
>
> I basically want to automate the filter cutoff, (which I have successfully
> done) and I'd also like to automate some parameters within the filter
> envelope also.
>
> It seems that I cannot automate both the filter cutoff and the filter level
> parameters within the filter envelope at the same time.
>
> If anyone has any tips on how I can automate both I'd be much obliged.
>
> P7 in instrument "DoubleOsc" seems to override any cutoff automation done by
> the "Automate" instrument.
>
> I was under the impression that the filter parameters within the envelope
> would still be reached even if the cutoff was automated. Like if the cutoff
> autmation is around 4000 and a note triggers the filter envelope with a max
> setting of 8000, that the filter will stray from the automation and open up
> to 8000 for the duration of the envelope, and return back to the automated
> level once the envelope has closed once more?
>
> I hope this makes sense.
>
> Please find attached my project file.
>
> Many thanks!
> Demonstration_Filter_Env_Not_Working_When_Filter_Already_Automated.csd
> <http://csound.1045644.n5.nabble.com/file/n5745231/Demonstration_Filter_Env_Not_Working_When_Filter_Already_Automated.csd>
>
>
>
> --
> View this message in context: http://csound.1045644.n5.nabble.com/How-To-Automate-Both-filter-Cutoff-and-Filter-Envelope-tp5745231.html
> Sent from the Csound - General mailing list archive at Nabble.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

Date2015-12-03 18:59
FromNitram
SubjectRe: How To Automate Both filter Cutoff and Filter Envelope
Thanks so much for taking the time to explain that, Iain.

... that's cleared a lot up. I'm pretty new so this really helps me going forward.

All the best.

Martin

On Wed, Dec 2, 2015 at 2:58 PM, Iain McCurdy [via Csound] <[hidden email]> wrote:
I think the main problem is that you first read the channel "Cutoff" with a chnget and create a variable kFiltEnv from its output.

kFiltEnv chnget "Cutoff"   

But a few lines later you create an envelope with an output with the same name. This will simply overwrite the first kFiltEnv.

kFiltEnv   expsegr      0.0001, .5,     iEnvMaxFrq,   .25,   iEnvMaxFrq,     1.5,      0.0001

Maybe you want to create two different variable and sum them?
---
kFiltManual chnget "Cutoff"   
kFiltEnv    expsegr      0.0001, .5,     iEnvMaxFrq,   .25,   iEnvMaxFrq,     1.5,      0.0001
kFiltEnv   limit   kFiltManual+kFiltEnv, 20, sr/2
---
limit is used to prevent the filter from blowing up.

Iain

> Date: Tue, 1 Dec 2015 11:35:44 -0700

> From: [hidden email]
> Subject: [Csnd] How To Automate Both filter Cutoff and Filter Envelope
> To: [hidden email]

>
> Hi there.
>
>
> I basically want to automate the filter cutoff, (which I have successfully
> done) and I'd also like to automate some parameters within the filter
> envelope also.
>
> It seems that I cannot automate both the filter cutoff and the filter level
> parameters within the filter envelope at the same time.
>
> If anyone has any tips on how I can automate both I'd be much obliged.
>
> P7 in instrument "DoubleOsc" seems to override any cutoff automation done by
> the "Automate" instrument.
>
> I was under the impression that the filter parameters within the envelope
> would still be reached even if the cutoff was automated. Like if the cutoff
> autmation is around 4000 and a note triggers the filter envelope with a max
> setting of 8000, that the filter will stray from the automation and open up
> to 8000 for the duration of the envelope, and return back to the automated
> level once the envelope has closed once more?
>
> I hope this makes sense.
>
> Please find attached my project file.
>
> Many thanks!
> Demonstration_Filter_Env_Not_Working_When_Filter_Already_Automated.csd
> <http://csound.1045644.n5.nabble.com/file/n5745231/Demonstration_Filter_Env_Not_Working_When_Filter_Already_Automated.csd>
>
>
>
> --
> View this message in context: http://csound.1045644.n5.nabble.com/How-To-Automate-Both-filter-Cutoff-and-Filter-Envelope-tp5745231.html
> Sent from the Csound - General mailing list archive at Nabble.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


If you reply to this email, your message will be added to the discussion below:
http://csound.1045644.n5.nabble.com/How-To-Automate-Both-filter-Cutoff-and-Filter-Envelope-tp5745231p5745237.html
To unsubscribe from How To Automate Both filter Cutoff and Filter Envelope, click here.
NAML



View this message in context: Re: [Csnd] How To Automate Both filter Cutoff and Filter Envelope
Sent from the Csound - General mailing list archive at Nabble.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