while loop and filter
Date | 2016-02-29 00:39 |
From | Beinan Li |
Subject | while loop and filter |
A potential newbie question. My environment: Csound 6.05 May 13 2015, Mac OS X El Capitan I use the code at the bottom to let a noise pass a filter bank. The while loop (METHOD 1) seemed to have blown, while the brute-force way (METHOD 2, commented out) works fine. Unless there is something I don't know about filter inside a while loop, I can't seem to find the semantic difference between the two approaches. The runtime error I saw:
What's funnier is that the while loop works if I change the last two elements of ifcs[], so that the array looks like:
This tells me that something is wrong with the filter calls. I'd appreciate it if someone can share some tips. The code:
|
Date | 2016-02-29 09:37 |
From | John ff |
Subject | Re: while loop and filter |
A loop uses the same filter not like inline where every one has its own state ==John Sent from TypeApp On 29 Feb 2016, at 00:40, Beinan Li <li.beinan@GMAIL.COM> wrote:
i1 0 z 440
0.5 </CsScore> </CsoundSynthesizer> 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-29 15:01 |
From | Beinan Li |
Subject | Re: while loop and filter |
Thanks a lot, John! Other than the source code, where can I find info like this? I checked the "loop" and "filters" sections in the FLOSS manual and also the canonical reference, to no avail. If possible, I'd like to know more about special opcode behaviours in a loop. Thanks, Beinan On Mon, Feb 29, 2016 at 4:37 AM, John ff <jpff@codemist.co.uk> wrote:
|