Interface Instrument<TString>

Represent a string instrument

interface Instrument<TString> {
    hardStretch: number;
    maxStretch: number;
    name: string;
    scaleLength: number;
    stops: number;
    strings: TString[];
    transposition?: number;
}

Type Parameters

Properties

hardStretch: number

Length in mm of a hard stretch (distance between fingers)

maxStretch: number

Maximum stretch length in mm

name: string

Name of the instrument

scaleLength: number

Length of the vibrating part of the open string

stops: number

Maximum number of semitones that can be stopped over the open string

strings: TString[]

Strings of the instrument

transposition?: number

If it is a transposing instrument, number of semitones to add to get the written note.