Jamoma API  0.6.0.a19
TTAudioGraphSig.cpp
Go to the documentation of this file.
1 /** @file
2  *
3  * @ingroup audioGraphUtilityLib
4  *
5  * @brief sig≈: generate multichannel signal based on one input value
6  *
7  * @details
8  *
9  * @authors Timothy Place
10  *
11  * @copyright Copyright © 2010 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 #include "TTAudioGraphSig.h"
17 
18 #define thisTTClass TTAudioGraphSig
19 #define thisTTClassName "audio.sig"
20 #define thisTTClassTags "audio, graph"
21 
22 
23 TT_AUDIO_CONSTRUCTOR,
24  mValue(0)
25 {
26  addAttribute(Value, kTypeFloat64);
27  addMessageWithArguments(dictionary);
28 
29  //setAttributeValue(TT("maxNumChannels"), arguments);
30  setProcessMethod(processAudio);
31 }
32 
33 
34 // Destructor
35 TTAudioGraphSig::~TTAudioGraphSig()
36 {
37  ;
38 }
39 
40 
42 {
43  TTDictionary* d = NULL;
44  TTValue v;
45  TTErr err;
46 
47  d = (TTDictionary*)TTPtr(input[0]);
48  err = d->getValue(v);
49  if (!err)
50  mValue = v;
51 
52  return err;
53 }
#define addAttribute(name, type)
A convenience macro to be used by subclasses for registering attributes with a custom getter...
Definition: TTAttribute.h:29
TTErr dictionary(TTValue &input, TTValue &)
A value passed in as a dictionary will set the value attribute If an array is passed in for the value...
#define setProcessMethod(methodName)
A convenience macro to be used by subclasses for setting the process method.
TTErr getValue(T &aReturnedValue) const
Get the dictionary's primary value.
Definition: TTDictionary.h:202
A type that represents the key as a C-String and the value as a pointer to the matching TTSymbol obje...
Definition: TTDictionary.h:47
void * TTPtr
A generic pointer.
Definition: TTBase.h:248
sig≈: generate multichannel signal based on one input value
64-bit floating point
Definition: TTBase.h:272
#define addMessageWithArguments(name)
A convenience macro to be used by subclasses for registering messages.
Definition: TTMessage.h:27
TTErr
Jamoma Error Codes Enumeration of error codes that might be returned by any of the TTBlue functions a...
Definition: TTBase.h:342
[doxygenAppendixC_copyExample]
Definition: TTValue.h:34