orpheus-osmd
Version:
An open source JavaScript engine for displaying MusicXML based on VexFlow.
8 lines (7 loc) • 440 B
TypeScript
import { Pitch } from "../../Common/DataObjects/Pitch";
import { KeyInstruction } from "../VoiceData/Instructions/KeyInstruction";
export interface ITransposeCalculator {
transposePitch(pitch: Pitch, currentKeyInstruction: KeyInstruction, halftones: number): Pitch;
transposeKey(keyInstruction: KeyInstruction, transpose: number): void;
getTransposedKeyString(keyInstruction: KeyInstruction, halftone: number): string;
}