mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
Fixed Pitch Bend not working correctly (#1190)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user