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

    Return value of useScore.

    interface UseScoreResult {
        clear: () => void;
        error: Error | null;
        isLoading: boolean;
        loadFile: (file: File) => Promise<Score | null>;
        loadText: (musicxml: string, name: string) => Score | null;
        musicxml: string | null;
        name: string | null;
        score: Score | null;
        takeScore: TakeScoreReference | undefined;
    }
    Index

    Properties

    clear: () => void
    error: Error | null
    isLoading: boolean
    loadFile: (file: File) => Promise<Score | null>

    Load a .musicxml / .xml file; resolves to the score, or null on failure

    loadText: (musicxml: string, name: string) => Score | null

    Load MusicXML text with a display name

    musicxml: string | null
    name: string | null
    score: Score | null
    takeScore: TakeScoreReference | undefined

    The loaded score as a TakeScoreReference, for TakeRecorder's score prop