Ejemplo n.º 1
0
        public void ClearPad()
        {
            MidiSysExMessage msg1 = new MidiSysExMessage(false, this._ped._outDevice.Device);

            msg1.CreateBuffer(new Byte[] { 240, 0, 32, 41, 9, 0, 247 });
            if (!this._ped._outDevice.Send(msg1))
            {
                Console.WriteLine("Error sending system-exclusive message!");
            }
            _ped.SendControlChange(176, 0, 0);
        }
Ejemplo n.º 2
0
        private void SendSysExBuffer(IntPtr handle, byte[] data)
        {
            MidiSysExMessage sysex = new MidiSysExMessage(true, handle);

            sysex.CreateBuffer(data);
            // If the header was perpared successfully.
            if (sysex.Prepare())
            {
                // send a system-exclusive message to the output device
                Midi.MIDI_OutLongMsg(handle, sysex.MessageAsIntPtr);
            }
        }
Ejemplo n.º 3
0
        public void DrawScrollingText(string text)
        {
            MidiSysExMessage msg1 = new MidiSysExMessage(false, this._ped._outDevice.Device);

            byte[] textbytes = Encoding.ASCII.GetBytes(text);
            byte[] start     = new byte[] { 240, 0, 32, 41, 9, 124 };
            byte[] end       = new byte[] { 247 };
            msg1.CreateBuffer(Helper.Combine(start, textbytes, end));
            if (!this._ped._outDevice.Send(msg1))
            {
                Console.WriteLine("Error sending system-exclusive message!");
            }
        }
Ejemplo n.º 4
0
 public static bool BASS_VST_ProcessEventRaw(int vstHandle, MidiSysExMessage msg)
 {
     return(BassVst.BASS_VST_ProcessEventRaw(vstHandle, msg.Message, msg.MessageLength));
 }