[Csnd] Question on filter sweep
Date | 2013-07-12 09:17 |
From | lppier |
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. |
Date | 2013-07-12 10:08 |
From | Victor Lazzarini |
Subject | Re: [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 |
Date | 2013-07-12 11:27 |
From | Adam Puckett |
Subject | Re: [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 |
Date | 2013-07-12 16:10 |
From | lppier |
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 View this message in context: Re: Question on filter sweep Sent from the Csound - General mailing list archive at Nabble.com. |