ROsc (of Cycle)

class ROsc

Defined in ROsc.sc.

This cycler is similar to Osc, but lets you specify specific first and last cels between which to oscillate.

Sample usage:

// Make the star cycle 5 times between cel 2 and 7.
(star:setCycle(Osc 5 2 7))

Properties

Inherited from Cycle:

Property Description
client  
caller  
cycleDir  
cycleCnt  
completed  

Defined in ROsc:

Property Description
cycles  
firstC  
lastC  

Methods

init(theClient theCycles theFirstC theLastC theCaller)
Parameters:
  • theClient (heapPtr) – The Prop to which this is attached.
  • theCycles (number) – The number of times to cycle, or -1 to cycle indefinitely.
  • theFirstC (number) – The cel at which to start.
  • theLastC (number) – The cel at which to end.
  • theCaller (heapPtr) – Optional object to be cue()’d when the cycle is complete.
doit()
cycleDone()