AKMorphingOscillatorBank

open class AKMorphingOscillatorBank : AKPolyphonicNode, AKComponent

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

  • Declaration

    Swift

    public typealias AKAudioUnitType = AKMorphingOscillatorBankAudioUnit
  • Four letter unique description of the node

    Declaration

    Swift

    public static let ComponentDescription: AudioComponentDescription
  • An array of tables to morph between

    Declaration

    Swift

    open var waveformArray: [AKTable] { get set }
  • Ramp Duration represents the speed at which parameters are allowed to change

    Declaration

    Swift

    @objc
    open dynamic var rampDuration: Double { get set }
  • Index of the wavetable to use (fractional are okay).

    Declaration

    Swift

    @objc
    open dynamic var index: Double { get set }
  • Attack duration in seconds

    Declaration

    Swift

    @objc
    open dynamic var attackDuration: Double { get set }
  • Decay duration in seconds

    Declaration

    Swift

    @objc
    open dynamic var decayDuration: Double { get set }
  • Sustain Level

    Declaration

    Swift

    @objc
    open dynamic var sustainLevel: Double { get set }
  • Release duration in seconds

    Declaration

    Swift

    @objc
    open dynamic var releaseDuration: Double { get set }
  • Pitch Bend as number of semitones

    Declaration

    Swift

    @objc
    open dynamic var pitchBend: Double { get set }
  • Vibrato Depth in semitones

    Declaration

    Swift

    @objc
    open dynamic var vibratoDepth: Double { get set }
  • Vibrato Rate in Hz

    Declaration

    Swift

    @objc
    open dynamic var vibratoRate: Double { get set }
  • Initialize the oscillator with defaults

    Declaration

    Swift

    public convenience override init()
  • Initialize this oscillator node

    Declaration

    Swift

    @objc
    public init(
        waveformArray: [AKTable],
        index: Double = 0,
        attackDuration: Double = 0.1,
        decayDuration: Double = 0.1,
        sustainLevel: Double = 1.0,
        releaseDuration: Double = 0.1,
        pitchBend: Double = 0,
        vibratoDepth: Double = 0,
        vibratoRate: Double = 0)

    Parameters

    waveformArray

    An array of 4 waveforms

    index

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

    attackDuration

    Attack duration in seconds

    decayDuration

    Decay duration in seconds

    sustainLevel

    Sustain Level

    releaseDuration

    Release duration in seconds

    pitchBend

    Change of pitch in semitones

    vibratoDepth

    Vibrato size in semitones

    vibratoRate

    Frequency of vibrato in Hz

  • stops all notes

    Declaration

    Swift

    open func reset()