C# midi interfacing
Forum » MIDI Game Forums / Programming » C# midi interfacing
Started by: BenHumberstonBenHumberston
On: 1170267099|%e %b %Y, %H:%M %Z|agohover
Number of posts: 4
rss icon RSS: New posts
C# midi interfacing
BenHumberstonBenHumberston 1170267099|%e %b %Y, %H:%M %Z|agohover

Hey programmers… I've been searching around on the net for how to interface with MIDI files/MIDI devices in the C# language. The language itself has basic operations, but they don't seem to be of much use unless you reaaaaally know what you're doing… which, in the case of MIDI, I don't (maybe Chelsea can help out there with how the file type works). So I've more been looking for community solutions to use. Here's one that I'm investigating…

http://www.codeproject.com/cs/media/MIDIToolkit.asp#StateMachineToolkit

It seems to offer what we need, though I'm not sure if it will allow keyboard midi input… in fact midi input in general is still a mystery to me. Another one with less documentation:

http://www.gotdotnet.com/community/usersamples/details.aspx?sampleguid=89cde290-5580-40bf-90d2-5754b2e8137c

Seems more basic, but as I said, not too much doc. I'll ask the creators if they mind our using their work soon if one of these shows promise, or hey maybe we'll use something else entirely, or just use built in c#… tell me what you think.

unfold C# midi interfacing by BenHumberstonBenHumberston, 1170267099|%e %b %Y, %H:%M %Z|agohover
Re: C# midi interfacing
manojalpamanojalpa 1170472601|%e %b %Y, %H:%M %Z|agohover

You should send an email to Kevin Ernste and ask him about MIDI data and how to gather it. This is completely his field. I'm sure he has plenty of information that could help out. kme32 or check this:

http://digital.music.cornell.edu

unfold Re: C# midi interfacing by manojalpamanojalpa, 1170472601|%e %b %Y, %H:%M %Z|agohover
Re: C# midi interfacing
BenHumberstonBenHumberston 1170697104|%e %b %Y, %H:%M %Z|agohover

ok I've uploaded the one that I'd like to use to svn… but I've run into the wonderful problem where the demo app NO LONGER PLAYs.

This is rather weird, since it had been working and outputting sound before, but now it's just silent as it says it plays. Not sure what happened, but the same thing goes on with the other MIDI toolkit that I posted. I must have somehow modified my computer's device… which is a problem…

WHICH IS WHY I HATE MIDI! I know it's portable and nice, but it's just so dense and… not… well let's just say that there's no nice and easy "MIDI.PlayPitch" or "MIDI.PlaySong" functions… just hard to understand commands that are actually well above the very low level interface that is in the standard libraries.

could you guys try running the demo app yourself and tell me if you hear sound? it's in CSharpMidiToolkitV4_demo\MidiToolkitDemo\bin\Debug. It's called MidiToolkitDemo.exe . Load in some midi file, then click "Start", and it should go.

___________________

EDIT: Oh god that's what it is… somehow or another my "SW Synth" volume control got hit to 0. So while windows media player must use some other audio channel for midi, these apps don't. Sorry. fixed now. I'll look into actually making this stuff work for us then.

last edited on 1170697286|%e %b %Y, %H:%M %Z|agohover by BenHumberston + show more
unfold Re: C# midi interfacing by BenHumberstonBenHumberston, 1170697104|%e %b %Y, %H:%M %Z|agohover
Re: C# midi interfacing
BenHumberstonBenHumberston 1170700273|%e %b %Y, %H:%M %Z|agohover

Ok… the thing that's up on SVN now is what I think we'll be using to translate keyboard input into midi output and also to save it for analysis. Just giving a heads up. this is mostly my responsibility area anyways.

unfold Re: C# midi interfacing by BenHumberstonBenHumberston, 1170700273|%e %b %Y, %H:%M %Z|agohover
New post
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-Share Alike 2.5 License.