Skip to content

Commit

Permalink
Run codespell
Browse files Browse the repository at this point in the history
  • Loading branch information
jsiegle committed Sep 10, 2024
1 parent 343a573 commit e7f4e77
Show file tree
Hide file tree
Showing 35 changed files with 63 additions and 63 deletions.
2 changes: 1 addition & 1 deletion Source/CoreServices.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class PopupManager;

namespace CoreServices
{
/** Issues a signal chain update; this should be called whenver a plugin's
/** Issues a signal chain update; this should be called whenever a plugin's
* are changed in a way that would affect downstream plugins.
*
* For example, if a plugin adds a new EventChannel, updateSignalChain() must
Expand Down
4 changes: 2 additions & 2 deletions Source/Processors/DataThreads/DataThread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,9 @@ void DataThread::run()
{
const MessageManagerLock mmLock (Thread::getCurrentThread());

LOGE ("Aquisition error...stopping thread.");
LOGE ("Acquisition error...stopping thread.");
signalThreadShouldExit();
LOGE ("Notifying source node to stop acqusition.");
LOGE ("Notifying source node to stop acquisition.");
sn->connectionLost();
}
}
Expand Down
2 changes: 1 addition & 1 deletion Source/Processors/DataThreads/DataThread.h
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ class PLUGIN_API DataThread : public Thread
/** Adds a parameter that allows the user to select a TTL Line
* @param maxAvailableLines The number of TTL lines available for selection
* @param syncMode Set to true if the ttl line will be used for synchronization
* @param canSelectNone Set to true if the user can select no TTL line (cant be used with syncMode = true)
* @param canSelectNone Set to true if the user can select no TTL line (can't be used with syncMode = true)
*/
void addTtlLineParameter (Parameter::ParameterScope scope,
const String& name,
Expand Down
4 changes: 2 additions & 2 deletions Source/Processors/Dsp/Documentation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ code....until now."_
----
Building on the work of cherished luminaries such as Sophocles Orfanidis, Andreas Antoniou, Martin Holters, and Udo Zolzer, this library harnesses the power of C++ templates to solve a useful problem in digital signal processing: the realization of multichannel IIR filters of arbitrary order and prescribed specifications with various properties such as Butterworth, Chebyshev, Elliptic, and Optimum-L (Legendre) responses. The library is provided under the MIT license and is therefore fully compatible with proprietary usage.
Classes are designed as independent re-usable building blocks. Use some or all of the provided features, or extend the functionality by writing your own objects that plug into the robust framework. Only the code that you need will get linked into your application. Here's a list of features:
Classes are designed as independent reusable building blocks. Use some or all of the provided features, or extend the functionality by writing your own objects that plug into the robust framework. Only the code that you need will get linked into your application. Here's a list of features:
* Exclusive focus on IIR filters instead of boring FIR filters
* Complete implementation of all "RBJ Biquad" Cookbook filter formulas
Expand Down Expand Up @@ -376,7 +376,7 @@ void UsageExamples()
}

// Use the simple filter API to create a Chebyshev Band Stop of order 3
// and 1dB ripple in the passband. The simle API has a smaller
// and 1dB ripple in the passband. The simple API has a smaller
// footprint, but no introspection or smoothing.
{
// Note we use the raw filter instead of the one
Expand Down
2 changes: 1 addition & 1 deletion Source/Processors/Dsp/PoleFilter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ BandPassTransform::BandPassTransform (double fc,
LayoutBase const& analog)
{
// handle degenerate cases efficiently
// THIS DOESNT WORK because the cascade states won't match
// THIS DOESN'T WORK because the cascade states won't match
#if 0
const double fw_2 = fw / 2;
if (fc - fw_2 < 0)
Expand Down
2 changes: 1 addition & 1 deletion Source/Processors/Dsp/Utilities.h
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@ double BrentMinimize (
}
}
goto loop; // Yes, the dreaded goto statement. But the code
// here is faithful to Brent's orginal pseudocode.
// here is faithful to Brent's original pseudocode.
}
return fx;
}
Expand Down
2 changes: 1 addition & 1 deletion Source/Processors/Editors/GenericEditor.h
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ class PLUGIN_API GenericEditor : public AudioProcessorEditor
/** Adds a selected stream editor for a parameter of a given name. */
void addSelectedStreamParameterEditor (Parameter::ParameterScope scope, const String& name, int xPos, int yPos);

