Implement corrected note schema

This commit is contained in:
Starbeamrainbowlabs 2019-02-22 00:47:53 +00:00
parent eeb11e1bf7
commit 6cbf6d1aed
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
3 changed files with 27 additions and 16 deletions

View File

@ -9,5 +9,6 @@ Usage:
Options: Options:
-h --help Shows this help message. -h --help Shows this help message.
-i --input {filename} Specifies the input midi file to convert. -i --input {filename} Specifies the input midi file to convert.
-o --output {filename} Specified the file path to output the SVG music box strip to. -o --output {filename} Specifies the file path to output the SVG music box strip to.
--box {Note30|Note30Corrected} The music box schema to use when rendering. Default: Note30.
--debug Activates additional debugging output. --debug Activates additional debugging output.

View File

@ -83,36 +83,46 @@ namespace MusicBoxConverter
* *
* F#3 * F#3
* G3 * G3
* C4 * C4
* D4 * D4
* E4 * E4
* F4 * F4
* G4 * G4
* A5 * A4
* A#5 * A#4
* B5 * B4
* C5 * C5
* C#5 * C#5
* D5 * D5
* D#5 * D#5
* E5 * E5
* F5 * F5
* F#5 * F#5
* G5 * G5
* G#5 * G#5
* A6 * A5
* A#6 * A#5
* B6 * B5
* C6 * C6
* C#6 * C#6
* D6 * D6
* D#6 * D#6
* E6 * E6
* F6 * F6
* G6 * G6
* A7 * A6
*/ */
public static MusicBox Note30Corrected = new MusicBox(
"30 Note Music Box (Corrected)",
new List<string>() {
"F#3", "G3",
"C4", "D4", "E4", "F4", "G4", "A4", "A#4", "B4",
"C5", "C#5", "D5", "D#5", "E5", "F5", "F#5", "G5", "G#5", "A5", "A#5", "B5",
"C6", "C#6", "D6", "D#6", "E6", "F6", "G6", "A6"
}
);
/// <summary> /// <summary>
/// A 30 note music box. /// A 30 note music box.
/// @Starbeamrainbowlabs has one of these - it was the part of the /// @Starbeamrainbowlabs has one of these - it was the part of the

View File

@ -71,7 +71,7 @@ namespace MusicBoxConverter
MusicBoxScoreGenerator converter = new MusicBoxScoreGenerator( MusicBoxScoreGenerator converter = new MusicBoxScoreGenerator(
inputFilename, inputFilename,
MusicBox.Note30 targetMusicBox
) { ) {
Debug = debug Debug = debug
}; };