#include "disco.h" disco::disco() { } //-------------------------------------------------------------- void disco::setup() { } //-------------------------------------------------------------- void disco::update(float value, float hihat_value) { ofBackgroundGradient(0, 15, OF_GRADIENT_CIRCULAR); //gradient background, looks cooler than normal flat float hiHatValue = hihat_value; float beatValue = value; if (beatValue > 16 && prevBeat<15.8) { //these values need adjusting depending on the sound you're outputting via line in/mic counter++; } if (counter == (loops * 5)) { counter = 0; } //VISUAL 1 if (counter <= (loops * 1)) { std::cout << "test" << endl; } //VISUAL 2 else if (counter >= (loops * 1) && counter <= (loops * 2)) { } //VISUAL 3 else if (counter >= (loops * 2) && counter <= (loops * 3)) { } //VISUAL 4 else if (counter >= (loops * 3) && counter <= (loops * 4)) { } //VISUAL 5 else if (counter >= (loops * 4) && counter <= (loops * 5)) { } prevBeat = value; } //-------------------------------------------------------------- void disco::draw() { }