FW: [Nyquist-users] Re: Question about maximum table size
Nyquist is a language for sound synthesis and music composition.
Brought to you by:
rbd
|
From: <dav...@sy...> - 2005-03-17 00:16:10
|
Thanks=2E I realize that for some people (rather, some machines), 1 millio= n samples might be too large, resulting in a crash, while for others,=20 100,000 might be too small=2E I just wanted some confirmation that there was a contradiction between the documentation and the actual limit, or if not, then help in clearing up my misunderstanding=2E Since I'm just learning how to do things in Nyquist, it's not important=2E= But maybe in some future release, the table size could be specified as=20 a command-line parameter, rather than hard-coded in an "include" file=2E Then users could specify whatever is appropriate for their hardware (although it could default to 100,000 samples)=2E Thanks for your help=2E David=2E Original Message: ----------------- From: Roger B=2E Dannenberg rbd@cs=2Ecmu=2Eedu Date: Wed, 16 Mar 2005 15:40:59 -0500 To: nyquist-users@lists=2Esourceforge=2Enet Subject: [Nyquist-users] Re: Question about maximum table size Yes, there's a bug either in the documentation or the code: the table size= limit is 100K samples, which is 400KB=2E The table size limit is a tradeof= f between giving users the freedom to do what they want and keeping Nyquist alive=2E Before there was a limit, users would complain that Nyquist crash= ed for no apparent reason=2E The reason was that Nyquist was trying to alloca= te huge tables=2E In almost all cases, there was a better way to do things=2E= With convolution, I think you can break the convolution up into two or more parts, perform them separately, and then shift and sum the results togethe= r to get the correct result=2E I realize this is easy to say and somewhat painful to code and test=2E And if you're going to allocate a bunch of big= tables, why not just increase the tables size? A 4MB memory allocation isn= 't so much on most modern machines=2E But is that enough? What should the lim= it be? (Also, Nyquist doesn't do fast convolution, so the time is proportiona= l to M*N where M and N are the lengths of the two sounds to be convolved=2E)= I guess the thing to do is increase the max size to 1M and put in some err= or reporting in case the allocation fails so when it does the user gets a meaningful error report=2E I'll work on in=2E Meanwhile, have you tried the convolution at 22kHz? 88K samples (4 seconds= at 22kHz) should fit into the current 100K sample limit=2E ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users=2E= Discover which products truly live up to the hype=2E Start reading now=2E http://ads=2Eosdn=2Ecom/?ad_ide95&alloc_id=14396&op=AAick _______________________________________________ Nyquist-users mailing list Nyquist-users@lists=2Esourceforge=2Enet https://lists=2Esourceforge=2Enet/lists/listinfo/nyquist-users -------------------------------------------------------------------- mail2web - Check your email from the web at http://mail2web=2Ecom/ =2E |