Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Works only on one MIDI channel #3

Closed
papernoise opened this Issue Apr 1, 2012 · 8 comments

Comments

Projects
None yet
2 participants

I've found the following issue when used in conjunction with the Mini YM Synth by Wil Lindsay (http://www.straytechnologies.com/):
overlapping notes on different MIDI channels will not be delivered to the device properly, only one will get played.
Im using Hairless midiserial on a new macbook pro with OSX Lion 10.7.3. The Mini YM Synth is connected to the computer via FTDI cable. Prior to Apple messing around with Java on Lion I was able to have it fully working on all the 4 supported MIDI channels (The YM chip recieves MIDI on ch. 01,02,03 and 10, the last one is for the noise channel) with the little application WIl programmed for the device.
Have tried outputting MIDI from both Ableton Live and Reaper (both using the internal IAC virtual midi cable.

Owner

projectgus commented Apr 2, 2012

Thanks for letting me know about the bug.

Is there any chance you can provide the output that appears in the Hairless Bridge window when you turn on "Debug MIDI messages", and send the overlapping notes?

pasting the output in here is a bit of a mess since I have to copy-paste each row one by one, anyway, the output looks like this:

+117.537 - MIDI In: Ch 0: Note 48 off velocity 64
+117.537 - MIDI In: Ch 0: Note 48 off velocity 64
+117.537 - MIDI In: Ch 0: Note 48 off velocity 64
+117.912 - MIDI In: Ch 0: Note 48 on velocity 100
+117.912 - MIDI In: Ch 0: Note 48 on velocity 100
+117.912 - MIDI In: Ch 0: Note 48 on velocity 100
+117.912 - MIDI In: Ch 0: Note 48 on velocity 100
+118.037 - MIDI In: Ch 0: Note 48 off velocity 64
+118.037 - MIDI In: Ch 0: Note 48 off velocity 64
+118.037 - MIDI In: Ch 0: Note 48 off velocity 64
+118.038 - MIDI In: Ch 0: Note 48 off velocity 64
+118.412 - MIDI In: Ch 0: Note 48 on velocity 100
+118.412 - MIDI In: Ch 0: Note 48 on velocity 100
+118.412 - MIDI In: Ch 0: Note 48 on velocity 100
+118.412 - MIDI In: Ch 0: Note 48 on velocity 100
+118.537 - MIDI In: Ch 0: Note 48 off velocity 64
+118.537 - MIDI In: Ch 0: Note 48 off velocity 64
+118.537 - MIDI In: Ch 0: Note 48 off velocity 64
+118.537 - MIDI In: Ch 0: Note 48 off velocity 64
I put 4 notes in a one measure pattern, so it's 4 1/4 notes. all the 4 channels play the same notes at the same time. funny thing is it always shows Ch0 and playes only the first channel (1 on the YM, guess the 0 stands for 1).

If I play only channel 2 it works and shows up as ch1 in Hairless. Same for the other channels.
Also note that the velocity of the notes is always the same (100) throughout the pattern and in all 4 channels but shows up with different values, that change with a weird pattern
If I play only one channel they switch between 100 and 64, it's the same for all 4

+220.132 - MIDI In: Ch 1: Note 48 on velocity 100
+220.269 - MIDI In: Ch 1: Note 48 off velocity 64
+220.644 - MIDI In: Ch 1: Note 48 on velocity 100
+220.769 - MIDI In: Ch 1: Note 48 off velocity 64

If I play two channels I'll get two times 100 and two times 64
three in a row if I play on three channels.
Anyway if playing one channel the correct Midi channel will apear in Hairless, if I play more then one only ch 0 shows up, but it feels like it's channeling all the events into one midi channel when more than one is playing. Could the IAC driver do that?

I hope I was detailed enough, don't hesitate to ask if you need more debugging.
Hannes

Hi! Any news on this matter?

Owner

projectgus commented Apr 18, 2012

Not yet, sorry. Thanks for the debugging output, though. I'm hoping to make some time to work on Hairless Bridge over this coming weekend...

I just found out that apparently Apple broke the FTDI driver the mini YM synth relies on for data transfer with one of the latest updates. Thanks Apple again! So it might not be a problem with Hairless after all. I'll report back if I have more data on this.

Owner

projectgus commented Apr 25, 2012

Well, I found one definite bug when receiving simultaneous messages via MIDI. So if the FTDI driver was broken, it's not just that. :)

When you get a chance, can you please try out
http://projectgus.com/files/hairless/hairless-midiserial-0.3beta-osx.zip

... and tell me how it works? Thanks.

  • Angus

hi! It works! Apparently I was not affected by the FTDI bug then.
I did some testing with various settings and they all worked absolutely fine, no problem at all with the new version!
thanks a lot for looking into this!

Owner

projectgus commented May 8, 2012

Thanks again for reporting this. The fix is now in a final release, v0.3.

@projectgus projectgus closed this May 8, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment