SynthMaker

CSMMidiReciever::OnError > short

Archive · 2005 5 old posts

From the original SynthMaker forum (2004–2014), with its members’ names and dates.

haydxn ·

Hi guys, thought i'd become an early adopter despite having this problem constantly!

i have a midi problem. my midi keyboard is definitely getting noticed by the program, that's for sure.

i get this:

CSMMidiReciever::OnError > short

It pops up twice when it recieves a midi message; if i hold down a midi key, the dialog pops up, i click okay and then have to click okay to another identical one. if i then let go of the key (note-off), the same dialogs come up for that.

unfortunately i can't to any other testing related to it; the program is clearly recieving the midi in some form! which i guess is reassuring!

hopefully you can help! i haven't found any other reports of this problem 🙁

If it helps at all, my MIDI interface is a Yamaha MU10 connected via a serial port.

jorge ·

thanks haydxn, that's a very good description of the bug and the text in the popup dialog box will point me to the exact line of code causing the problem. I'll have a look at the code and I'll try to re-create the same bug here. I'll post here again later to let you know what's happening.

jorge ·

ok, here goes where I got so far.

The error message pops up because SM is being delivered a midi error message from windows. The message is already an error when it arrives inside SM. I created a version of SM that doesnt display the popup error message and just ignores it. You can download it from here: [old link] or if you prefer rar: [old link] With this version the DirectSound output component is a bit different:

at the moment you have to click on the DirectSoundOut component to activate it:

The DirectSoundOut component is still beta, so make sure you check the beta checkbox in the settings:

I've also included in the example schematic a String data component showing your midi messages:

I forgot to ask you before if it worked wit the PC keyboard instead of an external keyboard.

Let me know if you have problems with this version.

haydxn ·

it worked fine with the pc keyboard.

i've just tried this new version and it works just fine now. not only are there no error messages but it also plays the notes for me fine. it's odd that it's a midi error before it gets to the program; i've not had any other programs indicate this before. hmm curious indeed!

but yes, this one works fine for me! is this something that is worth leaving in 'ignore' mode? a headscratcher to be sure. something tells me that it's not the best idea to leave an error unreported, but i'm not sure why it is an error anyway. everything else is fine, it's only the older versions of SM that complain! 😮

jorge ·

haydxn wrote: it's odd that it's a midi error before it gets to the program; i've not had any other programs indicate this before. hmm curious indeed!

but yes, this one works fine for me! is this something that is worth leaving in 'ignore' mode? a headscratcher to be sure. something tells me that it's not the best idea to leave an error unreported, but i'm not sure why it is an error anyway. everything else is fine, it's only the older versions of SM that complain! 😮

Thats a good point, I feel exactly the same that its not a good idea to just ignore an error. I intend to investigate it further. The Midi message SM gets from windows is called MIM_ERROR, the microsoft documentation says the following:

MSDN wrote: The MIM_ERROR message is sent to a MIDI input callback function when an invalid MIDI message is received.

I have a feeling the message is not actually an error but just a Midi message not supported by windows. I wasnt expecting that would happen but just in case it did I put a popup dialog box message to get my attention later on if it would ever happen which just did in your case. Popup messages are not a good way to report errors, I think at some stage we'll change it to a log system. At the moment SM only supports a few Midi messages like NoteOn, NoteOff, ControlChange etc..., I think it is fine to ignore all other messages.

I'm glad it is now working for you, if you find other problems please let us know.

Wrote something here? To have a post removed or your name hidden, write to [email protected].

Before your first post

A few rules keep this a friendly place. You agree to them once.

Shown next to what you post, here and in the app. It doesn’t have to be your real name: 3–24 lower-case letters, digits or _ (capitals become lower case, spaces become _).

    Then your post goes up straight away.

    Delete this reply?

    Open it in SynthMaker?

    It goes on the track you’re editing there, in place of that track’s sound, and into My sounds. Your other tracks stay as they are.

    Want to keep that track’s sound? Start a new song in SynthMaker first (Song › New song), then open this.

    Report this reply?

    Only the developer reads reports. The person isn’t told who reported them.

    What’s wrong with it?

    Block this person?

    You won’t see their posts and replies here any more. They aren’t told, and you can unblock them at any time.

    People you’ve blocked

    Their posts and replies are hidden from you. Unblock someone to see them again.

    The community rules

    A few rules keep this a friendly place. Everyone agrees to them once, before their first post.