opensheetmusicdisplay/opensheetmusicdisplay

View on GitHub
src/MusicalScore/Interfaces/ITransposeCalculator.ts

Summary

Maintainability
A
0 mins
Test Coverage
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;
}