VOGONS


Reply 2760 of 2780, by Falcosoft

User metadata
Rank l33t
Rank
l33t
M-HT wrote on 2026-11-05, 13:38:
I recorded received midi events in MidiPlayer using Event Viewer and compared it to the original midi file. Some sysex events we […]
Show full quote

I recorded received midi events in MidiPlayer using Event Viewer and compared it to the original midi file.
Some sysex events were missing from the recording. When I added them, then it played correctly.
The missing sysex events had the same timestamp as another sysex event.

These events have the same timestamp and the second one is missing in the recording.
F0411016122000002020205363756D6D564D20322E392E3020202061F7
F0411016127F000001F7

These events have the same timestamp and the 2nd, 3rd, 4th, 5th and 6th events are missing in the recording (the 1st, 7th and 8th event are in the recording).
F041101612050008000073F7
F041101612050010010D5DF7
F04110161205001801273BF7
F041101612050020000952F7
F04110161205002801282AF7
F041101612050030010149F7
F041101612050038002023F7
F041101612050040012E0CF7

I have done the exact same experiment on Windows with WMP as the main Midi playing app. I could get all SysEx events from Scummvm.mid played by WMP using Event Viewer:

The attachment FSMP_Rec.jpg is no longer available

So it seems the Wine Midi handling layer skips some SysEx messages that are sent at the exact same deltaTime for unknown reasons. It think this should be reported to Wine.
Last time the bug report of realnc was processed rather fast.

Website, Youtube
Falcosoft Soundfont Midi Player + Munt VSTi + BassMidi VSTi
VST Midi Driver Midi Mapper
x86 microarchitecture benchmark (MandelX)

Reply 2761 of 2780, by Falcosoft

User metadata
Rank l33t
Rank
l33t

BTW, a new test version of FSMP is available that besides some fixes related to the newly released S-MU2000 and S-YXGxx plugins uses a new VST2 Bridge solution instead of JBridge:
VST2Bridge
Contrary to JBridge it is open source and completely free and actually also much more stable. No installation is required, all necessary components are included in the test package.
This way any kind of VST2 plugins with any bit-ness can be used with both the x86 and x64 versions of FSMP.
You should simply copy all files from the test package to your existing MidiPlayer6 folder. Be aware of the correct bit-ness!

https://falcosoft.hu/midiplayer_67_test.zip

Website, Youtube
Falcosoft Soundfont Midi Player + Munt VSTi + BassMidi VSTi
VST Midi Driver Midi Mapper
x86 microarchitecture benchmark (MandelX)

Reply 2762 of 2780, by M-HT

User metadata
Rank Member
Rank
Member

I wrote a small program to test the missing sysex events on input port and I was missing some sysex events in Wine but not in Windows.
That was when I had only one buffer added to the port (function midiInAddBuffer). When I added more buffers to the port, then I got all sysex events even in Wine.
Something like this can probably be done in MidiPlayer to get all incoming sysex events in Wine.

Reply 2763 of 2780, by Falcosoft

User metadata
Rank l33t
Rank
l33t
M-HT wrote on 2026-11-06, 22:06:

I wrote a small program to test the missing sysex events on input port and I was missing some sysex events in Wine but not in Windows.
That was when I had only one buffer added to the port (function midiInAddBuffer). When I added more buffers to the port, then I got all sysex events even in Wine.
Something like this can probably be done in MidiPlayer to get all incoming sysex events in Wine.

I have tested Midi Player many times with different buffer sizes and amount to get the sweet spot. Older virtual cables like Maple were very finicky in this respect. Currently FSMP uses 128 * 512 byte sized buffers. So I do not think that the single buffer problem applies here.

procedure TMidiInput.AddSysexBuffer (idx : TPortRange);
var
hdr : PMidiHdr;
begin
GetMem (hdr, sizeof (TMidiHdr));
FillChar (hdr^, SizeOf (TMidiHdr), 0);
GetMem (hdr^.lpData, 512);
hdr^.dwBufferLength := 512;
hdr^.dwUser := idx;
midiInPrepareHeader (fMidiInHandle [idx], hdr, sizeof (hdr^));
midiInAddBuffer (fMidiInHandle [idx], hdr, sizeof (hdr^));
fSysexHeaders.Add (hdr);
end;

....

for i := 0 to 31 do
begin
AddSysexBuffer (idx);
AddSysexBuffer (idx);
AddSysexBuffer (idx);
AddSysexBuffer (idx);
end;

This way FSMP can handle many small SysEx messages and also the maximum allowed 64KB message at once.
So I still believe that the problem is Wine's implementation and not FSMP's. FSMP's input handling has been tested with many kinds of inputs from Win9x to Win11 without problems.
Also most likely this is a regression in Wine since earlier Linux users reported problem free working.

