Re: Please help: I need to create a midi file using C language
- From: "Androcles" <Androcles@ MyPlace.org>
- Date: Sun, 18 Sep 2005 23:16:21 GMT
"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
|
.
- Prev by Date: Re: Energy substitution
- Next by Date: Re: A New Foundation for Physics
- Previous by thread: Re: Please help: I need to create a midi file using C language
- Next by thread: Search (online bibtex) citations by DOI or Volume/Page number???
- Index(es):
Relevant Pages
|