• returns a Sound reminiscent of a piano, playing a given note for a given duration

    Parameters

    • note: number

      MIDI note

    • duration: number

      duration in seconds

    Returns Sound

    Sound resulting piano Sound with given pitch and duration

    Example

    piano(48, 5);