Website, Youtube
Falcosoft Soundfont Midi Player + Munt VSTi + BassMidi VSTi
VST Midi Driver Midi Mapper
x86 microarchitecture benchmark (MandelX)

Reply 2764 of 2780, by Falcosoft

User metadata
Rank l33t
Rank
l33t
M-HT wrote on 2026-11-06, 22:06:

I wrote a small program to test the missing sysex events on input port and I was missing some sysex events in Wine but not in Windows.
That was when I had only one buffer added to the port (function midiInAddBuffer). When I added more buffers to the port, then I got all sysex events even in Wine.
Something like this can probably be done in MidiPlayer to get all incoming sysex events in Wine.

BTW, I have found the problematic part/bug in Wine. It's actually related to how done buffer flags (MHDR_DONE) are handled incorrectly.
This is completely different from what any Windows versions do or ever did.
In the native ALSA MIDI input path Wine can mark a SysEx input buffer as reusable while its MIM_LONGDATA notification is still waiting in Wine’s internal queue.
If an application re-queues the buffer during that interval, the pending callback can receive a MIDIHDR whose byte count has already been reset.

What Wine should do instead:
While Wine holds a MIM_LONGDATA notification in its internal queue, the associated header should remain unavailable for reuse.
At callback dispatch, the header and dwBytesRecorded should still describe the SysEx data that caused that notification.

I you have an account for Wine's bug tracker here are the details that can be reported besides the above general description:

1. Wine marks the header done on the receive thread:
In dlls/winealsa.drv/alsamidi.c, handle_sysex_event() removes the completed header from the input queue, clears MHDR_INQUEUE, sets MHDR_DONE, and queues a notification carrying the same header pointer.

2. Wine delivers the callback on a separate thread:
In dlls/mmdevapi/main.c, notify_thread() dequeues the notification and calls notify_client(), which invokes DriverCallback().

3. Re-queuing the header clears the byte count before the pending callback reads it:
In dlls/winealsa.drv/alsamidi.c, midi_in_add_buffer() accepts the prepared header B because MHDR_INQUEUE is already clear. It then resets the byte count as part of re-queuing.
When original callback runs, it receives the same header pointer and can see zero bytes. The application loses that SysEx message even though Wine received it. Wine source — alsamidi.c, lines 1263–1277

@Edit:
OK, I submitted a bug report here:
https://bugs.winehq.org/show_bug.cgi?id=60715

Website, Youtube
Falcosoft Soundfont Midi Player + Munt VSTi + BassMidi VSTi
VST Midi Driver Midi Mapper
x86 microarchitecture benchmark (MandelX)

Reply 2765 of 2780, by Roland User

User metadata
Rank Oldbie
Rank
Oldbie
M-HT wrote on 2026-11-06, 22:06:

I wrote a small program to test the missing sysex events on input port and I was missing some sysex events in Wine but not in Windows.
That was when I had only one buffer added to the port (function midiInAddBuffer). When I added more buffers to the port, then I got all sysex events even in Wine.
Something like this can probably be done in MidiPlayer to get all incoming sysex events in Wine.

About this I known , when I was make MIDI Router , I have same problems , I can solve this only when add 16 ring buffers , but and this not always working correctly , I mean what sysex not lossing , but notes may play with delay or losting , I not known how fix this problem , seems like same problem and Wine creators )

Reply 2766 of 2780, by Falcosoft

User metadata
Rank l33t
Rank
l33t

New test version:
https://falcosoft.hu/midiplayer_67_test.zip

Testable features:
1. Besides cross-bitness VST2 plugin support cross-bitness CLAP plugin support has been added. That is both the x86 and x64 versions of FSMP can load both x86 and x64 versions of VST2 and CLAP plugins.
2. Until Wine fixes its above described bug a mitigation has been added to FSMP so that all SyeEx messages should arrive to FSMP from ALSA/Wine. (It seems there is no reaction for the reported bug so far).
3. An experimental fix to file writing in case of Offline mode by disabling async file writes in Offline mode.
@RetroGC: please, test it.

Website, Youtube
Falcosoft Soundfont Midi Player + Munt VSTi + BassMidi VSTi
VST Midi Driver Midi Mapper
x86 microarchitecture benchmark (MandelX)

Reply 2768 of 2780, by DOSShark

User metadata
Rank Newbie
Rank
Newbie

Small bugreport from my side:
Trying the 64 bit build with wine/proton throws those errors:
(1)On enabling Bassmidi: cannot load right version of bass.dll and/or bassmidi.dll, so Bassmidi output cannot be enabled.
(2)On Settings: Multimedia System Error 11 - Invalid parameter passed in mixer GetLineControls.

Reply 2769 of 2780, by Falcosoft

User metadata
Rank l33t
Rank
l33t
DOSShark wrote on 2026-11-09, 20:38:
Small bugreport from my side: Trying the 64 bit build with wine/proton throws those errors: (1)On enabling Bassmidi: cannot load […]
Show full quote

Small bugreport from my side:
Trying the 64 bit build with wine/proton throws those errors:
(1)On enabling Bassmidi: cannot load right version of bass.dll and/or bassmidi.dll, so Bassmidi output cannot be enabled.
(2)On Settings: Multimedia System Error 11 - Invalid parameter passed in mixer GetLineControls.

1. And previous 64-bit versions like the official version 6.6 worked?
Notice that first you have to download the official 64-bit version from here:
https://falcosoft.hu/midiplayer_66_x64.zip
Then you have to overwrite the files in the unpacked 64-bit MidiPlayer6 folder with the ones you can find in the x64 folder of the 6.7 test version.
The test version zip files are NOT full releases! They only contain the differences/changed files.

2. This is a very old Wine bug that affected all previous versions as well (including the 32-bit versions of FSMP). It's because the classic mixer API is not implemented properly in Wine.
But it does not affect proper working in Bassmidi/VSTi output mode that does not use the Windows mixer API.

Website, Youtube
Falcosoft Soundfont Midi Player + Munt VSTi + BassMidi VSTi
VST Midi Driver Midi Mapper
x86 microarchitecture benchmark (MandelX)

Reply 2770 of 2780, by DOSShark

User metadata
Rank Newbie
Rank
Newbie

Oh yeah - extracting the full 64 bit version with the update over it solved all bugs - silly me 😁

Reply 2771 of 2780, by Tetrapod

User metadata
Rank Newbie
Rank
Newbie

HI,
I've found two MIDI files that have issues when played back using FSMP, so I'm reporting them.
Specifically, when I press the play button, the program gets stuck in a loop while loading tracks and then freezes.
I've tried watching it on several players other than FSMP players, and I've confirmed that it plays normally.

One of the songs requires task killing and produces no sound; it's quite serious. The other song enters a similar loop, but it produces noise and can be stopped.

I suspect there's something wrong with the MIDI data, but I'm not the creator of the data, so I don't know the details.
I'm not sure if this report will be helpful, but I hope it will contribute to improvements in FSMP.
I've attached the problematic MIDI file:

Reply 2772 of 2780, by Falcosoft

User metadata
Rank l33t
Rank
l33t
Tetrapod wrote on 2026-11-14, 04:25:
HI, I've found two MIDI files that have issues when played back using FSMP, so I'm reporting them. Specifically, when I press th […]
Show full quote

HI,
I've found two MIDI files that have issues when played back using FSMP, so I'm reporting them.
Specifically, when I press the play button, the program gets stuck in a loop while loading tracks and then freezes.
I've tried watching it on several players other than FSMP players, and I've confirmed that it plays normally.

One of the songs requires task killing and produces no sound; it's quite serious. The other song enters a similar loop, but it produces noise and can be stopped.

I suspect there's something wrong with the MIDI data, but I'm not the creator of the data, so I don't know the details.
I'm not sure if this report will be helpful, but I hope it will contribute to improvements in FSMP.
I've attached the problematic MIDI file:

Hi,
Yep, I could replicate the problem. They are loop points related. You can temporarily solve the problem with these files by disabling Main menu -> Loop Settings -> Enable Loop Points.
I'm in a problematic situation since they look exactly like controller based loop points that some files really use for marking loops. But in this case this is definitely not true.
That's the problem with loop points in case of Midi files: According to specification there are no such things 😀

@Edit:
A workaround has been added so these files play back normally even when loop points are enabled. I hope there no more such files...
https://falcosoft.hu/midiplayer_67_test.zip

Website, Youtube
Falcosoft Soundfont Midi Player + Munt VSTi + BassMidi VSTi
VST Midi Driver Midi Mapper
x86 microarchitecture benchmark (MandelX)

Reply 2773 of 2780, by zaphod77

User metadata
Rank Member
Rank
Member

Touhou midis use cc2 and cc4. but this is wrong, as those controllers have other definitions. they are breath and foot controllers.

You can assume that if there is no more than one of each, and that they are more than a few measures apart, then it's a real loop.

RPGmaker uses cc111, and loopend is always end of song. if there is exactly 1, assume it is a loop point.

the standard controller based looping is cc116 an dcc117. again theer sh0uld be exactly one of each, and they should be more than a few measure's apart. otherwise, there's no way they can be loop points.

The main advantge of this one is you can specify t eNUMBER of loops.

FF7 looping is different. it's very obvious that it can only be a loop point, because the markers say loopStart and loopEnd. 😀

Reply 2774 of 2780, by Falcosoft

