Jamoma API  0.6.0.a19
j.panorama~.cpp
Go to the documentation of this file.
1 /** @file
2  *
3  * @ingroup implementationMaxExternalsDSP
4  *
5  * @brief j.panorama~ : wraps the #TTPanorama class as a Jamoma external for MSP
6  *
7  * @details Panpot
8  *
9  * @authors Tim Place, Nils Peters, 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 
20 int C74_EXPORT main(void)
21 {
22  WrappedClassOptionsPtr options = new WrappedClassOptions;
23  WrappedClassPtr c = NULL;
24  TTValue v(2);
25 
26  TTDSPInit();
27  options->append(TT("fixedNumOutputChannels"), v);
28  wrapTTClassAsMaxClass(TT("panorama"), "j.panorama~", &c, options);
29  CLASS_ATTR_ENUM(c->maxClass, "mode", 0, "calculate lookup");
30  CLASS_ATTR_ENUM(c->maxClass, "shape", 0, "equalPower linear squareRoot");
31 
32  return 0;
33 }
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.panorama~.cpp:20
#define TT
This macro is defined as a shortcut for doing a lookup in the symbol table.
Definition: TTSymbol.h:155
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
[doxygenAppendixC_copyExample]
Definition: TTValue.h:34