Midi2Scilab produces triplets for each NOTE_ON Midi event for each
channel (instrument). In our case, Midi channel 1 has a program
number 71 (clarinet). Each note starts right after another and is
~800 miliseconds long. The first element in channel() list is a note
name. Usually you need a note frequency to simulate instrument
playing the note - music_notes and music_notes_freq are used to map
between the note name and the frequency.

Midi2Scilab also offers two other modes. Switch –freq-pitch
(default) is used to directly produce frequencies inside the
channel() list as the first argument and –midi-pitch puts Midi
pitch (0..127) for the first argument respectively.

Download

Author

Midi2Scilab and examples were written by Matevž Jekovec <matevz
at jekovec dot net> as a seminar at Digital
Signal Processing subject at Faculty of computer and information
science in Ljubljana, Slovenia.