MicroDexed is a compatible 6-operator-FM-synth based on the Teensy(-3.6/-4.x) Microcontroller. https://www.parasitstudio.de
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
921 B

  1. /*
  2. * Copyright 2012 Google Inc.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. #ifndef SYNTH_MODULE_H
  17. #define SYNTH_MODULE_H
  18. #include <stdint.h>
  19. class Module {
  20. public:
  21. static const int lg_n = 6;
  22. static const int n = 1 << lg_n;
  23. virtual void process(const int32_t **inbufs, const int32_t *control_in,
  24. const int32_t *control_last, int32_t **outbufs) = 0;
  25. };
  26. #endif // SYNTH_MODULE_H