zen

    Hierarchy

    • ToneInstrument
      • default
    Index

    Constructors

    Properties

    defaults: Record<string, any> = ...

    Methods

    • Mutates the detune of the synth

      Parameters

      • value: number = 0

        The detune value in cents

      • time: number

        The time to set the detune

      • lag: number = 100

        The lag time for the detune change

      Returns void

    • Mutate the note of the synth

      Parameters

      • value: number = 60

        Midi note number

      • time: number

        The time to set the note

      • lag: number = 100

        The lag time for the note change

      Returns void

    • Mutates the panning of the synth

      Parameters

      • value: number = 0.5

        The panning value (0 to 1)

      • time: number

        The time to set the panning

      • lag: number = 100

        The lag time for the panning change

      Returns void

    • Mutates the volume of the synth

      Parameters

      • value: number = 1

        The volume value (0 to 1)

      • time: number

        The time to set the volume

      • lag: number = 100

        The lag time for the volume change

      Returns void

    • Set the attack time of the synth envelope

      Parameters

      • value: number = 1000

        Attack time in milliseconds

      Returns void

    • Set the decay time of the synth envelope

      Parameters

      • value: number = 100

        Decay time in milliseconds

      Returns void

    • Sets the detune of the synth

      Parameters

      • value: number = 0

        The detune value in cents

      • time: number

        The time to set the detune

      Returns void

    • Set the attack time of the filter envelope

      Parameters

      • value: number = 1000

        Attack time in milliseconds

      Returns void

    • Set the decay time of the filter envelope

      Parameters

      • value: number = 100

        Decay time in milliseconds

      Returns void

    • Set the release time of the filter envelope

      Parameters

      • value: number = 500

        Release time in milliseconds

      Returns void

    • Set the sustain level of the filter envelope

      Parameters

      • value: number = 0.5

        Sustain level (0 to 1)

      Returns void

    • Set the oscillator type of the synth

      Parameters

      • value: number = 0

        Oscillator type index (0: sine, 1: sawtooth, 2: triangle, 3: square)

      • time: number

      Returns void

    • Sets the panning of the synth

      Parameters

      • value: number = 0.5

        The panning value (0 to 1)

      • time: number

        The time to set the panning

      Returns void

    • Set the release time of the synth envelope

      Parameters

      • value: number = 500

        Release time in milliseconds

      Returns void

    • Set the sustain level of the synth envelope

      Parameters

      • value: number = 0.5

        Sustain level (0 to 1)

      Returns void

    • Sets the volume of the synth

      Parameters

      • value: number = 1

        The volume value (0 to 1)

      • time: number

        The time to set the volume

      Returns void

    MMNEPVFCICPMFPCPTTAAATR