Page 1 of 2

Midi Player

Posted: Sun Apr 28, 2013 3:50 am
by MyCo
Hi,

In the last couple of days, I've been working on a Midi/Sequencer-Library, and finally on a Midi player.
Midi Player3 (MyCo).fsm
(190.6 KiB) Downloaded 1962 times


This is a very early version of the Midi-Player. It is not very stable, because I discovered some weird FS bugs on my way, that I had to workaround. Hopefully Malc get them fixed.
The player is pretty basic, but the Library is made for future Midi-manipulations (for a sequencer). Right now it can only load Midi-Files, but a save function wouldn't be hard to implement.

I call this one a community project, that means that I hope there'll be some people that help me to improve this. If this doesn't happen, I'll keep future developments for myself :twisted:

Re: Midi Player

Posted: Sun Apr 28, 2013 4:07 am
by nix
omg basically!
I don't know if I can help MyCo,
u r more tech savvy than me.
If someone would implement save it would be astounding.
MyCo, if you would like my .fsm for DreamSequence Pianoroll,
I can pm it to you. I don't know if I want to make it open source.
Here are some of my Ruby mods with sequencers in mind->
viewtopic.php?f=2&t=1342
Very much appreciated, will have a look now 8D

Re: Midi Player

Posted: Sun Apr 28, 2013 7:23 am
by billv
MyCo wrote:This is a very early version of the Midi-Player. It is not very stable

Well it does work :) . Only had a brief look. A few midi files wouldn't read...

Code: Select all

Unsupported Event Type "0x00"["(eval):578:in `readEvents'",
 "(eval):82:in `block in readFile'", "(eval):76:in `times'",
  "(eval):76:in `readFile'", "(eval):35:in `event'"]

But this happens a lot, with 2 different formats *Midi....*Rich Midi,...probably is that....
MyCo wrote:Midi/Sequencer-Library, and finally on a Midi player.

Looking forward to seeing where this ends up...the whole idea sounds great. :D
MyCo wrote:I call this one a community project

Not sure if i can help, but am there if needed.
can't wait to have a good look at it. Some sort of version of this will definitely appear in
a future X11 update, that's for certain.

I've though about implementing this before, but never actually tried it.
Now you've flung the door wide open, not much choice but to just walk in...... :D
Cheers.

Re: Midi Player

Posted: Sun Apr 28, 2013 5:40 pm
by MyCo
Well, there is no chance to fix a non-working midi file problem without actually having the non-working midi file to test it.

RTMF Midis should AFAIK work, too. There are only new Meta-Events in this format, and the file reader should go over that in the "I don't care" mode.

The "unknown event type 0x00" Message indicates, that the previous event data wasn't read correctly.

Re: Midi Player

Posted: Sun Apr 28, 2013 6:36 pm
by tektoog
Yeah!
very nice! we've all been, as former SM users, dreamin about this!
And Finally there it is... :D
Thanks MyCo 8-)
First idea that comes to my mind, would be to filter,isolate and recognize the drum track and send it to... a drum player :?
Midi Player (MyCo) DRUM test (TekTooG).fsm
(123.4 KiB) Downloaded 1773 times

Re: Midi Player

Posted: Sun Apr 28, 2013 8:41 pm
by billv
MyCo wrote:Well, there is no chance to fix a non-working midi file problem without actually having the non-working midi file to test it.

Tried to attach file, get told midi is not allowed...WTF....why?????
Here it is....
https://secure1.storegate.com/Shares/Home.aspx?ShareID=9ce21e4a-ee62-4a4e-84ca-9a0916ecddbd
File tested working in FL, Guitar Pro 5 and Melody assistant.

Re: Midi Player

Posted: Sun Apr 28, 2013 9:31 pm
by MyCo
billv wrote:Here it is....


The file uses running status midi messages. I prepared that type in the Lib, but couldn't test it before. I fixed that.
New version is in the first post.

Re: Midi Player

Posted: Sun Apr 28, 2013 10:40 pm
by Jay
Hi myco

That is a great little creation you have there! is there any scope to have midi recording with this? that would be a great feature to have, such as in some piano synth/romplers allow left and right hand midi recording like Pianomissio, EZkeys etc

Thanks for the hard work! and for sharing! :)

Re: Midi Player

Posted: Mon Apr 29, 2013 12:36 am
by trogluddite
This looks very promising indeed - thanks, MyCo.
I don't tend to use .mid files much - but this could change all that; it would be so cool to have a standard file type to use for this kind of thing, instead of us all inventing our own little proprietry formats.

Re: Midi Player

Posted: Mon Apr 29, 2013 6:15 am
by billv
MyCo wrote:New version is in the first post.

Thanks. Yeh, all good.
Note:
i loaded I file with a 3 tracks on it, and listened to your system split it over the
3 channels....and it was then i realized the implications of this set-up. Huge. :shock: :shock: