examples/math/noise1dOctaveExample/README.md
This openFrameworks Example is designed to demonstrate how more "organic" noise signals can be generated by summing multiple "octaves" of noise.
In this example, pay attention to the following code:
ofNoise() creates a signal that varies smoothly between 0 and 1. More 'organic' noise can be made by adding multiple 'octaves' of noise. Each noise function that is added to the final strip is an 'octave'.struct NoiseDataStrip {}, struct is a data structure that can have a number of data elements grouped together. In this app, "NoiseDataStrip" (in ofApp.h) is a simple struct to store the data contained by one of these noise recordings. Each struct contains the bounding coordinates (x,y,w,h), and some other parameters, plus the float array (data) containing the noise recordings.void setupMultibandNoiseDemo() used to setup and allocate resources used in the multi-noise strip demovoid updateMultibandNoiseDemo() this is where the data for each strip is updated, ofNoise() is called, normalization factor is computed, and each strip is summed and normalizedvoid render1DNoiseStrip (...) renders each individual stripvoid renderMultibandNoiseDemo() is where void render1DNoiseStrip (...) is called for each strip, rendering each strip simultaneouslyWhen launching this app, you should see:
Instructions for use:
This Example uses "ofxSimpleSlider" to add sliders to the final outpout.