We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d160bd6 commit 363959bCopy full SHA for 363959b
2 files changed
packages/string-fingerings/fingerings.ts
@@ -83,7 +83,7 @@ function* stopsForString<TString extends InstrumentString>(
83
return
84
}
85
86
- if (stopIndex > instrument.stops) {
+ if (stopIndex > (instrumentString.stops ?? instrument.stops)) {
87
console.debug(`${noteName(noteNumber)} is too high to stop for ${instrumentString.name} string`)
88
89
else {
packages/string-fingerings/types.ts
@@ -22,6 +22,8 @@ export interface InstrumentString {
22
openNote: number
23
/** Additional open strings, as a MIDI number (for low range extensions) */
24
additionalOpenNotes?: number[]
25
+ /** Maximum number of semitones that can be stopped over the open string */
26
+ stops?: number
27
28
29
/** Represent a string instrument */
0 commit comments