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.

37 lines
664B

  1. #pragma once
  2. #include "skylights.hh"
  3. namespace rack_plugin_Skylights {
  4. #define AUDIO_OUTPUTS 0
  5. #define AUDIO_INPUTS 1
  6. struct whatnote_module : Module {
  7. enum ParamIds {
  8. NUM_PARAMS
  9. };
  10. enum InputIds {
  11. ENUMS(AUDIO_INPUT, AUDIO_INPUTS),
  12. NUM_INPUTS
  13. };
  14. enum OutputIds {
  15. NUM_OUTPUTS
  16. };
  17. enum LightIds {
  18. NUM_LIGHTS
  19. };
  20. whatnote_module();
  21. virtual ~whatnote_module();
  22. int octave; // what octave did we just read
  23. int semitone; // what semitone did we just read
  24. int cents; // how many cents are left?
  25. double voltage; // what was the last sampled voltage
  26. void step() override;
  27. };
  28. } // namespace rack_plugin_Skylights