Class SynthNoteDimensionNameSpace

java.lang.Object
com.softsynth.jmsl.jsyn.SynthNoteDimensionNameSpace
All Implemented Interfaces:
DimensionNameSpace

public class SynthNoteDimensionNameSpace
extends java.lang.Object
implements DimensionNameSpace
Deprecated.
use the pure Java JSyn2 package instead
Create a DimensionNameSpace from the ports of a JSyn SynthNote. Ignores amplitude and frequency ports which it assumes are there anyway (reserving those for standard dimensions pitch and amplitude). So this only captures port that are timbrally unique to a SynthNote. Dummy port names 0..3 are added for duration, pitch, amp, hold
Author:
Nick Didkovsky. (c) 2002 Nick Didkovsky and Phil Burk, all rights reserved.
  • Constructor Summary

    Constructors
    Constructor Description
    SynthNoteDimensionNameSpace​(java.lang.String synthNoteClassname)
    Deprecated.
     
  • Method Summary

    Modifier and Type Method Description
    int dimension()
    Deprecated.
     
    java.util.Enumeration dimensionNames()
    Deprecated.
     
    double getDefault​(int dim)
    Deprecated.
     
    int getDimension​(java.lang.String name)
    Deprecated.
     
    java.lang.String getDimensionName​(int dim)
    Deprecated.
     
    double getHighLimit​(int dim)
    Deprecated.
    return highest allowable value for specified dimension
    double getLowLimit​(int dim)
    Deprecated.
    return lowest allowable value for specified dimension
    int getNumberOfNames()
    Deprecated.
     
    void setDefault​(int dim, double value)
    Deprecated.
    set the default value for a dimension
    void setDimensionName​(int dim, java.lang.String name)
    Deprecated.
    assign a name to a dimension
    void setLimits​(int dim, double low, double high)
    Deprecated.
    set the lowest and highest limits for a dimension

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SynthNoteDimensionNameSpace

      public SynthNoteDimensionNameSpace​(java.lang.String synthNoteClassname)
      Deprecated.
  • Method Details

    • getNumberOfNames

      public int getNumberOfNames()
      Deprecated.
      Specified by:
      getNumberOfNames in interface DimensionNameSpace
      Returns:
      number of names stored in name space. Not the same as highest dimension. Not all dimensions require names.
    • dimension

      public int dimension()
      Deprecated.
      Specified by:
      dimension in interface DimensionNameSpace
      Returns:
      number of dimensions. Useful if you are allocating an array for example
    • getDimensionName

      public java.lang.String getDimensionName​(int dim)
      Deprecated.
      Specified by:
      getDimensionName in interface DimensionNameSpace
      Returns:
      name of specified dimension
    • getDimension

      public int getDimension​(java.lang.String name)
      Deprecated.
      Specified by:
      getDimension in interface DimensionNameSpace
      Returns:
      dimension associated with name or -1
    • setDimensionName

      public void setDimensionName​(int dim, java.lang.String name)
      Deprecated.
      assign a name to a dimension
      Specified by:
      setDimensionName in interface DimensionNameSpace
    • getLowLimit

      public double getLowLimit​(int dim)
      Deprecated.
      return lowest allowable value for specified dimension
      Specified by:
      getLowLimit in interface DimensionNameSpace
      Returns:
      lowest allowable value for specified dimension
    • getHighLimit

      public double getHighLimit​(int dim)
      Deprecated.
      return highest allowable value for specified dimension
      Specified by:
      getHighLimit in interface DimensionNameSpace
      Returns:
      highest allowable value for specified dimension
    • setLimits

      public void setLimits​(int dim, double low, double high)
      Deprecated.
      set the lowest and highest limits for a dimension
      Specified by:
      setLimits in interface DimensionNameSpace
    • setDefault

      public void setDefault​(int dim, double value)
      Deprecated.
      Description copied from interface: DimensionNameSpace
      set the default value for a dimension
      Specified by:
      setDefault in interface DimensionNameSpace
    • getDefault

      public double getDefault​(int dim)
      Deprecated.
      Specified by:
      getDefault in interface DimensionNameSpace
      Returns:
      default value for specified dimension
    • dimensionNames

      public java.util.Enumeration dimensionNames()
      Deprecated.
      Specified by:
      dimensionNames in interface DimensionNameSpace