Squeak Class Documentation category index | class index  
 
RestSound
  category: Sound-Synthesis
  superclass: AbstractSound
  subclasses:

No comment. Sorry.

instance methods
  accessing
  duration
duration:
samples

  initialization
  setDur:

  sound generation
  mixSampleCount:into:startingAt:leftVol:rightVol:
reset
samplesRemaining

class methods
  instance creation
  dur:
pitch:dur:loudness:

instance methods
  accessing top  
 

duration

Answer the duration of this sound in seconds.


 

duration:

Scale my envelopes to the given duration. Subclasses overriding this method should include a resend to super.


 

samples


  initialization top  
 

setDur:

Set rest duration in seconds.


  sound generation top  
 

mixSampleCount:into:startingAt:leftVol:rightVol:

Play silence for a given duration.


 

reset

Reset my internal state for a replay. Methods that override this method should do super reset.


 

samplesRemaining

Answer the number of samples remaining until the end of this sound. A sound with an indefinite ending time should answer some large integer such as 1000000.


class methods
  instance creation top  
 

dur:

Return a rest of the given duration.


 

pitch:dur:loudness:

Return a rest of the given duration.