|
@@ -56,7 +56,8 @@ export class MusicSheet /*implements ISettableMusicSheet, IComparable<MusicSheet
|
|
private timestampSortedDynamicExpressionsList: DynamicsContainer[] = [];
|
|
private timestampSortedDynamicExpressionsList: DynamicsContainer[] = [];
|
|
private timestampSortedTempoExpressionsList: MultiTempoExpression[] = [];
|
|
private timestampSortedTempoExpressionsList: MultiTempoExpression[] = [];
|
|
private instrumentalGroups: InstrumentalGroup[] = [];
|
|
private instrumentalGroups: InstrumentalGroup[] = [];
|
|
- private instruments: Instrument[] = [];
|
|
|
|
|
|
+ /** The parts in the sheet, e.g. piano left hand, or piano right hand, or violin. */
|
|
|
|
+ private instruments: Instrument[] = []; // Should be renamed from instruments to parts and part, though this will be a big refactor
|
|
private playbackSettings: PlaybackSettings;
|
|
private playbackSettings: PlaybackSettings;
|
|
private path: string;
|
|
private path: string;
|
|
private title: Label;
|
|
private title: Label;
|
|
@@ -116,7 +117,11 @@ export class MusicSheet /*implements ISettableMusicSheet, IComparable<MusicSheet
|
|
public get InstrumentalGroups(): InstrumentalGroup[] {
|
|
public get InstrumentalGroups(): InstrumentalGroup[] {
|
|
return this.instrumentalGroups;
|
|
return this.instrumentalGroups;
|
|
}
|
|
}
|
|
- public get Instruments(): Instrument[] {
|
|
|
|
|
|
+ public get Parts(): Instrument[] { // Instrument should be renamed to Part
|
|
|
|
+ return this.instruments;
|
|
|
|
+ }
|
|
|
|
+ public get Instruments(): Instrument[] { // deprecated
|
|
|
|
+ // this method name should remain for a while to maintain compatibility even when Instrument is renamed to Part
|
|
return this.instruments;
|
|
return this.instruments;
|
|
}
|
|
}
|
|
public get SheetPlaybackSetting(): PlaybackSettings {
|
|
public get SheetPlaybackSetting(): PlaybackSettings {
|