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.

32 lines
1.1 KiB

11 years ago
  1. ; Generated by kX DSP Editor - microcode dump
  2. name "K-VCA";
  3. copyright "Copyright (c) 2003, Kevin Horden";
  4. engine "kX";
  5. created "24/11/2003";
  6. guid "042a99c8-ba7f-459e-b2fc-cd95feaeb303";
  7. ; Voltage Controlled Amplifier
  8. ; The problem with a VCA is logically how to
  9. ; handle bipolar signals on the control (CV) input
  10. ; Normally a VCA responds to CV signals between 0.0
  11. ; and 1.0 from an envelope generator with 0.0 being no output
  12. ; and 1.0 being maximum output. But what happens when you feed
  13. ; in a bipolar CV that swings from -1.0 to 1.0?
  14. ; Adding a bias control gets round this problem and allows
  15. ; bipolar CV signals which swing between -1.0 and 1.0 to have
  16. ; a DC offset added. It can also saturate, but that is what the
  17. ; depth control is for. For CV's from envelopes set the bias to
  18. ; 0% and the depth to 100%. For CV's from an LFO (for tremolo
  19. ; or autopanning) set bias to 50% and depth to 50%.
  20. ;
  21. ; Registers
  22. input In
  23. input CV
  24. output Out
  25. control Depth=0.5
  26. control Gain=0.5
  27. static CVmix
  28. ; Code
  29. macs CVmix, Gain, CV, Depth
  30. macs out, 0.0, In, CVmix
  31. end