|
@@ -4,39 +4,39 @@ import {ArgumentOutOfRangeException} from "../../Exceptions";
|
|
|
import {Fraction} from "../../../Common/DataObjects/Fraction";
|
|
|
import {MultiTempoExpression} from "./MultiTempoExpression";
|
|
|
|
|
|
-export class InstantaniousTempoExpression extends AbstractTempoExpression {
|
|
|
+export class InstantaneousTempoExpression extends AbstractTempoExpression {
|
|
|
constructor(label: string, placement: PlacementEnum, staffNumber: number,
|
|
|
soundTempo: number, parentMultiTempoExpression: MultiTempoExpression, isMetronomeMark: boolean = false) {
|
|
|
super(label, placement, staffNumber, parentMultiTempoExpression);
|
|
|
this.setTempoAndTempoType(soundTempo);
|
|
|
}
|
|
|
- private static listInstantaniousTempoLarghissimo: string[] = ["Larghissimo", "Sehr breit", "very, very slow"]; // }), TempoEnum.larghissimo);
|
|
|
- private static listInstantaniousTempoGrave: string[] = ["Grave", "Schwer", "slow and solemn"]; // }), TempoEnum.grave);
|
|
|
- private static listInstantaniousTempoLento: string[] = ["Lento", "Lent", "Langsam", "slowly"]; // }), TempoEnum.lento);
|
|
|
- private static listInstantaniousTempoLargo: string[] = ["Largo", "Breit", "broadly"]; // }), TempoEnum.largo);
|
|
|
- private static listInstantaniousTempoLarghetto: string[] = ["Larghetto", "Etwas breit", "rather broadly"]; // }), TempoEnum.larghetto);
|
|
|
- private static listInstantaniousTempoAdagio: string[] = ["Adagio", "Langsam", "Ruhig", "slow and stately"]; // }), TempoEnum.adagio);
|
|
|
- private static listInstantaniousTempoAdagietto: string[] = ["Adagietto", "Ziemlich ruhig", "Ziemlich langsam", "rather slow"]; // }), TempoEnum.adagietto);
|
|
|
- private static listInstantaniousTempoAndanteModerato: string[] = ["Andante moderato"]; // }), TempoEnum.andanteModerato);
|
|
|
- private static listInstantaniousTempoAndante: string[] = ["Andante", "Gehend", "Schreitend", "at a walking pace"]; // }), TempoEnum.andante);
|
|
|
- private static listInstantaniousTempoAndantino: string[] = ["Andantino"]; // }), TempoEnum.andantino);
|
|
|
- private static listInstantaniousTempoModerato: string[] = ["Moderato", "M��ig", "Mod�r�", "moderately"]; // }), TempoEnum.moderato);
|
|
|
- private static listInstantaniousTempoAllegretto: string[] = ["Allegretto", "fast"]; // }), TempoEnum.allegretto);
|
|
|
- private static listInstantaniousTempoAllegroModerato: string[] = ["Allegro moderato"]; // }), TempoEnum.allegroModerato);
|
|
|
- private static listInstantaniousTempoAllegro: string[] = ["Allegro", "Rapide", "Vite", "Rasch", "Schnell", "Fr�hlich"]; // }), TempoEnum.allegro);
|
|
|
- private static listInstantaniousTempoVivace: string[] = ["Vivace", "Lebhaft", "Lebendig", "lively and fast"]; // }), TempoEnum.vivace);
|
|
|
- private static listInstantaniousTempoVivacissimo: string[] = ["Vivacissimo", "Sehr lebhaft", "Sehr lebendig"]; // }), TempoEnum.vivacissimo);
|
|
|
- private static listInstantaniousTempoAllegrissimo: string[] = ["Allegrissimo", "very fast"]; // }), TempoEnum.allegrissimo);
|
|
|
- private static listInstantaniousTempoPresto: string[] = ["Presto", "Sehr schnell", "Geschwind"]; // }), TempoEnum.presto);
|
|
|
- private static listInstantaniousTempoPrestissimo: string[] = ["Prestissimo", "�u�erst schnell"]; // }), TempoEnum.prestissimo);
|
|
|
- private static listInstantaniousTempoChangesGeneral: string[] = [
|
|
|
+ private static listInstantaneousTempoLarghissimo: string[] = ["Larghissimo", "Sehr breit", "very, very slow"]; // }), TempoEnum.larghissimo);
|
|
|
+ private static listInstantaneousTempoGrave: string[] = ["Grave", "Schwer", "slow and solemn"]; // }), TempoEnum.grave);
|
|
|
+ private static listInstantaneousTempoLento: string[] = ["Lento", "Lent", "Langsam", "slowly"]; // }), TempoEnum.lento);
|
|
|
+ private static listInstantaneousTempoLargo: string[] = ["Largo", "Breit", "broadly"]; // }), TempoEnum.largo);
|
|
|
+ private static listInstantaneousTempoLarghetto: string[] = ["Larghetto", "Etwas breit", "rather broadly"]; // }), TempoEnum.larghetto);
|
|
|
+ private static listInstantaneousTempoAdagio: string[] = ["Adagio", "Langsam", "Ruhig", "slow and stately"]; // }), TempoEnum.adagio);
|
|
|
+ private static listInstantaneousTempoAdagietto: string[] = ["Adagietto", "Ziemlich ruhig", "Ziemlich langsam", "rather slow"]; // }), TempoEnum.adagietto);
|
|
|
+ private static listInstantaneousTempoAndanteModerato: string[] = ["Andante moderato"]; // }), TempoEnum.andanteModerato);
|
|
|
+ private static listInstantaneousTempoAndante: string[] = ["Andante", "Gehend", "Schreitend", "at a walking pace"]; // }), TempoEnum.andante);
|
|
|
+ private static listInstantaneousTempoAndantino: string[] = ["Andantino"]; // }), TempoEnum.andantino);
|
|
|
+ private static listInstantaneousTempoModerato: string[] = ["Moderato", "M��ig", "Mod�r�", "moderately"]; // }), TempoEnum.moderato);
|
|
|
+ private static listInstantaneousTempoAllegretto: string[] = ["Allegretto", "fast"]; // }), TempoEnum.allegretto);
|
|
|
+ private static listInstantaneousTempoAllegroModerato: string[] = ["Allegro moderato"]; // }), TempoEnum.allegroModerato);
|
|
|
+ private static listInstantaneousTempoAllegro: string[] = ["Allegro", "Rapide", "Vite", "Rasch", "Schnell", "Fr�hlich"]; // }), TempoEnum.allegro);
|
|
|
+ private static listInstantaneousTempoVivace: string[] = ["Vivace", "Lebhaft", "Lebendig", "lively and fast"]; // }), TempoEnum.vivace);
|
|
|
+ private static listInstantaneousTempoVivacissimo: string[] = ["Vivacissimo", "Sehr lebhaft", "Sehr lebendig"]; // }), TempoEnum.vivacissimo);
|
|
|
+ private static listInstantaneousTempoAllegrissimo: string[] = ["Allegrissimo", "very fast"]; // }), TempoEnum.allegrissimo);
|
|
|
+ private static listInstantaneousTempoPresto: string[] = ["Presto", "Sehr schnell", "Geschwind"]; // }), TempoEnum.presto);
|
|
|
+ private static listInstantaneousTempoPrestissimo: string[] = ["Prestissimo", "�u�erst schnell"]; // }), TempoEnum.prestissimo);
|
|
|
+ private static listInstantaneousTempoChangesGeneral: string[] = [
|
|
|
"tempo primo",
|
|
|
"a tempo",
|
|
|
"tempo i",
|
|
|
"rubato",
|
|
|
"doppio movimento",
|
|
|
];
|
|
|
- private static listInstantaniousTempoAddons: string[] = [
|
|
|
+ private static listInstantaneousTempoAddons: string[] = [
|
|
|
"assai",
|
|
|
"amoroso",
|
|
|
"cantabile",
|
|
@@ -127,11 +127,11 @@ export class InstantaniousTempoExpression extends AbstractTempoExpression {
|
|
|
// Must refactor: In c# use 'out' arguments
|
|
|
//private findTempoEnum(inputString: string, pre: string, post: string): TempoEnum {
|
|
|
// let result: TempoEnum = this.splitStringAfterInstructionWord(inputString,
|
|
|
- // InstantaniousTempoExpression.listInstantaniousTempoLarghissimo, TempoEnum.larghissimo, pre,
|
|
|
+ // InstantaneousTempoExpression.listInstantaneousTempoLarghissimo, TempoEnum.larghissimo, pre,
|
|
|
// post);
|
|
|
// if (result !== TempoEnum.none)
|
|
|
// return result;
|
|
|
- // result = this.splitStringAfterInstructionWord(inputString, InstantaniousTempoExpression.listInstantaniousTempoGrave, TempoEnum.grave, pre,
|
|
|
+ // result = this.splitStringAfterInstructionWord(inputString, InstantaneousTempoExpression.listInstantaneousTempoGrave, TempoEnum.grave, pre,
|
|
|
// post);
|
|
|
// if (result !== TempoEnum.none)
|
|
|
// return result;
|
|
@@ -198,29 +198,29 @@ export class InstantaniousTempoExpression extends AbstractTempoExpression {
|
|
|
throw new ArgumentOutOfRangeException("tempoEnum");
|
|
|
}
|
|
|
}
|
|
|
- public static isInputStringInstantaniousTempo(inputString: string): boolean {
|
|
|
+ public static isInputStringInstantaneousTempo(inputString: string): boolean {
|
|
|
if (inputString === undefined) { return false; }
|
|
|
return (
|
|
|
- (InstantaniousTempoExpression.isStringInStringList(InstantaniousTempoExpression.listInstantaniousTempoLarghissimo, inputString))
|
|
|
- || (InstantaniousTempoExpression.isStringInStringList(InstantaniousTempoExpression.listInstantaniousTempoGrave, inputString))
|
|
|
- || (InstantaniousTempoExpression.isStringInStringList(InstantaniousTempoExpression.listInstantaniousTempoLento, inputString))
|
|
|
- || (InstantaniousTempoExpression.isStringInStringList(InstantaniousTempoExpression.listInstantaniousTempoLargo, inputString))
|
|
|
- || (InstantaniousTempoExpression.isStringInStringList(InstantaniousTempoExpression.listInstantaniousTempoLarghetto, inputString))
|
|
|
- || (InstantaniousTempoExpression.isStringInStringList(InstantaniousTempoExpression.listInstantaniousTempoAdagio, inputString))
|
|
|
- || (InstantaniousTempoExpression.isStringInStringList(InstantaniousTempoExpression.listInstantaniousTempoAdagietto, inputString))
|
|
|
- || (InstantaniousTempoExpression.isStringInStringList(InstantaniousTempoExpression.listInstantaniousTempoAndanteModerato, inputString))
|
|
|
- || (InstantaniousTempoExpression.isStringInStringList(InstantaniousTempoExpression.listInstantaniousTempoAndante, inputString))
|
|
|
- || (InstantaniousTempoExpression.isStringInStringList(InstantaniousTempoExpression.listInstantaniousTempoAndantino, inputString))
|
|
|
- || (InstantaniousTempoExpression.isStringInStringList(InstantaniousTempoExpression.listInstantaniousTempoModerato, inputString))
|
|
|
- || (InstantaniousTempoExpression.isStringInStringList(InstantaniousTempoExpression.listInstantaniousTempoAllegretto, inputString))
|
|
|
- || (InstantaniousTempoExpression.isStringInStringList(InstantaniousTempoExpression.listInstantaniousTempoAllegroModerato, inputString))
|
|
|
- || (InstantaniousTempoExpression.isStringInStringList(InstantaniousTempoExpression.listInstantaniousTempoAllegro, inputString))
|
|
|
- || (InstantaniousTempoExpression.isStringInStringList(InstantaniousTempoExpression.listInstantaniousTempoVivace, inputString))
|
|
|
- || (InstantaniousTempoExpression.isStringInStringList(InstantaniousTempoExpression.listInstantaniousTempoVivacissimo, inputString))
|
|
|
- || (InstantaniousTempoExpression.isStringInStringList(InstantaniousTempoExpression.listInstantaniousTempoAllegrissimo, inputString))
|
|
|
- || (InstantaniousTempoExpression.isStringInStringList(InstantaniousTempoExpression.listInstantaniousTempoPresto, inputString))
|
|
|
- || (InstantaniousTempoExpression.isStringInStringList(InstantaniousTempoExpression.listInstantaniousTempoPrestissimo, inputString))
|
|
|
- || (InstantaniousTempoExpression.isStringInStringList(InstantaniousTempoExpression.listInstantaniousTempoChangesGeneral, inputString))
|
|
|
+ (InstantaneousTempoExpression.isStringInStringList(InstantaneousTempoExpression.listInstantaneousTempoLarghissimo, inputString))
|
|
|
+ || (InstantaneousTempoExpression.isStringInStringList(InstantaneousTempoExpression.listInstantaneousTempoGrave, inputString))
|
|
|
+ || (InstantaneousTempoExpression.isStringInStringList(InstantaneousTempoExpression.listInstantaneousTempoLento, inputString))
|
|
|
+ || (InstantaneousTempoExpression.isStringInStringList(InstantaneousTempoExpression.listInstantaneousTempoLargo, inputString))
|
|
|
+ || (InstantaneousTempoExpression.isStringInStringList(InstantaneousTempoExpression.listInstantaneousTempoLarghetto, inputString))
|
|
|
+ || (InstantaneousTempoExpression.isStringInStringList(InstantaneousTempoExpression.listInstantaneousTempoAdagio, inputString))
|
|
|
+ || (InstantaneousTempoExpression.isStringInStringList(InstantaneousTempoExpression.listInstantaneousTempoAdagietto, inputString))
|
|
|
+ || (InstantaneousTempoExpression.isStringInStringList(InstantaneousTempoExpression.listInstantaneousTempoAndanteModerato, inputString))
|
|
|
+ || (InstantaneousTempoExpression.isStringInStringList(InstantaneousTempoExpression.listInstantaneousTempoAndante, inputString))
|
|
|
+ || (InstantaneousTempoExpression.isStringInStringList(InstantaneousTempoExpression.listInstantaneousTempoAndantino, inputString))
|
|
|
+ || (InstantaneousTempoExpression.isStringInStringList(InstantaneousTempoExpression.listInstantaneousTempoModerato, inputString))
|
|
|
+ || (InstantaneousTempoExpression.isStringInStringList(InstantaneousTempoExpression.listInstantaneousTempoAllegretto, inputString))
|
|
|
+ || (InstantaneousTempoExpression.isStringInStringList(InstantaneousTempoExpression.listInstantaneousTempoAllegroModerato, inputString))
|
|
|
+ || (InstantaneousTempoExpression.isStringInStringList(InstantaneousTempoExpression.listInstantaneousTempoAllegro, inputString))
|
|
|
+ || (InstantaneousTempoExpression.isStringInStringList(InstantaneousTempoExpression.listInstantaneousTempoVivace, inputString))
|
|
|
+ || (InstantaneousTempoExpression.isStringInStringList(InstantaneousTempoExpression.listInstantaneousTempoVivacissimo, inputString))
|
|
|
+ || (InstantaneousTempoExpression.isStringInStringList(InstantaneousTempoExpression.listInstantaneousTempoAllegrissimo, inputString))
|
|
|
+ || (InstantaneousTempoExpression.isStringInStringList(InstantaneousTempoExpression.listInstantaneousTempoPresto, inputString))
|
|
|
+ || (InstantaneousTempoExpression.isStringInStringList(InstantaneousTempoExpression.listInstantaneousTempoPrestissimo, inputString))
|
|
|
+ || (InstantaneousTempoExpression.isStringInStringList(InstantaneousTempoExpression.listInstantaneousTempoChangesGeneral, inputString))
|
|
|
);
|
|
|
}
|
|
|
|
|
@@ -261,164 +261,164 @@ export class InstantaniousTempoExpression extends AbstractTempoExpression {
|
|
|
return Fraction.plus(this.ParentMultiTempoExpression.SourceMeasureParent.AbsoluteTimestamp, this.ParentMultiTempoExpression.Timestamp).RealValue;
|
|
|
}
|
|
|
private setTempoAndTempoType(soundTempo: number): void {
|
|
|
- if (InstantaniousTempoExpression.isStringInStringList(InstantaniousTempoExpression.listInstantaniousTempoLarghissimo, this.label)) {
|
|
|
+ if (InstantaneousTempoExpression.isStringInStringList(InstantaneousTempoExpression.listInstantaneousTempoLarghissimo, this.label)) {
|
|
|
if (soundTempo === 0) {
|
|
|
- soundTempo = InstantaniousTempoExpression.getDefaultValueForTempoType(TempoEnum.larghissimo);
|
|
|
+ soundTempo = InstantaneousTempoExpression.getDefaultValueForTempoType(TempoEnum.larghissimo);
|
|
|
}
|
|
|
this.tempoInBpm = soundTempo;
|
|
|
this.tempoEnum = TempoEnum.larghissimo;
|
|
|
return;
|
|
|
}
|
|
|
- if (InstantaniousTempoExpression.isStringInStringList(InstantaniousTempoExpression.listInstantaniousTempoGrave, this.label)) {
|
|
|
+ if (InstantaneousTempoExpression.isStringInStringList(InstantaneousTempoExpression.listInstantaneousTempoGrave, this.label)) {
|
|
|
if (soundTempo === 0) {
|
|
|
- soundTempo = InstantaniousTempoExpression.getDefaultValueForTempoType(TempoEnum.grave);
|
|
|
+ soundTempo = InstantaneousTempoExpression.getDefaultValueForTempoType(TempoEnum.grave);
|
|
|
}
|
|
|
this.tempoInBpm = soundTempo;
|
|
|
this.tempoEnum = TempoEnum.grave;
|
|
|
return;
|
|
|
}
|
|
|
- if (InstantaniousTempoExpression.isStringInStringList(InstantaniousTempoExpression.listInstantaniousTempoLento, this.label)) {
|
|
|
+ if (InstantaneousTempoExpression.isStringInStringList(InstantaneousTempoExpression.listInstantaneousTempoLento, this.label)) {
|
|
|
if (soundTempo === 0) {
|
|
|
- soundTempo = InstantaniousTempoExpression.getDefaultValueForTempoType(TempoEnum.lento);
|
|
|
+ soundTempo = InstantaneousTempoExpression.getDefaultValueForTempoType(TempoEnum.lento);
|
|
|
}
|
|
|
this.tempoInBpm = soundTempo;
|
|
|
this.tempoEnum = TempoEnum.lento;
|
|
|
return;
|
|
|
}
|
|
|
- if (InstantaniousTempoExpression.isStringInStringList(InstantaniousTempoExpression.listInstantaniousTempoLargo, this.label)) {
|
|
|
+ if (InstantaneousTempoExpression.isStringInStringList(InstantaneousTempoExpression.listInstantaneousTempoLargo, this.label)) {
|
|
|
if (soundTempo === 0) {
|
|
|
- soundTempo = InstantaniousTempoExpression.getDefaultValueForTempoType(TempoEnum.largo);
|
|
|
+ soundTempo = InstantaneousTempoExpression.getDefaultValueForTempoType(TempoEnum.largo);
|
|
|
}
|
|
|
this.tempoInBpm = soundTempo;
|
|
|
this.tempoEnum = TempoEnum.largo;
|
|
|
return;
|
|
|
}
|
|
|
- if (InstantaniousTempoExpression.isStringInStringList(InstantaniousTempoExpression.listInstantaniousTempoLarghetto, this.label)) {
|
|
|
+ if (InstantaneousTempoExpression.isStringInStringList(InstantaneousTempoExpression.listInstantaneousTempoLarghetto, this.label)) {
|
|
|
if (soundTempo === 0) {
|
|
|
- soundTempo = InstantaniousTempoExpression.getDefaultValueForTempoType(TempoEnum.larghetto);
|
|
|
+ soundTempo = InstantaneousTempoExpression.getDefaultValueForTempoType(TempoEnum.larghetto);
|
|
|
}
|
|
|
this.tempoInBpm = soundTempo;
|
|
|
this.tempoEnum = TempoEnum.larghetto;
|
|
|
return;
|
|
|
}
|
|
|
- if (InstantaniousTempoExpression.isStringInStringList(InstantaniousTempoExpression.listInstantaniousTempoAdagio, this.label)) {
|
|
|
+ if (InstantaneousTempoExpression.isStringInStringList(InstantaneousTempoExpression.listInstantaneousTempoAdagio, this.label)) {
|
|
|
if (soundTempo === 0) {
|
|
|
- soundTempo = InstantaniousTempoExpression.getDefaultValueForTempoType(TempoEnum.adagio);
|
|
|
+ soundTempo = InstantaneousTempoExpression.getDefaultValueForTempoType(TempoEnum.adagio);
|
|
|
}
|
|
|
this.tempoInBpm = soundTempo;
|
|
|
this.tempoEnum = TempoEnum.adagio;
|
|
|
return;
|
|
|
}
|
|
|
- if (InstantaniousTempoExpression.isStringInStringList(InstantaniousTempoExpression.listInstantaniousTempoAdagietto, this.label)) {
|
|
|
+ if (InstantaneousTempoExpression.isStringInStringList(InstantaneousTempoExpression.listInstantaneousTempoAdagietto, this.label)) {
|
|
|
if (soundTempo === 0) {
|
|
|
- soundTempo = InstantaniousTempoExpression.getDefaultValueForTempoType(TempoEnum.adagietto);
|
|
|
+ soundTempo = InstantaneousTempoExpression.getDefaultValueForTempoType(TempoEnum.adagietto);
|
|
|
}
|
|
|
this.tempoInBpm = soundTempo;
|
|
|
this.tempoEnum = TempoEnum.adagietto;
|
|
|
return;
|
|
|
}
|
|
|
- if (InstantaniousTempoExpression.isStringInStringList(InstantaniousTempoExpression.listInstantaniousTempoAndanteModerato, this.label)) {
|
|
|
+ if (InstantaneousTempoExpression.isStringInStringList(InstantaneousTempoExpression.listInstantaneousTempoAndanteModerato, this.label)) {
|
|
|
if (soundTempo === 0) {
|
|
|
- soundTempo = InstantaniousTempoExpression.getDefaultValueForTempoType(TempoEnum.andanteModerato);
|
|
|
+ soundTempo = InstantaneousTempoExpression.getDefaultValueForTempoType(TempoEnum.andanteModerato);
|
|
|
}
|
|
|
this.tempoInBpm = soundTempo;
|
|
|
this.tempoEnum = TempoEnum.andanteModerato;
|
|
|
return;
|
|
|
}
|
|
|
- if (InstantaniousTempoExpression.isStringInStringList(InstantaniousTempoExpression.listInstantaniousTempoAndante, this.label)) {
|
|
|
+ if (InstantaneousTempoExpression.isStringInStringList(InstantaneousTempoExpression.listInstantaneousTempoAndante, this.label)) {
|
|
|
if (soundTempo === 0) {
|
|
|
- soundTempo = InstantaniousTempoExpression.getDefaultValueForTempoType(TempoEnum.andante);
|
|
|
+ soundTempo = InstantaneousTempoExpression.getDefaultValueForTempoType(TempoEnum.andante);
|
|
|
}
|
|
|
this.tempoInBpm = soundTempo;
|
|
|
this.tempoEnum = TempoEnum.andante;
|
|
|
return;
|
|
|
}
|
|
|
- if (InstantaniousTempoExpression.isStringInStringList(InstantaniousTempoExpression.listInstantaniousTempoAndantino, this.label)) {
|
|
|
+ if (InstantaneousTempoExpression.isStringInStringList(InstantaneousTempoExpression.listInstantaneousTempoAndantino, this.label)) {
|
|
|
if (soundTempo === 0) {
|
|
|
- soundTempo = InstantaniousTempoExpression.getDefaultValueForTempoType(TempoEnum.andantino);
|
|
|
+ soundTempo = InstantaneousTempoExpression.getDefaultValueForTempoType(TempoEnum.andantino);
|
|
|
}
|
|
|
this.tempoInBpm = soundTempo;
|
|
|
this.tempoEnum = TempoEnum.andantino;
|
|
|
return;
|
|
|
}
|
|
|
- if (InstantaniousTempoExpression.isStringInStringList(InstantaniousTempoExpression.listInstantaniousTempoModerato, this.label)) {
|
|
|
+ if (InstantaneousTempoExpression.isStringInStringList(InstantaneousTempoExpression.listInstantaneousTempoModerato, this.label)) {
|
|
|
if (soundTempo === 0) {
|
|
|
- soundTempo = InstantaniousTempoExpression.getDefaultValueForTempoType(TempoEnum.moderato);
|
|
|
+ soundTempo = InstantaneousTempoExpression.getDefaultValueForTempoType(TempoEnum.moderato);
|
|
|
}
|
|
|
this.tempoInBpm = soundTempo;
|
|
|
this.tempoEnum = TempoEnum.moderato;
|
|
|
return;
|
|
|
}
|
|
|
- if (InstantaniousTempoExpression.isStringInStringList(InstantaniousTempoExpression.listInstantaniousTempoAllegretto, this.label)) {
|
|
|
+ if (InstantaneousTempoExpression.isStringInStringList(InstantaneousTempoExpression.listInstantaneousTempoAllegretto, this.label)) {
|
|
|
if (soundTempo === 0) {
|
|
|
- soundTempo = InstantaniousTempoExpression.getDefaultValueForTempoType(TempoEnum.allegretto);
|
|
|
+ soundTempo = InstantaneousTempoExpression.getDefaultValueForTempoType(TempoEnum.allegretto);
|
|
|
}
|
|
|
this.tempoInBpm = soundTempo;
|
|
|
this.tempoEnum = TempoEnum.allegretto;
|
|
|
return;
|
|
|
}
|
|
|
- if (InstantaniousTempoExpression.isStringInStringList(InstantaniousTempoExpression.listInstantaniousTempoAllegroModerato, this.label)) {
|
|
|
+ if (InstantaneousTempoExpression.isStringInStringList(InstantaneousTempoExpression.listInstantaneousTempoAllegroModerato, this.label)) {
|
|
|
if (soundTempo === 0) {
|
|
|
- soundTempo = InstantaniousTempoExpression.getDefaultValueForTempoType(TempoEnum.allegroModerato);
|
|
|
+ soundTempo = InstantaneousTempoExpression.getDefaultValueForTempoType(TempoEnum.allegroModerato);
|
|
|
}
|
|
|
this.tempoInBpm = soundTempo;
|
|
|
this.tempoEnum = TempoEnum.allegroModerato;
|
|
|
return;
|
|
|
}
|
|
|
- if (InstantaniousTempoExpression.isStringInStringList(InstantaniousTempoExpression.listInstantaniousTempoAllegro, this.label)) {
|
|
|
+ if (InstantaneousTempoExpression.isStringInStringList(InstantaneousTempoExpression.listInstantaneousTempoAllegro, this.label)) {
|
|
|
if (soundTempo === 0) {
|
|
|
- soundTempo = InstantaniousTempoExpression.getDefaultValueForTempoType(TempoEnum.allegro);
|
|
|
+ soundTempo = InstantaneousTempoExpression.getDefaultValueForTempoType(TempoEnum.allegro);
|
|
|
}
|
|
|
this.tempoInBpm = soundTempo;
|
|
|
this.tempoEnum = TempoEnum.allegro;
|
|
|
return;
|
|
|
}
|
|
|
- if (InstantaniousTempoExpression.isStringInStringList(InstantaniousTempoExpression.listInstantaniousTempoVivace, this.label)) {
|
|
|
+ if (InstantaneousTempoExpression.isStringInStringList(InstantaneousTempoExpression.listInstantaneousTempoVivace, this.label)) {
|
|
|
if (soundTempo === 0) {
|
|
|
- soundTempo = InstantaniousTempoExpression.getDefaultValueForTempoType(TempoEnum.vivace);
|
|
|
+ soundTempo = InstantaneousTempoExpression.getDefaultValueForTempoType(TempoEnum.vivace);
|
|
|
}
|
|
|
this.tempoInBpm = soundTempo;
|
|
|
this.tempoEnum = TempoEnum.vivace;
|
|
|
return;
|
|
|
}
|
|
|
- if (InstantaniousTempoExpression.isStringInStringList(InstantaniousTempoExpression.listInstantaniousTempoVivacissimo, this.label)) {
|
|
|
+ if (InstantaneousTempoExpression.isStringInStringList(InstantaneousTempoExpression.listInstantaneousTempoVivacissimo, this.label)) {
|
|
|
if (soundTempo === 0) {
|
|
|
- soundTempo = InstantaniousTempoExpression.getDefaultValueForTempoType(TempoEnum.vivacissimo);
|
|
|
+ soundTempo = InstantaneousTempoExpression.getDefaultValueForTempoType(TempoEnum.vivacissimo);
|
|
|
}
|
|
|
this.tempoInBpm = soundTempo;
|
|
|
this.tempoEnum = TempoEnum.vivacissimo;
|
|
|
return;
|
|
|
}
|
|
|
- if (InstantaniousTempoExpression.isStringInStringList(InstantaniousTempoExpression.listInstantaniousTempoAllegrissimo, this.label)) {
|
|
|
+ if (InstantaneousTempoExpression.isStringInStringList(InstantaneousTempoExpression.listInstantaneousTempoAllegrissimo, this.label)) {
|
|
|
if (soundTempo === 0) {
|
|
|
- soundTempo = InstantaniousTempoExpression.getDefaultValueForTempoType(TempoEnum.allegrissimo);
|
|
|
+ soundTempo = InstantaneousTempoExpression.getDefaultValueForTempoType(TempoEnum.allegrissimo);
|
|
|
}
|
|
|
this.tempoInBpm = soundTempo;
|
|
|
this.tempoEnum = TempoEnum.allegrissimo;
|
|
|
return;
|
|
|
}
|
|
|
- if (InstantaniousTempoExpression.isStringInStringList(InstantaniousTempoExpression.listInstantaniousTempoPresto, this.label)) {
|
|
|
+ if (InstantaneousTempoExpression.isStringInStringList(InstantaneousTempoExpression.listInstantaneousTempoPresto, this.label)) {
|
|
|
if (soundTempo === 0) {
|
|
|
- soundTempo = InstantaniousTempoExpression.getDefaultValueForTempoType(TempoEnum.presto);
|
|
|
+ soundTempo = InstantaneousTempoExpression.getDefaultValueForTempoType(TempoEnum.presto);
|
|
|
}
|
|
|
this.tempoInBpm = soundTempo;
|
|
|
this.tempoEnum = TempoEnum.presto;
|
|
|
return;
|
|
|
}
|
|
|
- if (InstantaniousTempoExpression.isStringInStringList(InstantaniousTempoExpression.listInstantaniousTempoPrestissimo, this.label)) {
|
|
|
+ if (InstantaneousTempoExpression.isStringInStringList(InstantaneousTempoExpression.listInstantaneousTempoPrestissimo, this.label)) {
|
|
|
if (soundTempo === 0) {
|
|
|
- soundTempo = InstantaniousTempoExpression.getDefaultValueForTempoType(TempoEnum.prestissimo);
|
|
|
+ soundTempo = InstantaneousTempoExpression.getDefaultValueForTempoType(TempoEnum.prestissimo);
|
|
|
}
|
|
|
this.tempoInBpm = soundTempo;
|
|
|
this.tempoEnum = TempoEnum.prestissimo;
|
|
|
return;
|
|
|
}
|
|
|
- if (InstantaniousTempoExpression.isStringInStringList(InstantaniousTempoExpression.listInstantaniousTempoAddons, this.label)) {
|
|
|
+ if (InstantaneousTempoExpression.isStringInStringList(InstantaneousTempoExpression.listInstantaneousTempoAddons, this.label)) {
|
|
|
this.tempoInBpm = 0;
|
|
|
this.tempoEnum = TempoEnum.addon;
|
|
|
return;
|
|
|
}
|
|
|
- if (InstantaniousTempoExpression.isStringInStringList(InstantaniousTempoExpression.listInstantaniousTempoChangesGeneral, this.label)) {
|
|
|
+ if (InstantaneousTempoExpression.isStringInStringList(InstantaneousTempoExpression.listInstantaneousTempoChangesGeneral, this.label)) {
|
|
|
this.tempoInBpm = 0;
|
|
|
this.tempoEnum = TempoEnum.changes;
|
|
|
return;
|