Sampler in ChucK
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
742B

  1. // feedforward
  2. adc => Gain g => dac;
  3. // feedback
  4. g => Gain feedback => DelayL delay => g;
  5. // set delay parameters
  6. 5::second => delay.max => delay.delay;
  7. // set feedback
  8. .5 => feedback.gain;
  9. // set effects mix
  10. .75 => delay.gain;
  11. // infinite time loop
  12. <<< "hello from chuck (waiting for OSC)" >>>;
  13. // create our OSC receiver
  14. OscRecv recv;
  15. // use port 9000
  16. 9000 => recv.port;
  17. // start listening (launch thread)
  18. recv.listen();
  19. // create an address in the receiver, store in new variable
  20. recv.event( "/test, f" ) @=> OscEvent oe;
  21. // infinite event loop
  22. while ( true )
  23. {
  24. // wait for event to arrive
  25. oe => now;
  26. // grab the next message from the queue.
  27. while ( oe.nextMsg() != 0 )
  28. {
  29. <<< oe.getFloat() >>>;
  30. }
  31. }