![]() |
Cinder
0.9.1
|
Namespaces | |
cocoa | |
dsp | |
msw | |
Typedefs | |
typedef std::unique_ptr< float, FreeDeleter< float > > | AlignedArrayPtr |
typedef std::unique_ptr< double, FreeDeleter< double > > | AlignedArrayPtrd |
typedef BufferT< float > | Buffer |
typedef BufferInterleavedT< float > | BufferInterleaved |
typedef BufferSpectralT< float > | BufferSpectral |
typedef BufferDynamicT< Buffer > | BufferDynamic |
typedef BufferDynamicT< BufferInterleaved > | BufferDynamicInterleaved |
typedef BufferDynamicT< BufferSpectral > | BufferDynamicSpectral |
typedef std::shared_ptr< Buffer > | BufferRef |
typedef std::shared_ptr< BufferInterleaved > | BufferInterleavedRef |
typedef std::shared_ptr< BufferSpectral > | BufferSpectralRef |
typedef std::shared_ptr< BufferDynamic > | BufferDynamicRef |
typedef std::shared_ptr< BufferDynamicInterleaved > | BufferDynamicInterleavedRef |
typedef std::shared_ptr< BufferDynamicSpectral > | BufferDynamicSpectralRef |
typedef std::shared_ptr< class ChannelRouterNode > | ChannelRouterNodeRef |
typedef std::shared_ptr< class DelayNode > | DelayNodeRef |
typedef std::shared_ptr< class Device > | DeviceRef |
typedef std::shared_ptr< class FilterLowPassNode > | FilterLowPassNodeRef |
typedef std::shared_ptr< class FilterHighPassNode > | FilterHighPassNodeRef |
typedef std::shared_ptr< class FilterBandPassNode > | FilterBandPassNodeRef |
typedef std::shared_ptr< class GainNode > | GainNodeRef |
typedef std::shared_ptr< class GenNode > | GenNodeRef |
typedef std::shared_ptr< class GenNoiseNode > | GenNoiseNodeRef |
typedef std::shared_ptr< class GenPhasorNode > | GenPhasorNodeRef |
typedef std::shared_ptr< class GenSineNode > | GenSineNodeRef |
typedef std::shared_ptr< class GenTriangleNode > | GenTriangleNodeRef |
typedef std::shared_ptr< class GenTableNode > | GenTableNodeRef |
typedef std::shared_ptr< class GenOscNode > | GenOscNodeRef |
typedef std::shared_ptr< class GenPulseNode > | GenPulseNodeRef |
typedef std::shared_ptr< class InputNode > | InputNodeRef |
typedef std::shared_ptr< class InputDeviceNode > | InputDeviceNodeRef |
typedef std::shared_ptr< class CallbackProcessorNode > | CallbackProcessorNodeRef |
typedef std::function< void(Buffer *, size_t)> | CallbackProcessorFn |
typedef std::shared_ptr< class MonitorNode > | MonitorNodeRef |
typedef std::shared_ptr< class MonitorSpectralNode > | MonitorSpectralNodeRef |
typedef std::shared_ptr< class Context > | ContextRef |
typedef std::shared_ptr< class Node > | NodeRef |
typedef std::shared_ptr< class MathNode > | MathNodeRef |
typedef std::shared_ptr< class AddNode > | AddNodeRef |
typedef std::shared_ptr< class SubtractNode > | SubtractNodeRef |
typedef std::shared_ptr< class MultiplyNode > | MultiplyNodeRef |
typedef std::shared_ptr< class DivideNode > | DivideNodeRef |
typedef std::shared_ptr< class OutputNode > | OutputNodeRef |
typedef std::shared_ptr< class OutputDeviceNode > | OutputDeviceNodeRef |
typedef std::shared_ptr< class Pan2dNode > | Pan2dNodeRef |
typedef std::shared_ptr< class Event > | EventRef |
typedef std::function< void(float *, size_t, double, double, float, float)> | RampFn |
typedef std::shared_ptr< class SamplePlayerNode > | SamplePlayerNodeRef |
typedef std::shared_ptr< class BufferPlayerNode > | BufferPlayerNodeRef |
typedef std::shared_ptr< class FilePlayerNode > | FilePlayerNodeRef |
typedef std::shared_ptr< class SampleRecorderNode > | SampleRecorderNodeRef |
typedef std::shared_ptr< class BufferRecorderNode > | BufferRecorderNodeRef |
typedef std::shared_ptr< class Source > | SourceRef |
typedef std::shared_ptr< class SourceFile > | SourceFileRef |
typedef std::shared_ptr< class TargetFile > | TargetFileRef |
typedef std::shared_ptr< class Voice > | VoiceRef |
typedef std::shared_ptr< class VoiceSamplePlayerNode > | VoiceSamplePlayerNodeRef |
typedef std::shared_ptr< class WaveTable > | WaveTableRef |
typedef std::shared_ptr< class WaveTable2d > | WaveTable2dRef |
Enumerations | |
enum | SampleType { SampleType::INT_16, SampleType::INT_24, SampleType::FLOAT_32 } |
enum | WaveformType { WaveformType::SINE, WaveformType::SQUARE, WaveformType::SAWTOOTH, WaveformType::TRIANGLE } |
Functions | |
template<typename T > | |
std::unique_ptr< T, FreeDeleter< T > > | makeAlignedArray (size_t size, size_t alignment=16) |
const ChannelRouterNodeRef & | operator>> (const NodeRef &input, const ChannelRouterNode::RouteConnector &route) |
Context * | master () |
const NodeRef & | operator>> (const NodeRef &input, const NodeRef &output) |
void | rampLinear (float *array, size_t count, double t, double tIncr, float valueBegin, float valueEnd) |
void | rampInQuad (float *array, size_t count, double t, double tIncr, float valueBegin, float valueEnd) |
void | rampOutQuad (float *array, size_t count, double t, double tIncr, float valueBegin, float valueEnd) |
SourceFileRef | load (const DataSourceRef &dataSource, size_t sampleRate=0) |
float | linearToDecibel (float gainLinear) |
void | linearToDecibel (float *array, size_t length) |
float | decibelToLinear (float gainDecibels) |
void | decibelToLinear (float *array, size_t length) |
float | freqToMidi (float freq) |
float | midiToFreq (float midi) |
uint64_t | timeToFrame (double timeSeconds, double sampleRate) |
bool | thresholdBuffer (const Buffer &buffer, float threshold, size_t *recordFrame=nullptr) |
Variables | |
bool | sIsRegisteredForCleanup = false |
const float | kGainNegative100Decibels = 0.00001f |
const float | kGainNegative100DecibelsInverse = 1.0f / kGainNegative100Decibels |
typedef std::unique_ptr<float, FreeDeleter<float> > cinder::audio::AlignedArrayPtr |
typedef std::unique_ptr<double, FreeDeleter<double> > cinder::audio::AlignedArrayPtrd |
typedef BufferT<float> cinder::audio::Buffer |
typedef BufferInterleavedT<float> cinder::audio::BufferInterleaved |
typedef BufferSpectralT<float> cinder::audio::BufferSpectral |
typedef std::shared_ptr<Buffer> cinder::audio::BufferRef |
typedef std::shared_ptr<BufferInterleaved> cinder::audio::BufferInterleavedRef |
typedef std::shared_ptr<BufferSpectral> cinder::audio::BufferSpectralRef |
typedef std::shared_ptr<BufferDynamic> cinder::audio::BufferDynamicRef |
typedef std::shared_ptr<BufferDynamicInterleaved> cinder::audio::BufferDynamicInterleavedRef |
typedef std::shared_ptr<BufferDynamicSpectral> cinder::audio::BufferDynamicSpectralRef |
typedef std::shared_ptr<class ChannelRouterNode> cinder::audio::ChannelRouterNodeRef |
typedef std::shared_ptr<class DelayNode> cinder::audio::DelayNodeRef |
typedef std::shared_ptr<class Device> cinder::audio::DeviceRef |
typedef std::shared_ptr<class FilterLowPassNode> cinder::audio::FilterLowPassNodeRef |
typedef std::shared_ptr<class FilterHighPassNode> cinder::audio::FilterHighPassNodeRef |
typedef std::shared_ptr<class FilterBandPassNode> cinder::audio::FilterBandPassNodeRef |
typedef std::shared_ptr<class GainNode> cinder::audio::GainNodeRef |
typedef std::shared_ptr<class GenNode> cinder::audio::GenNodeRef |
typedef std::shared_ptr<class GenNoiseNode> cinder::audio::GenNoiseNodeRef |
typedef std::shared_ptr<class GenPhasorNode> cinder::audio::GenPhasorNodeRef |
typedef std::shared_ptr<class GenSineNode> cinder::audio::GenSineNodeRef |
typedef std::shared_ptr<class GenTriangleNode> cinder::audio::GenTriangleNodeRef |
typedef std::shared_ptr<class GenTableNode> cinder::audio::GenTableNodeRef |
typedef std::shared_ptr<class GenOscNode> cinder::audio::GenOscNodeRef |
typedef std::shared_ptr<class GenPulseNode> cinder::audio::GenPulseNodeRef |
typedef std::shared_ptr<class InputNode> cinder::audio::InputNodeRef |
typedef std::shared_ptr<class InputDeviceNode> cinder::audio::InputDeviceNodeRef |
typedef std::shared_ptr<class CallbackProcessorNode> cinder::audio::CallbackProcessorNodeRef |
typedef std::function<void( Buffer *, size_t )> cinder::audio::CallbackProcessorFn |
typedef std::shared_ptr<class MonitorNode> cinder::audio::MonitorNodeRef |
typedef std::shared_ptr<class MonitorSpectralNode> cinder::audio::MonitorSpectralNodeRef |
typedef std::shared_ptr< class Context > cinder::audio::ContextRef |
typedef std::shared_ptr< class Node > cinder::audio::NodeRef |
typedef std::shared_ptr<class MathNode> cinder::audio::MathNodeRef |
typedef std::shared_ptr<class AddNode> cinder::audio::AddNodeRef |
typedef std::shared_ptr<class SubtractNode> cinder::audio::SubtractNodeRef |
typedef std::shared_ptr<class MultiplyNode> cinder::audio::MultiplyNodeRef |
typedef std::shared_ptr<class DivideNode> cinder::audio::DivideNodeRef |
typedef std::shared_ptr<class OutputNode> cinder::audio::OutputNodeRef |
typedef std::shared_ptr<class OutputDeviceNode> cinder::audio::OutputDeviceNodeRef |
typedef std::shared_ptr<class Pan2dNode> cinder::audio::Pan2dNodeRef |
typedef std::shared_ptr<class Event> cinder::audio::EventRef |
A Reference to Event's returned by the ramping methods.
typedef std::function<void ( float *, size_t, double, double, float, float )> cinder::audio::RampFn |
Ramping function that determines the curvature of a ramp.
typedef std::shared_ptr<class SamplePlayerNode> cinder::audio::SamplePlayerNodeRef |
typedef std::shared_ptr<class BufferPlayerNode> cinder::audio::BufferPlayerNodeRef |
typedef std::shared_ptr<class FilePlayerNode> cinder::audio::FilePlayerNodeRef |
typedef std::shared_ptr<class SampleRecorderNode> cinder::audio::SampleRecorderNodeRef |
typedef std::shared_ptr<class BufferRecorderNode> cinder::audio::BufferRecorderNodeRef |
typedef std::shared_ptr<class Source> cinder::audio::SourceRef |
typedef std::shared_ptr<class SourceFile> cinder::audio::SourceFileRef |
typedef std::shared_ptr<class TargetFile> cinder::audio::TargetFileRef |
typedef std::shared_ptr<class Voice> cinder::audio::VoiceRef |
typedef std::shared_ptr<class VoiceSamplePlayerNode> cinder::audio::VoiceSamplePlayerNodeRef |
typedef std::shared_ptr<class WaveTable> cinder::audio::WaveTableRef |
typedef std::shared_ptr<class WaveTable2d> cinder::audio::WaveTable2dRef |
|
strong |
|
strong |
std::unique_ptr<T, FreeDeleter<T> > cinder::audio::makeAlignedArray | ( | size_t | size, |
size_t | alignment = 16 |
||
) |
Returns an array of size elements of type T, aligned by alignment.
const ChannelRouterNodeRef & cinder::audio::operator>> | ( | const NodeRef & | input, |
const ChannelRouterNode::RouteConnector & | route | ||
) |
Enable routing connection syntax:
.
Context* cinder::audio::master | ( | ) |
Returns the master Context that manages hardware I/O and real-time processing, which is platform specific. If none is available, returns null.
Enable connection syntax: input >> output
, which is equivelant to input->connect( output )
. Enables chaining.
void cinder::audio::rampLinear | ( | float * | array, |
size_t | count, | ||
double | t, | ||
double | tIncr, | ||
float | valueBegin, | ||
float | valueEnd | ||
) |
Array-based linear ramping function.
void cinder::audio::rampInQuad | ( | float * | array, |
size_t | count, | ||
double | t, | ||
double | tIncr, | ||
float | valueBegin, | ||
float | valueEnd | ||
) |
Array-based quadradic (t^2) ease-in ramping function.
void cinder::audio::rampOutQuad | ( | float * | array, |
size_t | count, | ||
double | t, | ||
double | tIncr, | ||
float | valueBegin, | ||
float | valueEnd | ||
) |
Array-based quadradic (t^2) ease-out ramping function.
SourceFileRef cinder::audio::load | ( | const DataSourceRef & | dataSource, |
size_t | sampleRate = 0 |
||
) |
Convenience method for loading a SourceFile from dataSource.
float cinder::audio::linearToDecibel | ( | float | gainLinear | ) |
Scale gainLinear from linear (0-1) to decibel (0-100) scale.
void cinder::audio::linearToDecibel | ( | float * | array, |
size_t | length | ||
) |
Scale array of length length from linear (0-1) to decibel (0-100) scale.
float cinder::audio::decibelToLinear | ( | float | gainDecibels | ) |
Scale gainLinear from decibel (0-100) to linear (0-1) scale.
void cinder::audio::decibelToLinear | ( | float * | array, |
size_t | length | ||
) |
Scale array of length length from decibel (0-100) to linear (0-1) scale.
float cinder::audio::freqToMidi | ( | float | freq | ) |
Scale freq from frequency (hertz) to MIDI note values, so as one can refer to pitches using the equal temperament scale.
For example, 'middle C' equals 261.6 hertz and has a midi value of 60. Adapted from Pure Data's ftom function.
float cinder::audio::midiToFreq | ( | float | midi | ) |
Scale midi from MIDI note values to frequency (hertz). Adapted from Pure Data's mtof function.
uint64_t cinder::audio::timeToFrame | ( | double | timeSeconds, |
double | sampleRate | ||
) |
Convert timeSeconds to frames running at sampleRate, rounding to the nearest integral frame.
bool cinder::audio::thresholdBuffer | ( | const Buffer & | buffer, |
float | threshold, | ||
size_t * | recordFrame = nullptr |
||
) |
Checks if the absolute value of any sample in buffer is over threshold. Optionally provide recordFrame to record the frame index.
bool cinder::audio::sIsRegisteredForCleanup = false |
const float cinder::audio::kGainNegative100Decibels = 0.00001f |
const float cinder::audio::kGainNegative100DecibelsInverse = 1.0f / kGainNegative100Decibels |