[comp.sys.next] Has anyone written a MIDI file examiner?

zazula@soliton.uucp (Ralph Zazula) (06/11/91)

Look at the Score class.  It will read MIDI files and create
a Note-Part-Score structure.  Try:

	id	myScore;
	myScore	= [[Score alloc] init];
	[myScore readMidifile:"myfile.midi"];

	printf("parts: %u\n",[myScore partCount]);

etc...

Ralph

P.S.   Keep watching...  I'm almost done with a basic MIDI sequencer...	
   |----------------------------------------------------------------------|
   | Ralph Zazula                               "Computer Addict!"        |
   | University of Arizona                 ---  Department of Physics     |
   |   UAZHEP::ZAZULA                            (DecNet/HEPNet)          |
   |   zazula@uazhe0.physics.arizona.edu         (Internet)               |
   |----------------------------------------------------------------------|
   |   "You can twist perceptions, reality won't budge."  - Neil Peart    |
   |----------------------------------------------------------------------|

das15@cunixa.cc.columbia.edu (Douglas A Scott) (06/11/91)

I am interested in any type of program that can read MIDI-format files and
print out readable data of any sort--I wish to modify it to create a
multipurpose "scorefile" conversion program for converting to and from MIDI to
and from several other scorefile formats.  So, what I am looking for is
something that reads in MIDI data and stores it in any kind of easily
accessible format inside the program.

If the code is in AppKit format, so much the better, but I'll take what I can
get.

Thanks!


-----------------------------------------------------------------
Douglas Scott          Columbia University Computer Music Studio 
Internet: <doug@woof.columbia.edu> <das15@cunixa.cc.columbia.edu>
UUCP: ...!columbia!woof!zardoz!doug          Phone: (703)765-4771

rgc@wam.umd.edu (Ross Garrett Cutler) (06/11/91)

convertscore(1) can convert a MIDI file to a Score file, which can be edited
with any text editor.  At the minimum, this is useful in changing the 
instruments from some MIDI port to a PluckString (or whatever).
-- 
Please email -- I'll summarize.
Ross Cutler
University of Maryland, College Park
Internet: rgc@wam.umd.edu