Browse Source

Implement corrected note schema

main
Starbeamrainbowlabs 3 years ago
parent
commit
6cbf6d1aed
Signed by: sbrl GPG Key ID: 1BE5172E637709C2
  1. 3
      MusicBoxConverter/Help.txt
  2. 38
      MusicBoxConverter/MusicBox.cs
  3. 2
      MusicBoxConverter/Program.cs

3
MusicBoxConverter/Help.txt

@ -9,5 +9,6 @@ Usage:
Options:
-h --help Shows this help message.
-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.

38
MusicBoxConverter/MusicBox.cs

@ -83,36 +83,46 @@ namespace MusicBoxConverter
*
* F#3
* G3
* C4
* C4
* D4
* E4
* E4
* F4
* G4
* A5
* A#5
* B5
* G4
* A4
* A#4
* B4
* C5
* C#5
* C#5
* D5
* D#5
* E5
* F5
* F5
* F#5
* G5
* G#5
* A6
* A#6
* B6
* C6
* A5
* A#5
* B5
* C6
* C#6
* D6
* D6
* D#6
* E6
* F6
* 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>
/// A 30 note music box.
/// @Starbeamrainbowlabs has one of these - it was the part of the

2
MusicBoxConverter/Program.cs

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

Loading…
Cancel
Save