Mercurial > hg > screen-ui
comparison src/main.cpp @ 8:3d9e0db254dc
Added OSC receive
author | Henrik Ekeus <hekeus@eecs.qmul.ac.uk> |
---|---|
date | Thu, 26 Jan 2012 23:42:13 +0000 |
parents | d879a30556f8 |
children | 3dff71c0e7fd |
comparison
equal
deleted
inserted
replaced
7:38f63c4300d7 | 8:3d9e0db254dc |
---|---|
3 #include "ofAppGlutWindow.h" | 3 #include "ofAppGlutWindow.h" |
4 | 4 |
5 #define HOST "localhost" | 5 #define HOST "localhost" |
6 #define PORT 7770 | 6 #define PORT 7770 |
7 #define NUMVOICES 3 | 7 #define NUMVOICES 3 |
8 #define RECEIVEPORT 1234 | |
8 | 9 |
9 //======================================================================== | 10 //======================================================================== |
10 int main(int argc, const char **argv ){ | 11 int main(int argc, const char **argv ){ |
11 | 12 |
12 ofAppGlutWindow window; | 13 ofAppGlutWindow window; |
21 // pass in width and height too: | 22 // pass in width and height too: |
22 ofRunApp( new melodyTriangle(argc>1 ? argv[1] : HOST, | 23 ofRunApp( new melodyTriangle(argc>1 ? argv[1] : HOST, |
23 argc>2 ? atoi(argv[2]) : PORT, | 24 argc>2 ? atoi(argv[2]) : PORT, |
24 argc>3 ? atoi(argv[3]) : NUMVOICES, | 25 argc>3 ? atoi(argv[3]) : NUMVOICES, |
25 argc>5 ? atoi(argv[5]) : true, | 26 argc>5 ? atoi(argv[5]) : true, |
26 argc>6 ? atoi(argv[6]) : 0)); | 27 argc>6 ? atoi(argv[6]) : 0, |
28 argc>7 ? atoi(argv[7]) : RECEIVEPORT) | |
29 ); | |
27 | 30 |
28 } | 31 } |