Faster MIDI-to-Csound-score conversion?
Date | 2015-09-27 01:31 |
From | Beinan Li |
Subject | Faster MIDI-to-Csound-score conversion? |
Attachments | None None |
Hi Csound,
So far I found only two ways of coverting the events of a MIDI file into a Csound score: 1) The FLOSS manual example 07D02_MidiToScore.csd, which is essentially a "live recording" of the individual MIDI events comes one by one from the file, via printing opcodes. 2) A 3rd-party Windows-only program. Method 1) is extremely slow due to its recording nature, at least on my Macbook Air (Core i7). Method 2) does not work for a Mac user. Are there any other approaches or apps for the conversion? Thanks, Beinan |
Date | 2015-09-27 10:09 |
From | Stéphane Rollandin |
Subject | Re: Faster MIDI-to-Csound-score conversion? |
> So far I found only two ways of coverting the events of a MIDI file into > a Csound score: > 1) The FLOSS manual example 07D02_MidiToScore.csd, which is essentially > a "live recording" of the individual MIDI events comes one by one from > the file, via printing opcodes. > > 2) A 3rd-party Windows-only program. > > Method 1) is extremely slow due to its recording nature, at least on my > Macbook Air (Core i7). > Method 2) does not work for a Mac user. > > Are there any other approaches or apps for the conversion? In http://csoundjournal.com/issue19/csound_synthesizers_in_muO.html I describe how to create a csound score from a so-called MusicalPhrase in muO (which runs on MacOS). The paper does not talk about MIDI files, but it is straightforward: a MIDI file can be read as a MusicalPhrase this way: phrase := MusicalPhrase fromMIDIFile: 'the file name' Hope this helps. Stef (You can contact me privately if you want) ------------------------------------------------------------------------------ _______________________________________________ Csound-users mailing list Csound-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/csound-users Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here |
Date | 2015-09-27 16:03 |
From | Beinan Li |
Subject | Re: Faster MIDI-to-Csound-score conversion? |
Attachments | None None |
Thanks Stef! That looks like a very sophisticated system. I'll try to look into it. Thanks, Beinan On Sun, Sep 27, 2015 at 5:09 AM, Stéphane Rollandin <lecteur@zogotounga.net> wrote: So far I found only two ways of coverting the events of a MIDI file into |
Date | 2015-09-27 18:18 |
From | joachim heintz |
Subject | Re: Faster MIDI-to-Csound-score conversion? |
hi beinan - some years ago i used istvan vargas "mid2sco" (under linux). it used to be available at http://www.csounds.com/istvan/html/scoreproc.html, but probably it is no more. if you are interested, you can write me off-list, and i can send you the sources. best - joachim On 27/09/15 02:31, Beinan Li wrote: > Hi Csound, > > So far I found only two ways of coverting the events of a MIDI file into > a Csound score: > 1) The FLOSS manual example 07D02_MidiToScore.csd, which is essentially > a "live recording" of the individual MIDI events comes one by one from > the file, via printing opcodes. > > 2) A 3rd-party Windows-only program. > > Method 1) is extremely slow due to its recording nature, at least on my > Macbook Air (Core i7). > Method 2) does not work for a Mac user. > > Are there any other approaches or apps for the conversion? > > Thanks, > Beinan > > > > ------------------------------------------------------------------------------ > > > > _______________________________________________ > Csound-users mailing list > Csound-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/csound-users > Send bugs reports to > https://github.com/csound/csound/issues > Discussions of bugs and features can be posted here > ------------------------------------------------------------------------------ _______________________________________________ Csound-users mailing list Csound-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/csound-users Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here |
Date | 2015-09-27 19:05 |
From | Victor Lazzarini |
Subject | Re: Faster MIDI-to-Csound-score conversion? |
I would think that the Csound method should run fast if you render it instead of playing in RT Victor Lazzarini Dean of Arts, Celtic Studies, and Philosophy Maynooth University Ireland > On 27 Sep 2015, at 18:18, joachim heintz |
Date | 2015-09-27 19:13 |
From | Victor Lazzarini |
Subject | Re: Faster MIDI-to-Csound-score conversion? |
Actually I tried the MIDI to score CSD here it and it is very fast if you render it instead of playing. Regard ======================== Dr Victor Lazzarini Dean of Arts, Celtic Studies and Philosophy, Maynooth University, Maynooth, Co Kildare, Ireland Tel: 00 353 7086936 Fax: 00 353 1 7086952 > On 27 Sep 2015, at 19:05, Victor Lazzarini |
Date | 2015-09-28 03:23 |
From | Russell Pinkston |
Subject | Re: Faster MIDI-to-Csound-score conversion? |
Attachments | None None |
And here is a link to a pair of command line utilities written in C that conver MIDIFiles to Csound Scores and vice versa. They were written by Keith Lent. The zip archive includes the sources, as well as some old 32bit DOS .exe files, which might still work on some older machines. rwmidi.zip: https://utexas.box.com/s/9j40u1zve266mgzprdnmqh57grcgan1u Best, Russell Pinkston From: Beinan Li
[mailto:li.beinan@gmail.com] Thanks Stef! That looks like a very sophisticated system. I'll try to look into it.
Thanks, Beinan On Sun, Sep 27, 2015 at 5:09 AM, Stéphane Rollandin <lecteur@zogotounga.net> wrote:
|
Date | 2015-09-28 15:41 |
From | Beinan Li |
Subject | Re: Faster MIDI-to-Csound-score conversion? |
Attachments | None None |
Thanks Dr. Lazzarini! I found why it was slow for me. I ran it inside the text editor Sublime Text 2 and for some reason it was much slower than running from Terminal directly, possibly due to the overhead of stdout/err pipes. After running Terminal directly, the speed was indeed 100X faster. So now this approach is probably good enough for me. Thanks, Beinan On Sun, Sep 27, 2015 at 2:13 PM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote: Actually I tried the MIDI to score CSD here it and it is very fast if you render it instead |
Date | 2015-09-28 15:43 |
From | Beinan Li |
Subject | Re: Faster MIDI-to-Csound-score conversion? |
Attachments | None None |
Joachim and Russell, thank you both for the 3rd-party tool recommendations! Thanks, Beinan On Mon, Sep 28, 2015 at 10:41 AM, Beinan Li <li.beinan@gmail.com> wrote:
|