Function createStep

  • createStep is a function that creates a Step object. A Step object represents a musical note or chord with a specific volume and duration.

    Parameters

    • noteNumber: number | number[]

      The MIDI note number or an array of MIDI note numbers. If an array is provided, it represents a chord.

    • volume: number = 1

      The volume of the note or chord (0-1). Default is 1.

    • duration: number = 1

      The duration of the note or chord in beats. Default is 1.

    Returns Step

    A Step object that has the following properties:

    • noteNumber - The MIDI note number or an array of MIDI note numbers.
    • volume - The volume of the note or chord.
    • duration - The duration of the note or chord in beats.

Generated using TypeDoc