[squeak-dev] Writing a MIDI file?

Squeak List squeaklist at yahoo.com
Wed May 5 07:39:56 UTC 2010


in the ScorePlayerMorph that opens, there are 3 instruments/tracks which each have their own volume and panning controls. on my system: the SLIDERS controlling volume and panning are:  instrument 1 is red, instrument 2 is green, and instrument 3 has blue sliders... (RGB, nice)...

1 - do whatever you want with the keyboard when it opens - deliberate or random.

2 - the notes/representation which show up in the PianoScrollMorph are the same color as (what i would call the activated recording channel) the sliders mentioned above.

3 - on my system, the red notes appear 1st on the PianoRoll...

4 - then, in the ScorePlayerMorph, if you MUTE instruments 1 and 3, the piano roll is empty again, and what you do next with the keyboard will appear on the piano roll in its corresponding color (green notes now)...

5 - mute instruments 1 and 2, and do what you must with the keyboard again: blue notes this time.

6 - "UN-MUTE" (turn off mute) all of the instruments/tracks to see them all in the piano roll. all 3 colors/tracks/instruments now appear in the piano roll.

7 - mute and "un-mute" in ScorePlayerMorph to see what each track/instrument is doing in the piano roll.

a decent place 2 begin :)

now if "save as midi file" was added to the "saving" options :)

ken



----- Original Message ----
From: Hannes Hirzel <hannes.hirzel at gmail.com>
To: The general-purpose Squeak developers list <squeak-dev at lists.squeakfoundation.org>
Sent: Tue, May 4, 2010 10:37:33 AM
Subject: Re: [squeak-dev] Writing a MIDI file?

Regarding the KeyboardMorphForInput - I can enter the scores for the
first instrument (red scores) but how do I do it for the second (green
scores).

The answer to this question would result in an update to the comment
of class KeyboardMorphForInput.

--Hannes

On 5/4/10, Nicolas Cellier <nicolas.cellier.aka.nice at gmail.com> wrote:
> 2010/5/4 Hannes Hirzel <hannes.hirzel at gmail.com>:
>> On 5/4/10, Squeak List <squeaklist at yahoo.com> wrote:
>>> actually,
>>>
>>> the class comment for MIDIFileWriter actually works - not very extensive,
>>> but is nearly infinitely more useful/interesting than NO comment :) an
>>> example of helpful documentation,
>> +1
>>
>> and cheers indeed for code created around
>>> 10 ago...AND still working in 4.1 update:10112 !!!
>>>
>>> thank you Lushi (AKA Yisrael Lowenstein).
>>>
>>> my original MIDI interest was to be able to convert "scores" with the
>>> same/similar format found in the AbstractSound bachFugue examples: to
>>> create
>>> a MIDI file from scratch - not exactly like the MIDIFileWriter example...
>>>
>>> Stéphane pointed out a way to do that in his Mu0 environment... and i am
>>> working on my own version fine-tuned to what i want to do in the way that
>>> makes most sense to me in the environment which i am creating :)
>>>
>>> i also agree that it (Class MIDIFileWriter) should be in the base image,
>>> if
>>> possible.
>> +1
>> or than easily accessible as something like SoundAddons on
>> Squeaksource together with a reference in the 'Extending the System'
>> workspace.
>>
>>> ken
>>>
>>>
>>> PS: this brief sort of documentation is very helpful to me.
>>>
>>> a great example imo is the class comment for: KeyboardMorphForInput.
>>>
>>> KeyboardMorphForInput commentStamp:'nice 3/24/2010 07:37' prior:0...
>>>
>>> i do not know who goes by the initials of  'nice' - but whoever it is did
>>> a
>>> rather decent job. actually extremely well done imo...
>>> and hopefully "someone" could tell me how to search the image for
>>> commentStamps created by 'nice'... that would be....
>>>
>> Nice = Nicolas Cellier
>>
>> --Hannes
>>
>>
>
> But I didn't write the comment, just replaced _ with :=
>
> Nicolas
>
>


      




More information about the Squeak-dev mailing list