diff --git a/CMakeLists.txt b/CMakeLists.txt index e399c45ffd1..afb37c42e3d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -46,7 +46,7 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "Clang|GNU") # Any Clang or any GCC add_compile_options( -Wno-multichar - # Targetting Windows with GCC/Clang is experimental + # Targeting Windows with GCC/Clang is experimental $<$>:-Werror> # PE/COFF doesn't support visibility @@ -54,7 +54,7 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "Clang|GNU") # Inlines visibility is only relevant with C++ $<$>,$>:-fvisibility-inlines-hidden> - # BP note: If you want to turn on llvm/gcc santize undo this and the link options below + # BP note: If you want to turn on llvm/gcc sanitize undo this and the link options below # -fsanitize=address -fsanitize=undefined ) diff --git a/README.md b/README.md index 66b5a34f07e..30a0ad00aaf 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ [from our website](https://surge-synthesizer.github.io). Surge Synth Team makes regular releases for all supported platforms.** -**Over 2021, after the succesful release of Surge 1.9, the Surge Synth team undertook an effort to rebuild Surge in JUCE +**Over 2021, after the successful release of Surge 1.9, the Surge Synth team undertook an effort to rebuild Surge in JUCE and add a variety of features. This project resulted in the new version of Surge, called 'Surge XT'. The head of this repo contains the current version of Surge XT. If you are looking to compile a stable production version of Surge, we tag each release, so if you want to compile Surge 1.9, please check out the `release_1.9.0` tag.** @@ -131,7 +131,7 @@ cmake -Bbuild -DBUILD_USING_MY_ASIO_LICENSE=True On Linux, using a community fork of JUCE, you can build an LV2. Here's how! We assume you have checked out Surge and can build. -First, clone https://github.com/lv2-porting-project/JUCE/tree/lv2 on branch lv2, to some directory of your chosing. +First, clone https://github.com/lv2-porting-project/JUCE/tree/lv2 on branch lv2, to some directory of your choosing. ``` sudo apt-get install -y lv2-dev diff --git a/doc/Developer Guide.md b/doc/Developer Guide.md index 8e5e024f39f..c8f4dbed0b9 100644 --- a/doc/Developer Guide.md +++ b/doc/Developer Guide.md @@ -65,7 +65,7 @@ CI will fail (`linux-codequality` job). Make sure the diffs you submit for mergi * `class HaveCamelCaseNames` * `void functionsAreCamelCaseWithLowerFirst` * We are not using `s_` or `m_` or equivalent notations for members or statics -* Full namespaces are generally prefered over `using`. We are trying to use +* Full namespaces are generally preferred over `using`. We are trying to use `std::vector` over `vector` in the code. * Don't do `using namespace` in header files. Don't `using namespace std` in new code (but it is in some existing code). * Use namespaces, not classes to group functions. Check out how we implemented `UserInteractions.h` diff --git a/doc/Dynamic Names, Deactivation and Bipolarity.md b/doc/Dynamic Names, Deactivation and Bipolarity.md index 8abab0bfdee..6988c42be92 100644 --- a/doc/Dynamic Names, Deactivation and Bipolarity.md +++ b/doc/Dynamic Names, Deactivation and Bipolarity.md @@ -35,7 +35,7 @@ associated oscillator using control groups, use that to look up oscillator mode, understand your parameter index, and return the right name. Similarly, the `lfoPhaseName` handler which is set up for all LFOs in `SurgePatch.cpp` -creates a static handler and assignes it to all the `start_phase` dynamic +creates a static handler and assigns it to all the `start_phase` dynamic names to swap Phase and Shuffle text labels based on LFO type. ## Dynamic Activation @@ -63,7 +63,7 @@ or null if there is no parent. So basically, a good implementation of `getValue()` is to look up the parent param and return its decctivation status, and for `getPrimaryActivationDriver()` to look up the -parent parameter and return a poitner to it. LPG parameteres in EuroTwist do precisely this. +parent parameter and return a pointer to it. LPG parameteres in EuroTwist do precisely this. ### Follow Value Pattern diff --git a/doc/How to Git.md b/doc/How to Git.md index 6cb427c64dc..ac5acd43708 100644 --- a/doc/How to Git.md +++ b/doc/How to Git.md @@ -159,7 +159,7 @@ pattern would be develop on Mac, do a commit, then test it on Windows and Linux. make a one-line change and commit that. Now your change, which is still "one thing", has two commits. Or perhaps, you develop your code over a week committing regularly and all those intermediate work commits -aren't ones you want to make visibile. Or perhaps you develop, then format as a last step and have changes. +aren't ones you want to make visible. Or perhaps you develop, then format as a last step and have changes. In any case, as maintainers, we would sooner have a small number of git commits in our pull requests. @@ -208,7 +208,7 @@ paul:~/dev/music/surge$ git cherry -v main ``` Now at this point you could push your branch (`git push origin update-git-howto`) and the PR would update -and would have two commits in it. Continous integration would run its course and voila! But the maintainers would probably +and would have two commits in it. Continuous integration would run its course and voila! But the maintainers would probably squash those commits and rewrite your commit message, so you may want to squash down to one commit. Here's how you do it. First rebase interactively with `git rebase -i main`. You will see an editor which looks like this: diff --git a/doc/Surge Architecture.md b/doc/Surge Architecture.md index 08e1f3733b8..263453ce88a 100644 --- a/doc/Surge Architecture.md +++ b/doc/Surge Architecture.md @@ -46,7 +46,7 @@ of the UI (like those delivered by the host) to be reflected in the UI. Surge voice allocation and voice stealing code is complicated, supporting multiple polyphony modes and MPE, which adds substantial complexity. The core data structure is a list of voices -which are allocated at startup and configured with an in-place contructor. Each has a reference +which are allocated at startup and configured with an in-place constructor. Each has a reference to state for the channel in which it is playing. The voice class is in `src/common/dsp/SurgeVoice.h` and contains a `SurgeVoiceState`. diff --git a/resources/data/skins/Tutorials/01 Intro to Skins.surge-skin/skin.xml b/resources/data/skins/Tutorials/01 Intro to Skins.surge-skin/skin.xml index 5d2f054cc10..33ec6c934af 100644 --- a/resources/data/skins/Tutorials/01 Intro to Skins.surge-skin/skin.xml +++ b/resources/data/skins/Tutorials/01 Intro to Skins.surge-skin/skin.xml @@ -5,7 +5,7 @@ The basic structure of a surge skin is a directory named "Something.surge-skin" which contains at least a single file "skin.xml" describing the contents of the skin directory and the desired behaviour of the resulting surge UI. - We call a ".surge-skin" directory and its contents a "skin", "skin bundle" or "bundle" interchangably. + We call a ".surge-skin" directory and its contents a "skin", "skin bundle" or "bundle" interchangeably. The skin bundle can be placed either in the user's surge documents directory (the location where user patches are saved, as shown by the 'show user folder' menu item) or in the Surge central data folder if it is a diff --git a/resources/data/skins/Tutorials/02 Changing Images and Colors.surge-skin/skin.xml b/resources/data/skins/Tutorials/02 Changing Images and Colors.surge-skin/skin.xml index ce89596642f..010fd97ec95 100644 --- a/resources/data/skins/Tutorials/02 Changing Images and Colors.surge-skin/skin.xml +++ b/resources/data/skins/Tutorials/02 Changing Images and Colors.surge-skin/skin.xml @@ -11,7 +11,7 @@ There are a couple of key concepts needed to reskin in this simplest fashion 1. All of the controls respond either to colors which are defaulted to the classic skin and can be replaced in this file, or 2. The control has an SVG representation of itself, usually with multiple states -In the first case, Surge has colors with heirarchical names ('lfo.waveform.background', say) which +In the first case, Surge has colors with hierarchical names ('lfo.waveform.background', say) which are queried by our components at runtime. You can find out each of the names available in the skin inspector. @@ -83,7 +83,7 @@ feel. @@ -32,7 +32,7 @@ analogy lead you astray, especially in your optimism for how much we ahve implem But if we want to replace a collection of sliders and modify several features we don't want to have to repeat all the configuration. Instead we define a user component class. This class has a name and a parent class but also advertises properties. Much like CSS these properties cascade - so a control can ovveride them, or a user class can have a user class as a parent. Here we take + so a control can override them, or a user class can have a user class as a parent. Here we take the simplest approach though of just defining a new slider class which we intend to use for the LFO H Sliders. We share the parent, CSurgeSlider, and modify the handle_image and the handle_tray (backdrop) with a custom image. @@ -64,7 +64,7 @@ analogy lead you astray, especially in your optimism for how much we ahve implem diff --git a/scripts/installer_linux/make_rpm.sh b/scripts/installer_linux/make_rpm.sh index ea9327d926b..b7825ab0b51 100755 --- a/scripts/installer_linux/make_rpm.sh +++ b/scripts/installer_linux/make_rpm.sh @@ -60,7 +60,7 @@ pushd ./installer-tmp # Name of Package PACKAGE_NAME=surge-xt -# Date in RFC formate for the Changelog +# Date in RFC format for the Changelog DATE_RFC=`date --rfc-email` # Date in Day-of-Week Month Day Year format for the rpm config header. DATE_RPM=`date` diff --git a/scripts/ipy/Demonstrate Surge in Python.ipynb b/scripts/ipy/Demonstrate Surge in Python.ipynb index 52bd6068d09..e0167a44a8f 100644 --- a/scripts/ipy/Demonstrate Surge in Python.ipynb +++ b/scripts/ipy/Demonstrate Surge in Python.ipynb @@ -13,7 +13,7 @@ "This document assumes that\n", "1. You basically understand how Surge works as a synth. Concepts like\n", " scenes, oscilaltors, modulators etc\n", - "2. You can build surge from source succesfully as outlined in the README and\n", + "2. You can build surge from source successfully as outlined in the README and\n", "3. You can manage a python environment with custom modules\n", "4. You are running on a machine where the Surge synth is installed (namely\n", " the factory data directory is present in an OS specific places as described\n", @@ -375,7 +375,7 @@ "metadata": {}, "source": [ "Finally, lets define a function which plays surge for about 4 seconds, with\n", - "a key relese at second 3, and returns a smoothed RMS of the output. At this point\n", + "a key release at second 3, and returns a smoothed RMS of the output. At this point\n", "it should be clear how to do that." ] }, diff --git a/scripts/pyauto-tests/basics-about-screen.py b/scripts/pyauto-tests/basics-about-screen.py index 18022ee2963..a3371cca295 100644 --- a/scripts/pyauto-tests/basics-about-screen.py +++ b/scripts/pyauto-tests/basics-about-screen.py @@ -1,5 +1,5 @@ # The simplest use of the accessibility API. Grab a surge xt running instance -# and dump the accesibility heirarchy +# and dump the accessibility hierarchy import atomacos diff --git a/scripts/pyauto-tests/basics-show-open-menu.py b/scripts/pyauto-tests/basics-show-open-menu.py index f9d4f2a3093..11b3c3f083d 100644 --- a/scripts/pyauto-tests/basics-show-open-menu.py +++ b/scripts/pyauto-tests/basics-show-open-menu.py @@ -1,5 +1,5 @@ # The simplest use of the accessibility API. Grab a surge xt running instance -# and dump the accesibility heirarchy +# and dump the accessibility hierarchy import atomacos diff --git a/scripts/pyauto-tests/basics-show-tree.py b/scripts/pyauto-tests/basics-show-tree.py index 1613fe805af..c06e27bfc62 100644 --- a/scripts/pyauto-tests/basics-show-tree.py +++ b/scripts/pyauto-tests/basics-show-tree.py @@ -1,5 +1,5 @@ # The simplest use of the accessibility API. Grab a surge xt running instance -# and dump the accesibility heirarchy +# and dump the accessibility hierarchy import atomacos diff --git a/scripts/pyauto-tests/mod-use-menu-buttons.py b/scripts/pyauto-tests/mod-use-menu-buttons.py index ddb8edb7bd0..0ec15140178 100644 --- a/scripts/pyauto-tests/mod-use-menu-buttons.py +++ b/scripts/pyauto-tests/mod-use-menu-buttons.py @@ -1,4 +1,4 @@ -# Show that that the modulation menu properly exposes to accesibility +# Show that that the modulation menu properly exposes to accessibility # by dumping the menu, muting it, then dumping it again and unmuting it import sxttest diff --git a/scripts/win/build-win.ps1 b/scripts/win/build-win.ps1 index 23a22a4aeac..d5129fb75ec 100644 --- a/scripts/win/build-win.ps1 +++ b/scripts/win/build-win.ps1 @@ -28,17 +28,17 @@ build-win.ps1 is a powershell script to control builds and do installs. It takes -cleanall Clean builds and remove visual studio files -build Build -install Install vst2 and 3. Will prompt for permissions - -bi buid + install + -bi build + install -cb clean + build -cbi clean + build + install -w32 Build 32 bit -It does not run premake yet. +It does not run premake yet. You need to onetime do - Set-ExecutionPolicy -scope CurrentUser RemoteSigned + Set-ExecutionPolicy -scope CurrentUser RemoteSigned to use this. "@ diff --git a/scripts/wt-tool/generated-wt.py b/scripts/wt-tool/generated-wt.py index ce52576d8b0..3f281e23955 100644 --- a/scripts/wt-tool/generated-wt.py +++ b/scripts/wt-tool/generated-wt.py @@ -59,7 +59,7 @@ def npftoi15bin(fsamples): def generatewt(filename, genf, res, tables): """Given res as a function of npline,int -> npline to generate the nth table, - genereate the wt file""" + generate the wt file""" line = np.linspace(0, 1, res, endpoint=False) dat = [] for i in range(tables): @@ -76,7 +76,7 @@ def comparewt(fn1, fn2): l2 = np.linspace(0, 1, len(d2[0]), endpoint=False) if(len(d1) != len(d2)): - print(" Lenghts don't match", len(d1), " ", len(d2)) + print(" Lengths don't match", len(d1), " ", len(d2)) return for i in range(len(d1)): diff --git a/scripts/wt-tool/wt-tool.py b/scripts/wt-tool/wt-tool.py index cee8d1bf461..1fd9e14c989 100755 --- a/scripts/wt-tool/wt-tool.py +++ b/scripts/wt-tool/wt-tool.py @@ -193,7 +193,7 @@ def main(): parser.add_option("-f", "--file", dest="file", help="wt_file being inspected or created", metavar="FILE") parser.add_option("-d", "--wav_dir", dest="wav_dir", - help="Directory containing or recieving wav files for wt", metavar="DIR") + help="Directory containing or receiving wav files for wt", metavar="DIR") parser.add_option("-n", "--normalize", dest="normalize", default="none", metavar="MODE", help="""(Create only) how to normalize input. Modes are 'none' leave input untouched; diff --git a/src/common/DebugHelpers.h b/src/common/DebugHelpers.h index cc4957de4bf..c5aa18a2c13 100644 --- a/src/common/DebugHelpers.h +++ b/src/common/DebugHelpers.h @@ -1,7 +1,7 @@ /* ** DebugHelpers.h ** -** Cotnains debug APIs. Do not use them in production code. +** Contains debug APIs. Do not use them in production code. ** Pull requests with references to these functions will not be merged! ** */ diff --git a/src/common/FilterConfiguration.h b/src/common/FilterConfiguration.h index 5c3f0b33cee..45e9953b958 100644 --- a/src/common/FilterConfiguration.h +++ b/src/common/FilterConfiguration.h @@ -44,7 +44,7 @@ * right choice, but when you curse me for the odd name list, you can come back and read this * comment and feel slightly better. Finally, items which split and changed meaning got a new name * (so fut_comb is now fut_comb_pos and fut_comb_neg, say), which requires us to go and fix up any - * code which refered to the old values. + * code which referred to the old values. */ enum fu_type_sv14 diff --git a/src/common/LuaSupport.h b/src/common/LuaSupport.h index caeb3f74380..b5d861ff87b 100644 --- a/src/common/LuaSupport.h +++ b/src/common/LuaSupport.h @@ -58,7 +58,7 @@ bool parseStringDefiningFunction(lua_State *s, const std::string &definition, * top of the stack, bar next and hootie third. * * Return an integer which is the number of the functions which were resolved and - * the number which were nil. If the function returns 0 errorMessage will be popuplated + * the number which were nil. If the function returns 0 errorMessage will be populated * with something. */ int parseStringDefiningMultipleFunctions(lua_State *s, const std::string &definition, diff --git a/src/common/Parameter.cpp b/src/common/Parameter.cpp index e0301539738..a0c5e739916 100644 --- a/src/common/Parameter.cpp +++ b/src/common/Parameter.cpp @@ -2554,7 +2554,7 @@ void Parameter::get_display_of_modulation_depth(char *txt, float modulationDepth return; } float mf = modulationDepth; - // OK so this is already handed to us extended and this one is wierd so + // OK so this is already handed to us extended and this one is weird so auto qq = mf; if (extend_range) { diff --git a/src/common/Parameter.h b/src/common/Parameter.h index 1f08f8482c8..e411cca1f20 100644 --- a/src/common/Parameter.h +++ b/src/common/Parameter.h @@ -266,7 +266,7 @@ struct ParameterDynamicDeactivationFunction : public ParameterDynamicBoolFunctio /* ** It used to be parameters were assigned IDs in SurgePatch using an int which we ++ed along the -** way. If we want to 'add at the end' but 'cluster together' we need a different data strcture +** way. If we want to 'add at the end' but 'cluster together' we need a different data structure ** to allow clusters of parameters, so instead make SurgePatch use a linked list (or multiple lists) ** while constructing params and then resolve them all at the end. This little class lets us ** do that. @@ -447,7 +447,7 @@ class Parameter pdata val{}, val_default{}, val_min{}, val_max{}; // You might be tempted to use a non-fixed-size member here, like a std::string, but - // this class gets pre-c++ memcopied so thats not an option which is why I do this wonky + // this class gets pre-c++ memcopied so that's not an option which is why I do this wonky // pointer thing and strncpy from a string onto ui_identifier ParameterIDCounter::promise_ptr_t id_promise{}; int id{}; diff --git a/src/common/PatchDB.cpp b/src/common/PatchDB.cpp index bd430430869..13574c73ec4 100644 --- a/src/common/PatchDB.cpp +++ b/src/common/PatchDB.cpp @@ -225,7 +225,7 @@ struct TxnGuard struct PatchDB::WriterWorker { - static constexpr const char *schema_version = "11"; // I will rebuild if this is not my verion + static constexpr const char *schema_version = "11"; // I will rebuild if this is not my version // language=SQL static constexpr const char *setup_sql = R"SQL( @@ -356,7 +356,7 @@ CREATE TABLE IF NOT EXISTS Favorites ( if (ec != SQLITE_OK) { std::ostringstream oss; - oss << "An error occured opening sqlite file '" << dbname << "'. The error was '" + oss << "An error occurred opening sqlite file '" << dbname << "'. The error was '" << sqlite3_errmsg(dbh) << "'."; storage->reportError(oss.str(), "Surge Patch Database Error"); if (dbh) @@ -495,7 +495,7 @@ CREATE TABLE IF NOT EXISTS Favorites ( } } - // FIXME features shuld be an enum or something + // FIXME features should be an enum or something enum FeatureType { @@ -1030,7 +1030,7 @@ CREATE TABLE IF NOT EXISTS Favorites ( if (notifyOnError) { std::ostringstream oss; - oss << "An error occured opening r/o sqlite file '" << dbname + oss << "An error occurred opening r/o sqlite file '" << dbname << "'. The error was '" << sqlite3_errmsg(dbh) << "'."; storage->reportError(oss.str(), "Surge Patch Database Error"); } diff --git a/src/common/PatchDBQueryParser.cpp b/src/common/PatchDBQueryParser.cpp index 8440176e9eb..a671bb724a1 100644 --- a/src/common/PatchDBQueryParser.cpp +++ b/src/common/PatchDBQueryParser.cpp @@ -31,7 +31,7 @@ namespace pegtl = tao::TAO_PEGTL_NAMESPACE; namespace grammar { -// CLang Format wants all these emtpy structs to be braced on newlines so turn it off for now +// CLang Format wants all these empty structs to be braced on newlines so turn it off for now // clang-format off struct expression; struct value; diff --git a/src/common/SkinModel.h b/src/common/SkinModel.h index d5c73a5c9c4..e9c70291e26 100644 --- a/src/common/SkinModel.h +++ b/src/common/SkinModel.h @@ -40,7 +40,7 @@ * and we want that default to be completely over-rideable in our VSTGUI * implementation. * - * And finally, we don't want the core of surge to refernce VSTGUI. + * And finally, we don't want the core of surge to reference VSTGUI. * * So that gets us the following set of collaborations * @@ -77,7 +77,7 @@ * 2. Have the data (but not the renderer) for the layout information in src/common * * I chose #2 mostly because #1 is especially tedious since a collection of parameters - * share a skin identity. For instance, all of the oscilator pitch sliders (of which there + * share a skin identity. For instance, all of the oscillator pitch sliders (of which there * are 6 as of 1.8.0) are a single point of skin identity. Thus attaching them to skin * data models in SurgePatch makes sense. * @@ -111,7 +111,7 @@ struct Component /* * We could have done something much clevere with templates and per-class enums * but decided not to. Instead here is an enum which is the union of all possible - * properites that an item can have. + * properties that an item can have. */ enum Properties { @@ -123,7 +123,7 @@ struct Component BACKGROUND, HOVER_IMAGE, HOVER_ON_IMAGE, - IMAGE, // Note for most components "image" binds to "background" but some have it seprate + IMAGE, // Note for most components "image" binds to "background" but some have it separate ROWS, COLUMNS, @@ -184,7 +184,7 @@ struct Component std::shared_ptr payload; /* - * To allow aliasing and backwards compatability, a property binds to the skin engine + * To allow aliasing and backwards compatibility, a property binds to the skin engine * with multiple names for a given class. */ Component &withProperty(Properties p, const std::initializer_list &names, diff --git a/src/common/SurgePatch.cpp b/src/common/SurgePatch.cpp index a39fe690377..8c81a35c142 100644 --- a/src/common/SurgePatch.cpp +++ b/src/common/SurgePatch.cpp @@ -1489,7 +1489,7 @@ void SurgePatch::load_xml(const void *data, int datasize, bool is_preset) } else { - // Explicity set scene to A. See #2285 + // Explicitly set scene to A. See #2285 t.source_scene = 0; } } diff --git a/src/common/SurgeStorage.cpp b/src/common/SurgeStorage.cpp index f608faec2ea..24632952f08 100644 --- a/src/common/SurgeStorage.cpp +++ b/src/common/SurgeStorage.cpp @@ -818,7 +818,7 @@ void SurgeStorage::refreshPatchOrWTListAddDir(bool userDir, string subdir, /* ** std::filesystem has a recursive_directory_iterator, but between the - ** hand rolled ipmmlementation on mac, expermiental on windows, and + ** hand rolled ipmmlementation on mac, experimental on windows, and ** ostensibly standard on linux it isn't consistent enough to warrant ** using yet, so build my own recursive directory traversal with a simple ** stack @@ -2422,7 +2422,7 @@ bool isValidUTF8(const std::string &testThis) // then it's always of form '110xxxxx10xxxxxx'. Similarly for three and four byte UTF8 // characters it starts with '1110xxxx' and '11110xxx' followed by '10xxxxxx' one less times as // there are bytes. This tool will locate mistakes in the encoding and tell you where they - // occured. + // occurred. // https://helloacm.com/how-to-validate-utf-8-encoding-the-simple-utf-8-validation-algorithm/ diff --git a/src/common/SurgeStorage.h b/src/common/SurgeStorage.h index 0a95f28bc59..890ca12ab71 100644 --- a/src/common/SurgeStorage.h +++ b/src/common/SurgeStorage.h @@ -72,7 +72,7 @@ const int FIRoffsetI16 = FIRipolI16_N >> 1; // 2 -> 3 filter subtypes added: Comb defaults to 1, Legacy Ladder defaults to 3 // 3 -> 4 Comb+ and Comb- are now combined into one filter type // (type, subtype: +, 0 -> 0 | +, 1 -> 1 | -, 0 -> 2 | -, 1 -> 3) -// 4 -> 5 Stereo filter configuration has seperate pan controls now +// 4 -> 5 Stereo filter configuration has separate pan controls now // 5 -> 6 (1.2.0 release) filter resonance response changed (same parameters, different sound) // 6 -> 7 custom controller state now stored in DAW recall // 7 -> 8 larger resonance range (old filters are set to subtype 1) @@ -907,7 +907,7 @@ class SurgePatch int currentSynthStreamingRevision; /* - * This parameter exists for the very special reason of maintaing compatibility with + * This parameter exists for the very special reason of maintaining compatibility with * comb filter tuning for streaming versions which are older than Surge v1.8. * Prior to that, the comb filter had a calculation error in the time and was out of tune, * but that lead to a unique sound in existing patches. So we introduce this parameter @@ -992,7 +992,7 @@ class alignas(16) SurgeStorage struct ErrorListener { // This can be called from any thread. Beware. But it is called only - // when an error occurs so if you want to be sloppy and just lock thats OK + // when an error occurs so if you want to be sloppy and just lock that's OK virtual void onSurgeError(const std::string &msg, const std::string &title) = 0; }; std::unordered_set errorListeners; diff --git a/src/common/SurgeSynthesizer.cpp b/src/common/SurgeSynthesizer.cpp index 2e14684b439..149561bb875 100644 --- a/src/common/SurgeSynthesizer.cpp +++ b/src/common/SurgeSynthesizer.cpp @@ -961,7 +961,7 @@ void SurgeSynthesizer::releaseNote(char channel, char key, char velocity) releaseNotePostHoldCheck(sc, channel, key, velocity); else holdbuffer[sc].push_back( - HoldBufferItem{channel, key, channel, key}); // hold pedal is down, add to bufffer + HoldBufferItem{channel, key, channel, key}); // hold pedal is down, add to buffer } } @@ -1029,7 +1029,7 @@ void SurgeSynthesizer::releaseNotePostHoldCheck(int scene, char channel, char ke if ((v->state.key == key) && (v->state.channel == channel)) { - int activateVoiceKey = 60, activateVoiceChannel = 0; // these will be overriden + int activateVoiceKey = 60, activateVoiceChannel = 0; // these will be overridden auto priorityMode = storage.getPatch().scene[v->state.scene_id].monoVoicePriorityMode; @@ -2240,7 +2240,7 @@ bool SurgeSynthesizer::setParameter01(long index, float value, bool external, bo if (storage.getPatch().param_ptr[index]->val.i != oldval.i) { /* - ** Wish there was a better way to figure out my osc but thsi works + ** Wish there was a better way to figure out my osc but this works */ for (auto oi = 0; s >= 0 && s <= 1 && oi < n_oscs; oi++) { diff --git a/src/common/SurgeSynthesizer.h b/src/common/SurgeSynthesizer.h index 3d9f2fdae98..ff2b47a91bb 100644 --- a/src/common/SurgeSynthesizer.h +++ b/src/common/SurgeSynthesizer.h @@ -280,8 +280,8 @@ class alignas(16) SurgeSynthesizer /* * setModulation etc take a modsource scene. This is only needed for global modulations - * since for in-scene modulations the paramter implicit in ptag has a scene. But for - * LFOs modulating FX, we need to knwo which scene they originate from. See #2285 + * since for in-scene modulations the parameter implicit in ptag has a scene. But for + * LFOs modulating FX, we need to know which scene they originate from. See #2285 */ bool setModulation(long ptag, modsources modsource, int modsourceScene, int index, float value); float getModulation(long ptag, modsources modsource, int modsourceScene, int index) const; diff --git a/src/common/SurgeSynthesizerIO.cpp b/src/common/SurgeSynthesizerIO.cpp index f28ef78d912..a64acbf9a26 100644 --- a/src/common/SurgeSynthesizerIO.cpp +++ b/src/common/SurgeSynthesizerIO.cpp @@ -534,7 +534,7 @@ void SurgeSynthesizer::savePatch(bool factoryInPlace) catch (...) { storage.reportError( - "Exception occured while creating category folder! Most likely, invalid characters " + "Exception occurred while creating category folder! Most likely, invalid characters " "were used to name the category. Please remove suspicious characters and try again!", "Error"); return; diff --git a/src/common/dsp/Effect.h b/src/common/dsp/Effect.h index aec91613128..d002d150118 100644 --- a/src/common/dsp/Effect.h +++ b/src/common/dsp/Effect.h @@ -64,7 +64,7 @@ class alignas(16) Effect float vu[KNumVuSlots]; // stereo pairs, just use every other when mono // Most of the fx read the sample rate at sample time but airwindows - // keeps a cache so give loaded fx a notice when the sample rate cahnges + // keeps a cache so give loaded fx a notice when the sample rate changes virtual void sampleRateReset() {} virtual void handleStreamingMismatches(int streamingRevision, int currentSynthStreamingRevision) @@ -85,7 +85,7 @@ class alignas(16) Effect pdata *pd; int ringout; float *f[n_fx_params]; - int *pdata_ival[n_fx_params]; // f is not a great choice for a member name, but 'i' woudl be + int *pdata_ival[n_fx_params]; // f is not a great choice for a member name, but 'i' would be // worse! bool hasInvalidated{false}; }; diff --git a/src/common/dsp/QuadFilterChain.h b/src/common/dsp/QuadFilterChain.h index 269410d1964..60c05bcb83e 100644 --- a/src/common/dsp/QuadFilterChain.h +++ b/src/common/dsp/QuadFilterChain.h @@ -78,7 +78,7 @@ * of registers (storage) and coefficients (inputs) to each filter based on the filter type at * the start of every block. Moreover, it provides the derivatives-with-respect-to-sample of * those items, such that as the filter goes across the block it can smoothly interpolate the - * coeffiecients. These are set up either by direct change (with FromDirect) or individually + * coefficients. These are set up either by direct change (with FromDirect) or individually * based on filters. And of course, this is where a lot of the math goes. The SSE filters need * to set up the various polynomial and non-linear coefficients here. But once they have the * individual operator, they basically do a "Coefficient += dCoeff" for each block and then evaluate @@ -92,8 +92,8 @@ * * Finally, the filter types, subtypes and names thereof are enumerated in SurgeStorage.h. * - * There are a few more Surge fitler functions - the Allpass BiquadFilter and VectorizedSVFFilter - * are used by various FX in a different context and they don't follow this architecutre. That code + * There are a few more Surge filter functions - the Allpass BiquadFilter and VectorizedSVFFilter + * are used by various FX in a different context and they don't follow this architecture. That code * is fairly clear, though. */ @@ -102,7 +102,7 @@ struct QuadFilterChainState { - QuadFilterUnitState FU[4]; // 2 filters left and righ + QuadFilterUnitState FU[4]; // 2 filters left and right QuadFilterWaveshaperState WSS[2]; // 1 shaper left and right __m128 Gain, FB, Mix1, Mix2, Drive; diff --git a/src/common/dsp/QuadFilterUnit.h b/src/common/dsp/QuadFilterUnit.h index 0eec070acff..c25eb290c56 100644 --- a/src/common/dsp/QuadFilterUnit.h +++ b/src/common/dsp/QuadFilterUnit.h @@ -22,7 +22,7 @@ FilterUnitQFPtr GetQFPtrFilterUnit(int type, int subtype); /* * Subtypes are integers below 16 - maybe one day go as high as 32. So we have space in the * int for more informatino and we mask on higher bits to allow us to - * programatically change features we don't expose to users, in things like + * programmatically change features we don't expose to users, in things like * FX. So far this is only used to extend the COMB time in the combulator. * * These should obvioulsy be distinct per type but can overlap in values otherwise diff --git a/src/common/dsp/SurgeVoice.cpp b/src/common/dsp/SurgeVoice.cpp index 03e62800cb1..323f2241375 100644 --- a/src/common/dsp/SurgeVoice.cpp +++ b/src/common/dsp/SurgeVoice.cpp @@ -1148,7 +1148,7 @@ void SurgeVoice::SetQFB(QuadFilterChainState *Q, int e) // Q == 0 means init(ial if (!Q) { - // We need to initalize the waveshaper registers + // We need to initialize the waveshaper registers for (int c = 0; c < 2; ++c) initializeWaveshaperRegister(scene->wsunit.type.val.i, FBP.WS[c].R); } diff --git a/src/common/dsp/SurgeVoice.h b/src/common/dsp/SurgeVoice.h index 6818e02d09d..071375de3ac 100644 --- a/src/common/dsp/SurgeVoice.h +++ b/src/common/dsp/SurgeVoice.h @@ -56,7 +56,7 @@ class alignas(16) SurgeVoice int age, age_release; /* - ** Given a note0 and an oscilator this returns the appropriate note. + ** Given a note0 and an oscillator this returns the appropriate note. ** This is a pretty easy calculation in non-absolute mode. Just add. ** But in absolute mode you need to find the virtual note which would ** map to that frequency shift. diff --git a/src/common/dsp/effects/NimbusEffect.h b/src/common/dsp/effects/NimbusEffect.h index 1be46fc9b10..4a9323dee9a 100644 --- a/src/common/dsp/effects/NimbusEffect.h +++ b/src/common/dsp/effects/NimbusEffect.h @@ -82,7 +82,7 @@ class NimbusEffect : public Effect static constexpr int raw_out_sz = BLOCK_SIZE_OS << 3; // power of 2 pls float resampled_output[raw_out_sz][2]; // at sr size_t resampReadPtr = 0, resampWritePtr = 1; // see comment in init - float stub_input[2]; // This is the extra sample we ahve around + float stub_input[2]; // This is the extra sample we have around bool hasStubInput = false; int consumed = 0, created = 0; }; diff --git a/src/common/dsp/effects/ResonatorEffect.cpp b/src/common/dsp/effects/ResonatorEffect.cpp index 0fc977d744c..986c489a2ab 100644 --- a/src/common/dsp/effects/ResonatorEffect.cpp +++ b/src/common/dsp/effects/ResonatorEffect.cpp @@ -190,7 +190,7 @@ void ResonatorEffect::process(float *dataL, float *dataR) for (int s = 0; s < BLOCK_SIZE_OS; ++s) { // preprocess audio in through asymmetric waveshaper - // this mimicks Polymoog's power supply which only operated on positive rails + // this mimics Polymoog's power supply which only operated on positive rails dataOS[0][s] = lookup_waveshape(wst_asym, dataOS[0][s]); dataOS[1][s] = lookup_waveshape(wst_asym, dataOS[1][s]); diff --git a/src/common/dsp/effects/airwindows/AirWindowsEffect.cpp b/src/common/dsp/effects/airwindows/AirWindowsEffect.cpp index 3c369300cdf..a25a1ccfc1d 100644 --- a/src/common/dsp/effects/airwindows/AirWindowsEffect.cpp +++ b/src/common/dsp/effects/airwindows/AirWindowsEffect.cpp @@ -80,7 +80,7 @@ void AirWindowsEffect::init_ctrltypes() ** can set values, then when we process later, resetCtrlTypes ** will take those prior values and assign them as new (and that's ** what is called if the value is changed). Also since the load - ** will often load to a sparate instance and copy the params over + ** will often load to a separate instance and copy the params over ** we set the user_data to nullptr here to indicate that ** after this inti we need to do something even if the value ** of our FX hasn't changed. diff --git a/src/common/dsp/effects/chowdsp/TapeEffect.cpp b/src/common/dsp/effects/chowdsp/TapeEffect.cpp index abb77feb1ed..1031810ab10 100644 --- a/src/common/dsp/effects/chowdsp/TapeEffect.cpp +++ b/src/common/dsp/effects/chowdsp/TapeEffect.cpp @@ -139,7 +139,7 @@ int TapeEffect::group_label_ypos(int id) void TapeEffect::init_ctrltypes() { /* - * The actualy deactivation status is on gain, so reflet that down + * The actually deactivation status is on gain, so reflect that down * to freq and bw using the dynamic deactivation mechanism */ static struct TapeEffectDeact : public ParameterDynamicDeactivationFunction diff --git a/src/common/dsp/effects/chowdsp/bbd_utils/BBDNonlin.h b/src/common/dsp/effects/chowdsp/bbd_utils/BBDNonlin.h index f396b03dea1..955acbb76b1 100644 --- a/src/common/dsp/effects/chowdsp/bbd_utils/BBDNonlin.h +++ b/src/common/dsp/effects/chowdsp/bbd_utils/BBDNonlin.h @@ -48,7 +48,7 @@ class FastDiode : public chowdsp::WDF_SSE::WDFNode /** Accepts an incident wave into a WDF diode. */ inline void incident(__m128 x) noexcept override { a = x; } - /** Propogates a reflected wave from a WDF diode. */ + /** Propagates a reflected wave from a WDF diode. */ inline __m128 reflected() noexcept override { // See eqn (10) from reference paper diff --git a/src/common/dsp/effects/chowdsp/shared/FIRFIlter.h b/src/common/dsp/effects/chowdsp/shared/FIRFIlter.h index 7a537625a53..fd672b51f11 100644 --- a/src/common/dsp/effects/chowdsp/shared/FIRFIlter.h +++ b/src/common/dsp/effects/chowdsp/shared/FIRFIlter.h @@ -6,7 +6,7 @@ namespace chowdsp { /* -** Simple class fro FIR filtering. +** Simple class for FIR filtering. ** For the original implementation, ** see: https://github.com/jatinchowdhury18/FIRBenchmarks/blob/master/src/InnerProdFIR.h */ diff --git a/src/common/dsp/effects/chowdsp/shared/chowdsp_IIR.h b/src/common/dsp/effects/chowdsp/shared/chowdsp_IIR.h index 428cd04ca19..aaafecba7c3 100644 --- a/src/common/dsp/effects/chowdsp/shared/chowdsp_IIR.h +++ b/src/common/dsp/effects/chowdsp/shared/chowdsp_IIR.h @@ -6,7 +6,7 @@ namespace chowdsp { -/** IIR filter of arbirtary order. +/** IIR filter of arbitrary order. * Uses Transposed Direct Form II: * https://ccrma.stanford.edu/~jos/fp/Transposed_Direct_Forms.html */ diff --git a/src/common/dsp/effects/chowdsp/shared/wdf.h b/src/common/dsp/effects/chowdsp/shared/wdf.h index 6612981e9c5..12a52368771 100644 --- a/src/common/dsp/effects/chowdsp/shared/wdf.h +++ b/src/common/dsp/effects/chowdsp/shared/wdf.h @@ -66,7 +66,7 @@ class WDF */ virtual void calcImpedance() = 0; - /** Sub-classes override this function to propogate + /** Sub-classes override this function to propagate * an impedance change to the upstream elements in * the WDF tree. */ @@ -75,7 +75,7 @@ class WDF /** Sub-classes override this function to accept an incident wave. */ virtual void incident(double x) noexcept = 0; - /** Sub-classes override this function to propogate a reflected wave. */ + /** Sub-classes override this function to propagate a reflected wave. */ virtual double reflected() noexcept = 0; /** Probe the voltage across this circuit element. */ @@ -116,7 +116,7 @@ class WDFNode : public WDF /** When this function is called from a downstream * element in the WDF tree, the impedance is recomputed - * and then propogated upstream to the next element in the + * and then propagated upstream to the next element in the * WDF tree. */ inline void propagateImpedance() override @@ -161,7 +161,7 @@ class Resistor : public WDFNode /** Accepts an incident wave into a WDF resistor. */ inline void incident(double x) noexcept override { a = x; } - /** Propogates a reflected wave from a WDF resistor. */ + /** Propagates a reflected wave from a WDF resistor. */ inline double reflected() noexcept override { b = 0.0; @@ -218,7 +218,7 @@ class Capacitor : public WDFNode z = a; } - /** Propogates a reflected wave from a WDF capacitor. */ + /** Propagates a reflected wave from a WDF capacitor. */ inline double reflected() noexcept override { b = b_coef * b + a_coef * z; @@ -280,7 +280,7 @@ class Inductor : public WDFNode z = a; } - /** Propogates a reflected wave from a WDF inductor. */ + /** Propagates a reflected wave from a WDF inductor. */ inline double reflected() noexcept override { b = b_coef * b - a_coef * z; @@ -313,7 +313,7 @@ class Switch : public WDFNode /** Accepts an incident wave into a WDF switch. */ inline void incident(double x) noexcept override { a = x; } - /** Propogates a reflected wave from a WDF switch. */ + /** Propagates a reflected wave from a WDF switch. */ inline double reflected() noexcept override { b = closed ? -a : a; @@ -340,7 +340,7 @@ class Open : public WDFNode /** Accepts an incident wave into a WDF open. */ inline void incident(double x) noexcept override { a = x; } - /** Propogates a reflected wave from a WDF open. */ + /** Propagates a reflected wave from a WDF open. */ inline double reflected() noexcept override { b = a; @@ -364,7 +364,7 @@ class Short : public WDFNode /** Accepts an incident wave into a WDF short. */ inline void incident(double x) noexcept override { a = x; } - /** Propogates a reflected wave from a WDF short. */ + /** Propagates a reflected wave from a WDF short. */ inline double reflected() noexcept override { b = -a; @@ -402,7 +402,7 @@ class PolarityInverter : public WDFNode port1->incident(-x); } - /** Propogates a reflected wave from a WDF inverter. */ + /** Propagates a reflected wave from a WDF inverter. */ inline double reflected() noexcept override { b = -port1->reflected(); @@ -443,7 +443,7 @@ template class PolarityInverterT : public WDFNode port1->incident(-x); } - /** Propogates a reflected wave from a WDF inverter. */ + /** Propagates a reflected wave from a WDF inverter. */ inline double reflected() noexcept override { b = -port1->reflected(); @@ -557,7 +557,7 @@ class WDFParallel : public WDFAdaptor a = x; } - /** Propogates a reflected wave from a WDF parallel adaptor. */ + /** Propagates a reflected wave from a WDF parallel adaptor. */ inline double reflected() noexcept override { b = port1Reflect * port1->reflected() + port2Reflect * port2->reflected(); @@ -609,7 +609,7 @@ template class WDFParallelT : public WD a = x; } - /** Propogates a reflected wave from a WDF parallel adaptor. */ + /** Propagates a reflected wave from a WDF parallel adaptor. */ inline double reflected() noexcept override { b = port1Reflect * port1->reflected() + port2Reflect * port2->reflected(); @@ -655,7 +655,7 @@ class WDFSeries : public WDFAdaptor a = x; } - /** Propogates a reflected wave from a WDF series adaptor. */ + /** Propagates a reflected wave from a WDF series adaptor. */ inline double reflected() noexcept override { b = -(port1->reflected() + port2->reflected()); @@ -706,7 +706,7 @@ template class WDFSeriesT : public WDFN a = x; } - /** Propogates a reflected wave from a WDF series adaptor. */ + /** Propagates a reflected wave from a WDF series adaptor. */ inline double reflected() noexcept override { b = -(port1->reflected() + port2->reflected()); @@ -744,7 +744,7 @@ class ResistiveVoltageSource : public WDFNode propagateImpedance(); } - /** Computes the impedance for a WDF resistive voltage souce + /** Computes the impedance for a WDF resistive voltage source * Z_Vr = Z_R */ inline void calcImpedance() override @@ -759,7 +759,7 @@ class ResistiveVoltageSource : public WDFNode /** Accepts an incident wave into a WDF resistive voltage source. */ inline void incident(double x) noexcept override { a = x; } - /** Propogates a reflected wave from a WDF resistive voltage source. */ + /** Propagates a reflected wave from a WDF resistive voltage source. */ inline double reflected() noexcept override { b = Vs; @@ -786,7 +786,7 @@ class IdealVoltageSource : public WDFNode /** Accepts an incident wave into a WDF ideal voltage source. */ inline void incident(double x) noexcept override { a = x; } - /** Propogates a reflected wave from a WDF ideal voltage source. */ + /** Propagates a reflected wave from a WDF ideal voltage source. */ inline double reflected() noexcept override { b = -a + 2.0 * Vs; @@ -820,7 +820,7 @@ class ResistiveCurrentSource : public WDFNode propagateImpedance(); } - /** Computes the impedance for a WDF resistive current souce + /** Computes the impedance for a WDF resistive current source * Z_Ir = Z_R */ inline void calcImpedance() override @@ -835,7 +835,7 @@ class ResistiveCurrentSource : public WDFNode /** Accepts an incident wave into a WDF resistive current source. */ inline void incident(double x) noexcept override { a = x; } - /** Propogates a reflected wave from a WDF resistive current source. */ + /** Propagates a reflected wave from a WDF resistive current source. */ inline double reflected() noexcept override { b = 2 * R * Is; @@ -862,7 +862,7 @@ class IdealCurrentSource : public WDFNode /** Accepts an incident wave into a WDF ideal current source. */ inline void incident(double x) noexcept override { a = x; } - /** Propogates a reflected wave from a WDF ideal current source. */ + /** Propagates a reflected wave from a WDF ideal current source. */ inline double reflected() noexcept override { b = 2 * next->R * Is + a; @@ -896,7 +896,7 @@ class DiodePair : public WDFNode /** Accepts an incident wave into a WDF diode pair. */ inline void incident(double x) noexcept override { a = x; } - /** Propogates a reflected wave from a WDF diode pair. */ + /** Propagates a reflected wave from a WDF diode pair. */ inline double reflected() noexcept override { // See eqn (18) from reference paper @@ -932,7 +932,7 @@ class Diode : public WDFNode /** Accepts an incident wave into a WDF diode. */ inline void incident(double x) noexcept override { a = x; } - /** Propogates a reflected wave from a WDF diode. */ + /** Propagates a reflected wave from a WDF diode. */ inline double reflected() noexcept override { // See eqn (10) from reference paper diff --git a/src/common/dsp/effects/chowdsp/shared/wdf_sse.h b/src/common/dsp/effects/chowdsp/shared/wdf_sse.h index 641723be619..b107b67ae8a 100644 --- a/src/common/dsp/effects/chowdsp/shared/wdf_sse.h +++ b/src/common/dsp/effects/chowdsp/shared/wdf_sse.h @@ -45,7 +45,7 @@ class WDF */ virtual void calcImpedance() = 0; - /** Sub-classes override this function to propogate + /** Sub-classes override this function to propagate * an impedance change to the upstream elements in * the WDF tree. */ @@ -54,7 +54,7 @@ class WDF /** Sub-classes override this function to accept an incident wave. */ virtual void incident(__m128 x) noexcept = 0; - /** Sub-classes override this function to propogate a reflected wave. */ + /** Sub-classes override this function to propagate a reflected wave. */ virtual __m128 reflected() noexcept = 0; /** Probe the voltage across this circuit element. */ @@ -95,7 +95,7 @@ class WDFNode : public WDF /** When this function is called from a downstream * element in the WDF tree, the impedance is recomputed - * and then propogated upstream to the next element in the + * and then propagated upstream to the next element in the * WDF tree. */ inline void propagateImpedance() override @@ -141,7 +141,7 @@ class Resistor : public WDFNode /** Accepts an incident wave into a WDF resistor. */ inline void incident(__m128 x) noexcept override { a = x; } - /** Propogates a reflected wave from a WDF resistor. */ + /** Propagates a reflected wave from a WDF resistor. */ inline __m128 reflected() noexcept override { b = vLoad1(0.0f); @@ -199,7 +199,7 @@ class Capacitor : public WDFNode z = a; } - /** Propogates a reflected wave from a WDF capacitor. */ + /** Propagates a reflected wave from a WDF capacitor. */ inline __m128 reflected() noexcept override { b = vAdd(vMul(b_coef, b), vMul(a_coef, z)); @@ -247,7 +247,7 @@ template class PolarityInverterT : public WDFNode port1->incident(vNeg(x)); } - /** Propogates a reflected wave from a WDF inverter. */ + /** Propagates a reflected wave from a WDF inverter. */ inline __m128 reflected() noexcept override { b = vNeg(port1->reflected()); @@ -297,7 +297,7 @@ template class WDFParallelT : public WD a = x; } - /** Propogates a reflected wave from a WDF parallel adaptor. */ + /** Propagates a reflected wave from a WDF parallel adaptor. */ inline __m128 reflected() noexcept override { b = vAdd(vMul(port1Reflect, port1->reflected()), vMul(port2Reflect, port2->reflected())); @@ -351,7 +351,7 @@ template class WDFSeriesT : public WDFN a = x; } - /** Propogates a reflected wave from a WDF series adaptor. */ + /** Propagates a reflected wave from a WDF series adaptor. */ inline __m128 reflected() noexcept override { b = vNeg(vAdd(port1->reflected(), port2->reflected())); @@ -391,7 +391,7 @@ class ResistiveVoltageSource : public WDFNode propagateImpedance(); } */ - /** Computes the impedance for a WDF resistive voltage souce + /** Computes the impedance for a WDF resistive voltage source * Z_Vr = Z_R */ inline void calcImpedance() override @@ -406,7 +406,7 @@ class ResistiveVoltageSource : public WDFNode /** Accepts an incident wave into a WDF resistive voltage source. */ inline void incident(__m128 x) noexcept override { a = x; } - /** Propogates a reflected wave from a WDF resistive voltage source. */ + /** Propagates a reflected wave from a WDF resistive voltage source. */ inline __m128 reflected() noexcept override { b = Vs; @@ -443,7 +443,7 @@ class ResistiveCurrentSource : public WDFNode propagateImpedance(); } */ - /** Computes the impedance for a WDF resistive current souce + /** Computes the impedance for a WDF resistive current source * Z_Ir = Z_R */ inline void calcImpedance() override @@ -458,7 +458,7 @@ class ResistiveCurrentSource : public WDFNode /** Accepts an incident wave into a WDF resistive current source. */ inline void incident(__m128 x) noexcept override { a = x; } - /** Propogates a reflected wave from a WDF resistive current source. */ + /** Propagates a reflected wave from a WDF resistive current source. */ inline __m128 reflected() noexcept override { b = vMul(vLoad1(2.0f), vMul(R, Is)); diff --git a/src/common/dsp/filters/TriPoleFilter.cpp b/src/common/dsp/filters/TriPoleFilter.cpp index 029e3c93f44..3ec3da6c833 100644 --- a/src/common/dsp/filters/TriPoleFilter.cpp +++ b/src/common/dsp/filters/TriPoleFilter.cpp @@ -18,7 +18,7 @@ ** The filter has three output points. For modes and three output ** points makes for a total of 12 sub-types. ** -** The details of the emulation are derived in a Pyton notebook here: +** The details of the emulation are derived in a Python notebook here: ** https://github.com/surge-synthesizer/surge-python/blob/main/scripts/dsp_simulations/ThreelerAnalysis.ipynb */ diff --git a/src/common/dsp/filters/VintageLadders.cpp b/src/common/dsp/filters/VintageLadders.cpp index 11633395b55..0db885f7bb3 100644 --- a/src/common/dsp/filters/VintageLadders.cpp +++ b/src/common/dsp/filters/VintageLadders.cpp @@ -63,7 +63,7 @@ namespace RK ** where k controls the cutoff frequency, r is feedback (<= 4 for stability), and S(x) is a *saturation function. ** -** Although the code is modified from that location here is the originaly copyright notice: +** Although the code is modified from that location here is the original copyright notice: ** ** Copyright (c) 2015, Miller Puckette. All rights reserved. ** @@ -234,7 +234,7 @@ __m128 process(QuadFilterUnitState *__restrict f, __m128 input) ** OK this is a bit of a hack but... these are the Lanczos factors ** sinc( x ) sinc (x / 2), only backwards. Really we should do a proper little ** FIR around the whole thing, but this at least gives us a reconstruction with - ** some aliasing supression. + ** some aliasing suppression. ** ** Not entirely valid but... ** diff --git a/src/common/dsp/modulators/ADSRModulationSource.h b/src/common/dsp/modulators/ADSRModulationSource.h index b1bf557b9b8..d06cefcd586 100644 --- a/src/common/dsp/modulators/ADSRModulationSource.h +++ b/src/common/dsp/modulators/ADSRModulationSource.h @@ -280,22 +280,18 @@ class ADSRModulationSource : public ModulationSource /* ** That + rate * rate in both means at low sustain ( < 1e-3 or so) you end up - *with - ** lo and hi both pushing us up off sustain. Unfortunatley we ned to handle that - *case - ** specially by pushing lo down. These limits are pretty empirical. Git blame to - *see - ** the various issues around here which show the test cases. + ** with lo and hi both pushing us up off sustain. Unfortunately we need to + ** handle that case specially by pushing lo down. These limits are pretty + ** empirical. Git blame to see the various issues around here which show the + ** test cases. */ if ((lc[s].f < 1e-3 && phase < 1e-4) || (lc[s].f == 0 && lc[d].f < -7)) l_lo = 0; /* ** Similarly if the rate is very high - larger than one - we can push l_lo well - *above the - ** sustain, which can set back a feedback cycle where we bounce onto sustain and - *off again. - ** To understand this, remove this bound and play with - *test-data/patches/ADSR-Self-Oscillate.fxp + ** above the sustain, which can set back a feedback cycle where we bounce onto + ** sustain and off again. To understand this, remove this bound and play with + ** test-data/patches/ADSR-Self-Oscillate.fxp */ if (rate > 1.0 && l_lo > lc[s].f) l_lo = lc[s].f; diff --git a/src/common/dsp/modulators/FormulaModulationHelper.cpp b/src/common/dsp/modulators/FormulaModulationHelper.cpp index af561c78053..205ccb14b21 100644 --- a/src/common/dsp/modulators/FormulaModulationHelper.cpp +++ b/src/common/dsp/modulators/FormulaModulationHelper.cpp @@ -156,7 +156,7 @@ end } else { - s.adderror("Unable to deteremine 'process' or 'init' function : " + emsg); + s.adderror("Unable to determine 'process' or 'init' function : " + emsg); lua_pop(s.L, 1); // process lua_pop(s.L, 1); // process stateData.knownBadFunctions.insert(s.funcName); @@ -221,7 +221,7 @@ end { s.isvalid = false; s.adderror("Your 'init' function must return a table. This usually means " - "that you didnt' end your init function with 'return modstate' " + "that you didn't end your init function with 'return modstate' " "before the end statement."); stateData.knownBadFunctions.insert(s.funcName); } diff --git a/src/common/dsp/modulators/FormulaModulationHelper.h b/src/common/dsp/modulators/FormulaModulationHelper.h index cb80e38e0ad..522bdf30edb 100644 --- a/src/common/dsp/modulators/FormulaModulationHelper.h +++ b/src/common/dsp/modulators/FormulaModulationHelper.h @@ -114,7 +114,7 @@ std::string createDebugViewOfModState(const EvaluatorState &s); /* * Our test harness wants to send bits of lua to the modstate to get results out for - * regtests. Send a function query(modstate) which returns somethign leaf like + * regtests. Send a function query(modstate) which returns something leaf like */ std::variant runOverModStateForTesting(const std::string &query, const EvaluatorState &s); diff --git a/src/common/dsp/modulators/LFOModulationSource.cpp b/src/common/dsp/modulators/LFOModulationSource.cpp index f1bdbb6d3f3..d138cd3f7af 100644 --- a/src/common/dsp/modulators/LFOModulationSource.cpp +++ b/src/common/dsp/modulators/LFOModulationSource.cpp @@ -529,7 +529,7 @@ void LFOModulationSource::process_block() } else phase = - 0; // should never get here but something is already wierd with the mod stack + 0; // should never get here but something is already weird with the mod stack } else { @@ -570,7 +570,7 @@ void LFOModulationSource::process_block() case lt_stepseq: /* ** You might thing we don't need this and technically we don't - ** but I wanted to keep it here to retain compatability with + ** but I wanted to keep it here to retain compatibility with ** versions of trigmask which were streamed in older sessions */ if (ss->trigmask & (UINT64_C(1) << step)) @@ -782,7 +782,7 @@ void LFOModulationSource::process_block() if (frate == 0) { /* - ** Alright so in 0 rate mode we want to scrub through tne entire sequence. So + ** Alright so in 0 rate mode we want to scrub through the entire sequence. So */ float p16 = phase * n_stepseqsteps; int pstep = ((int)p16) & (n_stepseqsteps - 1); diff --git a/src/common/dsp/modulators/MSEGModulationHelper.cpp b/src/common/dsp/modulators/MSEGModulationHelper.cpp index d502d9cc47b..3d94230b288 100644 --- a/src/common/dsp/modulators/MSEGModulationHelper.cpp +++ b/src/common/dsp/modulators/MSEGModulationHelper.cpp @@ -279,7 +279,7 @@ float valueAt(int ip, float fup, float df, MSEGStorage *ms, EvaluatorState *es, { /* There is a pathological case here where the deform is non-zero but very small * where this results in a floating point underflow. That is, if df is e1-7 then - * e^df - 1 is basically the last decimal place and you get floating point rouding + * e^df - 1 is basically the last decimal place and you get floating point rounding * quantization. So treat all deforms less than 1e-4 as zero. * * This is totally warranted because we work in float space. diff --git a/src/common/dsp/oscillators/ClassicOscillator.cpp b/src/common/dsp/oscillators/ClassicOscillator.cpp index f4d2818e2a2..af9546f66e6 100644 --- a/src/common/dsp/oscillators/ClassicOscillator.cpp +++ b/src/common/dsp/oscillators/ClassicOscillator.cpp @@ -97,14 +97,14 @@ ** ** Once we have committed to convolving an exact but differently aligned impulse stream into ** our sample output, though, we have the opportunity to exactly align the time of that -** impulse convoultion with the moment between the samples when the actual impulse occurs. +** impulse convolution with the moment between the samples when the actual impulse occurs. ** ** So the convolution has to manage a couple of dimensions of time. When we call ::convolute, ** remember, it is because we don't have enough buffer phase space computed for our current block. ** So ::convolute is filling a block in the "future" of our current pointer. That means we can ** actually use a slightly non-causal filter into the oscstate future. So, mechanically, ** we end up implementing: -** oscbuffer [i + futurelook] = sum(impulse chage) * impulse[i] +** oscbuffer [i + futurelook] = sum(impulse change) * impulse[i] ** ** Surge adds one last wrinkle, which is that impulse function depends on how far between a sample ** you are. The peak of the function should happen exactly at the point intra-sample. To do that it @@ -408,7 +408,7 @@ template void ClassicOscillator::convolute(int voice, bool stereo) ** Well the answer is that we want the time to be pushed around in Hz. So it turns out that ** 44100 * 2 / ( 440 * 8.175 ) =~ 24.2 and 24.2 / 16 = 1.447 which is almost how much *absolute is off. So - ** let's set the multiplier here so that the regtests exacty match the display frequency. + ** let's set the multiplier here so that the regtests exactly match the display frequency. *That is the ** frequency desired spread / 0.9443. 0.9443 is empirically determined by running the 2 *unison voices case diff --git a/src/common/dsp/oscillators/ModernOscillator.cpp b/src/common/dsp/oscillators/ModernOscillator.cpp index 2d26c2b5816..700910fcd46 100644 --- a/src/common/dsp/oscillators/ModernOscillator.cpp +++ b/src/common/dsp/oscillators/ModernOscillator.cpp @@ -107,8 +107,8 @@ * (u_i - 2 u_i-1 + u i-2 ) / dt^2. *But*, since i am calculating at i, we can either * think that that is second-order-accurate-in-dt and lagged by one sample or * first order accurate-in-dt and not lagged. It doesn't really matter. I also considered - * having the candidate phases be +1/0/-1 rather tha 0/-1/-2 but that somehow felt - * a wee bit like cheating. Anyway, the difference is negligble. + * having the candidate phases be +1/0/-1 rather than 0/-1/-2 but that somehow felt + * a wee bit like cheating. Anyway, the difference is negligible. * * Other than that, FM is obivous, sync runs two clocks and resets obviously, * and the rest is just mixing and lagging. All pretty obvious. @@ -254,7 +254,7 @@ void ModernOscillator::process_sblk(float pitch, float drift, bool stereo, float sBuff[s] = sawcub; /* - * Remember these ifs are now on tempalte params so won't + * Remember these ifs are now on template params so won't * eject branches */ if (subOctave) diff --git a/src/common/dsp/oscillators/SineOscillator.cpp b/src/common/dsp/oscillators/SineOscillator.cpp index 0b9bb4152ea..d807d7276c4 100644 --- a/src/common/dsp/oscillators/SineOscillator.cpp +++ b/src/common/dsp/oscillators/SineOscillator.cpp @@ -18,10 +18,10 @@ #include /* - * Sine Oscilator Optimization Strategy + * Sine Oscillator Optimization Strategy * * With Surge 1.9, we undertook a bunch of work to optimize the sine oscillator runtime at high - * unison count with odd shapes. Basicaly at high unison we were doing large numbers of loops, + * unison count with odd shapes. Basically at high unison we were doing large numbers of loops, * branches and so forth, and not using any of the advantage you could get by realizing the paralle * structure of unison. So we fixed that. * @@ -61,7 +61,7 @@ * and into the DOCASE switch statement in process_block. Compile, run, test. * * 2. Then if that works, and you can code up your mode as an SSE function, remove that - * specialization and instead specialize the mode in teh SSE-named function. + * specialization and instead specialize the mode in the SSE-named function. * * Should all be pretty clear. */ diff --git a/src/common/dsp/oscillators/StringOscillator.cpp b/src/common/dsp/oscillators/StringOscillator.cpp index 6204d73b1d2..8885f887b8b 100644 --- a/src/common/dsp/oscillators/StringOscillator.cpp +++ b/src/common/dsp/oscillators/StringOscillator.cpp @@ -24,7 +24,7 @@ * * At init: * - Excite the delay line with an input. In 'chirp' mode this is only pre-play and - * in 'continous' mode it is scaled by the amplitude during play + * in 'continuous' mode it is scaled by the amplitude during play * * At runtime: * - run two delay lines seeded the same and take two taps, tap1 and tap2, @@ -169,7 +169,7 @@ void StringOscillator::init(float pitch, bool is_display, bool nzi) tap[1].startValue(pitchmult2_inv); t2level.startValue(0.5 * limit_range(localcopy[id_strbalance].f, -1.f, 1.f) + 0.5); - // we need a big prefill to supprot the delay line for FM + // we need a big prefill to support the delay line for FM auto prefill = (int)floor(10 * std::max(pitchmult_inv, pitchmult2_inv)); for (int i = 0; i < 2; ++i) diff --git a/src/common/dsp/utilities/DSPUtils.h b/src/common/dsp/utilities/DSPUtils.h index 98220da0996..d192d81a68c 100644 --- a/src/common/dsp/utilities/DSPUtils.h +++ b/src/common/dsp/utilities/DSPUtils.h @@ -186,7 +186,7 @@ inline float lerp(float a, float b, float x) { return (1 - x) * a + x * b; } inline void trixpan( float &L, float &R, - float x) // panning that always lets both channels through unattenuated (seperate hard-panning) + float x) // panning that always lets both channels through unattenuated (separate hard-panning) { if (x < 0.f) { diff --git a/src/common/dsp/vembertech/lipol.h b/src/common/dsp/vembertech/lipol.h index 8a740a05e19..a7dadbf8287 100644 --- a/src/common/dsp/vembertech/lipol.h +++ b/src/common/dsp/vembertech/lipol.h @@ -83,7 +83,7 @@ class lipol_ps void subtract_block(float *src, unsigned int nquads); void trixpan_blocks(float *L, float *R, float *dL, float *dR, unsigned int nquads); // panning that always lets both channels through - // unattenuated (seperate hard-panning) + // unattenuated (separate hard-panning) void multiply_block_to(float *src, float *dst, unsigned int nquads); void multiply_2_blocks(float *src1, float *src2, unsigned int nquads); void multiply_2_blocks_to(float *src1, float *src2, float *dst1, float *dst2, diff --git a/src/surge-fx/SurgeFXProcessor.cpp b/src/surge-fx/SurgeFXProcessor.cpp index aa76a1e67b7..1d62f38c583 100644 --- a/src/surge-fx/SurgeFXProcessor.cpp +++ b/src/surge-fx/SurgeFXProcessor.cpp @@ -292,7 +292,7 @@ void SurgefxAudioProcessor::processBlock(juce::AudioBuffer &buffer, output_position = 0; } - if (output_position >= 0 && output_position < BLOCK_SIZE) // that < shoudl never happen + if (output_position >= 0 && output_position < BLOCK_SIZE) // that < should never happen { outL[smp] = output_buffer[0][output_position]; outR[smp] = output_buffer[1][output_position]; diff --git a/src/surge-python/surgepy.cpp b/src/surge-python/surgepy.cpp index 32f194ed125..eae69f2c8a3 100644 --- a/src/surge-python/surgepy.cpp +++ b/src/surge-python/surgepy.cpp @@ -23,7 +23,7 @@ static std::mutex spysetup_mutex; /* * The way we've decided to expose to python is through some wrapper objects - * which give us the control gorup / control group entry / param heirarchy. + * which give us the control gorup / control group entry / param hierarchy. * So here's some small helper objects */ diff --git a/src/surge-testrunner/UnitTestsINFRA.cpp b/src/surge-testrunner/UnitTestsINFRA.cpp index e923d93122e..5b856014b96 100644 --- a/src/surge-testrunner/UnitTestsINFRA.cpp +++ b/src/surge-testrunner/UnitTestsINFRA.cpp @@ -83,7 +83,7 @@ TEST_CASE("QFU is Aligned", "[infra]") } } -// A is just a test index to separate the calsses +// A is just a test index to separate the classes template struct CountAlloc { CountAlloc() diff --git a/src/surge-testrunner/UnitTestsMOD.cpp b/src/surge-testrunner/UnitTestsMOD.cpp index 5b7d8b0c32a..decc449d631 100644 --- a/src/surge-testrunner/UnitTestsMOD.cpp +++ b/src/surge-testrunner/UnitTestsMOD.cpp @@ -937,8 +937,8 @@ TEST_CASE("Keytrack Morph", "[mod]") { surge->process(); /* - * FIXME: Make this an assertive test. What we are really checking is is l_shape 3.33 - * inside the oscillator but there's no easy way to assert that so just leave the test + * FIXME: Make this an assertive test. What we are really checking is, is l_shape 3.33 + * inside the oscillator? But there's no easy way to assert that so just leave the test * here as a debugging harness around issue 3046 */ } diff --git a/src/surge-testrunner/UnitTestsTUN.cpp b/src/surge-testrunner/UnitTestsTUN.cpp index 6805c82c571..07915f1e6e1 100644 --- a/src/surge-testrunner/UnitTestsTUN.cpp +++ b/src/surge-testrunner/UnitTestsTUN.cpp @@ -860,7 +860,7 @@ TEST_CASE("Mapping below and outside of count") } } - SECTION("A lot below witn 6ns") + SECTION("A lot below with 6ns") { auto surge = Surge::Headless::createSurge(44100); surge->storage.tuningApplicationMode = SurgeStorage::RETUNE_ALL; @@ -900,7 +900,7 @@ TEST_CASE("Mapping below and outside of count") } } - SECTION("A lot below witn ED3-17") + SECTION("A lot below with ED3-17") { auto surge = Surge::Headless::createSurge(44100); surge->storage.tuningApplicationMode = SurgeStorage::RETUNE_ALL; @@ -1039,7 +1039,7 @@ TEST_CASE("Ignoring Tuning Tables are Correct", "[dsp][tun]") } } - SECTION("Ignoring in retuned compares with untuned") + SECTION("Ignoring if retuned compares with untuned") { auto surge = surgeOnSine(); auto surgeTuned = surgeOnSine(); diff --git a/src/surge-testrunner/main.cpp b/src/surge-testrunner/main.cpp index 5b160c61c86..2967c8dc153 100644 --- a/src/surge-testrunner/main.cpp +++ b/src/surge-testrunner/main.cpp @@ -66,7 +66,7 @@ int main(int argc, char **argv) << " --non-test --filter-analyzer ft fst # analyze filter type/subtype for " "response\n" << "\n" - << "If you exlude the `--non-test` argument, standard catch2 arguments, below, " + << "If you exclude the `--non-test` argument, standard catch2 arguments, below, " "apply\n\n"; } diff --git a/src/surge-xt/gui/SkinSupport.cpp b/src/surge-xt/gui/SkinSupport.cpp index 07894f52bea..57c011f9282 100644 --- a/src/surge-xt/gui/SkinSupport.cpp +++ b/src/surge-xt/gui/SkinSupport.cpp @@ -133,7 +133,7 @@ void SkinDB::rescanForSkins(SurgeStorage *storage) catch (const fs::filesystem_error &e) { // This will give us a broken skin but no need to tell the users - FIXMEERROR << "Unable to travese for skins in user directory: " << e.what(); + FIXMEERROR << "Unable to traverse for skins in user directory: " << e.what(); } for (auto &p : alldirs) @@ -561,8 +561,9 @@ bool Skin::reloadSkin(std::shared_ptr bitmapStore) validKids = false; // for( auto kk : k.second ) // std::cout << _D(kk.first) << _D(kk.second) << std::endl; - FIXMEERROR << "Each subchild of a multi-image must ontain a zoom-level and " - "resource"; + FIXMEERROR + << "Each subchild of a multi-image must contain a zoom-level and " + "resource"; break; } else if (k.second["zoom-level"] == "100") @@ -936,8 +937,8 @@ bool Skin::recursiveGroupParse(ControlGroup::ptr_t parent, TiXmlElement *control } /* - * Per long discussion Feb 20 on discord, the expetation inthe skin engine - * is that you are overriding defaults *except* parent groups in the XML wil lreset + * Per long discussion Feb 20 on discord, the expectation in the skin engine + * is that you are overriding defaults *except* parent groups in the XML will reset * your default position to the origin. So if we *don't* specify an x/y and * *are* in a user specified group, reset the control default before we apply * the XML and offsets @@ -1288,7 +1289,7 @@ void Surge::GUI::Skin::resolveBaseParentOffsets(Skin::Control::ptr_t c) { if (c->parentResolved) return; - // When we enter here, all the objects will ahve been created by the loop above + // When we enter here, all the objects will have been created by the loop above if (c->allprops.find("base_parent") != c->allprops.end()) { // std::cout << "Control Parent " << _D(c->x) << _D(c->y) << std::endl; diff --git a/src/surge-xt/gui/SkinSupport.h b/src/surge-xt/gui/SkinSupport.h index 92498d3adf8..76e79d0936b 100644 --- a/src/surge-xt/gui/SkinSupport.h +++ b/src/surge-xt/gui/SkinSupport.h @@ -27,7 +27,7 @@ ** Support for rudimentary skinning in Surge ** ** SkinSupport provides a pair of classes, a SkinManager and a SkinDB -** The SkinManager singleton loads and applys the SkinDB to various places as +** The SkinManager singleton loads and applies the SkinDB to various places as ** appropriate. The SkinDB has all the information you would need ** to skin yourself, and answers various queries. */ @@ -261,7 +261,7 @@ class Skin auto stringNames = c->defaultComponent.payload->propertyNamesMap[pkey]; /* - ** Traverse class heirarchy looking for value + ** Traverse class hierarchy looking for value */ for (auto const &key : stringNames) diff --git a/src/surge-xt/gui/SurgeGUIEditor.cpp b/src/surge-xt/gui/SurgeGUIEditor.cpp index 50dfbfe2fb5..a13c8377726 100644 --- a/src/surge-xt/gui/SurgeGUIEditor.cpp +++ b/src/surge-xt/gui/SurgeGUIEditor.cpp @@ -564,11 +564,12 @@ void SurgeGUIEditor::idle() std::ostringstream oss; oss << "Loading patch " << synth->patchid_queue - << " has not occured after 200 idle cycles. This means that the audio engine" - << " is delayed while loading many patches in a row. The audio engine has to be" - << " running in order to load Surge XT patches. If the audio engine is working," + << " has not occurred after 200 idle cycles. This means that the audio system" + << " is delayed while loading many patches in a row. The audio system has to be" + << " running in order to load Surge patches. If the audio system is working," " you can probably ignore this message and continue once Surge XT catches " "up."; + synth->storage.reportError(oss.str(), "Patch Loading Error"); } } diff --git a/src/surge-xt/gui/SurgeGUIEditorHtmlGenerators.cpp b/src/surge-xt/gui/SurgeGUIEditorHtmlGenerators.cpp index fb38d9d7e9a..423585b7a3f 100644 --- a/src/surge-xt/gui/SurgeGUIEditorHtmlGenerators.cpp +++ b/src/surge-xt/gui/SurgeGUIEditorHtmlGenerators.cpp @@ -241,7 +241,7 @@ std::string SurgeGUIEditor::tuningToHtml() if (synth->storage.currentMapping.count > 48) { - htmls << "Surge XT only displays inverval matrices for scales lower than 48 in length" + htmls << "Surge XT only displays interval matrices for scales lower than 48 in length" << std::endl; } else diff --git a/src/surge-xt/gui/SurgeGUIEditorValueCallbacks.cpp b/src/surge-xt/gui/SurgeGUIEditorValueCallbacks.cpp index 5afdb054174..bd8efb06273 100644 --- a/src/surge-xt/gui/SurgeGUIEditorValueCallbacks.cpp +++ b/src/surge-xt/gui/SurgeGUIEditorValueCallbacks.cpp @@ -908,7 +908,7 @@ int32_t SurgeGUIEditor::controlModifierClicked(Surge::GUI::IComponentTagValue *c 100 * cms->get_output(0)); contextMenu.addItem(vtxt, [this, bvf, modsource]() { promptForUserValueEntry(nullptr, bvf, modsource, - 0, // controllers arent per scene + 0, // controllers aren't per scene 0); // controllers aren't indexed }); @@ -1837,7 +1837,7 @@ int32_t SurgeGUIEditor::controlModifierClicked(Surge::GUI::IComponentTagValue *c txt = "Randomize Initial Drift Phase"; break; case ct_twist_aux_mix: - txt = "Pan Main and Auxilliary Signals"; + txt = "Pan Main and Auxiliary Signals"; break; case ct_countedset_percent_extendable: txt = "Continuous Morph"; @@ -2306,7 +2306,7 @@ int32_t SurgeGUIEditor::controlModifierClicked(Surge::GUI::IComponentTagValue *c ** This code resets you to default if you double-click on control, ** but on the LFO type widget this is undesirable; it means if you accidentally ** Control-click on step sequencer, say, you go back to Sine and lose your - ** edits. So supress it! + ** edits. So suppress it! */ break; case ct_freq_audible_with_tunability: diff --git a/src/surge-xt/gui/SurgeJUCELookAndFeel.cpp b/src/surge-xt/gui/SurgeJUCELookAndFeel.cpp index a307a7051df..49d9487e012 100644 --- a/src/surge-xt/gui/SurgeJUCELookAndFeel.cpp +++ b/src/surge-xt/gui/SurgeJUCELookAndFeel.cpp @@ -292,7 +292,7 @@ Button *SurgeJUCELookAndFeel::createDocumentWindowButton(int buttonType) return nullptr; } -// overriden here just to make the shortcut text same size as normal menu entry text +// overridden here just to make the shortcut text same size as normal menu entry text void SurgeJUCELookAndFeel::drawPopupMenuItem(Graphics &g, const Rectangle &area, const bool isSeparator, const bool isActive, const bool isHighlighted, const bool isTicked, diff --git a/src/surge-xt/gui/overlays/MSEGEditor.cpp b/src/surge-xt/gui/overlays/MSEGEditor.cpp index 7159be5b4ae..f37d661b992 100644 --- a/src/surge-xt/gui/overlays/MSEGEditor.cpp +++ b/src/surge-xt/gui/overlays/MSEGEditor.cpp @@ -155,7 +155,7 @@ struct MSEGCanvas : public juce::Component, public Surge::GUI::SkinConsumingComp enum Type { MOUSABLE_NODE, - INACTIVE_NODE, // To keep the array the same size add dummies when you supress controls + INACTIVE_NODE, // To keep the array the same size add dummies when you suppress controls LOOPMARKER } type; @@ -1195,7 +1195,7 @@ struct MSEGCanvas : public juce::Component, public Surge::GUI::SkinConsumingComp v = valpx(v); vdef = valpx(vdef); // Brownian doesn't deform and the second display is confusing since it is - // indepdently random + // independently random if (es.lastEval >= 0 && es.lastEval <= ms->n_activeSegments - 1 && ms->segments[es.lastEval].type == MSEGStorage::segment::Type::BROWNIAN) vdef = v; @@ -1410,9 +1410,9 @@ struct MSEGCanvas : public juce::Component, public Surge::GUI::SkinConsumingComp if (h.type == hotzone::LOOPMARKER) { /* - * OK the loop marker supression is a wee bit complicated + * OK the loop marker suppression is a wee bit complicated * If the end is at 0, it draws over the axis; if the start is at end similar - * so handle the cases differently. Remeber this is because the 'marker' + * so handle the cases differently. Remember this is because the 'marker' * of the start graphic is the left edge |< and the right end is >| */ if (h.zoneSubType == hotzone::LOOP_START) diff --git a/src/surge-xt/gui/overlays/PatchDBViewer.cpp b/src/surge-xt/gui/overlays/PatchDBViewer.cpp index 0da3a14bb5a..8999e29c4a6 100644 --- a/src/surge-xt/gui/overlays/PatchDBViewer.cpp +++ b/src/surge-xt/gui/overlays/PatchDBViewer.cpp @@ -289,7 +289,7 @@ class PatchDBSQLTableModel : public juce::TableListBoxModel void paintCell(juce::Graphics &g, int rowNumber, int columnId, int width, int height, bool rowIsSelected) override { - // FIXME - make sure the codition this is handling is handled everywhere consistently + // FIXME - make sure the condition this is handling is handled everywhere consistently if (rowNumber >= data.size()) { return; @@ -317,7 +317,7 @@ class PatchDBSQLTableModel : public juce::TableListBoxModel void cellDoubleClicked(int rowNumber, int columnId, const juce::MouseEvent &event) override { - // FIXME - make sure the codition this is handling is handled everywhere consistently + // FIXME - make sure the condition this is handling is handled everywhere consistently if (rowNumber >= data.size()) { return; diff --git a/src/surge-xt/gui/overlays/TuningOverlays.cpp b/src/surge-xt/gui/overlays/TuningOverlays.cpp index 07a57a54b0b..9af8d694f3c 100644 --- a/src/surge-xt/gui/overlays/TuningOverlays.cpp +++ b/src/surge-xt/gui/overlays/TuningOverlays.cpp @@ -269,7 +269,7 @@ class InfiniteKnob : public juce::Component, public Surge::GUI::SkinConsumingCom speed = speed / 10; } - // This is callibrated to give us reasonable speed on a 0-1 basis from the slider + // This is calibrated to give us reasonable speed on a 0-1 basis from the slider // but in this widget '1' is the small motion so speed it up some speed *= 30; @@ -1452,7 +1452,7 @@ void RadialScaleGraph::mouseWheelMove(const juce::MouseEvent &event, speed = speed / 10; } - // This is callibrated to give us reasonable speed on a 0-1 basis from the slider + // This is calibrated to give us reasonable speed on a 0-1 basis from the slider // but in this widget '1' is the small motion so speed it up some auto dr = speed * delta; diff --git a/src/surge-xt/gui/widgets/ModulatableSlider.h b/src/surge-xt/gui/widgets/ModulatableSlider.h index cdade7bb8f2..8d25090b4ca 100644 --- a/src/surge-xt/gui/widgets/ModulatableSlider.h +++ b/src/surge-xt/gui/widgets/ModulatableSlider.h @@ -152,7 +152,7 @@ struct ModulatableSlider : public juce::Component, float barFM0X{0}, barFM0Y{0}, barFMNX{0}, barFMNY{0}; float handleX0{0}, handleY0{0}; - // how far logically do we move in tray space for our curent state + // how far logically do we move in tray space for our current state int trayTypeX{0}, trayTypeY{0}; // How far do we move in the image to make the handle image be the mod float modHandleX{0}; diff --git a/src/surge-xt/gui/widgets/VerticalLabel.h b/src/surge-xt/gui/widgets/VerticalLabel.h index cee2a06cfff..2ed80dffe7a 100644 --- a/src/surge-xt/gui/widgets/VerticalLabel.h +++ b/src/surge-xt/gui/widgets/VerticalLabel.h @@ -25,7 +25,7 @@ namespace Surge namespace Widgets { /* - * This is a pure play juce component which is refered to as such so doesn't + * This is a pure play juce component which is referred to as such so doesn't * need any fo the EFVG and Mixin stuff to interact with the value callback mechanism */ struct VerticalLabel : public juce::Component diff --git a/src/surge-xt/gui/widgets/WidgetBaseMixin.h b/src/surge-xt/gui/widgets/WidgetBaseMixin.h index 07e52dbb59c..a5ecac147c7 100644 --- a/src/surge-xt/gui/widgets/WidgetBaseMixin.h +++ b/src/surge-xt/gui/widgets/WidgetBaseMixin.h @@ -96,7 +96,7 @@ struct WidgetBaseMixin : public Surge::GUI::SkinConsumingComponent, /* * So what the heck is this you may ask? Well when juce shows the info window on the * very first go round, since it is a hierarchy change, juce sends us a zero-distance - * mouse moved event. So we need ot make sure, in the case of a start and only a start, + * mouse moved event. So we need to make sure, in the case of a start and only a start, * that if we get two in a row they are from different places. See #5487 */ if (place == SurgeGUIEditor::InfoQAction::START) diff --git a/src/surge-xt/gui/widgets/XMLConfiguredMenus.h b/src/surge-xt/gui/widgets/XMLConfiguredMenus.h index 8a69db4195b..f809c555f94 100644 --- a/src/surge-xt/gui/widgets/XMLConfiguredMenus.h +++ b/src/surge-xt/gui/widgets/XMLConfiguredMenus.h @@ -72,7 +72,7 @@ struct XMLMenuPopulator bool hasColumnBreak{false}; /* - * I knwo this isn't very generalized and I could template it and subclass + * I know this isn't very generalized and I could template it and subclass * and use this for N other controls. But I wont */ Surge::Storage::FxUserPreset::Preset fxPreset;