Frogger3140

FM oscillator early progress

Apr 1st, 2016
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.55 KB | None | 0 0
  1. #pragma once
  2.  
  3. #include "includes.hpp"
  4.  
  5. namespace fm_core {
  6.     template <uint32_t R, uint8_t P>
  7.     class oper {
  8.         const oper<R, P - 1> _next_op;
  9.    
  10.     };
  11.     template <uint32_t R>
  12.     class oper<R, 1> {
  13.        
  14.     };
  15.    
  16.     template <uint8_t O, uint32_t R, uint8_t P>
  17.     class oscillator {
  18.         const uint8_t _num_oscillators = O;
  19.         const uint32_t _rate = R;
  20.         const uint8_t _num_operators = P;
  21.        
  22.         const oper<R, P> _operator;
  23.     public:
  24.         std::queue<float> audio;
  25.        
  26.     };
  27. }
Advertisement
Add Comment
Please, Sign In to add comment