Mercurial > hg > beaglert
annotate examples/10-Instruments/d-box/DBoxSynth.h @ 556:ce391098f321 prerelease tip
THIS PROJECT HAS MOVED TO https://github.com/BelaPlatform/bela
author | Giulio Moro <giuliomoro@yahoo.it> |
---|---|
date | Sat, 25 Jun 2016 20:21:00 +0100 |
parents | 8fcfbfb32aa0 |
children |
rev | line source |
---|---|
robert@464 | 1 /* |
robert@464 | 2 * SimpleSynth.h |
robert@464 | 3 * |
robert@464 | 4 * Created on: Oct 22, 2013 |
robert@464 | 5 * Author: Victor Zappi |
robert@464 | 6 */ |
robert@464 | 7 |
robert@464 | 8 #ifndef DBOXSYNTH_H_ |
robert@464 | 9 #define DBOXSYNTH_H_ |
robert@464 | 10 |
robert@464 | 11 #include <iostream> |
robert@464 | 12 #include <string> |
robert@464 | 13 #include <stdio.h> |
robert@464 | 14 #include <stdlib.h> |
robert@464 | 15 |
robert@464 | 16 #include "Synth.h" |
robert@464 | 17 |
robert@464 | 18 |
robert@464 | 19 class DBoxSynth : public Synth |
robert@464 | 20 { |
robert@464 | 21 public: |
robert@464 | 22 DBoxSynth(unsigned int rate, unsigned long buffer_size); |
robert@464 | 23 double getSample(); |
robert@464 | 24 double *getBlock(int block_size); |
robert@464 | 25 |
robert@464 | 26 |
robert@464 | 27 private: |
robert@464 | 28 Sampler *smp; |
robert@464 | 29 |
robert@464 | 30 }; |
robert@464 | 31 |
robert@464 | 32 |
robert@464 | 33 |
robert@464 | 34 |
robert@464 | 35 #endif /* DBOXSYNTH_H_ */ |