[squeak-dev] The Trunk: Sound-eem.66.mcz

commits at source.squeak.org commits at source.squeak.org
Sat Sep 7 01:35:24 UTC 2019


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
- !



More information about the Squeak-dev mailing list