Package wellen

Class InstrumentDSPLibrary.BELL

java.lang.Object
wellen.Instrument
wellen.InstrumentDSP
wellen.InstrumentDSPLibrary.BELL
All Implemented Interfaces:
DSPNodeOutputSignal
Enclosing class:
InstrumentDSPLibrary

public static class InstrumentDSPLibrary.BELL extends InstrumentDSP
  • Constructor Details

    • BELL

      public BELL(int pID)
  • Method Details

    • set_amplitude_falloff

      public void set_amplitude_falloff(float pAmplitudeFalloff)
    • set_amplification

      public void set_amplification(float pAmplify)
    • set_sustain_falloff

      public void set_sustain_falloff(float pReleaseFalloff)
    • set_sustain

      public void set_sustain(float sustain)
      Overrides:
      set_sustain in class InstrumentDSP
      Parameters:
      sustain - level parameter defining the level hold while note is still played.
    • note_on

      public void note_on(int note, int velocity)
      Overrides:
      note_on in class InstrumentDSP
    • note_off

      public void note_off()
      Overrides:
      note_off in class InstrumentDSP
    • output_signal

      public Signal output_signal()
      Specified by:
      output_signal in interface DSPNodeOutputSignal
      Overrides:
      output_signal in class InstrumentDSP
      Returns:
      output signal
    • set_detune

      public void set_detune(float pDetune)
      Description copied from class: InstrumentDSP
      detune of second oscillator in relation to main oscillator
      Overrides:
      set_detune in class InstrumentDSP
      Parameters:
      pDetune - in percent. a value of 1.0 will tune the second oscillator to the exact frequency as the main oscillator. a value of 0.5 will tune the second oscillator to half the frequency of the main oscillator, etcetera.
    • get_attack

      public float get_attack()
      Overrides:
      get_attack in class Instrument
    • set_attack

      public void set_attack(float attack)
      Overrides:
      set_attack in class InstrumentDSP
      Parameters:
      attack - time parameter defining the time it takes for the set_amp to reach maximum level.