Squeak Class Documentation category index | class index  
 
MovieFrameSyncMorph
  category: Morphic-Demo
  superclass: ImageMorph
  subclasses: MovieClipStartMorph

This class and its subclasses act to syncronize movie players with the progress of a MIDI score and further background can be found in the comment for MoviePlayerMorph.

There are two main forms of synchroniztion.

MovieFrameSyncMorphs are used where you have a MIDI score open with a piano roll, and a separate MoviePlayer Morph. A MovieFrameSyncMorph can be torn off from the MoviePlayer with a shift-drag gesture or menu command, and can then be dropped into a MIDI score. They are used to start a movie player at a given place in the score, and then to stretch or compress the movie frame rate so that certain frames are synchronized with the corresponding points in the score.

MovieClipStartMorphs (q.v.) and MovieClipEndMorphs are used for the other kind of synchronization, namely where you wish to assemble a number of movie clips in a sequence.

instance methods
  access
  frameNumber
moviePlayerMorph
relatedPlayer

  drawing
  addMorphsTo:pianoRoll:eventTime:betweenTime:and:

  events
  encounteredAtTime:inScorePlayer:atIndex:inEventTrack:secsPerTick:
nextSyncEventAfter:inTrack:
pauseFrom:
resetFrom:
resumeFrom:

  initialization
  image:player:frameNumber:
justDroppedInto:event:
justDroppedIntoPianoRoll:event:

class methods
  no messages
 

instance methods
  access top  
 

frameNumber


 

moviePlayerMorph


 

relatedPlayer


  drawing top  
 

addMorphsTo:pianoRoll:eventTime:betweenTime:and:

a hack to allow for abitrary morphs to be dropped into piano roll


  events top  
 

encounteredAtTime:inScorePlayer:atIndex:inEventTrack:secsPerTick:

Set frame number and milliseconds since start in case of drift


 

nextSyncEventAfter:inTrack:


 

pauseFrom:

subclasses should take five


 

resetFrom:

subclasses should revert to their initial state


 

resumeFrom:

subclasses should continue from their current position


  initialization top  
 

image:player:frameNumber:


 

justDroppedInto:event:

When dropping this morph into a pianoRoll, add a corresponding
event to the score so that it will always appear when played,
in addition to possibly triggering other actions


 

justDroppedIntoPianoRoll:event:

since these morphs handle their own dropping, ignore


class methods
  no messages top