Package com.softsynth.jmsl.score
Class Orchestra
java.lang.Object
com.softsynth.jmsl.score.Orchestra
- All Implemented Interfaces:
XMLCreatable
,XMLWritable
public class Orchestra extends java.lang.Object implements XMLWritable, XMLCreatable
- Author:
- Nick Didkovsky, copyright 2000 Nick Didkovsky, all rights reserved
-
Constructor Summary
Constructors Constructor Description Orchestra()
-
Method Summary
Modifier and Type Method Description void
addInstrument(Instrument ins)
void
addInstrument(Instrument ins, java.lang.String insName)
void
addOrchPatch(Patch orchPatch)
Add a patch from instrument index to instrument index.void
buildMixer()
java.lang.Object
create()
java.util.Enumeration
elements()
Instrument
getInstrument(int n)
Instrument
getInstrument(java.lang.String insName)
int
getInstrumentIndex(Instrument ins)
JMSLMixerContainer
getJMSLMixerContainer()
java.util.Vector
getOrchPatches()
java.awt.Component
getPanAmpControlPanel()
Build a Panel of PanAmpPanels, one for each fader of JMSLMixerContainer.void
handleAttribute(java.lang.String name, java.lang.String value)
static void
main(java.lang.String[] args)
void
patchInstruments()
Run through list of OrchPatches and patch outputs of Instruments to inputs of SignalProcessingInstrumentsvoid
removeInstrument(Instrument ins)
TODO implement this with MixerContainer consequencesvoid
removeOrchPatch(Patch orchPatch)
Remove a patch from instrument index to instrument index.int
size()
java.lang.String
toString()
void
unpatchInstruments()
Sniff out all generic SignalProcessingInstruments and clear their inputs sourcesvoid
writeXML(java.io.PrintWriter out)
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
Orchestra
public Orchestra()
-
-
Method Details
-
buildMixer
public void buildMixer() -
getJMSLMixerContainer
-
getPanAmpControlPanel
public java.awt.Component getPanAmpControlPanel()Build a Panel of PanAmpPanels, one for each fader of JMSLMixerContainer.- Returns:
- panel with PanAmpPanels
-
addOrchPatch
Add a patch from instrument index to instrument index. Does not actually connect. Just stores indexes for connection later -
getOrchPatches
public java.util.Vector getOrchPatches()- Returns:
- Vector of OrchPatch
-
removeOrchPatch
Remove a patch from instrument index to instrument index. Does not actually disconnect, simply removes index pair from list. -
unpatchInstruments
public void unpatchInstruments()Sniff out all generic SignalProcessingInstruments and clear their inputs sources -
patchInstruments
public void patchInstruments()Run through list of OrchPatches and patch outputs of Instruments to inputs of SignalProcessingInstruments -
addInstrument
-
addInstrument
-
removeInstrument
TODO implement this with MixerContainer consequences -
getInstrument
-
getInstrument
- Returns:
- Instrument with specified name, or null if no name matches. Case INsensitive match.
-
getInstrumentIndex
- Returns:
- instrument index of ins
-
elements
public java.util.Enumeration elements() -
size
public int size() -
handleAttribute
public void handleAttribute(java.lang.String name, java.lang.String value)- Specified by:
handleAttribute
in interfaceXMLCreatable
-
create
public java.lang.Object create()- Specified by:
create
in interfaceXMLCreatable
-
writeXML
public void writeXML(java.io.PrintWriter out) throws java.io.IOException- Specified by:
writeXML
in interfaceXMLWritable
- Throws:
java.io.IOException
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
main
public static void main(java.lang.String[] args)
-