Jamoma API  0.6.0.a19
j.pick.cpp
Go to the documentation of this file.
1 /** @file
2  *
3  * @ingroup implementationMaxExternalsAudioGraph
4  *
5  * @brief j.pick= : wraps the #TTAudioGraphPick class as an external that extracts N specific audio signals from a Jamoma AudioGraph signal
6  *
7  * @details
8  *
9  * @authors Nils Peters, Trond Lossius
10  *
11  * @copyright © 2011 by Nils Peters @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 "maxAudioGraph.h"
18 
19 
20 int C74_EXPORT main(void)
21 {
23  TTValue value(0);
24 
25  TTAudioGraphInit();
26  options->append(TT("nonadapting"), value); // don't change the number of out-channels in response to changes in the number of in-channels
27  options->append(TT("userCanSetNumChannels"), NO);
28  wrapAsMaxAudioGraph(TT("audio.pick"), "j.pick=", NULL, options);
29  return wrapAsMaxAudioGraph(TT("audio.pick"), "pick=", NULL, options);
30 
31 
32  //TTAudioGraphInit();
33  //wrapAsMaxAudioGraph(TT("audio.pick"), "j.pick=", NULL);
34  //wrapAsMaxAudioGraph(TT("audio.pick"), "pick=", NULL);
35  //return 0;
36 
37 
38 }
39 
TTErr wrapAsMaxAudioGraph(TTSymbol ttClassName, char *maxClassName, MaxAudioGraphWrappedClassPtr *c)
Wrap an AudioGraph class as a Max class.
#define TT
This macro is defined as a shortcut for doing a lookup in the symbol table.
Definition: TTSymbol.h:155
A class representing the options of a MaxAudioGraphWrappedClass.
Definition: MaxAudioGraph.h:56
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.pick.cpp:20
TTErr append(const TTSymbol &optionName, const TTValue &optionValue)
Append a new option to this class.
Definition: MaxAudioGraph.h:83
A thin wrapper of Jamoma AudioGraph for use in the Cycling '74 Max/MSP environment.
[doxygenAppendixC_copyExample]
Definition: TTValue.h:34