Browse Source

Update dependencies

main
Starbeamrainbowlabs 3 years ago
parent
commit
222b197bc6
Signed by: sbrl GPG Key ID: 1BE5172E637709C2
  1. 2
      MusicBoxConverter/MusicBox.cs
  2. 6
      MusicBoxConverter/MusicBoxConverter.csproj
  3. 2
      MusicBoxConverter/Utilities/NoteUtilities.cs
  4. 2
      MusicBoxConverter/packages.config

2
MusicBoxConverter/MusicBox.cs

@ -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 {

6
MusicBoxConverter/MusicBoxConverter.csproj

@ -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>

2
MusicBoxConverter/Utilities/NoteUtilities.cs

@ -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);
}
}

2
MusicBoxConverter/packages.config

@ -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>
Loading…
Cancel
Save