Hiyve Components - v1.0.0
    Preparing search index...

    Interface SampleSource

    Where recorded instrument samples come from: a host laid out like the midi-js-soundfonts collection, with one file per key at {baseUrl}{instrument}-{format}/{note}.{format} — the note written with flats for the black keys, Db4, A0 … C8.

    interface SampleSource {
        baseUrl: string;
        format?: "mp3" | "ogg";
        highestMidi?: number;
        instrument?: string;
        lowestMidi?: number;
    }
    Index

    Properties

    baseUrl: string

    The soundfont's folder, e.g. https://cdn.example.com/soundfonts/FluidR3_GM/

    format?: "mp3" | "ogg"

    The audio format of the files (default: 'mp3')

    highestMidi?: number

    The highest key the host has a file for, as a MIDI number (default: 108, C8)

    instrument?: string

    The instrument's folder name (default: 'acoustic_grand_piano')

    lowestMidi?: number

    The lowest key the host has a file for, as a MIDI number (default: 21, A0)