AKMorphingOscillatorBank

open class AKMorphingOscillatorBank: AKPolyphonicNode, AKComponent

This is an oscillator with linear interpolation that is capable of morphing between an arbitrary number of wavetables.

  • Ramp Time represents the speed at which parameters are allowed to change

    Declaration

    Swift

    open dynamic var rampTime: Double = AKSettings.rampTime
  • Index of the wavetable to use (fractional are okay).

    Declaration

    Swift

    open dynamic var index: Double = 0.0
  • Attack time

    Declaration

    Swift

    open dynamic var attackDuration: Double = 0.1
  • Decay time

    Declaration

    Swift

    open dynamic var decayDuration: Double = 0.1
  • Sustain Level

    Declaration

    Swift

    open dynamic var sustainLevel: Double = 1.0
  • Release time

    Declaration

    Swift

    open dynamic var releaseDuration: Double = 0.1
  • Frequency offset in Hz.

    Declaration

    Swift

    open dynamic var detuningOffset: Double = 0
  • Frequency detuning multiplier

    Declaration

    Swift

    open dynamic var detuningMultiplier: Double = 1
  • Initialize the oscillator with defaults

    Declaration

    Swift

    public convenience override init()
  • Initialize this oscillator node

    • Parameters:
      • waveformArray: An array of 4 waveforms
      • index: Index of the wavetable to use (fractional are okay).
      • attackDuration: Attack time
      • decayDuration: Decay time
      • sustainLevel: Sustain Level
      • releaseDuration: Release time
      • detuningOffset: Frequency offset in Hz.
      • detuningMultiplier: Frequency detuning multiplier

    Declaration

    Swift

    public init(
            waveformArray: [AKTable],
            index: Double = 0,
            attackDuration: Double = 0.1,
            decayDuration: Double = 0.1,
            sustainLevel: Double = 1.0,
            releaseDuration: Double = 0.1,
            detuningOffset: Double = 0,
            detuningMultiplier: Double = 1)

    Parameters

    waveformArray

    An array of 4 waveforms

    index

    Index of the wavetable to use (fractional are okay).

    attackDuration

    Attack time

    decayDuration

    Decay time

    sustainLevel

    Sustain Level

    releaseDuration

    Release time

    detuningOffset

    Frequency offset in Hz.

    detuningMultiplier

    Frequency detuning multiplier

  • Function to start, play, or activate the node, all do the same thing

    Declaration

    Swift

    open override func play(noteNumber: MIDINoteNumber, velocity: MIDIVelocity)
  • Function to stop or bypass the node, both are equivalent

    Declaration

    Swift

    open override func stop(noteNumber: MIDINoteNumber)