[Cs-dev] sine table as default for standard oscillators?
Date | 2013-03-11 07:47 |
From | joachim heintz |
Subject | [Cs-dev] sine table as default for standard oscillators? |
i am wondering if it is possible to assign a sine table (say of size 1024) to the standards oscillators like (p)oscil(i/3). so in ares poscil aamp, acps, ifn [, iphs] ifn would be optional, with -1 as default, which would refer to the internal sine table. the reason for this request: in many cases (not to say: in most) such a standard sine table is needed. it would simplify many instruments if an internal table could be used. and for teaching it would allow to explain the relative complicated gen routine syntax later, not when working with the first sine wave. as far as i see, this is also like super collider or max handles it. best - joachim ------------------------------------------------------------------------------ Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the endpoint security space. For insight on selecting the right partner to tackle endpoint security challenges, access the full report. http://p.sf.net/sfu/symantec-dev2dev _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2013-03-12 07:40 |
From | peiman khosravi |
Subject | Re: [Cs-dev] sine table as default for standard oscillators? |
Attachments | None None |
I second this. However, I'd say higher than 1024. Maybe 8192?
P On 11 March 2013 07:47, joachim heintz <jh@joachimheintz.de> wrote: i am wondering if it is possible to assign a sine table (say of size |
Date | 2013-03-12 14:38 |
From | "Dr. Richard Boulanger" |
Subject | Re: [Cs-dev] sine table as default for standard oscillators? |
Attachments | None None |
Peiman, I have always "dreamed" that there would be "default" arguments for many of the opcodes - such as this.
Great idea. Could it (and others) be part of Csound6. Hope so.
-dB Dr. Richard Boulanger, Ph.D. Professor of Electronic Production and Design Professional Writing and Music Technology Division Office @ 161 Mass Ave - 4th Floor 617-747-2485 (office) 774-488-9166 (cell) http://csounds.com/boulanger http://csounds.com/mathews http://boulangerlabs.com http://csoundforlive.com http://csounds.com On Mon, Mar 11, 2013 at 3:47 AM, joachim heintz <jh@joachimheintz.de> wrote: i am wondering if it is possible to assign a sine table (say of size |
Date | 2013-03-12 15:12 |
From | jpff@cs.bath.ac.uk |
Subject | Re: [Cs-dev] sine table as default for standard oscillators? |
Does not sound hard; assume you want a sine (and not a cosine) and you are happy with some default size, but what? Or controllable via environment or command line? Making it numbered 0 would be nice for optional args, but would that break anything else? Rick, you shoukd share your dreams more often ==John ff > Peiman, > > I have always "dreamed" that there would be "default" arguments for many > of > the opcodes - such as this. > Great idea. Could it (and others) be part of Csound6. Hope so. > > -dB > > *Dr. Richard Boulanger, Ph.D. * > > Professor of Electronic Production and Design > > Professional Writing and Music Technology Division > > Office @ 161 Mass Ave - 4th Floor > > 617-747-2485 (office) 774-488-9166 (cell) > > http://csounds.com/boulanger http://csounds.com/mathews > > http://boulangerlabs.com http://csoundforlive.com http://csounds.com > > > > On Mon, Mar 11, 2013 at 3:47 AM, joachim heintz |
Date | 2013-03-12 15:40 |
From | Oeyvind Brandtsegg |
Subject | Re: [Cs-dev] sine table as default for standard oscillators? |
Attachments | None None |
+1 for this. In partikkel, default tables can be used by setting the table number to -1. Perhaps it would be good to follow the same practice?
2013/3/12 <jpff@cs.bath.ac.uk> Does not sound hard; assume you want a sine (and not a cosine) and you are -- Oeyvind Brandtsegg Professor of Music Technology NTNU 7491 Trondheim Norway Cell: +47 92 203 205 http://flyndresang.no/ http://www.partikkelaudio.com/ http://soundcloud.com/brandtsegg http://soundcloud.com/t-emp |
Date | 2013-03-12 18:58 |
From | jpff@cs.bath.ac.uk |
Subject | Re: [Cs-dev] sine table as default for standard oscillators? |
Code written (cd cs6 only); not completely tested yet Current default size is 8192 but selectable. ==John ff > +1 for this. > > In partikkel, default tables can be used by setting the table number to > -1. > Perhaps it would be good to follow the same practice? > > I'd vote for something halfway biggish if we go for a single size default > table, like 32768 or 65536. > Assuming that no memory would be allocated unless the default table is > explicityl set with -1, so devices with limited memory are not impeded. > > Oeyvind > > > 2013/3/12 |
Date | 2013-03-13 13:24 |
From | jpff@cs.bath.ac.uk |
Subject | Re: [Cs-dev] sine table as default for standard oscillators? |
> > Code written (cd cs6 only); not completely tested yet > Current default size is 8192 but selectable. > > ==John ff >From What_is_New.txt in cs6: If a table number is given as -1 then an internal sine wav equivalent to "f. 0 8192 10 1" is used. Attempts to write to this table will give unpredictable results, but is not policed. The 8192 can be change by command line option --sine-size=# where the # is rounded up to a power of two. I have done elementary tests and it seems to work; now to try to add this to the manual! ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2013-03-13 14:54 |
From | Andres Cabrera |
Subject | Re: [Cs-dev] sine table as default for standard oscillators? |
Hi John, I think this is a great solution as it avoids allocation within the opcodes and redundancy, plus it supports all future opcodes without any additional work. Would this interfere with using: f 0 3600 in the score? Cheers, Andrés On Wed, Mar 13, 2013 at 6:24 AM, |
Date | 2013-03-13 17:00 |
From | jpff@cs.bath.ac.uk |
Subject | Re: [Cs-dev] sine table as default for standard oscillators? |
I cannot think of any reason for an interference. Implementation is in the table look up, where it is created if it is used. Does not use the f score opcode at all. I am thinking of making some table-number arguments optional, especially in the Perry Cook derived code (fmb3 normally takes 5 sine waves) > Hi John, > > I think this is a great solution as it avoids allocation within the > opcodes and redundancy, plus it supports all future opcodes without > any additional work. Would this interfere with using: > f 0 3600 > > in the score? > > Cheers, > Andrés > > On Wed, Mar 13, 2013 at 6:24 AM, |
Date | 2013-03-14 07:44 |
From | peiman khosravi |
Subject | Re: [Cs-dev] sine table as default for standard oscillators? |
Attachments | None None |
On 12 March 2013 15:40, Oeyvind Brandtsegg <oyvind.brandtsegg@ntnu.no> wrote:
Yes.
Agreed.
|
Date | 2013-03-14 14:04 |
From | joachim heintz |
Subject | Re: [Cs-dev] sine table as default for standard oscillators? |
thanks very much john! joachim Am 13.03.2013 14:24, schrieb jpff@cs.bath.ac.uk: >> >> Code written (cd cs6 only); not completely tested yet >> Current default size is 8192 but selectable. >> >> ==John ff > >>From What_is_New.txt in cs6: > > If a table number is given as -1 then an internal sine wav equivalent > to "f. 0 8192 10 1" is used. Attempts to write to this table will > give unpredictable results, but is not policed. The 8192 can be > change by command line option --sine-size=# where the # is rounded up > to a power of two. > > I have done elementary tests and it seems to work; now to try to add this > to the manual! > > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_mar > _______________________________________________ > Csound-devel mailing list > Csound-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/csound-devel > ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2013-03-14 18:23 |
From | Adam Puckett |
Subject | Re: [Cs-dev] sine table as default for standard oscillators? |
I vote 65536 as it's higher than the sample rate of 44.1 kHz most audio uses. On 3/14/13, joachim heintz |
Date | 2013-03-14 18:48 |
From | Michael Gogins |
Subject | Re: [Cs-dev] sine table as default for standard oscillators? |
Attachments | None None |
65536 is reasonable because it makes for a very low-noise oscillator. Regards, Mike On Thu, Mar 14, 2013 at 2:23 PM, Adam Puckett <adotsdothmusic@gmail.com> wrote: I vote 65536 as it's higher than the sample rate of 44.1 kHz most audio uses. Michael Gogins Irreducible Productions http://www.michael-gogins.com Michael dot Gogins at gmail dot com |
Date | 2013-03-14 23:42 |
From | "Dr. Richard Boulanger" |
Subject | Re: [Cs-dev] sine table as default for standard oscillators? |
Nice. Sent from my iPhone. On Mar 14, 2013, at 10:04 AM, joachim heintz |