Re: Please help: I need to create a midi file using C language




"david" <aass000999@xxxxxxxx> wrote in message
news:1126612958.895999.293500@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
| 1.I am considering doing a simple midi file generator for my
| 4th year project in B.SC.

Phew....


| 2.I would do it using c language, but i'm not sure how
| difficult it would be.

That depends on your knowledge of "C".


| 3.Basically, the executable c program would read a text document
| with some "musical pseudocode" representing some `tune`.

This sounds like optical character recognition. If so, then the first
step is to identify the stave. Assuming you have a scanned image,
a knowledge of musical scores and a knowledge of simple
rotation you would first rotate the image to align the stave parallel
to the screen and identify the five lines. Then identify the bars,
then the notes. If you have any experience at all with OCR you'll
quickly find this is not easy. By way of example, look at
this document which HAD to be OCR generated:
http://webexhibits.org/calendars/year-text-Galileo.html

"Venice, Corfu, Crete, etc. stand still and do not move with the ship;
but as to the sacks, boxes, and bundles with which the boat is laden and
with respect to the ship itself, the motion from Verflice to Syria "
The OCR has turned "Venice" into "Verflice" by misreading 'n' for 'fl'.
This will happen with the score as well.

| Then convert the "musical pseudocode" into "midi code" that
| could be played in any midi player like `windows media player`.

That's the easy part, you only need to know midi code.


| 4.How would you do this?

Write the OCR code, translate to midi and then correct errors by hand.
You'll need clean printed paper, coffee stains are not acceptable.


| 5.I hear that you could use `truncated fourier series`; but how to
| do this? Do I really need to know about sound waves?

If you want to go that route, yes. Fourier analysis is possible.
A good example may be found if you have Windows Media Player
with a display of "Bars" which dance to the music.

| 6.Also, how to re-create various musical instruments?

Learning to run before you can walk is not a good idea.

Androcles.


| 7.Please give me some quick guidence on the above issues.
| 8.Than
|

.



Relevant Pages

  • Re: How to just copy the chorus
    ... have in my windows media player. ... video editing suite. ... Otherwise, try freeware Audacity, ... Is it a standard MIDI fle, then open it with any MIDI software ...
    (microsoft.public.windowsxp.music)
  • Re: Midi files & Media Player 10 workaround?
    ... WMP10 does not touch in any fashion MIDI playback on the system - MIDI ... , as well as Chris' suggestions, should help you figure this out. ... > Now that I've got this oh so wonderful Windows Media Player 10, ...
    (microsoft.public.windowsxp.music)
  • Re: Please help: How to create a midi file using C language
    ... > 2.I would do it using c language, ... > could be played in any midi player like `windows media player`. ... Most MIDI projects that could be done have already been. ... of MIDI files. ...
    (rec.music.theory)
  • Re: Please help: How to create a midi file using C language
    ... >>1.I am considering doing a simple midi file generator for my ... >>2.I would do it using c language, ... >> could be played in any midi player like `windows media player`. ...
    (rec.music.theory)
  • Re: Creating a midi file using the C computer language
    ... with some "musical pseudocode" representing some `tune`. ... could be played in any midi player like `windows media player`. ... 5.I hear that you could use `truncated fourier series`; ...
    (rec.music.makers.synth)