Sampler in ChucK
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
630B

  1. // Effects chain
  2. Gain mixer => dac; // Main mixer
  3. adc => Gain adcThru => mixer; // Monitor the input
  4. adc => LiSa sample => mixer; // Sampler
  5. // TODO: turn off adcThru when recording
  6. //Times
  7. 10::second => sample.duration;
  8. 0::second => sample.recPos;
  9. 0::second => sample.playPos;
  10. 1::second => sample.loopEnd => sample.loopEndRec;
  11. // Start recording and playing in a loop
  12. 1 => sample.loop => sample.record => sample.play;
  13. // Levels
  14. //0 => adc.gain;
  15. 1 => sample.feedback;
  16. .5 => sample.gain;
  17. .5 => adcThru.gain;
  18. .5::second => now;
  19. 2::second => sample.loopEnd => sample.loopEndRec;
  20. while(true) { 1::second => now; }