Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma once
- #include "includes.hpp"
- namespace fm_core {
- template <uint32_t R, uint8_t P>
- class oper {
- const oper<R, P - 1> _next_op;
- };
- template <uint32_t R>
- class oper<R, 1> {
- };
- template <uint8_t O, uint32_t R, uint8_t P>
- class oscillator {
- const uint8_t _num_oscillators = O;
- const uint32_t _rate = R;
- const uint8_t _num_operators = P;
- const oper<R, P> _operator;
- public:
- std::queue<float> audio;
- };
- }
Advertisement
Add Comment
Please, Sign In to add comment