[squeak-dev] The Trunk: Sound-mt.49.mcz
commits at source.squeak.org
commits at source.squeak.org
Wed Apr 6 08:28:51 UTC 2016
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)!
More information about the Squeak-dev
mailing list
|