I put this on Squeaksource a few years ago also.
The comment gives example of use.

MCHttpRepository
location: 'http://www.squeaksource.com/MIDIFileWriter'
user: ''
password: ''

Best,
Karl

On Sun, Aug 28, 2022 at 6:17 PM karl ramberg <karlramberg@gmail.com> wrote:


On Sun, Aug 28, 2022 at 4:42 PM Thiede, Christoph <Christoph.Thiede@student.hpi.uni-potsdam.de> wrote:

Hi all,


I have been playing around a bit with midi support and was pretty delighted that you can actually synthesize inputs from a midi keyboard using MidiInputMorph! Out of curiosity, here are a few short questions:


  1. As far as I could find out, there is currently no support for recording midi in the Trunk, is it? There are MIDISynth and MidiInputMorph, but there seems not to exist any connection to the PianoKeyboardMorph or the Piano Roll yet? Imagine you could press Record in a score player and add another track by playing it on your physical midi keyboard ...
  2. Also, there is not yet any file-out for midi, right? This would also be cool: Store the events from an input midi port, add them as a new track to a score, and serialize the score to a .mid file later.
There is a start for midifilewriter here:
http://wiki.squeak.org/squeak/1406
There could be licensing issues with it though.

Best,
Karl
  1. Last but not least: Should the MIDIPlugin be fully functional on Linux? On my Ubuntu machine, I can use the output port but primitiveMidiRead always fails. On Windows, everything is fine.


Have a nice weekend!


Best,

Christoph