This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "MultiChannelSpectralNode.h" | |
using namespace ci; | |
using namespace ci::audio; | |
using namespace std; | |
MultiChannelSpectralNode::MultiChannelSpectralNode( const Format &format ) | |
: MonitorNode( format ), mFftSize( format.getFftSize() ), mWindowType( format.getWindowType() ), | |
mSmoothingFactor( 0.5f ), mLastFrameMagSpectrumComputed( 0 ) { } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "cinder/audio/audio.h" | |
//class for getting individual channel data | |
typedef std::shared_ptr<class MultiChannelSpectralNode> MultiChannelSpectralNodeRef; | |
class MultiChannelSpectralNode : public cinder::audio::MonitorNode { | |
public: | |
struct Format : public ci::audio::MonitorNode::Format { | |
Format() : ci::audio::MonitorNode::Format(), mFftSize( 0 ), mWindowType( ci::audio::dsp::WindowType::BLACKMAN ) {} |