Sampler in ChucK
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

28 Zeilen
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; }