User metadata
Rank l33t
Rank
l33t
zaphod77 wrote on 2026-11-14, 06:53:
Touhou midis use cc2 and cc4. but this is wrong, as those controllers have other definitions. they are breath and foot controlle […]
Show full quote

Touhou midis use cc2 and cc4. but this is wrong, as those controllers have other definitions. they are breath and foot controllers.

You can assume that if there is no more than one of each, and that they are more than a few measures apart, then it's a real loop.

RPGmaker uses cc111, and loopend is always end of song. if there is exactly 1, assume it is a loop point.

the standard controller based looping is cc116 an dcc117. again theer sh0uld be exactly one of each, and they should be more than a few measure's apart. otherwise, there's no way they can be loop points.

The main advantge of this one is you can specify t eNUMBER of loops.

FF7 looping is different. it's very obvious that it can only be a loop point, because the markers say loopStart and loopEnd. 😀

Midi Player allows more than one loop point pairs, and there are examples of such files. Only nested loops are not supported. So this is not always true:

"again theer sh0uld be exactly one of each"

But, yes they should not start and stop at the same place. That's what the workaround currently examine.

BTW, there are also CC#118 and CC#119 pairs, EMIDI supports them almost the same way as CC#116 and CC#117.
There is no 'standard' looping anyway in the sense that none of them even mentioned in SMF specification.
CC#116 and CC#117 are only special since they are supported in 2 'extended' formats, namely in EMIDI and XMI.

Last edited by Falcosoft on 2026-11-14, 07:38. Edited 1 time in total.

Website, Youtube
Falcosoft Soundfont Midi Player + Munt VSTi + BassMidi VSTi
VST Midi Driver Midi Mapper
x86 microarchitecture benchmark (MandelX)

Reply 2775 of 2780, by Tetrapod

User metadata
Rank Newbie
Rank
Newbie

Thanks for adding the workaround for freezing. It should reduce the chances of accidentally playing non-standard data and causing freezes.

Thanks a lot for taking your time.

Reply 2776 of 2780, by zaphod77

User metadata
Rank Member
Rank
Member

Oh right. some of the loop extensions allow for specifying a NUMBER of loops. yes, in that case there could be multiple pairs. so the number of loopstart and and loopends must be identical (or just throw it all out), and any pair way too close together needs to be ignored.

as for nesting this only makes sense with formats where the number of loops can be specified. I can see no reason it ca'nt be supported, but i'm not sure if it requires a full scan of the midi file to check.

this would be a valid nested loop. capital=start, lower =end.

2 4
A B b a

this would loop b 4 times each time a loops.

while this would be not valid

2 4
A B a b

As soon as it saw the A without the B being closed, it would know the loops are invalid, and just throw them out.

Reply 2777 of 2780, by Roland User

User metadata
Rank Oldbie
Rank
Oldbie

Two synths by Wlad Rever :
This is hybrid S-YXG100 VXD whitch was adapted for VST https://www.mediafire.com/file/ypuhuhaajns318 … hybrid.zip/file
This , if I correctly understand , so this https://www.mediafire.com/file/e9zm8g5im4wz5y … XG3000.zip/file version based on https://github.com/tarboh/S-MU2000 , before I does this synth to Wlad Rever for he do adapting this synth for Windows 7 )
Both synths here https://www.mediafire.com/folder/6xu74ng2cajv … +from+WladRever

Reply 2778 of 2780, by Falcosoft

User metadata
Rank l33t
Rank
l33t
Roland User wrote on 2026-11-20, 12:37:
Two synths by Wlad Rever : This is hybrid S-YXG100 VXD whitch was adapted for VST https://www.mediafire.com/file/ypuhuhaajns318 […]
Show full quote

Two synths by Wlad Rever :
This is hybrid S-YXG100 VXD whitch was adapted for VST https://www.mediafire.com/file/ypuhuhaajns318 … hybrid.zip/file
This , if I correctly understand , so this https://www.mediafire.com/file/e9zm8g5im4wz5y … XG3000.zip/file version based on https://github.com/tarboh/S-MU2000 , before I does this synth to Wlad Rever for he do adapting this synth for Windows 7 )
Both synths here https://www.mediafire.com/folder/6xu74ng2cajv … +from+WladRever

I think these are better S-YXG50 derived alternatives:
https://github.com/NightFright2k19/SXG-Create-NF

Advantages:
1. Better and more user friendly user interface.
2. 64-channel/4-port support.
3. 256 max polyphony.
4. More stable 😀

The attachment syxg128.png is no longer available

Website, Youtube
Falcosoft Soundfont Midi Player + Munt VSTi + BassMidi VSTi
VST Midi Driver Midi Mapper
x86 microarchitecture benchmark (MandelX)

Reply 2779 of 2780, by Roland User

User metadata
Rank Oldbie
Rank
Oldbie

But where I can recive banks for this ? )