Save cpu usage: switch off unused oscs

For general discussions related to SynthMaker.

Moderators: electrogear, exonerate

Save cpu usage: switch off unused oscs

Postby Dave on Sat Dec 08, 2007 10:17 pm

Hi,

i've tried to reduce the cpu usage with switching off an single osc in the example.osm:

Image

Inside the selector:

Image

But it seems like that the switcher don't work (sound of osc 2 plays still and cpu usage will not be reduced).

How can i add. add a function which cuts the osc automatically off if the volume of it is "0"?

Thanks,
Dave
Dave
essemilian
 
Posts: 279
Joined: Thu Nov 29, 2007 11:58 am

Postby oddson on Sat Dec 08, 2007 11:15 pm

Drag the input from the selector to the second (blank) input. This will add a third input (which will be blank). The first input is now a dummy input and will be selected when the boolean is 'false' (integer value is zero).

Image
The above shows the dummy input used with a threshold comparison. So you have a volume knob/off switch combined in one.
oddson
wiki guru
 
Posts: 3883
Joined: Sun Jul 03, 2005 6:44 pm

Postby infuzion on Sat Dec 08, 2007 11:57 pm

Hey Dave, thanks for reminding me that I didn't add an example of this in [url="http://www.synthmaker.co.uk/dokuwiki/doku.php?id=tips_and_tricks:optimization:optimization#stream"]the WIKI[/url]. & thanks to oddson for providing it :)

BTW, it is best to ask questions like this in the Help forum. Not a big deal though.
Need help? First search the forum & WiKi, then post in the help forum with a clear topic, request, & OSM. Then please WiKi the correct solution. If you want my personal assistance, I charge by the hour or for an exchange of services.
infuzion
smstar
smstar
 
Posts: 6163
Joined: Wed May 04, 2005 8:02 pm
Location: Earth, USA, CO, Denver


Return to General

Who is online

Users browsing this forum: No registered users and 0 guests