« Return to Thread: Writing Efficient Code

Re: Writing Efficient Code

by kernel-12 :: Rate this Message:

Reply to Author | View in Thread

Hello,

 From my experience most if not all the basic UGens in SC are very  
efficient so I suppose it comes down to how you use them - things like  
running a group of synths through a single effect/filter process  
instead of spawning the effect with each SynthDef.

What code are you trying to optimize?  The obvious tip is to use .kr  
UGens instead of .ar UGens where possible but maybe you trade some  
sound quality or maybe it isn't practical or makes little difference  
in some situations.

Other tips include not running your server at 192KHz with 16 sample  
block sizes :)  Of course the best joke of all is to suggest buying a  
new computer but you may just end up with more cores which just  
complicates things and isn't very funny.

Good luck,
kernel

On 24 Apr 2009, at 09:26, surgesg wrote:

>
> Personally, I'm looking for help with the Synth side of things, but  
> language
> tips are always helpful too.
>
> Thanks -
>
>
> Dan Stowell wrote:
>>
>> Hi -
>>
>> It depends on what exactly you're working on but this might help:
>> http://swiki.hfbk-hamburg.de/MusicTechnology/867
>>
>> It contains languagey tips, not synth tips
>>
>> Dan
>>
>> 2009/4/24, surgesg <surgesg@...>:
>>>
>>> Hi,
>>>
>>> I've been trying to optimize some code I'm working on, and I think  
>>> it'd
>>> be
>>> great to have a help file / tutorial on writing efficient synthesis
>>> code.
>>> I'm wondering if people would share strategies and techniques for
>>> efficiency. I'd be glad to compile a help file out of the  
>>> suggestions.
>>>
>>> Thanks,
>>>
>>> - gs
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Writing-Efficient-Code- 
>>> tp23218503p23218503.html
>>> Sent from the Supercollider - User mailing list archive at  
>>> Nabble.com.
>>>
>>>
>>> _______________________________________________
>>> sc-users mailing list
>>>
>>> info (subscription, etc.):
>>> http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
>>> archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
>>> search: http://www.listarc.bham.ac.uk/lists/sc-users/search/
>>>
>>
>>
>> --
>> http://www.mcld.co.uk
>>
>> _______________________________________________
>> sc-users mailing list
>>
>> info (subscription, etc.):
>> http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
>> archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
>> search: http://www.listarc.bham.ac.uk/lists/sc-users/search/
>>
>>
>
> --
> View this message in context: http://www.nabble.com/Writing-Efficient-Code-tp23218503p23218759.html
> Sent from the Supercollider - User mailing list archive at Nabble.com.
>
>
> _______________________________________________
> sc-users mailing list
>
> info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
> archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
> search: http://www.listarc.bham.ac.uk/lists/sc-users/search/


_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/

 « Return to Thread: Writing Efficient Code