Esempio n. 1
0
 internal byte[] Encode()
 {
     return(new[]
     {
         StructHelper.StatusByte(Midi.Status.ChannelPressureBitmask, Channel),
         StructHelper.DataByte(Pressure)
     });
 }
 internal byte[] Encode()
 {
     return(new[]
     {
         StructHelper.StatusByte(Midi.Status.ProgramChangeBitmask, Channel),
         StructHelper.DataByte(Program)
     });
 }
 internal byte[] Encode()
 {
     return(new[]
     {
         StructHelper.StatusByte(Midi.Status.ControlChangeBitmask, Channel),
         StructHelper.DataByte(Control),
         StructHelper.DataByte(Value)
     });
 }
Esempio n. 4
0
 internal byte[] Encode()
 {
     return(new[]
     {
         StructHelper.StatusByte(Midi.Status.NoteOnBitmask, Channel),
         StructHelper.DataByte(Key),
         StructHelper.DataByte(Velocity)
     });
 }
Esempio n. 5
0
 internal byte[] Encode()
 {
     return(new[]
     {
         StructHelper.StatusByte(Midi.Status.PitchBendChange, Channel),
         StructHelper.DataByte(Value),
         StructHelper.DataByte(Value >> 7)
     });
 }