Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
jsiegle
committed
Nov 26, 2012
1 parent
619ece1
commit 61c01ed
Showing
9 changed files
with
247 additions
and
10 deletions.
There are no files selected for viewing
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
/* | ||
------------------------------------------------------------------ | ||
This file is part of the Open Ephys GUI | ||
Copyright (C) 2012 Open Ephys | ||
------------------------------------------------------------------ | ||
This program is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
This program is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
You should have received a copy of the GNU General Public License | ||
along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
|
||
#include "ReferenceNodeEditor.h" | ||
#include "../ReferenceNode.h" | ||
#include <stdio.h> | ||
|
||
|
||
ReferenceNodeEditor::ReferenceNodeEditor (GenericProcessor* parentNode) | ||
: GenericEditor(parentNode) | ||
|
||
{ | ||
desiredWidth = 180; | ||
|
||
|
||
} | ||
|
||
ReferenceNodeEditor::~ReferenceNodeEditor() | ||
{ | ||
deleteAllChildren(); | ||
} | ||
|
||
void ReferenceNodeEditor::buttonEvent (Button* button) | ||
{ | ||
|
||
|
||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
/* | ||
------------------------------------------------------------------ | ||
This file is part of the Open Ephys GUI | ||
Copyright (C) 2012 Open Ephys | ||
------------------------------------------------------------------ | ||
This program is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
This program is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
You should have received a copy of the GNU General Public License | ||
along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#ifndef __REFERENCENODEEDITOR_H_370C056D__ | ||
#define __REFERENCENODEEDITOR_H_370C056D__ | ||
|
||
#ifdef WIN32 | ||
#include <Windows.h> | ||
#endif | ||
#include "../../../JuceLibraryCode/JuceHeader.h" | ||
#include "GenericEditor.h" | ||
|
||
class ReferenceNodeEditor : public GenericEditor | ||
{ | ||
public: | ||
ReferenceNodeEditor (GenericProcessor* parentNode); | ||
virtual ~ReferenceNodeEditor(); | ||
void buttonEvent(Button* button); | ||
|
||
private: | ||
|
||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (ReferenceNodeEditor); | ||
|
||
}; | ||
|
||
|
||
|
||
|
||
|
||
#endif // __REFERENCENODEEDITOR_H_370C056D__ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,75 @@ | ||
/* | ||
============================================================================== | ||
------------------------------------------------------------------ | ||
ReferenceNode.cpp | ||
Created: 26 Nov 2012 2:50:52pm | ||
Author: jsiegle | ||
This file is part of the Open Ephys GUI | ||
Copyright (C) 2012 Open Ephys | ||
------------------------------------------------------------------ | ||
This program is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
This program is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
You should have received a copy of the GNU General Public License | ||
along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
============================================================================== | ||
*/ | ||
|
||
#include <stdio.h> | ||
#include "ReferenceNode.h" | ||
#include "Editors/ReferenceNodeEditor.h" | ||
|
||
|
||
|
||
ReferenceNode::ReferenceNode() | ||
: GenericProcessor("Digital Reference") | ||
|
||
{ | ||
|
||
|
||
} | ||
|
||
ReferenceNode::~ReferenceNode() | ||
{ | ||
|
||
} | ||
|
||
AudioProcessorEditor* ReferenceNode::createEditor() | ||
{ | ||
editor = new ReferenceNodeEditor(this); | ||
|
||
std::cout << "Creating editor." << std::endl; | ||
|
||
return editor; | ||
} | ||
|
||
|
||
|
||
void ReferenceNode::updateSettings() | ||
{ | ||
|
||
|
||
|
||
} | ||
|
||
void ReferenceNode::setParameter (int parameterIndex, float newValue) | ||
{ | ||
|
||
|
||
|
||
} | ||
|
||
void ReferenceNode::process(AudioSampleBuffer &buffer, | ||
MidiBuffer &midiMessages, | ||
int& nSamples) | ||
{ | ||
|
||
|
||
} | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,68 @@ | ||
/* | ||
============================================================================== | ||
------------------------------------------------------------------ | ||
ReferenceNode.h | ||
Created: 26 Nov 2012 2:50:52pm | ||
Author: jsiegle | ||
This file is part of the Open Ephys GUI | ||
Copyright (C) 2012 Open Ephys | ||
------------------------------------------------------------------ | ||
This program is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
This program is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
You should have received a copy of the GNU General Public License | ||
along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
============================================================================== | ||
*/ | ||
|
||
#ifndef __REFERENCENODE_H_786EA929__ | ||
#define __REFERENCENODE_H_786EA929__ | ||
|
||
|
||
#ifdef WIN32 | ||
#include <Windows.h> | ||
#endif | ||
#include "../../JuceLibraryCode/JuceHeader.h" | ||
|
||
#include "GenericProcessor.h" | ||
|
||
|
||
/** | ||
Digital reference node | ||
@see GenericProcessor | ||
*/ | ||
|
||
class ReferenceNode : public GenericProcessor | ||
|
||
{ | ||
public: | ||
|
||
ReferenceNode(); | ||
~ReferenceNode(); | ||
|
||
void process (AudioSampleBuffer &buffer, MidiBuffer &midiMessages, int& nSamples); | ||
void setParameter (int parameterIndex, float newValue); | ||
|
||
AudioProcessorEditor* createEditor(); | ||
|
||
bool hasEditor() const {return true;} | ||
|
||
void updateSettings(); | ||
|
||
private: | ||
|
||
|
||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (ReferenceNode); | ||
|
||
}; | ||
|
||
#endif // __REFERENCENODE_H_786EA929__ |
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