Csound Csound-dev Csound-tekno Search About

[Csnd] Modification to John Ffitch's midi library for fully integrable midi files

Date2012-12-05 16:08
FromAlfonso Peduto
Subject[Csnd] Modification to John Ffitch's midi library for fully integrable midi files
Hi everybody,

I am a new Csound-er as well as audio programmer. I wanted to share a small instance of my work which I thought it might be of interest here - to everybody who is captivated by computer generated music (in a broad sense).

In the "Audio Programming Book" (Richard Boulanger, ed, MIT press) in Chapter 16 of the attached DVD John Ffitch presents a wonderfully compact and efficient library to write MIDI files. This opens up a world of possibilities for algorithmic compositional processes.

Unfortunately though, as presented, the library produces files that are not compatible with any modern day DAW (trying opening files with Logic, Finale, Sibelius, Digital Performer etc.. will give different error messages). 


If you wish to have MIDI files which can be later used by any DAW the following small modification will enable that:
-in "basic.c" replace line 140 which reads

print_short_be(fout, 0xe728);

with 

print_short_be(fout, 0x1e0);

this will change the division of the MIDI file to the

--
Alfonso Peduto
President, Society of Composers
Berklee College of Music