Compare commits

...

3 Commits

6 changed files with 9 additions and 7 deletions

2
.gitignore vendored
View File

@ -1,3 +1,5 @@
# Ghostwriter backup files
*.backup
# Created by https://www.gitignore.io/api/git,csharp,monodevelop,visualstudio

View File

@ -11,7 +11,7 @@ namespace MusicBoxConverter
/// <summary>
/// The height of a strip for this music box, in millimetres.
/// </summary>
public float StripHeightMm = 58.2f;
public float StripHeightMm = 58.19f;
public List<string> ValidNotes { get; private set; }
public Note LowestNote {

View File

@ -32,7 +32,7 @@
<Reference Include="System" />
<Reference Include="System.Xml" />
<Reference Include="Melanchall.DryWetMidi">
<HintPath>..\packages\Melanchall.DryWetMidi.2.0.1\lib\net45\Melanchall.DryWetMidi.dll</HintPath>
<HintPath>..\packages\Melanchall.DryWetMidi.4.0.0\lib\net45\Melanchall.DryWetMidi.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
@ -49,10 +49,10 @@
<Folder Include="Utilities\" />
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
<EmbeddedResource Include="Help.txt" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Help.txt" />
<None Include="packages.config" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
</Project>

View File

@ -17,7 +17,7 @@ namespace MusicBoxConverter
{
string noteLetter = Regex.Replace(note, "[0-9]", "").Replace("#", "Sharp");
int octave = int.Parse(Regex.Replace(note, "[^0-9]", ""));
NoteName noteName = (NoteName)Enum.Parse(typeof(NoteName), noteLetter);
Melanchall.DryWetMidi.MusicTheory.NoteName noteName = (Melanchall.DryWetMidi.MusicTheory.NoteName)Enum.Parse(typeof(Melanchall.DryWetMidi.MusicTheory.NoteName), noteLetter);
return new Note(noteName, octave);
}
}

View File

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Melanchall.DryWetMidi" version="2.0.1" targetFramework="net461" />
<package id="Melanchall.DryWetMidi" version="4.0.0" targetFramework="net461" />
</packages>

View File

@ -6,7 +6,7 @@
1. Export the MuseScore file to a MIDI file
2. Run the MIDI file through this program.
3. Open the resulting SVG in Inkscape
4. Print the SVG to PDF
4. Print the SVG to PDF (or `inkscape --export-pdf output.pdf input.svg`)
5. Open the resulting PDF in LibreOffice Draw
6. Print to your actual printer - tiling over multiple pages if required.