Permalink
Browse files

Remove unnecessary debugging output

  • Loading branch information...
1 parent e4bfa23 commit 2f31d6e400e4fbdf0ebbb4e50704d4b2500d1398 jsiegle committed Jan 25, 2014
View
@@ -41,7 +41,13 @@ MainWindow::MainWindow()
// Callbacks will be set by the play button in the control panel
processorGraph = new ProcessorGraph();
+ std::cout << std::endl;
+ std::cout << "Created processor graph." << std::endl;
+ std::cout << std::endl;
+
audioComponent = new AudioComponent();
+ std::cout << "Created audio component." << std::endl;
+
audioComponent->connectToProcessorGraph(processorGraph);
setContentOwned(new UIComponent(this, processorGraph, audioComponent), true);
@@ -58,7 +64,7 @@ MainWindow::MainWindow()
loadWindowBounds();
setUsingNativeTitleBar(true);
Component::addToDesktop(getDesktopWindowStyleFlags()); // prevents the maximize
- // button from randomly disappearing
+ // button from randomly disappearing
setVisible(true);
// Constraining the window's size doesn't seem to work:
@@ -104,9 +110,9 @@ void MainWindow::closeButtonPressed()
void MainWindow::saveWindowBounds()
{
-
+ std::cout << std::endl;
std::cout << "Saving window bounds." << std::endl;
-
+ std::cout << std::endl;
File executable = File::getSpecialLocation(File::currentExecutableFile);
File executableDirectory = executable.getParentDirectory();
@@ -151,7 +157,9 @@ void MainWindow::saveWindowBounds()
void MainWindow::loadWindowBounds()
{
+ std::cout << std::endl;
std::cout << "Loading window bounds." << std::endl;
+ std::cout << std::endl;
//File file = File::getCurrentWorkingDirectory().getChildFile("windowState.xml");
@@ -161,9 +161,9 @@ void AudioNode::prepareToPlay(double sampleRate_, int estimatedSamplesPerBlock)
{
- std::cout << "Processor sample rate: " << getSampleRate() << std::endl;
- std::cout << "Audio card sample rate: " << sampleRate_ << std::endl;
- std::cout << "Samples per block: " << estimatedSamplesPerBlock << std::endl;
+ // std::cout << "Processor sample rate: " << getSampleRate() << std::endl;
+ // std::cout << "Audio card sample rate: " << sampleRate_ << std::endl;
+ // std::cout << "Samples per block: " << estimatedSamplesPerBlock << std::endl;
numSamplesExpected = (int) (getSampleRate()/sampleRate_*float(estimatedSamplesPerBlock)) + 1;
// processor sample rate divided by sound card sample rate
@@ -91,7 +91,7 @@ void AudioResamplingNode::setParameter(int parameterIndex, float newValue)
void AudioResamplingNode::prepareToPlay(double sampleRate_, int estimatedSamplesPerBlock)
{
- std::cout << "AudioResamplingNode preparing to play." << std::endl;
+ // std::cout << "AudioResamplingNode preparing to play." << std::endl;
if (destBufferIsTempBuffer)
{
@@ -109,8 +109,8 @@ void AudioResamplingNode::prepareToPlay(double sampleRate_, int estimatedSamples
destBufferPos = 0;
- std::cout << "Temp buffer size: " << tempBuffer->getNumChannels() << " x "
- << tempBuffer->getNumSamples() << std::endl;
+ // std::cout << "Temp buffer size: " << tempBuffer->getNumChannels() << " x "
+ // << tempBuffer->getNumSamples() << std::endl;
updateFilter();
@@ -55,7 +55,7 @@ AudioProcessorEditor* ChannelMappingNode::createEditor()
{
editor = new ChannelMappingEditor(this, true);
- std::cout << "Creating editor." << std::endl;
+ //std::cout << "Creating editor." << std::endl;
return editor;
}
@@ -112,7 +112,7 @@ void ChannelSelector::setNumChannels(int numChans)
int difference = numChans - parameterButtons.size();
- std::cout << difference << " buttons needed." << std::endl;
+ // std::cout << difference << " buttons needed." << std::endl;
if (difference > 0)
{
@@ -76,7 +76,7 @@ void GenericEditor::constructorInitialize(GenericProcessor* owner, bool useDefau
if (!owner->isMerger() && !owner->isSplitter() && !owner->isUtility())
{
- std::cout << "Adding drawer button." << std::endl;
+ // std::cout << "Adding drawer button." << std::endl;
drawerButton = new DrawerButton("name");
drawerButton->addListener(this);
@@ -141,7 +141,7 @@ void GenericEditor::addParameterEditors(bool useDefaultParameterEditors=true)
int maxX = 15;
int maxY = 30;
- std::cout << "Adding parameter editors." << std::endl;
+ // std::cout << "Adding parameter editors." << std::endl;
for (int i = 0; i < getProcessor()->getNumParameters(); i++)
{
@@ -466,11 +466,11 @@ void GenericEditor::sliderValueChanged(Slider* slider)
void GenericEditor::update()
{
- std::cout << "Editor for ";
+ //std::cout << "Editor for ";
GenericProcessor* p = (GenericProcessor*) getProcessor();
- std::cout << p->getName() << " updating settings." << std::endl;
+ //std::cout << p->getName() << " updating settings." << std::endl;
int numChannels;
@@ -61,7 +61,7 @@ AudioProcessorEditor* FilterNode::createEditor()
FilterEditor* ed = (FilterEditor*) getEditor();
ed->setDefaults(defaultLowCut, defaultHighCut);
- std::cout << "Creating editor." << std::endl;
+ //std::cout << "Creating editor." << std::endl;
return editor;
}
@@ -288,7 +288,7 @@ void GenericProcessor::clearSettings()
void GenericProcessor::update()
{
- std::cout << getName() << " updating settings." << std::endl;
+ //std::cout << getName() << " updating settings." << std::endl;
// SO patched here to keep original channel names
int oldNumChannels = channels.size();
@@ -30,7 +30,7 @@ LfpDisplayNode::LfpDisplayNode()
displayBufferIndex(0), displayGain(1), bufferLength(5.0f),
abstractFifo(100), ttlState(0)
{
- std::cout << " LFPDisplayNodeConstructor" << std::endl;
+ //std::cout << " LFPDisplayNodeConstructor" << std::endl;
displayBuffer = new AudioSampleBuffer(8, 100);
eventBuffer = new MidiBuffer();
@@ -58,7 +58,7 @@ AudioProcessorEditor* LfpDisplayNode::createEditor()
void LfpDisplayNode::updateSettings()
{
- std::cout << "Setting num inputs on LfpDisplayNode to " << getNumInputs() << std::endl;
+ // std::cout << "Setting num inputs on LfpDisplayNode to " << getNumInputs() << std::endl;
}
bool LfpDisplayNode::resizeBuffer()
@@ -113,7 +113,7 @@ void ProcessorGraph::createDefaultNodes()
addConnection(AUDIO_NODE_ID, midiChannelIndex,
RESAMPLING_NODE_ID, midiChannelIndex);
- std::cout << "Default nodes created." << std::endl;
+ //std::cout << "Default nodes created." << std::endl;
}
@@ -137,6 +137,8 @@ void* ProcessorGraph::createNewProcessor(String& description, int id)//,
processor->setNodeId(id); // identifier within processor graph
std::cout << " Adding node to graph with ID number " << id << std::endl;
+ std::cout << std::endl;
+ std::cout << std::endl;
processor->setUIComponent(getUIComponent()); // give access to important pointers
@@ -128,13 +128,13 @@ void RecordNode::resetConnections()
void RecordNode::filenameComponentChanged(FilenameComponent* fnc)
{
- std::cout << "Got a new file" << std::endl;
+ //std::cout << "Got a new file" << std::endl;
dataDirectory = fnc->getCurrentFile();
- std::cout << "File name: " << dataDirectory.getFullPathName();
- if (dataDirectory.isDirectory())
- std::cout << " is a directory." << std::endl;
- else
- std::cout << " is NOT a directory." << std::endl;
+ // std::cout << "File name: " << dataDirectory.getFullPathName();
+ // if (dataDirectory.isDirectory())
+ // std::cout << " is a directory." << std::endl;
+ // else
+ // std::cout << " is NOT a directory." << std::endl;
//createNewDirectory();
@@ -79,7 +79,7 @@ void SpikeDisplayCanvas::endAnimation()
void SpikeDisplayCanvas::update()
{
- std::cout << "Updating SpikeDisplayCanvas" << std::endl;
+ //std::cout << "Updating SpikeDisplayCanvas" << std::endl;
int nPlots = processor->getNumElectrodes();
spikeDisplay->removePlots();
@@ -74,7 +74,7 @@ int DataViewport::addTabToDataViewport(String name, Component* component, Generi
editorArray.add(editor);
- std::cout << "Adding tab with index " << tabIndex << std::endl;
+ // std::cout << "Adding tab with index " << tabIndex << std::endl;
setCurrentTabIndex(tabArray.size()-1);
@@ -245,7 +245,7 @@ void EditorViewport::itemDropped(const SourceDetails& dragSourceDetails)
GenericEditor* activeEditor = (GenericEditor*) getProcessorGraph()->createNewProcessor(description, currentId);//, source, dest);
- std::cout << "Active editor: " << activeEditor << std::endl;
+ //std::cout << "Active editor: " << activeEditor << std::endl;
if (activeEditor != 0)
{
Oops, something went wrong.

0 comments on commit 2f31d6e

Please sign in to comment.