Mercurial > hg > screen-ui
view src/main.cpp @ 25:f4ebb87adec1
Added code to keep track of true position of voices in information space;
Two voice drawing methods display both true position target position while dragging;
string to Voice::status code no longer required;
refactored OSC message sending code;
added keys to control subdivision ratio for period and shift controls.
author | samer |
---|---|
date | Sun, 05 Feb 2012 18:13:30 +0000 |
parents | 460c05dd74d0 |
children |
line wrap: on
line source
#include "ofMain.h" #include "melodyTriangle.h" #include "ofAppGlutWindow.h" #define HOST "localhost" #define PORT 7770 #define NUMVOICES 4 #define RECEIVEPORT 7771 //======================================================================== int main(int argc, const char **argv ){ ofAppGlutWindow window; if (argc>4 ? atoi(argv[4]) : false){ ofSetupOpenGL(&window, 1280,800, OF_FULLSCREEN); // <-------- setup the GL context }else{ ofSetupOpenGL(&window, 800,600, OF_WINDOW); } // this kicks off the running of my app // can be OF_WINDOW or OF_FULLSCREEN // pass in width and height too: ofRunApp( new melodyTriangle(argc>1 ? argv[1] : HOST, argc>2 ? atoi(argv[2]) : PORT, argc>3 ? atoi(argv[3]) : NUMVOICES, argc>5 ? atoi(argv[5]) : true, argc>6 ? atoi(argv[6]) : 0, argc>7 ? atoi(argv[7]) : RECEIVEPORT) ); }