Csound Csound-dev Csound-tekno Search About

[Csnd] Question on filter sweep

Date2013-07-12 09:17
Fromlppier
Subject[Csnd] Question on filter sweep
Hi, 

I doing the following to do a simple filter sweep, every midi note triggers
an instance of the instrument

kfreq linseg 1,1, 4000, 1, 1 
alow, ahigh, aband svfilter asine,kfreq, 5	
asine = ahigh+alow+aband ;+ahigh+aband

This works , and I would like the filter sweep to loop. 
So I reckoned that I would use an lfo

replacing kfreq linseg 1,1, 4000, 1, 1 
with
kfreq lfo 4000, 0.5

Whenever I press the midi note now, I hear a bit of sound and it then cuts
out. Why is this so? 
Isn't the lfo supposed to repeat itself as long as my instrument is playing? 

Thanks. 



--
View this message in context: http://csound.1045644.n5.nabble.com/Question-on-filter-sweep-tp5725446.html
Sent from the Csound - General mailing list archive at Nabble.com.

Date2013-07-12 10:08
FromVictor Lazzarini
SubjectRe: [Csnd] Question on filter sweep
Because lfo is probably producing a bipolar signal (ie. it goes negative). Try using
poscil with a positive-only table:

kfreq  poscil  4000, 0.5,100

...

f100 0 16384 7  0 8192 1 8192 0



On 12 Jul 2013, at 09:17, lppier wrote:

> Hi, 
> 
> I doing the following to do a simple filter sweep, every midi note triggers
> an instance of the instrument
> 
> kfreq linseg 1,1, 4000, 1, 1 
> alow, ahigh, aband svfilter asine,kfreq, 5	
> asine = ahigh+alow+aband ;+ahigh+aband
> 
> This works , and I would like the filter sweep to loop. 
> So I reckoned that I would use an lfo
> 
> replacing kfreq linseg 1,1, 4000, 1, 1 
> with
> kfreq lfo 4000, 0.5
> 
> Whenever I press the midi note now, I hear a bit of sound and it then cuts
> out. Why is this so? 
> Isn't the lfo supposed to repeat itself as long as my instrument is playing? 
> 
> Thanks. 
> 
> 
> 
> --
> View this message in context: http://csound.1045644.n5.nabble.com/Question-on-filter-sweep-tp5725446.html
> Sent from the Csound - General mailing list archive at Nabble.com.
> 
> 
> Send bugs reports to the Sourceforge bug tracker
>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
> 

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie





Date2013-07-12 11:27
FromAdam Puckett
SubjectRe: [Csnd] Question on filter sweep
Or loopseg, thereby avoiding table access altogether. That way you can
kind of keep your linseg code intact.

On 7/12/13, Victor Lazzarini  wrote:
> Because lfo is probably producing a bipolar signal (ie. it goes negative).
> Try using
> poscil with a positive-only table:
>
> kfreq  poscil  4000, 0.5,100
>
> ...
>
> f100 0 16384 7  0 8192 1 8192 0
>
>
>
> On 12 Jul 2013, at 09:17, lppier wrote:
>
>> Hi,
>>
>> I doing the following to do a simple filter sweep, every midi note
>> triggers
>> an instance of the instrument
>>
>> kfreq linseg 1,1, 4000, 1, 1
>> alow, ahigh, aband svfilter asine,kfreq, 5	
>> asine = ahigh+alow+aband ;+ahigh+aband
>>
>> This works , and I would like the filter sweep to loop.
>> So I reckoned that I would use an lfo
>>
>> replacing kfreq linseg 1,1, 4000, 1, 1
>> with
>> kfreq lfo 4000, 0.5
>>
>> Whenever I press the midi note now, I hear a bit of sound and it then cuts
>> out. Why is this so?
>> Isn't the lfo supposed to repeat itself as long as my instrument is
>> playing?
>>
>> Thanks.
>>
>>
>>
>> --
>> View this message in context:
>> http://csound.1045644.n5.nabble.com/Question-on-filter-sweep-tp5725446.html
>> Sent from the Csound - General mailing list archive at Nabble.com.
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>>
>
> Dr Victor Lazzarini
> Senior Lecturer
> Dept. of Music
> NUI Maynooth Ireland
> tel.: +353 1 708 3545
> Victor dot Lazzarini AT nuim dot ie
>
>
>
>
>
> Send bugs reports to the Sourceforge bug tracker
>             https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
>
>

Date2013-07-12 16:10
Fromlppier
Subject[Csnd] Re: Question on filter sweep
Ah I see… thanks! I'll check out loopseg as well.


On 12 Jul, 2013, at 6:28 PM, Adam Puckett-2 [via Csound] <[hidden email]> wrote:

Or loopseg, thereby avoiding table access altogether. That way you can
kind of keep your linseg code intact.

On 7/12/13, Victor Lazzarini <<a href="x-msg://33/user/SendEmail.jtp?type=node&amp;node=5725449&amp;i=0" target="_top" rel="nofollow" link="external">[hidden email]> wrote:

> Because lfo is probably producing a bipolar signal (ie. it goes negative).
> Try using
> poscil with a positive-only table:
>
> kfreq  poscil  4000, 0.5,100
>
> ...
>
> f100 0 16384 7  0 8192 1 8192 0
>
>
>
> On 12 Jul 2013, at 09:17, lppier wrote:
>
>> Hi,
>>
>> I doing the following to do a simple filter sweep, every midi note
>> triggers
>> an instance of the instrument
>>
>> kfreq linseg 1,1, 4000, 1, 1
>> alow, ahigh, aband svfilter asine,kfreq, 5
>> asine = ahigh+alow+aband ;+ahigh+aband
>>
>> This works , and I would like the filter sweep to loop.
>> So I reckoned that I would use an lfo
>>
>> replacing kfreq linseg 1,1, 4000, 1, 1
>> with
>> kfreq lfo 4000, 0.5
>>
>> Whenever I press the midi note now, I hear a bit of sound and it then cuts
>> out. Why is this so?
>> Isn't the lfo supposed to repeat itself as long as my instrument is
>> playing?
>>
>> Thanks.
>>
>>
>>
>> --
>> View this message in context:
>> http://csound.1045644.n5.nabble.com/Question-on-filter-sweep-tp5725446.html
>> Sent from the Csound - General mailing list archive at Nabble.com.
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email <a href="x-msg://33/user/SendEmail.jtp?type=node&amp;node=5725449&amp;i=1" target="_top" rel="nofollow" link="external">[hidden email] with body "unsubscribe
>> csound"
>>
>
> Dr Victor Lazzarini
> Senior Lecturer
> Dept. of Music
> NUI Maynooth Ireland
> tel.: +353 1 708 3545
> Victor dot Lazzarini AT nuim dot ie
>
>
>
>
>
> Send bugs reports to the Sourceforge bug tracker
>             https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email <a href="x-msg://33/user/SendEmail.jtp?type=node&amp;node=5725449&amp;i=2" target="_top" rel="nofollow" link="external">[hidden email] with body "unsubscribe
> csound"
>
>

Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email <a href="x-msg://33/user/SendEmail.jtp?type=node&amp;node=5725449&amp;i=3" target="_top" rel="nofollow" link="external">[hidden email] with body "unsubscribe csound"




If you reply to this email, your message will be added to the discussion below:
http://csound.1045644.n5.nabble.com/Question-on-filter-sweep-tp5725446p5725449.html
To unsubscribe from Question on filter sweep, click here.
NAML



View this message in context: Re: Question on filter sweep
Sent from the Csound - General mailing list archive at Nabble.com.