MCPcopy Create free account
hub / github.com/CoderLine/alphaTab / computeAccidental

Method computeAccidental

packages/alphatab/src/model/ModelUtils.ts:1035–1050  ·  view source on GitHub ↗
(
        keySignature: KeySignature,
        accidentalMode: NoteAccidentalMode,
        noteValue: number,
        quarterBend: boolean,
        currentAccidentalOffset: number | null = null
    )

Source from the content-addressed store, hash-verified

1033 }
1034
1035 public static computeAccidental(
1036 keySignature: KeySignature,
1037 accidentalMode: NoteAccidentalMode,
1038 noteValue: number,
1039 quarterBend: boolean,
1040 currentAccidentalOffset: number | null = null
1041 ) {
1042 const spelling = ModelUtils.resolveSpelling(keySignature, noteValue, accidentalMode);
1043 return ModelUtils.computeAccidentalForSpelling(
1044 keySignature,
1045 accidentalMode,
1046 spelling,
1047 quarterBend,
1048 currentAccidentalOffset
1049 );
1050 }
1051
1052 public static computeAccidentalForSpelling(
1053 keySignature: KeySignature,

Callers 2

readNoteMethod · 0.80
updatePartsMethod · 0.80

Calls 2

resolveSpellingMethod · 0.80

Tested by

no test coverage detected