Oscillator is a processing library that generates series of waves. It also provides complex waves by mixing them each other.
This library is aimed for simulating rythm, pattern,ď˝’epetition in the nature system. One of the strong feature of oscillator class is its recursive structure. You can mix waves. And you can also apply ocillators to other oscillator's parameter. (for example wave which is generated by oscillator controlls another oscillator's amplitude, period, offset).

Download

oscillator.zip (2005/may/03) sample

classes

OscSin, OscCos, OscTriangle, OscSquare, OscSawTooth, OscSawTooth2

Generates various kind of waves. These class have compaibility with each other. Use Oscillator as a data type to contain them.

OscWhiteNoise

Special kind of oscillator that returns random value.

OscComposite

Special kind of oscillator that contains series of oscillators, and returns mixed wave of them.

OscConstant

Special kind of oscillator that returns just a fixed value.
Basically OscConstant class is used for parameters of other oscillators as a static value.(ie. Amplitude)

Oscillator

Base class for all other classes. Basically this is just used as a data type to contain all oscillators.
If you want to contain series of oscillators in the array. Use Oscillator[] for the data type. This class itself has any practical use except this.

tutorial

may be come soon

known bugs

  • applying a oscillator to the period parameter of other oscillators' is not recomended. yet.
  • applying a oscillator to the perOffset parameter of other oscillators' is not recomended. yet.
  • adding oscillator to OscComposite class inclements internal count of contained oscillators.
    Basically it is not critical of most case, but harmful if you need perfectly synchronized waves.
    Currently this is fundermental to recalculate mixed wave, it will be fixed for the future.
  • credit

    by Takayuki Fukatsu
    http://www.fladdict.net
    fukatsu !at! gmail.com