a little problem with Sysex ?
The following example shall send a sysex message to MidiOut.
Program:
MiniHost (Examples => standalone => MinihostCore)
Insert: A button for test.
Code
Var
XG_ON: array[0..9] of byte =(9,$F0,$43,$10,$4c,$00,$00,$7e,$00,$F7);
procedure TFmMiniHost.Button1Click(Sender: TObject);
Var S : String;
i : integer;
begin
SetLength(S,9);
for i := 1 to 9 do S := char(XG_On);
MidiOutput.SendSysEx(CurrentMidiOut-1,S);
end;
I think this code is ok. The sysex message is ok, too.
But midioutput sends not a sysex message, but a wrong midi message.
That means, this button sends a message, but not a sysex message.
Is here a problem in the sysex function ?
Christian explains, this code is not testet.
with best regards
Norbert

