Advertisement
j0h

scratch

j0h
Jul 10th, 2023
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.00 KB | None | 0 0
  1. g++ -g -Wall -o "%e" "%f" -lSDL -lSDL_ttf -lSDL_mixer -lSDL_image -lfreenect -lfreenect_sync `pkg-config --cflags --libs opencv4`
  2.  
  3. switch(depth_value ){
  4. case 400 ... 500:
  5. //noteChannel[0] = Mix_PlayChannel(-1, cNote, 0);
  6. break;
  7.  
  8. case 501 ... 600:
  9. //noteChannel[1] = Mix_PlayChannel(-1, csNote, 0);
  10. break;
  11.  
  12. case 601 ... 700:
  13. //noteChannel[2] = Mix_PlayChannel(-1, dNote, 0);
  14. break;
  15.  
  16. case 701 ... 800:
  17. //noteChannel[3] = Mix_PlayChannel(-1, dsNote, 0);
  18. break;
  19.  
  20. case 801 ... 900:
  21. //noteChannel[4] = Mix_PlayChannel(-1, eNote, 0);
  22. break;
  23.  
  24. case 901 ... 1000:
  25. //noteChannel[5] = Mix_PlayChannel(-1, fNote, 0);
  26. break;
  27.  
  28. case 1001 ... 1100:
  29. //noteChannel[6] = Mix_PlayChannel(-1, fsNote, 0);
  30. break;
  31.  
  32. case 1101 ... 1200:
  33. //noteChannel[7] = Mix_PlayChannel(-1, gNote, 0);
  34. break;
  35.  
  36. case 1201 ... 1300:
  37. //noteChannel[8] = Mix_PlayChannel(-1, gsNote, 0);
  38. break;
  39.  
  40. case 1301 ... 1400:
  41. //noteChannel[9] = Mix_PlayChannel(-1, aNote, 0);
  42. break;
  43.  
  44. case 1401 ... 1500:
  45. //noteChannel[10] = Mix_PlayChannel(-1, asNote, 0);
  46. break;
  47.  
  48. case 1501 ... 1600:
  49. //noteChannel[11] = Mix_PlayChannel(-1, bNote, 0);
  50. break;
  51.  
  52. case 1601 ... 1700:
  53. //noteChannel[12] = Mix_PlayChannel(-1, highCNote, 0);
  54. break;
  55.  
  56. default:
  57. break;
  58. }
  59.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement