20/** @defgroup soundtables Look-up-tables and python scripts to generate tables or convert sounds.
21
22Look-up-tables and python scripts to generate tables or convert sounds. Includes ready-to-use wave tables and a few example samples which are in the Mozzi/tables and Mozzi/samples folders. You can convert your own sounds from a program like Audacity to tables for Mozzi with a script called char2mozzi.py, in Mozzi/python. Read the int8_t2mozzi.py file for instructions. Also check out the other scripts in the python folder for templates to use if you want to do your own thing.
23*/
24
25/** @defgroup util Utility functions, and debugging
26
27Utility functions. Includes functions for debugging and profiling high frequency code with an oscilloscope when serial is too slow, some miscellaneous functions used internally by Mozzi, python scripts for converting or generating sound tables, and assorted meta-programming utils.
28*/
29
30/** @ingroup util
31Enables you to instantiate a template based on an integer value.
32For example, this is used in StateVariable.h to choose a different next()
33function for each kind of filter, LOWPASS, BANDPASS, HIGHPASS or NOTCH, which are simple
34integer values 0,1,2,3 provided to the StateVariable template on instantiation.
35Fantastic!
36It's in C++11, but not yet available in avr-gcc.
50//First, the general (unspecialized) template says that factorial<n>::value is given by n*factorial<n-1>::value:
51template <unsigned n>
52struct factorial
53{
54 enum { value = n * factorial<n-1>::value };
55};
56
57
58//Next, the specialization for zero says that factorial<0>::value evaluates to 1:
59template <>
60struct factorial<0>
61{
62 enum { value = 1 };
63};
64
65
66//And now some code that "calls" the factorial template at compile-time:
67// Because calculations are done at compile-time, they can be
68// used for things such as array sizes, eg.
69// int array[ factorial<7>::value ];
70
71*/
72
73#endif/* META_H_ */
Generated automatically using Doxygen. If info on this page is outdated, incomplete, or wrong, please open an issue at https://github.com/sensorium/Mozzi/issues