Mozzi  version v2.0
sound synthesis library for Arduino
WavePacketSample.h
1 /*
2  * WavePacketSample.h
3  *
4  * This file is part of Mozzi.
5  *
6  * Copyright 2013-2024 Tim Barrass and the Mozzi Team
7  *
8  * Mozzi is licensed under the GNU Lesser General Public Licence (LGPL) Version 2.1 or later.
9  *
10  */
11 
12 
13 #ifndef WAVEPACKETSAMPLE_H
14 #define WAVEPACKETSAMPLE_H
15 
16 
17 #include "WavePacket.h"
22 template <int8_t ALGORITHM>
23 class WavePacketSample: public WavePacket<ALGORITHM>
24 {
25 public:
29  inline
30  void setTable(const int8_t * TABLE_NAME)
31  {
32  aWav.setTable(TABLE_NAME);
33  }
34 
35 private:
37 };
38 
42 #endif // #ifndef WAVEPACKETSAMPLE_H
43 
void setTable(const int8_t *TABLE_NAME)
Change the sound table which will be played by the Oscil.
Definition: Oscil.h:99
Wavepacket synthesis, with two overlapping streams of wave packets.
Definition: WavePacket.h:37
A WavePacket which allows a custom table to be set as the audio source for the wavepackets (or grains...
void setTable(const int8_t *TABLE_NAME)
Change the sound table which will be played.