Interface UpdatableInstrument

All Known Implementing Classes:
Brass, FreqSynthNoteInstrument, JSynInsFromClassName, RingMod, SuperNoiseSwoop, SynthNoteAllPortsInstrument, SynthNoteAllPortsInstrumentSP, TransposingSamplePlayingInstrument, TunedSynthNoteInstrument

public interface UpdatableInstrument
  • Method Summary

    Modifier and Type Method Description
    int getUpdateDimension()
    Get the dimension to match against when update() is called.
    void setUpdateDimension​(int dim)
    Set the dimension to match against when update() is called.
  • Method Details

    • setUpdateDimension

      void setUpdateDimension​(int dim)
      Set the dimension to match against when update() is called. This is used to retrieve the SynthNote which was play()'ed and is currently sounding, and which wants to be updated . Defaults to 1, which is the "pitch" dimension

      Used by API to support old JSyn. New JSyn uses voiceToken to look up an allocated voice so update() does not need a specific dimension to do lookup.
      Parameters:
      dim -
    • getUpdateDimension

      int getUpdateDimension()
      Get the dimension to match against when update() is called. This is used to retrieve the SynthNote which was play()'ed and is currently sounding, and which wants to be updated . Defaults to 1, which is the "pitch" dimension