The Trunk: Sound-mt.49.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: Sound-mt.49.mcz

commits-2
Marcel Taeumel uploaded a new version of Sound to project The Trunk:
http://source.squeak.org/trunk/Sound-mt.49.mcz

==================== Summary ====================

Name: Sound-mt.49
Author: mt
Time: 6 April 2016, 10:28:46.469834 am
UUID: a2a341f2-f4d3-b946-a104-0e5f59c1554c
Ancestors: Sound-mt.48

Adds code for conveniently playing MIDIs stored in the file system. Compares with Form class.

=============== Diff against Sound-mt.48 ===============

Item was added:
+ ScorePlayer subclass: #MIDISound
+ instanceVariableNames: ''
+ classVariableNames: ''
+ poolDictionaries: ''
+ category: 'Sound-Scores'!
+
+ !MIDISound commentStamp: 'mt 4/6/2016 10:19' prior: 0!
+ This empty class just makes the fact explicit that this object is a sound object that needs can be played. Just like other sounds.
+
+ Example: (MIDISound fromFileNamed: 'some.mid') play!

Item was added:
+ ----- Method: ScorePlayer class>>fromFileNamed: (in category 'instance creation') -----
+ fromFileNamed: fileName
+
+ ^ self onScore: (MIDIFileReader scoreFromFileNamed: fileName)!


Reply | Threaded
Open this post in threaded view
|

Re: The Trunk: Sound-mt.49.mcz

Tobias Pape

On 06.04.2016, at 08:28, [hidden email] wrote:

> Marcel Taeumel uploaded a new version of Sound to project The Trunk:
> http://source.squeak.org/trunk/Sound-mt.49.mcz
>
> ==================== Summary ====================
>
> Name: Sound-mt.49
> Author: mt
> Time: 6 April 2016, 10:28:46.469834 am
> UUID: a2a341f2-f4d3-b946-a104-0e5f59c1554c
> Ancestors: Sound-mt.48
>
> Adds code for conveniently playing MIDIs stored in the file system. Compares with Form class.

\o/

BTW: this makes Squeak the only convenient midi player on mac ;P
Best
        -tobias


>
> =============== Diff against Sound-mt.48 ===============
>
> Item was added:
> + ScorePlayer subclass: #MIDISound
> + instanceVariableNames: ''
> + classVariableNames: ''
> + poolDictionaries: ''
> + category: 'Sound-Scores'!
> +
> + !MIDISound commentStamp: 'mt 4/6/2016 10:19' prior: 0!
> + This empty class just makes the fact explicit that this object is a sound object that needs can be played. Just like other sounds.
> +
> + Example: (MIDISound fromFileNamed: 'some.mid') play!
>
> Item was added:




Reply | Threaded
Open this post in threaded view
|

Re: The Trunk: Sound-mt.49.mcz

marcel.taeumel
Hey Tobias,

it would be great if we could attach to some MIDI device in the operating system. For using sound fonts. :)

...or maybe we can even load sound fonts? :-D

Best,
Marcel
Reply | Threaded
Open this post in threaded view
|

Re: Re: [squeak-dev] The Trunk: Sound-mt.49.mcz

Bert Freudenberg

> On 06.04.2016, at 10:41, marcel.taeumel <[hidden email]> wrote:
>
> Hey Tobias,
>
> it would be great if we could attach to some MIDI device in the operating
> system. For using sound fonts. :)

That used to work. The VM has primitives for MIDI input and output.

- Bert -




smime.p7s (5K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Re: [squeak-dev] The Trunk: Sound-mt.49.mcz

marcel.taeumel
This idea of re-using balloon texts comes from re-using the existing help content to make it more visible.

Best,
Marcel