[Csnd] unwanted triggering with metro and table of times
Date | 2013-01-02 14:53 |
From | "vallste@libero.it" |
Subject | [Csnd] unwanted triggering with metro and table of times |
Attachments | loopNOT.csd |
Hello, I'm working on an event recorder/player using metro and tab, find attached the csd containing only the player section that is giving me unwanted triggering problems. Basically I have a table with stored time events (gitimetab) that is read using "kindexPL" to generate "metro" frequencies to increase "kindexPL" (next event) and "schedkwhen" another instrument (50). The problem is that after 3-4 correct events a series of "i 50 ..." with the same start time are generated. Does anyone have an idea of what i'm doing wrong? I'd like to keep this code in an always on instrument (1) and controlling it only by means of k variables (gkPER_POnOff), if possible. Thank you in advance Ciao Stefano |
Date | 2013-01-02 16:55 |
From | Iain McCurdy |
Subject | RE: [Csnd] unwanted triggering with metro and table of times |
Hi Stefano, I think there is a problem in the division you use to determine metro frequency as this will result in a divide by zero when your index reads undefined values from gitimetab. You can use divz to protect against this, e.g. krate divz 1, ktimePerc - ktimePercPrev, 1 ktrigPL metro krate Hope this helps, Iain > Date: Wed, 2 Jan 2013 15:53:48 +0100 > From: vallste@libero.it > To: csound@lists.bath.ac.uk > Subject: [Csnd] unwanted triggering with metro and table of times > > Hello, > I'm working on an event recorder/player using metro and tab, find attached the > csd containing only the player section that is giving me unwanted triggering > problems. > Basically I have a table with stored time events (gitimetab) that is read > using "kindexPL" to generate "metro" frequencies to increase "kindexPL" (next > event) and "schedkwhen" another instrument (50). > > The problem is that after 3-4 correct events a series of "i 50 ..." with the > same start time are generated. > Does anyone have an idea of what i'm doing wrong? > I'd like to keep this code in an always on instrument (1) and controlling it > only by means of k variables (gkPER_POnOff), if possible. > > Thank you in advance > Ciao > > Stefano > 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" > |