[squeak-dev] The Inbox: MorphicExtras-ct.277.mcz

commits at source.squeak.org commits at source.squeak.org
Wed Oct 2 11:44:36 UTC 2019


A new version of MorphicExtras was added to project The Inbox:
http://source.squeak.org/inbox/MorphicExtras-ct.277.mcz

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

Name: MorphicExtras-ct.277
Author: ct
Time: 2 October 2019, 1:44:28.674339 pm
UUID: 458b36b8-7e6d-7a4a-8c40-e2aeef613592
Ancestors: MorphicExtras-ct.267

Adds MIDIScore example again, without depending on Sound-ct.69.

Still depends on MorphicExtras-ct.266 :)

This commit is part of reconstruction of Objectland (also known as "The Worlds of Squeak"). For more information, see: http://forum.world.st/The-Inbox-MorphicExtras-ct-267-mcz-td5104764.html

=============== Diff against MorphicExtras-ct.267 ===============

Item was added:
+ ----- Method: MIDIScore class>>extraExample (in category '*MorphicExtras-examples') -----
+ extraExample
+ 	"(ScorePlayerMorph on: MIDIScore extraExample) openInWorld"
+ 
+ 	| tracks |
+ 	tracks := self extraExampleTrackData collect: [:track | (ReferenceStream on:
+ 		(Base64MimeConverter mimeDecodeToBytes: track readStream)) next].
+ 	^ self new
+ 		tracks: tracks values;
+ 		trackInfo: tracks keys;
+ 		ticksPerQuarterNote: 96;
+ 		tempoMap: self extraExampleTempoMap;
+ 		yourself!

Item was added:
+ ----- Method: MIDIScore class>>extraExampleTempoMap (in category '*MorphicExtras-examples') -----
+ extraExampleTempoMap
+ 
+ 	^ {0->750000 . 26496->769230 . 26592->789473 . 26688->810810 . 26784->833333 . 26880->857142 . 26976->882352 . 27072->909090}
+ 		collect: [:tempoData | TempoEvent time: tempoData key tempo: tempoData value]!

Item was added:
+ ----- Method: MIDIScore class>>extraExampleTrackData (in category '*MorphicExtras-examples') -----
(excessive size, no diff calculated)



More information about the Squeak-dev mailing list