Mozzi  version 2016-12-11-17:03
sound synthesis library for Arduino
WavePacketSample.h
1 /*
2  * WavePacketSample.h
3  *
4  * Copyright 2013 Tim Barrass.
5  *
6  * This file is part of Mozzi.
7  *
8  * Mozzi is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
9  *
10  */
11 
12 #ifndef WAVEPACKETSAMPLE_H
13 #define WAVEPACKETSAMPLE_H
14 
15 
16 #include "WavePacket.h"
21 template <int8_t ALGORITHM>
22 class WavePacketSample: public WavePacket<ALGORITHM>
23 {
24 public:
28  inline
29  void setTable(const int8_t * TABLE_NAME)
30  {
31  aWav.setTable(TABLE_NAME);
32  }
33 
34 private:
36 };
37 
41 #endif // #ifndef WAVEPACKETSAMPLE_H
42 
void setTable(const int8_t *TABLE_NAME)
Change the sound table which will be played.
void setTable(const int8_t *TABLE_NAME)
Change the sound table which will be played by the Oscil.
Definition: Oscil.h:103
A WavePacket which allows a custom table to be set as the audio source for the wavepackets (or grains...
Wavepacket synthesis, with two overlapping streams of wave packets.
Definition: WavePacket.h:36