[Csnd] nan
Date | 2011-01-28 15:58 |
From | kelly hirai |
Subject | [Csnd] nan |
how do you test for nan? kelly 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" |
Date | 2011-01-29 13:19 |
From | kelly hirai |
Subject | Re: [Csnd] nan |
i was able to put the math.h function isnan() in my source by modeling off the sqrt() function. seems like a useful thing. any way to get it in the tree? isinf() and the rest of the fpclassify() family are also probably useful too. isinf() is C99, the rest seem to be part of glibc 2.01 acording the the 2004.10.31 man page. its been a while since i've made any commits in cvs, but i willing to help out. kelly On Fri, 28 Jan 2011, kelly hirai wrote: > how do you test for nan? > > kelly > > > 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" > 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" |
Date | 2011-02-01 21:20 |
From | Iain McCurdy |
Subject | [Csnd] GEN16 |
I just realised that GEN 16 can create multiple segment functions (in a manner similar to transeg). The manual entry implies that only one segment is possible. I suspect it was changed at some point but the manual entry was not updated. Perhaps the manual entry could be changed to reflect this; something like this? Iain. GEN16GEN16 — Creates functions made up of an arbitrary number of segments, each of user definable curvature.DescriptionCreates functions made up of an arbitrary number of segments, each of user definable curvature.Syntaxf # time size 16 val1 dur1 type1 val2 dur2 type2 val3 ... Initializationsize -- number of points in the table. Must be a power of 2 or a power-of-2 plus 1 (see f statement). The normal value is power-of-2 plus 1.val1, val2, val3 etc. -- ordinate values (table definition must always end with a value) dur1, dur2 etc. -- length of segment (no. of storage locations) type1, type2 etc -- if 0, a straight line is produced. If non-zero, then GEN16 creates the following curve for that segment: beg + (end - beg) * (1 - exp( i*type/(dur-1) )) / (1 - exp(type)) |
Date | 2011-02-01 22:34 |
From | Oeyvind Brandtsegg |
Subject | Re: [Csnd] GEN16 |
Wow. nice. Thanks for bringing it to attention, I had actually been wondering about this too (but never tried it as the manual implied that it was not possible). Oeyvind 2011/2/1 Iain McCurdy |
Date | 2011-02-02 09:53 |
From | joachim heintz |
Subject | Re: [Csnd] GEN16 |
Attachments | GEN16.csd |
and i think we can add that gen16 also works for non-powof2 tables. a simple example with 7 for table length: |