com.softsynth.jmsl.score
Class Orchestra

java.lang.Object
  extended by 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
Orchestra()
           
 
Method Summary
 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 SignalProcessingInstruments
 void removeInstrument(Instrument ins)
          TODO implement this with MixerContainer consequences
 void 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 sources
 void writeXML(java.io.PrintWriter out)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Orchestra

public Orchestra()
Method Detail

buildMixer

public void buildMixer()

getJMSLMixerContainer

public JMSLMixerContainer getJMSLMixerContainer()

getPanAmpControlPanel

public java.awt.Component getPanAmpControlPanel()
Build a Panel of PanAmpPanels, one for each fader of JMSLMixerContainer.

Returns:
panel with PanAmpPanels

addOrchPatch

public void addOrchPatch(Patch orchPatch)
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

public void removeOrchPatch(Patch orchPatch)
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

public void addInstrument(Instrument ins)

addInstrument

public void addInstrument(Instrument ins,
                          java.lang.String insName)

removeInstrument

public void removeInstrument(Instrument ins)
TODO implement this with MixerContainer consequences


getInstrument

public Instrument getInstrument(int n)

getInstrument

public Instrument getInstrument(java.lang.String insName)
Returns:
Instrument with specified name, or null if no name matches. Case INsensitive match.

getInstrumentIndex

public int getInstrumentIndex(Instrument ins)
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 interface XMLCreatable

create

public java.lang.Object create()
Specified by:
create in interface XMLCreatable

writeXML

public void writeXML(java.io.PrintWriter out)
              throws java.io.IOException
Specified by:
writeXML in interface XMLWritable
Throws:
java.io.IOException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

main

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