Package com.softsynth.jmsl.jsyn
Class BussedVoiceAllocatorMultiOut
java.lang.Object
com.softsynth.jsyn.util.VoiceAllocator
com.softsynth.jmsl.jsyn.BussedVoiceAllocatorMultiOut
- Direct Known Subclasses:
BVAClassName
public abstract class BussedVoiceAllocatorMultiOut
extends com.softsynth.jsyn.util.VoiceAllocator
Deprecated.
use the pure Java JSyn2 package instead
JSyn VoiceAllocator for SynthNotes whose output has one or more parts. It
creates a BusReader for each part of SynthNote.output. setNumOutputs() then
buildReaders() Subclasses must implement makeVoice() and addVoiceToMix()
- Author:
- Nick Didkovsky 6/6/04
- See Also:
BVAClassName
-
Constructor Summary
Constructors Constructor Description BussedVoiceAllocatorMultiOut(int numVoices)
Deprecated.constructor with null synthcontext.BussedVoiceAllocatorMultiOut(int numVoices, com.softsynth.jsyn.SynthContext synthContext)
Deprecated. -
Method Summary
Modifier and Type Method Description com.softsynth.jsyn.BusWriter
addBusWriter()
Deprecated.com.softsynth.jsyn.SynthCircuit
addVoiceToMix(com.softsynth.jsyn.SynthCircuit circuit)
Deprecated.for (int i = 0; i < getNumOutputs(); i++) { BusWriter busWriter = addBusWriter(); BusWriter busWriter = addBusWriter(); if (circuit instanceof OutputProvider) { ((SynthOutput) ((OutputProvider) circuit).getOutput(i)).connect(0, busWriter.input, 0); } else { circuit.output.connect(i, busWriter.input, 0); } connectBusWriterToBusReader(busWriter, i); } return circuit;void
buildReaders()
Deprecated.Call after setNumOutputs()void
connectBusWriterToBusReader(com.softsynth.jsyn.BusWriter busWriter, int readerIndex)
Deprecated.com.softsynth.jsyn.BusReader
getBusReader(int n)
Deprecated.int
getNumOutputs()
Deprecated.com.softsynth.jsyn.SynthOutput
getOutput()
Deprecated.com.softsynth.jsyn.SynthOutput
getOutput(int part)
Deprecated.com.softsynth.jsyn.SynthContext
getSynthContext()
Deprecated.void
setNumOutputs(int n)
Deprecated.Call buildReaders() after thisvoid
setSynthContext(com.softsynth.jsyn.SynthContext context)
Deprecated.void
start()
Deprecated.void
start(int time)
Deprecated.void
stop()
Deprecated.void
stop(int time)
Deprecated.Methods inherited from class com.softsynth.jsyn.util.VoiceAllocator
allocate, allocate, allocate, allocate, clear, delete, free, free, getMaxVoices, getNthVoice, getNumVoices, makeVoice, steal, steal, steal, steal
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
BussedVoiceAllocatorMultiOut
public BussedVoiceAllocatorMultiOut(int numVoices) throws com.softsynth.jsyn.SynthExceptionDeprecated.constructor with null synthcontext. BusReaders built with no-arg constructor- Throws:
com.softsynth.jsyn.SynthException
-
BussedVoiceAllocatorMultiOut
public BussedVoiceAllocatorMultiOut(int numVoices, com.softsynth.jsyn.SynthContext synthContext) throws com.softsynth.jsyn.SynthExceptionDeprecated.- Throws:
com.softsynth.jsyn.SynthException
-
-
Method Details
-
getNumOutputs
public int getNumOutputs()Deprecated. -
setNumOutputs
public void setNumOutputs(int n)Deprecated.Call buildReaders() after this -
start
public void start()Deprecated. -
start
public void start(int time)Deprecated. -
stop
public void stop()Deprecated.- Overrides:
stop
in classcom.softsynth.jsyn.util.VoiceAllocator
-
stop
public void stop(int time)Deprecated.- Overrides:
stop
in classcom.softsynth.jsyn.util.VoiceAllocator
-
buildReaders
public void buildReaders()Deprecated.Call after setNumOutputs() -
addBusWriter
public com.softsynth.jsyn.BusWriter addBusWriter()Deprecated. -
getBusReader
public com.softsynth.jsyn.BusReader getBusReader(int n)Deprecated. -
connectBusWriterToBusReader
public void connectBusWriterToBusReader(com.softsynth.jsyn.BusWriter busWriter, int readerIndex)Deprecated. -
getOutput
public com.softsynth.jsyn.SynthOutput getOutput()Deprecated.- Returns:
- getOutput(0)
-
getOutput
public com.softsynth.jsyn.SynthOutput getOutput(int part)Deprecated.- Returns:
- the nth BusReader's output
-
addVoiceToMix
public com.softsynth.jsyn.SynthCircuit addVoiceToMix(com.softsynth.jsyn.SynthCircuit circuit) throws com.softsynth.jsyn.SynthExceptionDeprecated.for (int i = 0; i < getNumOutputs(); i++) { BusWriter busWriter = addBusWriter(); BusWriter busWriter = addBusWriter(); if (circuit instanceof OutputProvider) { ((SynthOutput) ((OutputProvider) circuit).getOutput(i)).connect(0, busWriter.input, 0); } else { circuit.output.connect(i, busWriter.input, 0); } connectBusWriterToBusReader(busWriter, i); } return circuit;
- Parameters:
circuit
-- Returns:
- Throws:
com.softsynth.jsyn.SynthException
-
getSynthContext
public com.softsynth.jsyn.SynthContext getSynthContext()Deprecated.- Returns:
-
setSynthContext
public void setSynthContext(com.softsynth.jsyn.SynthContext context)Deprecated.- Parameters:
context
-
-