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.

23 lines
441B

  1. #pragma once
  2. #include <cstdint>
  3. #include "CV.hpp"
  4. namespace SynthDevKit {
  5. class DistributedClock {
  6. public:
  7. DistributedClock (bool, float);
  8. void update (uint8_t, float, float);
  9. void reset ( );
  10. bool triggerClock ( );
  11. bool triggerDownstream ( );
  12. private:
  13. CV *upstreamCV;
  14. CV *clockCV;
  15. bool isMaster;
  16. bool isActive;
  17. uint8_t triggerCount;
  18. uint8_t totalTriggers;
  19. };
  20. }