/** Adds a time editor for a paramater of a given name. */
/** Adds a time editor for a parameter of a given name. */
void addTimeParameterEditor (Parameter::ParameterScope scope, const String& name, int xPos, int yPos);

/** Adds a ttl line editor for a parameter of a given name. */
Expand Down
2 changes: 1 addition & 1 deletion Source/Processors/Editors/VisualizerEditor.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class PLUGIN_API VisualizerEditor : public GenericEditor, public DataWindow::Lis

// ------------------------------------------------------------
// VIRTUAL METHODS
// (can optionally be overriden by sub-classes)
// (can optionally be overridden by sub-classes)
// ------------------------------------------------------------

/** Use this method to save custom editor parameters */
Expand Down
2 changes: 1 addition & 1 deletion Source/Processors/FileReader/FileSource.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class PLUGIN_API FileSource

// ------------------------------------------------------------
// VIRTUAL METHODS
// (can optionally be overriden by sub-classes)
// (can optionally be overridden by sub-classes)
// ------------------------------------------------------------

/** Return false if file is not able to be opened */
Expand Down
6 changes: 3 additions & 3 deletions Source/Processors/FileReader/ScrubberInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ void FullTimeline::paint (Graphics& g)
{
float timelinePos = (sampleNumber - startSample) / float (totalSamples) * getWidth();

//if timelinePos is already in eventMap, skip overlaying a new event to avoid bogging down the GUI whle scrubbing
//if timelinePos is already in eventMap, skip overlaying a new event to avoid bogging down the GUI while scrubbing
if (eventMap.find (timelinePos) != eventMap.end())
continue;
eventMap[timelinePos] = true;
Expand Down Expand Up @@ -399,7 +399,7 @@ ScrubberInterface::ScrubberInterface (FileReader* fileReader_)
fullTimeline->setBounds (padding, 76, scrubInterfaceWidth - 2 * padding, 20);
addAndMakeVisible (fullTimeline.get());

/* Depracate playback button
/* Deprecate playback button
int buttonSize = 24;
playbackButton = std::make_unique<PlaybackButton> (fileReader);
playbackButton->setState (true);
Expand Down Expand Up @@ -446,7 +446,7 @@ void ScrubberInterface::paintOverChildren (Graphics& g)

void ScrubberInterface::buttonClicked (Button* button)
{
//playbackButton->setState (! playbackButton->getState()); //depracated
//playbackButton->setState (! playbackButton->getState()); //deprecated
updatePlaybackTimes();
fileReader->togglePlayback();
}
Expand Down
6 changes: 3 additions & 3 deletions Source/Processors/GenericProcessor/GenericProcessor.h
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ class PLUGIN_API GenericProcessor : public GenericProcessorBase, public PluginCl
/** Adds a parameter that allows the user to select a TTL Line
* @param maxAvailableLines The number of TTL lines available for selection
* @param syncMode Set to true if the ttl line will be used for synchronization
* @param canSelectNone Set to true if the user can select no TTL line (cant be used with syncMode = true)
* @param canSelectNone Set to true if the user can select no TTL line (can't be used with syncMode = true)
*/
void addTtlLineParameter (Parameter::ParameterScope scope,
const String& name,
Expand Down Expand Up @@ -646,7 +646,7 @@ class PLUGIN_API GenericProcessor : public GenericProcessorBase, public PluginCl
virtual void handleSpike (SpikePtr spike) {}

/** Returns info about the default events a specific subprocessor generates.
Called by createEventChannels(). It is not needed to implement if createEventChannels() is overriden */
Called by createEventChannels(). It is not needed to implement if createEventChannels() is overridden */
virtual void getDefaultEventInfo (Array<DefaultEventInfo>& events, int subProcessorIdx = 0) const;

// --------------------------------------------
Expand All @@ -660,7 +660,7 @@ class PLUGIN_API GenericProcessor : public GenericProcessorBase, public PluginCl
If recording is active, this message will be recorded */
void broadcastMessage (String msg);

/** Sends a message String to another processor node in the ProcessorGraph while acqusition
/** Sends a message String to another processor node in the ProcessorGraph while acquisition
not active */
void sendConfigMessage (GenericProcessor* destination, String message);

Expand Down
8 changes: 4 additions & 4 deletions Source/Processors/Parameter/Parameter.h
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ class PLUGIN_API Parameter
/** Called when the parameter is destroyed */
virtual void removeParameter (Parameter* parameterToRemove) = 0;

/** Called when the parameter is enabled/disbaled */
/** Called when the parameter is enabled/disabled */
virtual void parameterEnabled (bool isEnabled) = 0;
};

Expand Down Expand Up @@ -802,7 +802,7 @@ class PLUGIN_API MaskChannelsParameter : public Parameter
*
Represents a Parameter that holds value of currently selected line in a given Event Channel.
(Optional) The maximum number of avaialble lines
(Optional) The maximum number of available lines
can be specified.
*/
Expand Down Expand Up @@ -1034,7 +1034,7 @@ class PLUGIN_API TimeParameter : public Parameter
/**
*
Represents a Parameter that is only used for change notification.
E.g. to notify the processor that a certain event has occured.
E.g. to notify the processor that a certain event has occurred.
*/
class PLUGIN_API NotificationParameter : public Parameter
{
Expand All @@ -1047,7 +1047,7 @@ class PLUGIN_API NotificationParameter : public Parameter
const String& description,
bool deactivateDuringAcquisition = false);

/** Notifies the processor that a certain event has occured by calling parameterValueChanged() */
/** Notifies the processor that a certain event has occurred by calling parameterValueChanged() */
void triggerNotification();

/** Stages a value, to be changed by the processor*/
Expand Down
2 changes: 1 addition & 1 deletion Source/Processors/PluginManager/PluginManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ void PluginManager::loadPlugins (const File& pluginPath)
/*
Takes the user-specified plugin and begins
dynamic loading process. We want to ensure that
no step is exectured without a checkpoint
no step is executed without a checkpoint
because dynamic loading calls for rellocation of RAM
and works inside the same POSIX thread as the GUI.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ void EDITORCLASSNAME::resized()

/**
The listener method that reacts to the button click. The same method is called for all buttons
on the editor, so the button variable, which cointains a pointer to the button that called the method
on the editor, so the button variable, which contains a pointer to the button that called the method
has to be checked to know which function to perform.
*/
void EDITORCLASSNAME::buttonEvent (Button* button)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
@see GenericEditor
*/
class EDITORCLASSNAME : public GenericEditor //Generic Editor adds listeners for buttons and sliders.
//Other possible JUCE controls can be added and listened by inheriting from the appropiate XXX:Listener class
//Other possible JUCE controls can be added and listened by inheriting from the appropriate XXX:Listener class
//See JUCE documentation to find other available controls.
{
public:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include "EDITORCANVASCLASSNAME.h"
#include "PROCESSORCLASSNAME.h"

EDITORCANVASCLASSNAME::EDITORCANVASCLASSNAME (PROCESSORCLASSNAME* procesor)
EDITORCANVASCLASSNAME::EDITORCANVASCLASSNAME (PROCESSORCLASSNAME* processor)
{
// Open Ephys Plugin Generator will insert generated code for editor here. Don't edit this section.
//[OPENEPHYS_EDITOR_PRE_CONSTRUCTOR_SECTION_BEGIN]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ void EDITORCLASSNAME::resized()

/**
The listener method that reacts to the button click. The same method is called for all buttons
on the editor, so the button variable, which cointains a pointer to the button that called the method
on the editor, so the button variable, which contains a pointer to the button that called the method
has to be checked to know which function to perform.
*/
void EDITORCLASSNAME::buttonEvent (Button* button)
Expand Down
2 changes: 1 addition & 1 deletion Source/Processors/ProcessorGraph/ProcessorGraph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1841,7 +1841,7 @@ void ProcessorGraph::saveToXml (XmlElement* xml)
// add to list of splitters to come back to
splitPoints.add (processor);

//keep track of all splitters and their inital states
//keep track of all splitters and their initial states
allSplitters.add (processor);
Splitter* sp = (Splitter*) processor;
splitterStates.add (sp->getPath());
Expand Down
4 changes: 2 additions & 2 deletions Source/Processors/ProcessorGraph/ProcessorGraphActions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ DeleteProcessor::~DeleteProcessor()

bool DeleteProcessor::perform()
{
LOGDD ("Peforming DELETE for processor ", nodeId);
LOGDD ("Performing DELETE for processor ", nodeId);

Array<GenericProcessor*> processorToDelete;

Expand Down Expand Up @@ -343,7 +343,7 @@ MoveProcessor::~MoveProcessor()

bool MoveProcessor::perform()
{
LOGDD ("Peforming MOVE for processor ", nodeId);
LOGDD ("Performing MOVE for processor ", nodeId);

GenericProcessor* processor = processorGraph->getProcessorWithNodeId (nodeId);

Expand Down
2 changes: 1 addition & 1 deletion Source/Processors/RecordNode/DataQueue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ float DataQueue::writeChannel (const AudioBuffer<float>& buffer,
/*
We could copy the internal circular buffer to an external one, as DataBuffer does. This class
is, however, intended for disk writing, which is one of the most CPU-critical systems. Just
allowing the record subsytem to access the internal buffer is way faster, altough it has to be
allowing the record subsystem to access the internal buffer is way faster, although it has to be
done with special care and manually finish the read process.
*/

Expand Down
2 changes: 1 addition & 1 deletion Source/Processors/RecordNode/EventQueue.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class EventQueue
size1 = 0;
m_fifo.prepareToWrite (1, pos1, size1, pos2, size2);

/* This means there is a buffer overrun. Instead of overwritting the existing data and risking a collision of both threads
/* This means there is a buffer overrun. Instead of overwriting the existing data and risking a collision of both threads
we just skip the incoming samples. TODO: use this to notify of the overrun and act consequently */
if (size1 > 0)
{
Expand Down
2 changes: 1 addition & 1 deletion Source/Processors/RecordNode/RecordEngine.h
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ class PLUGIN_API RecordEngine

// ------------------------------------------------------------
// VIRTUAL METHODS
// (can optionally be overriden by sub-classes)
// (can optionally be overridden by sub-classes)
// ------------------------------------------------------------

/** Called by configureEngine() */
Expand Down
2 changes: 1 addition & 1 deletion Source/Processors/Settings/Metadata.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class PLUGIN_API MetadataDescriptor
/** Copy constructor */
MetadataDescriptor (const MetadataDescriptor& other);

/** Copy construtor */
/** Copy constructor */
MetadataDescriptor& operator= (const MetadataDescriptor& other);

/** Gets the primitive type of this field */
Expand Down
2 changes: 1 addition & 1 deletion Source/Processors/Settings/SpikeChannel.h
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ class PLUGIN_API SpikeChannel : public ChannelInfoObject,
/** Determines whether channel sends the full waveform, or just the peak sample*/
bool sendFullWaveform;

/** Gets the eletrode start channel */
/** Gets the electrode start channel */
int getStartChannel() const { return localChannelIndexes[0]; };

// ====== STATIC METHODS ========= //
Expand Down
2 changes: 1 addition & 1 deletion Source/Processors/SourceNode/SourceNode.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class PLUGIN_API SourceNode : public GenericProcessor, public Timer
/** Registers the parameters for a given processor */
void registerParameters() override;

/** Returns true if the processor is ready for acquistion */
/** Returns true if the processor is ready for acquisition */
bool isReady() override;

/* Copies samples from the DataThread's DataBuffer into the GUI's processing buffers. */
Expand Down
6 changes: 3 additions & 3 deletions Source/Processors/Synchronizer/Synchronizer.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
*/
struct SyncPulse
{
/** The time (in seconds) since the start of acquistion
/** The time (in seconds) since the start of acquisition
for the pulse's stream
*/
double localTimestamp;
Expand Down Expand Up @@ -112,7 +112,7 @@ class SyncStream
/** TTL line to use for synchronization */
int syncLine;

/** true if this stream is succesfully synchronized */
/** true if this stream is successfully synchronized */
bool isSynchronized;

/** Holds the unique key for this stream */
Expand Down Expand Up @@ -265,7 +265,7 @@ class PLUGIN_API SynchronizingProcessor
/** Sets the main data stream to use for synchronization */
void setMainDataStream (String streamKey);

/** Returns true if a stream ID matches the one to use for sychronization*/
/** Returns true if a stream ID matches the one to use for synchronization*/
bool isMainDataStream (String streamKey);

/** Sets the TTL line to use for synchronization*/
Expand Down
4 changes: 2 additions & 2 deletions Source/Processors/Visualization/Visualizer.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class PLUGIN_API Visualizer : public Component,

// ------------------------------------------------------------
// VIRTUAL METHODS
// (can optionally be overriden by sub-classes)
// (can optionally be overridden by sub-classes)
// ------------------------------------------------------------

/** Called when data acquisition begins.
Expand Down Expand Up @@ -209,7 +209,7 @@ class PLUGIN_API Visualizer : public Component,

/** Adds a parameter that allows the user to select a TTL Line
* @param maxAvailableLines The number of TTL lines available for selection
* @param canSelectNone Set to true if the user can select no TTL line (cant be used with syncMode = true)
* @param canSelectNone Set to true if the user can select no TTL line (can't be used with syncMode = true)
*/
void addTtlLineParameter (const String& name,
const String& displayName,
Expand Down
2 changes: 1 addition & 1 deletion Source/UI/ControlPanel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1358,7 +1358,7 @@ String ControlPanel::getRecordingDirectoryName()

void ControlPanel::createNewRecordingDirectory()
{
//TODO: Remove depdendency on button states/callbacks
//TODO: Remove dependency on button states/callbacks
MessageManager::callAsync ([this]
{ buttonClicked (newDirectoryButton.get()); });
}
Expand Down
4 changes: 2 additions & 2 deletions Source/UI/ControlPanel.h
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ class UtilityButton;
Provides general application controls along the top of the MainWindow.
Displays useful information and provides buttons to control acquistion and recording.
Displays useful information and provides buttons to control acquisition and recording.
The ControlPanel contains the PlayButton, the RecordButton, the CPUMeter,
the DiskSpaceMeter, the Clock, the AudioEditor, and a FilenameComponent for switching the
Expand Down Expand Up @@ -412,7 +412,7 @@ class TESTABLE ControlPanel : public Component,
*/
void setRecordingParentDirectory (String path);

/** Returns the current parent recording diretory*/
/** Returns the current parent recording directory*/
File getRecordingParentDirectory();

/** Gets the base name of the recording directory */
Expand Down
2 changes: 1 addition & 1 deletion Source/UI/GraphViewer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1063,7 +1063,7 @@ void GraphNode::updateStreamInfo()
dataStreamButtons.clear();

/* iterate through the streamInfoVisible map and remove all
** entires that dont belong to processors->getDataStreams() */
** entries that dont belong to processors->getDataStreams() */
for (auto it = streamInfoVisible.begin(); it != streamInfoVisible.end();)
{
if (processor->getDataStream (it->first) == nullptr)
Expand Down
Loading

0 comments on commit e7f4e77

Please sign in to comment.