com.softsynth.jmsl.jsyn
Class BVAClassName

java.lang.Object
  extended by com.softsynth.jsyn.util.VoiceAllocator
      extended by com.softsynth.jmsl.jsyn.BussedVoiceAllocatorMultiOut
          extended by com.softsynth.jmsl.jsyn.BVAClassName

public class BVAClassName
extends BussedVoiceAllocatorMultiOut

VoiceAllocator for JSyn SynthNote whose output has one or more parts. Provide a classname as a String. Handles multipart SynthNote outputs, ie it creates a BusReader for each part of SynthNote.output. So SynthNotes whose output have more than one part can be supported (like a stereo panning SynthNote for example)

Author:
Nick Didkovsky 3/6/01 9:51AM, mods 9/14/2003
See Also:
AutopanningSawtooth

Constructor Summary
BVAClassName(int numVoices, java.lang.String className)
           
BVAClassName(int numVoices, java.lang.String className, com.softsynth.jsyn.SynthContext synthContext)
           
 
Method Summary
 java.lang.String getClassName()
           
static void main(java.lang.String[] args)
           
 com.softsynth.jsyn.SynthCircuit makeVoice()
           SynthCircuit circuit = (SynthCircuit) (JMSLClassLoader.load(className).newInstance()); return addVoiceToMix(circuit);
 void setClassName(java.lang.String className)
          counts number of output parts of circuit and calls setNumOutputs()
 
Methods inherited from class com.softsynth.jmsl.jsyn.BussedVoiceAllocatorMultiOut
addBusWriter, addVoiceToMix, buildReaders, connectBusWriterToBusReader, getBusReader, getNumOutputs, getOutput, getOutput, getSynthContext, setNumOutputs, setSynthContext, start, start, stop, stop
 
Methods inherited from class com.softsynth.jsyn.util.VoiceAllocator
allocate, allocate, allocate, allocate, clear, delete, free, free, getMaxVoices, getNthVoice, getNumVoices, steal, steal, steal, steal
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BVAClassName

public BVAClassName(int numVoices,
                    java.lang.String className)
             throws com.softsynth.jsyn.SynthException
Throws:
com.softsynth.jsyn.SynthException

BVAClassName

public BVAClassName(int numVoices,
                    java.lang.String className,
                    com.softsynth.jsyn.SynthContext synthContext)
             throws com.softsynth.jsyn.SynthException
Throws:
com.softsynth.jsyn.SynthException
Method Detail

setClassName

public void setClassName(java.lang.String className)
                  throws com.softsynth.jsyn.SynthException
counts number of output parts of circuit and calls setNumOutputs()

Throws:
com.softsynth.jsyn.SynthException

getClassName

public java.lang.String getClassName()

makeVoice

public com.softsynth.jsyn.SynthCircuit makeVoice()
                                          throws com.softsynth.jsyn.SynthException
 SynthCircuit circuit = (SynthCircuit) (JMSLClassLoader.load(className).newInstance());
 return addVoiceToMix(circuit);
 

Specified by:
makeVoice in class com.softsynth.jsyn.util.VoiceAllocator
Throws:
com.softsynth.jsyn.SynthException

main

public static void main(java.lang.String[] args)