martaczaska

iuhuijilk

Jun 14th, 2020
1,302
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.42 KB | None | 0 0
  1.         #if SIGNAL == 0
  2.             mono_wejscie = (lewy_wejscie >> 1) + (prawy_wejscie >> 1);
  3.         #elif SIGNAL == 1
  4.             if(e == NUM_SAMPLES){
  5.                 rand16init();
  6.                 rand16((DATA*)wybrana, NUM_SAMPLES);
  7.                 e = 0;
  8.             }
  9.             mono_wejscie = wybrana[e];
  10.             e++;
  11.  
  12.         #elif SIGNAL == 2
  13.             if(e == NUM_SAMPLES){
  14.                 saw(wybrana, NUM_SAMPLES, numero);
  15.                 e = 0;
  16.                 }
  17.             mono_wejscie = wybrana[e];
  18.             e++;
  19.            
  20.         #elif SIGNAL == 3
  21.             if(e == NUM_SAMPLES){
  22.                 sint(wybrana, NUM_SAMPLES, numero);
  23.                 e = 0;
  24.             }
  25.             mono_wejscie = wybrana[e];
  26.             e++;
  27.                        
  28.         #elif SIGNAL == 4
  29.             for(e = 0; e < NUM_SAMPLES; e++){
  30.                 mono_wejscie = testsignal[e];
  31.             }
  32.  
  33.         #endif
Advertisement
Add Comment
Please, Sign In to add comment