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 Details

    • Orchestra

      public Orchestra()
  • Method Details

    • 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)