Class: SoundController

Environment: Siren
Superclass: ControllerWithMenu
Category: MusicUI-Sound
Instance variables: selection tracking

Instances of SoundController are used with SoundViews and perform horizontal scrolling and menu operations

menu messages

clearMarkers: ignored
Flush the selection and markers

copy
copy the selected sound

cut
cut the selected segment out of the receiver's model sound

doInspect
Inspect the view.

fadeIn
Apply a ramp fade-in envelope to the receiver's sound.

fadeOut
Apply a ramp fade-out envelope to the receiver's sound.

file: ignored
Open the file dialog

inspect: ignored
Inspect the view.

menu

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

paste
paste the selected sound into the model at the current selected marker

play: ignored
play the model

playAll
play the model

playSelection
play the model

reset
Clear the model's selections and markers

save
Save a copy of the model to the disk.

setHscale
set the horizontal scale of the view

setVscale
set the vertical scale of the view

spawn
Edit a copy of the model.

control defaults

redButtonActivity
set a marker with the red button

selectMarkerAt: x
Select the marker at the given x value.

event driven

exitEvent: anEvent
redraw the view to clear the position display.

mouseMovedEvent: aMouseMovedEvent

redButtonPressedEvent: event
set a marker with the red button

MetaClass: SoundController class