Christoph Thiede uploaded a new version of MorphicExtras to project The Trunk: http://source.squeak.org/trunk/MorphicExtras-ct.330.mcz
==================== Summary ====================
Name: MorphicExtras-ct.330 Author: ct Time: 25 August 2022, 3:57:58.536239 pm UUID: 2e1c5775-6f30-154d-b1ba-77d1d443e805 Ancestors: MorphicExtras-ct.329
In the Score Player example, use different instruments as intended by the example track. Adds ScorePlayerMorph>>#atTrack:selectInstrument:.
=============== Diff against MorphicExtras-ct.329 ===============
Item was changed: ----- Method: ScorePlayerMorph class>>extraExample (in category '*MorphicExtras-examples') ----- extraExample "ScorePlayerMorph extraExample openInHand"
+ | scorePlayerMorph | + scorePlayerMorph := self on: MIDIScore extraExample. + #('organ1' 'oboe1' 'brass1' 'oboe1' 'oboe2' 'bass1' 'bassoon1' 'bass1' 'pluckedElecBass' 'bass1') + withIndexDo: [:name :index | + scorePlayerMorph atTrack: index selectInstrument: name]. + ^ scorePlayerMorph! - ^ self on: MIDIScore extraExample!
Item was added: + ----- Method: ScorePlayerMorph>>atTrack:selectInstrument: (in category 'controls') ----- + atTrack: trackIndex selectInstrument: selection + + ^ self atTrack: trackIndex from: (instrumentSelector at: trackIndex) selectInstrument: selection!
Fun fact: If you use MIDI instead of built-in sounds, there is even a drum (even though it is not listed in the piano roll). :-)
Best,
Christoph
________________________________ Von: Squeak-dev squeak-dev-bounces@lists.squeakfoundation.org im Auftrag von commits@source.squeak.org commits@source.squeak.org Gesendet: Donnerstag, 25. August 2022 15:58:02 An: squeak-dev@lists.squeakfoundation.org; packages@lists.squeakfoundation.org Betreff: [squeak-dev] The Trunk: MorphicExtras-ct.330.mcz
Christoph Thiede uploaded a new version of MorphicExtras to project The Trunk: http://source.squeak.org/trunk/MorphicExtras-ct.330.mcz
==================== Summary ====================
Name: MorphicExtras-ct.330 Author: ct Time: 25 August 2022, 3:57:58.536239 pm UUID: 2e1c5775-6f30-154d-b1ba-77d1d443e805 Ancestors: MorphicExtras-ct.329
In the Score Player example, use different instruments as intended by the example track. Adds ScorePlayerMorph>>#atTrack:selectInstrument:.
=============== Diff against MorphicExtras-ct.329 ===============
Item was changed: ----- Method: ScorePlayerMorph class>>extraExample (in category '*MorphicExtras-examples') ----- extraExample "ScorePlayerMorph extraExample openInHand"
+ | scorePlayerMorph | + scorePlayerMorph := self on: MIDIScore extraExample. + #('organ1' 'oboe1' 'brass1' 'oboe1' 'oboe2' 'bass1' 'bassoon1' 'bass1' 'pluckedElecBass' 'bass1') + withIndexDo: [:name :index | + scorePlayerMorph atTrack: index selectInstrument: name]. + ^ scorePlayerMorph! - ^ self on: MIDIScore extraExample!
Item was added: + ----- Method: ScorePlayerMorph>>atTrack:selectInstrument: (in category 'controls') ----- + atTrack: trackIndex selectInstrument: selection + + ^ self atTrack: trackIndex from: (instrumentSelector at: trackIndex) selectInstrument: selection!
I remember having 'fun' with getting the midi stuff to work on a Pi for Scratch. I think there can be some fairly annoying delays between requesting a note and actually hearing it; maybe that has improved as the Pi has got faster?
There were also issues I noted about the index of the instrument not matching the plugin/library (off by one problems I think) and the timidity system. Then again, the only planet where all the unix systems do sound properly is Mars, so we shouldn't be too surprised.
On 2022-08-25, at 7:35 AM, Thiede, Christoph Christoph.Thiede@student.hpi.uni-potsdam.de wrote:
Fun fact: If you use MIDI instead of built-in sounds, there is even a drum (even though it is not listed in the piano roll). :-)
Best, Christoph Von: Squeak-dev squeak-dev-bounces@lists.squeakfoundation.org im Auftrag von commits@source.squeak.org commits@source.squeak.org Gesendet: Donnerstag, 25. August 2022 15:58:02 An: squeak-dev@lists.squeakfoundation.org; packages@lists.squeakfoundation.org Betreff: [squeak-dev] The Trunk: MorphicExtras-ct.330.mcz
Christoph Thiede uploaded a new version of MorphicExtras to project The Trunk: http://source.squeak.org/trunk/MorphicExtras-ct.330.mcz
==================== Summary ====================
Name: MorphicExtras-ct.330 Author: ct Time: 25 August 2022, 3:57:58.536239 pm UUID: 2e1c5775-6f30-154d-b1ba-77d1d443e805 Ancestors: MorphicExtras-ct.329
In the Score Player example, use different instruments as intended by the example track. Adds ScorePlayerMorph>>#atTrack:selectInstrument:.
=============== Diff against MorphicExtras-ct.329 ===============
Item was changed: ----- Method: ScorePlayerMorph class>>extraExample (in category '*MorphicExtras-examples') ----- extraExample "ScorePlayerMorph extraExample openInHand"
| scorePlayerMorph |
scorePlayerMorph := self on: MIDIScore extraExample.
#('organ1' 'oboe1' 'brass1' 'oboe1' 'oboe2' 'bass1' 'bassoon1' 'bass1' 'pluckedElecBass' 'bass1')
withIndexDo: [:name :index |
scorePlayerMorph atTrack: index selectInstrument: name].
^ scorePlayerMorph!
^ self on: MIDIScore extraExample!
Item was added:
- ----- Method: ScorePlayerMorph>>atTrack:selectInstrument: (in category 'controls') -----
- atTrack: trackIndex selectInstrument: selection
^ self atTrack: trackIndex from: (instrumentSelector at: trackIndex) selectInstrument: selection!
tim -- tim Rowledge; tim@rowledge.org; http://www.rowledge.org/tim Strange OpCodes: JTC: Jump To Conclusions
squeak-dev@lists.squeakfoundation.org