Class SmoothFilteredSawtoothBL

java.lang.Object
com.jsyn.unitgen.UnitGenerator
com.jsyn.unitgen.Circuit
com.softsynth.jmsl.jsyn2.unitvoices.SmoothFilteredSawtoothBL
All Implemented Interfaces:
com.jsyn.unitgen.UnitSource, com.jsyn.unitgen.UnitVoice

public class SmoothFilteredSawtoothBL
extends com.jsyn.unitgen.Circuit
implements com.jsyn.unitgen.UnitVoice
FilteredSawtooth UnitVoice with AsymptoticRamps on cutoff and resonance so transitions are smooth
Author:
nick didkovsky
  • Field Summary

    Fields
    Modifier and Type Field Description
    com.jsyn.ports.UnitInputPort amplitude  
    com.jsyn.ports.UnitInputPort cutoff  
    com.jsyn.ports.UnitInputPort frequency  
    com.jsyn.ports.UnitOutputPort output  
    com.jsyn.ports.UnitInputPort rate  
    com.jsyn.ports.UnitInputPort resonance  

    Fields inherited from class com.jsyn.unitgen.UnitGenerator

    FALSE, PORT_NAME_AMPLITUDE, PORT_NAME_CUTOFF, PORT_NAME_FREQUENCY, PORT_NAME_FREQUENCY_SCALER, PORT_NAME_INPUT, PORT_NAME_OUTPUT, PORT_NAME_PAN, PORT_NAME_PHASE, PORT_NAME_PRESSURE, PORT_NAME_TIMBRE, PORT_NAME_TIME, TRUE
  • Constructor Summary

    Constructors
    Constructor Description
    SmoothFilteredSawtoothBL()  
  • Method Summary

    Modifier and Type Method Description
    com.jsyn.ports.UnitOutputPort getOutput()  
    void noteOff​(com.softsynth.shared.time.TimeStamp timeStamp)  
    void noteOn​(double frequency, double amplitude, com.softsynth.shared.time.TimeStamp timeStamp)  

    Methods inherited from class com.jsyn.unitgen.Circuit

    add, addPortAlias, flattenOutputs, generate, getPortByName, setEnabled, setFrameRate, setSynthesisEngine, usePreset

    Methods inherited from class com.jsyn.unitgen.UnitGenerator

    addPort, addPort, convertHalfLifeToMultiplier, generate, getCircuit, getFramePeriod, getFrameRate, getId, getPorts, getSynthesisEngine, getSynthesizer, getTopUnit, getUnitGenerator, isEnabled, isStartRequired, printConnections, printConnections, printConnections, pullData, setCircuit, setPort, start, start, start, stop, stop, stop

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.jsyn.unitgen.UnitVoice

    getUnitGenerator, setPort, usePreset
  • Field Details

    • frequency

      public com.jsyn.ports.UnitInputPort frequency
    • amplitude

      public com.jsyn.ports.UnitInputPort amplitude
    • output

      public com.jsyn.ports.UnitOutputPort output
    • resonance

      public com.jsyn.ports.UnitInputPort resonance
    • cutoff

      public com.jsyn.ports.UnitInputPort cutoff
    • rate

      public com.jsyn.ports.UnitInputPort rate
  • Constructor Details

    • SmoothFilteredSawtoothBL

      public SmoothFilteredSawtoothBL()
  • Method Details

    • noteOn

      public void noteOn​(double frequency, double amplitude, com.softsynth.shared.time.TimeStamp timeStamp)
      Specified by:
      noteOn in interface com.jsyn.unitgen.UnitVoice
    • noteOff

      public void noteOff​(com.softsynth.shared.time.TimeStamp timeStamp)
      Specified by:
      noteOff in interface com.jsyn.unitgen.UnitVoice
    • getOutput

      public com.jsyn.ports.UnitOutputPort getOutput()
      Specified by:
      getOutput in interface com.jsyn.unitgen.UnitSource