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

No comment. Sorry.

instance methods
  accessing
  iterationCount
iterationCount:
sound
sound:

  copying
  copy
copySound

  initialization
  setPitch:dur:loudness:
setSound:iterations:

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

class methods
  car motor example
  carMotorSound
carMotorSound:
initializeCarMotor

  instance creation
  repeat:count:
repeatForever:

instance methods
  accessing top  
 

iterationCount


 

iterationCount:


 

sound


 

sound:


  copying top  
 

copy

Copy my component sound.


 

copySound

Private! Support for copying. Copy my component sound.


  initialization top  
 

setPitch:dur:loudness:

Initialize my envelopes for the given parameters. Subclasses overriding this method should include a resend to super.


 

setSound:iterations:

Initialize the receiver to play the given sound the given number of times. If iteration count is the symbol #forever, then repeat indefinitely.


  sound generation top  
 

doControl

Update the control parameters of this sound using its envelopes, if any.


 

mixSampleCount:into:startingAt:leftVol:rightVol:

Play a collection of sounds in sequence.


 

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
  car motor example top  
 

carMotorSound

Return a repeating sound for the sound of a car engine.


 

carMotorSound:

Return a repeating sound for the sound of a car engine running at the given speed.


 

initializeCarMotor

Initialize the samples array for the sound of a car engine.


  instance creation top  
 

repeat:count:

Return a RepeatingSound that will repeat the given sound for the given number of iterations.


 

repeatForever:

Return a RepeatingSound that will repeat the given sound forever.