making CPU and memory efficient jsyn apps
yeeking at n...
Tue Jul 25 06:14:49 EDT 2000
i am writing a program that maintains a population of modular synth
circuits. each circuit can contain many modules. this means that the whole
population of these circuits can contain hundreds of synthObjects. but i
only ever want to hear the output from a few of the circuits at a time. so
heres my question:
when i instantiate a synthObject with 'new' does it immediately place a load
on the CPU (obviously it does place a load on the memory...) or does it only
place a load on the CPU when it gets connected to an audible part of the
the reason i ask is at the moment i dynamically instantiate and delete
synthObjects as they are required but this probably slows the app down a bit
so it might be better to instantiate all the objects in a population at once
and then wire them into the output as required.
if anyones interested my new evolving synth prog is looking MEAN!
(loads of different modules, resizabel circuits, distributed(acroos the
i will post an URL as soon as something is running!
also i would be interested to know if the volume and mutation rate controls
appear on this applet in different browsers,
just that they are there when i run the applet with the java command but not
when its in a web page. (ie5 under win2000)
i think the problem may be the fact that i have to put the volume slider
code in a different place to the rest of the code as it connects to
synthPorts rather than just defining the values of fields.
yeeking at n...
More information about the JSyn