AKSampler

@objc
open class AKSampler : AKPolyphonicNode, AKComponent

Sampler

  • Declaration

    Swift

    @objc
    public var internalAU: AKSampler.AKAudioUnitType?
  • Ramp Duration represents the speed at which parameters are allowed to change

    Declaration

    Swift

    @objc
    open dynamic var rampDuration: Double { get set }
  • Master volume (fraction)

    Declaration

    Swift

    @objc
    open dynamic var masterVolume: Double { get set }
  • Pitch offset (semitones)

    Declaration

    Swift

    @objc
    open dynamic var pitchBend: Double { get set }
  • Vibrato amount (semitones)

    Declaration

    Swift

    @objc
    open dynamic var vibratoDepth: Double { get set }
  • Filter cutoff (harmonic ratio)

    Declaration

    Swift

    @objc
    open dynamic var filterCutoff: Double { get set }
  • Filter EG strength (harmonic ratio)

    Declaration

    Swift

    @objc
    open dynamic var filterStrength: Double { get set }
  • Filter resonance (dB)

    Declaration

    Swift

    @objc
    open dynamic var filterResonance: Double { get set }
  • Glide rate (seconds per octave)

    Declaration

    Swift

    @objc
    open dynamic var glideRate: Double { get set }
  • Amplitude attack duration (seconds)

    Declaration

    Swift

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

    Declaration

    Swift

    @objc
    open dynamic var decayDuration: Double { get set }
  • Amplitude sustain level (fraction)

    Declaration

    Swift

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

    Declaration

    Swift

    @objc
    open dynamic var releaseDuration: Double { get set }
  • Filter attack duration (seconds)

    Declaration

    Swift

    @objc
    open dynamic var filterAttackDuration: Double { get set }
  • Filter Decay duration (seconds)

    Declaration

    Swift

    @objc
    open dynamic var filterDecayDuration: Double { get set }
  • Filter sustain level (fraction)

    Declaration

    Swift

    @objc
    open dynamic var filterSustainLevel: Double { get set }
  • Filter Release duration (seconds)

    Declaration

    Swift

    @objc
    open dynamic var filterReleaseDuration: Double { get set }
  • Filter Enable (boolean, 0.0 for false or 1.0 for true)

    Declaration

    Swift

    @objc
    open dynamic var filterEnable: Bool { get set }
  • Loop Thru Release (boolean, 0.0 for false or 1.0 for true)

    Declaration

    Swift

    @objc
    open dynamic var loopThruRelease: Bool { get set }
  • isMonophonic (boolean, 0.0 for false or 1.0 for true)

    Declaration

    Swift

    @objc
    open dynamic var isMonophonic: Bool { get set }
  • isLegato (boolean, 0.0 for false or 1.0 for true)

    Declaration

    Swift

    @objc
    open dynamic var isLegato: Bool { get set }
  • Load an SFZ at the given location

    Parameters:

    • path: Path tothe file as a string
    • fileName: Name of the SFZ file

    Declaration

    Swift

    open func loadSFZ(path: String, fileName: String)