|
@@ -14,6 +14,16 @@ export class MetronomeInstrument implements ISettableInstrument {
|
|
|
public PitchMonitor: boolean;
|
|
|
public Highlight: boolean;
|
|
|
public Volume: number;
|
|
|
+ private preCountVolume: number;
|
|
|
+ public get PreCountVolume(): number {
|
|
|
+ if (this.preCountVolume >= 0) {
|
|
|
+ return this.preCountVolume;
|
|
|
+ }
|
|
|
+ return this.Volume; // if preCountVolume is undefined, use the main volume
|
|
|
+ }
|
|
|
+ public set PreCountVolume(value: number) {
|
|
|
+ this.preCountVolume = value;
|
|
|
+ }
|
|
|
public MidiInstrumentId: MidiInstrument;
|
|
|
public get Audible(): boolean {
|
|
|
return this.audible;
|