Jamoma API  0.6.0.a19
j.degrade~.cpp
Go to the documentation of this file.
1 /** @file
2  *
3  * @ingroup implementationMaxExternalsDSP
4  *
5  * @brief j.degrade~ : Max AudioGraph external that degrades the audio quality of a signal
6  *
7  * @details This wraps the Jamoma DSP class #TTDegrade as a Jamoma AudioGraph external for Max MSP
8  *
9  * @authors Tim Place, Trond Lossius
10  *
11  * @copyright © 2008 by Timothy Place @n
12  * This code is licensed under the terms of the "New BSD License" @n
13  * http://creativecommons.org/licenses/BSD/
14  */
15 
16 
17 #include "TTClassWrapperMax.h"
18 
19 int C74_EXPORT main(void)
20 {
21  WrappedClassOptionsPtr options = new WrappedClassOptions;
22  TTValue value;
23 
24  TTDSPInit();
25 
26  value.clear();
27  value.append(TT("srRatio"));
28  value.append(TT("bitdepth"));
29 
30 // TODO: experimental:
31 // options->append(TT("additionalSignalInputSetsAttribute"), value);
32 
33  return wrapTTClassAsMaxClass(TT("degrade"), "j.degrade~", NULL, options);
34 }
35 
#define TT
This macro is defined as a shortcut for doing a lookup in the symbol table.
Definition: TTSymbol.h:155
void append(const T &anElementValueToAppend)
Insert a single TTElement at the end.
Definition: TTValue.h:243
int C74_EXPORT main(void)
Set up this class as a Max external the first time an object of this kind is instantiated.
Definition: j.degrade~.cpp:19
void TTDSP_EXPORT TTDSPInit(const char *pathToBinaries=NULL)
Initialise the Jamoma DSP library, as well as Jamoma Foundation foundation if needed.
Definition: TTDSP.cpp:30
void clear()
Clear all values from the vector, leaving with size of 0.
Definition: TTValue.h:131
[doxygenAppendixC_copyExample]
Definition: TTValue.h:34