Environment: Siren
Instances of SoundView are used for displaying samples sound objects in R4.
Instance variables:
converting indeces
step
scale
xForSample: sample
Answer the xValue of the sample with the given index.
accessing
Set the receiver's bounds.
markerColor
Answer the color for selection markers.
preferredBounds
Answer the extent of the receiver's display object bounding box.
scale
Return the vertical scale.
scale: theScale
Accept the argument, 'theScale', as the new instance variable 'scale'.
sound
Answer the model's sound.
sound: aSound
Set the model's sound.
step
Return the horizontal sample-per-pixel scale
step: theStep
Accept the argument, 'theStep', as the new instance variable 'step'.
text
Answer the default display text for the receiver's sound.
viewExtent
Answer the extent of the receiver's display object bounding box.
selection
take a mouse point and place a marker on the sound sample there
selectBetween: startValue and: stopValue
take a mouse region and place a marker on the sound sample there
showMarkerAt: xValue
take a mouse point and place a marker on the sound sample there
displaying
Show the selections (up to 2 markers) in the current sound
displayOn: aGraphicsContext
Display the receiver's sound on the argument
displayOnGC: aGC
Show the receiver's sound on the GC.
displayPosition: pos
Display the mouse pos in the corner of my display
invalidate
Redisplay the receiver's sound
redraw
Redisplay the receiver's sound
initialize-release
Set up the proper default values for the receiver.
controller access
Answer the default controller class for use with the receiver.
private
Answer the extent of the receiver's display object bounding box.
visibleExtent
Answer the extent of the receiver's clipping box.
MetaClass: SoundView class
instance creation
Answer a DLView for use as a component.
componentOnSoundNoFrills: aSound
Answer a DLView for use as a component.
openOn: aSound
Take the sound as model and open a SoundView
soundViewOn: aSound
Take the sound as model and open a SoundView
examples
Open a sound view on the example sound file.
example2
Open a sound view on the a sound from a file.
exampleLong
Open a sound view on the a sound from a file.
exampleRamp
Open a sound view on the a sound with a slow ramp.