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



In article <1126612744.083949.169690@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
david <aass000999@xxxxxxxx> wrote:
[Midi in C:]
>4.How would you do this?

No idea in detail, but basically it's just an edit job from
any plausible musical notation. You'd need to look up the midi spec
for details, but basically a midi file is mostly a series of bytes
saying "at position foo, play note bar on channel baz with such and
such loudness and to last for so long". That's why sequencers can
present you with an "event list" that you can more-or-less overwrite
to edit the music.

>5.I hear that you could use `truncated fourier series`; but how to
> do this?

Little to do with midi, which is much more like a score than
like [eg] a CD. If you want to generate sounds, then you're in a
different game; but normally you leave that to your player [and a
software synth or keyboard, eg].

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

The midi player does that. One of your available events is to
tell the player to switch channel foo to instrument bar. Well, there's
a lot more to it if you intend also to write your own instruments, but
you don't need to for ordinary use.

>7.Please give me some quick guidence on the above issues.

I don't know if it's still around, but "Rosegarden" used to be
a somewhat open project [may even have been GPL'ed] for most of this
stuff. Oh, found it: "http://www.rosegardenmusic.com";.

--
Andy Walker, School of MathSci., Univ. of Nott'm, UK.
anw@xxxxxxxxxxxxxxxx
.



Relevant Pages

  • Re: Helmholtz and OTS
    ... So what instruments are you playing. ... Is Joey ghost writing this for you? ... - It generates MIDI data. ...
    (rec.music.theory)
  • Re: Midi file
    ... The MIDI *data* you burned to a CD which could be played in media ... To play the music in a standalone CD player, ... They copied to the CD Ok and can be played by W Media Player if I go ' ...
    (microsoft.public.windowsmedia)
  • Re: Midi file
    ... The MIDI *data* you burned to a CD which could be played in media ... To play the music in a standalone CD player, ... They copied to the CD Ok and can be played by W Media Player if I go ' ...
    (microsoft.public.windowsmedia)
  • Re: NAMM Press release: Roland releases new product for V1- - IMPRESSIVE!
    ... technology that imitates sounds. ... This is why all digital instruments have A/D converters ... Oh, today's stuff is a wee bit better than General Midi, but not much. ... midi crap, and John, believe me, it IS crap. ...
    (rec.music.makers.squeezebox)
  • Re: massive modeling effort yields excellent audio compression
    ... tell apart an instrumental MP3 from a MIDI. ... its greater range of instruments and adjustable derivatives. ... And considering primary background noise or minor artifacts ... certain threshold level set to filter out this anomaly -- which will ...
    (comp.compression)