Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- g++ -g -Wall -o "%e" "%f" -lSDL -lSDL_ttf -lSDL_mixer -lSDL_image -lfreenect -lfreenect_sync `pkg-config --cflags --libs opencv4`
- switch(depth_value ){
- case 400 ... 500:
- //noteChannel[0] = Mix_PlayChannel(-1, cNote, 0);
- break;
- case 501 ... 600:
- //noteChannel[1] = Mix_PlayChannel(-1, csNote, 0);
- break;
- case 601 ... 700:
- //noteChannel[2] = Mix_PlayChannel(-1, dNote, 0);
- break;
- case 701 ... 800:
- //noteChannel[3] = Mix_PlayChannel(-1, dsNote, 0);
- break;
- case 801 ... 900:
- //noteChannel[4] = Mix_PlayChannel(-1, eNote, 0);
- break;
- case 901 ... 1000:
- //noteChannel[5] = Mix_PlayChannel(-1, fNote, 0);
- break;
- case 1001 ... 1100:
- //noteChannel[6] = Mix_PlayChannel(-1, fsNote, 0);
- break;
- case 1101 ... 1200:
- //noteChannel[7] = Mix_PlayChannel(-1, gNote, 0);
- break;
- case 1201 ... 1300:
- //noteChannel[8] = Mix_PlayChannel(-1, gsNote, 0);
- break;
- case 1301 ... 1400:
- //noteChannel[9] = Mix_PlayChannel(-1, aNote, 0);
- break;
- case 1401 ... 1500:
- //noteChannel[10] = Mix_PlayChannel(-1, asNote, 0);
- break;
- case 1501 ... 1600:
- //noteChannel[11] = Mix_PlayChannel(-1, bNote, 0);
- break;
- case 1601 ... 1700:
- //noteChannel[12] = Mix_PlayChannel(-1, highCNote, 0);
- break;
- default:
- break;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement