examples/math/periodicSignalsExample/README.md
This openFrameworks Example is designed to demonstrate how to draw a variety of periodic signals, a signal that completes a pattern within a measurable timeframe using one of the following: trig functions, modulo, ofRandomn, or a varient of the noise function.
In this example, pay attention to the following code:
sin(angle) that uses angles and returns values between -1 and 1 (see the trigonometryExample for more on trig functions)ofNoise(), calculates a randomn value between 0 and 1.0 based on perlin noiseofSignedNoise(), calculates a random value between -1.0 and 1.0 based on perlin noiseofRandom(value1, value2), calculates a random value between value1 and value2. ofRandom() is different from noise function in that the values returned are completely randomn. noise functions are psuedo random with easing between values.fmod(), returns the remainder after dividng one number by another known as the modulo operator. This is the same as using %; however, it is for floats.When launching this app, you should see:
Instructions for use:
ofRandom(value1, value2) cannot be dependent on time or frequencyThis Example uses ofxSimpleSlider class, so that the "y amnt", "x speed", and "frequency" can be adjusted once the app is running.