The Trunk: Sound-eem.66.mcz

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

The Trunk: Sound-eem.66.mcz

commits-2
Eliot Miranda uploaded a new version of Sound to project The Trunk:
http://source.squeak.org/trunk/Sound-eem.66.mcz

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

Name: Sound-eem.66
Author: eem
Time: 6 September 2019, 6:35:22.324342 pm
UUID: 14d6ad72-3924-45d9-97fb-2cc269c9a20b
Ancestors: Sound-pre.65

Use a byte-oriented file stream to read MIDI files, and ensure the file is closed on reading.

=============== Diff against Sound-pre.65 ===============

Item was changed:
  ----- Method: MIDIFileReader class>>scoreFromFileNamed: (in category 'reading') -----
  scoreFromFileNamed: fileName
 
+ | f |
+ f := (StandardFileStream readOnlyFileNamed: fileName) binary.
+ ^[(self new readMIDIFrom: f) asScore]
+ ensure: [f close]!
- | f score |
- f := (FileStream readOnlyFileNamed: fileName) binary.
- score := (self new readMIDIFrom: f) asScore.
- f close.
- ^ score
- !