forked from open-ephys/GUI
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/open-ephys/GUI
- Loading branch information
Showing
17 changed files
with
1,537 additions
and
1,034 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
2,057 changes: 1,163 additions & 894 deletions
2,057
Builds/MacOSX/open-ephys.xcodeproj/project.pbxproj
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file modified
BIN
+18.5 KB
(120%)
....xcodeproj/project.xcworkspace/xcuserdata/Josh.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
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
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,81 @@ | ||
/* | ||
------------------------------------------------------------------ | ||
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 "ExampleProcessor.h" | ||
|
||
ExampleProcessor::ExampleProcessor() | ||
: GenericProcessor("Example Processor") //, threshold(200.0), state(true) | ||
|
||
{ | ||
|
||
//parameters.add(Parameter("thresh", 0.0, 500.0, 200.0, 0)); | ||
|
||
} | ||
|
||
ExampleProcessor::~ExampleProcessor() | ||
{ | ||
|
||
} | ||
|
||
|
||
|
||
void ExampleProcessor::setParameter (int parameterIndex, float newValue) | ||
{ | ||
|
||
//Parameter& p = parameters.getReference(parameterIndex); | ||
//p.setValue(newValue, 0); | ||
|
||
//threshold = newValue; | ||
|
||
//std::cout << float(p[0]) << std::endl; | ||
|
||
} | ||
|
||
void ExampleProcessor::process(AudioSampleBuffer &buffer, | ||
MidiBuffer &events, | ||
int& nSamples) | ||
{ | ||
|
||
// for (int i = 0; i < nSamples; i++) | ||
// { | ||
// | ||
// if ((*buffer.getSampleData(0, i) < -threshold) && !state) | ||
// { | ||
// | ||
// // generate midi event | ||
// addEvent(events, TTL, i); | ||
// | ||
// state = true; | ||
// | ||
// } else if ((*buffer.getSampleData(0, i) > -threshold + bufferZone) && state) | ||
// { | ||
// state = false; | ||
// } | ||
// | ||
// | ||
// } | ||
|
||
|
||
} |
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,93 @@ | ||
/* | ||
------------------------------------------------------------------ | ||
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 __EXAMPLEPROCESSOR_H_91811542__ | ||
#define __EXAMPLEPROCESSOR_H_91811542__ | ||
|
||
#ifdef _WIN32 | ||
#include <Windows.h> | ||
#endif | ||
|
||
#include "../../JuceLibraryCode/JuceHeader.h" | ||
#include "GenericProcessor.h" | ||
|
||
/** | ||
This is a description of the processor's function. | ||
@see GenericProcessor | ||
*/ | ||
|
||
class ExampleProcessor : public GenericProcessor | ||
|
||
{ | ||
public: | ||
|
||
/** The class constructor, used to initialize any members. */ | ||
ExampleProcessor(); | ||
|
||
/** The class destructor, used to deallocate memory */ | ||
~ExampleProcessor(); | ||
|
||
/** Determines whether the processor is treated as a source. | ||
Re-implemented from GenericProcessor.h */ | ||
bool isSource() {return false;} | ||
|
||
/** Determines whether the processor is treated as a sink. | ||
Re-implemented from GenericProcessor.h */ | ||
bool isSink() {return false;} | ||
|
||
/** Defines the functionality of the processor. | ||
The process method is called every time a new data buffer is available. | ||
Processors can either use this method to add new data, manipulate existing | ||
data, or send data to an external target (such as a display or other hardware). | ||
Continuous signals arrive in the "buffer" variable, event data (such as TTLs | ||
and spikes) is contained in the "events" variable, and "nSamples" holds the | ||
number of continous samples in the current buffer (which may differ from the | ||
size of the buffer). | ||
*/ | ||
void process (AudioSampleBuffer &buffer, MidiBuffer &events, int& nSamples); | ||
|
||
/** Any variables used by the "process" function _must_ be modified only through | ||
this method while data acquisition is active. If they are modified in any | ||
other way, the application will crash. */ | ||
void setParameter (int parameterIndex, float newValue); | ||
|
||
private: | ||
|
||
// private members and methods go here | ||
// | ||
// e.g.: | ||
// | ||
// float threshold; | ||
// bool state; | ||
|
||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (ExampleProcessor); | ||
|
||
}; | ||
|
||
#endif // __EXAMPLEPROCESSOR_H_91811542__ |
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
Oops, something went wrong.