Fixed Pitch Bend not working correctly (#1190)

This commit is contained in:
Exp
2020-07-24 14:39:48 +02:00
committed by GitHub
parent 40a8dae236
commit d2d248a175

View File

@@ -27,7 +27,7 @@ namespace Robust.Shared.Audio.Midi
public byte Program { get; set; }
public byte Pitch { get; set; }
public short Pitch { get; set; } // needs range from 0 to 16383
public uint Tick { get; set; }
@@ -39,7 +39,7 @@ namespace Robust.Shared.Audio.Midi
Channel = (byte) midiEvent.Channel,
Control = (byte) midiEvent.Control,
Key = (byte) midiEvent.Key,
Pitch = (byte) midiEvent.Pitch,
Pitch = (short) midiEvent.Pitch,
Program = (byte) midiEvent.Program,
Value = (byte) midiEvent.Value,
Velocity = (byte) midiEvent.Velocity,