Class:            SoundEditor

Environment:      Siren
Superclass:         Siren.EditorModel
Category:         MusicUI-Sound
Instance variables:   sound undoSound markers lastSelection changed

A SoundEditor is the editor model for sound views.

Instance Variables:
   copyBuffer the selected sound after a copy cmomand
   sound the model sound
   markers the sample indices of the selected points
   selection1 the sample index start of the current selection
   selection2 the stop of the selection
   lastSelection selection1 or 2, whichever was selected last
   view my view
   changed whether the sound has been changed

interaction

copy
   Copy the current selection into the temporary copy buffer.

cut
   Cut out the current selection.

file
   Save the receiver's sound to a file.

newCopy
   Make a fresh copy of the receiver's model's sound.

play
   Play the receiver's sound

playAll
   Play the receiver's sound

playSelection
   Play the receiver's sound

spawn
   Open a soundfile editor.

accessing

clearMarkers
   Flush the selection and markers

list
   

mark: aSampleNumber
   Set the receiver's model

markChanged: aBoolean
   Set the flag to tell the receiver that the model's been changed.

markers
   Answer the receiver's markers

markers: aCollection
   Set the receiver's marker collection.

selection1
   Answer the receiver's primary selection.

selection1: anInteger
   Set the receiver's primary selection.

selection2
   Answer the receiver's 2nd-ary selection.

selection2: anInteger
   Set the receiver's secondary selection.

selectionStart
   

selectionStop
   

setModel: aModel
   Set the receiver's model.

size
   

sound
   Answer the receiver's model

sound: aSound
   Set the receiver's model to be the given sound

view: aView
   Set the receiver's view to be the given view

initialize release

initialize
   Set up the proper default values for the receiver.

reinitialize
   Set up the proper default values for the receiver.

selection

select: cursorX
   Take a mouse point and place a marker on the sound sample there.

selectedSound
   Answer a sound from the receiver view's selection.

setSelection: aMarker
   Set the primary selection to be the given marker.

MetaClass:         SoundEditor class

instance creation

new
   Answer an initialized instance.