Squeak Class Documentation category index | class index  
 
ScorePlayerMorph
  category: Sound-Scores
  superclass: AlignmentMorph
  subclasses:

A ScorePlayerMorph mediates between a score such as a MIDIScore, a PianoRollScoreMorph, and the actual SoundPlayer synthesizer.

It provides control over volume, tempo, instrumentation, and location in the score.

instance methods
  accessing
  scorePlayer

  controls
  atTrack:from:selectInstrument:
rewind
setLogRate:

  initialization
  closeMIDIPort
initialize
onScorePlayer:title:
openMIDIFile
openMIDIPort
wantsRoundedCorners

  layout
  makeControls
makeMIDIController:
makePianoRoll
makeRow
panAndVolControlsFor:
rateControl
scrollControl
showResumeButtonInTheWorld
standaloneResumeButton
trackControlsFor:
trackNumAndMuteButtonFor:
volumeControl

  menu
  instrumentChoicesForTrack:
invokeMenu
makeAPauseEvent:
updateInstrumentsFromLibraryExcept:

  object fileIn
 

  stepping
  step

class methods
  as yet unclassified
  descriptionForPartsBin
onMIDIFileNamed:
openOn:title:

instance methods
  accessing top  
 

scorePlayer


  controls top  
 

atTrack:from:selectInstrument:


 

rewind


 

setLogRate:


  initialization top  
 

closeMIDIPort


 

initialize


 

onScorePlayer:title:


 

openMIDIFile

Open a MIDI score and re-init controls...


 

openMIDIPort


 

wantsRoundedCorners

Default response is simple, fast, and false.
May be overridden to allow almost any morph to be rounded.


  layout top  
 

makeControls


 

makeMIDIController:


 

makePianoRoll

Create a piano roll viewer for this score player.


 

makeRow


 

panAndVolControlsFor:


 

rateControl


 

scrollControl


 

showResumeButtonInTheWorld


 

standaloneResumeButton


 

trackControlsFor:


 

trackNumAndMuteButtonFor:


 

volumeControl


  menu top  
 

instrumentChoicesForTrack:


 

invokeMenu

Invoke a menu of additonal functions for this WaveEditor.


 

makeAPauseEvent:


 

updateInstrumentsFromLibraryExcept:

The instrument library has been modified. Update my instruments with the new versions from the library. Use a single instrument prototype for all parts with the same name; this allows the envelope editor to edit all the parts by changing a single sound prototype.


  object fileIn top  

  stepping top  
 

step

Do some periodic activity. Use startStepping/stopStepping to start and stop getting sent this message. The time between steps is specified by this morph's answer to the stepTime message. The generic version dispatches control to the player, if any. The nasty circumlocation about owner's transformation is necessitated by the flexing problem that the player remains in the properties dictionary both of the flex and the real morph. In the current architecture, only the top renderer's pointer to the player should actually be honored for the purpose of firing.


class methods
  as yet unclassified top  
 

descriptionForPartsBin

If the receiver is a member of a class that would like to be represented in a parts bin, answer the name by which it should be known, and a documentation string to be provided, for example, as balloon help. When the 'nativitySelector' is sent to the 'globalReceiver', it is expected that some kind of Morph will result. The parameters used in the implementation below are for documentation purposes only!


 

onMIDIFileNamed:

Return a ScorePlayerMorph on the score from the MIDI file of the given name.


 

openOn:title: