diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2015-10-04 15:11:15 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2015-10-04 15:11:15 -0400 |
commit | 4178db5f632721eefb58c42d684fc10f8f4fb9da (patch) | |
tree | a549de293b1a4dd6b5c3f5070f44f95e5e829f46 /libs/vamp-plugins | |
parent | 4dc63966f0872efe768dad61eb9b8785d06b92d1 (diff) |
globally remove all trailing whitespace from .cpp and .hpp files missed by previous commit
Diffstat (limited to 'libs/vamp-plugins')
-rw-r--r-- | libs/vamp-plugins/AmplitudeFollower.cpp | 12 | ||||
-rw-r--r-- | libs/vamp-plugins/Onset.cpp | 8 | ||||
-rw-r--r-- | libs/vamp-plugins/OnsetDetect.cpp | 8 | ||||
-rw-r--r-- | libs/vamp-plugins/PercussionOnsetDetector.cpp | 2 | ||||
-rw-r--r-- | libs/vamp-plugins/SpectralCentroid.cpp | 2 | ||||
-rw-r--r-- | libs/vamp-plugins/ZeroCrossing.cpp | 4 | ||||
-rw-r--r-- | libs/vamp-plugins/plugins.cpp | 2 |
7 files changed, 19 insertions, 19 deletions
diff --git a/libs/vamp-plugins/AmplitudeFollower.cpp b/libs/vamp-plugins/AmplitudeFollower.cpp index c6f7bc0938..c4b2e56b62 100644 --- a/libs/vamp-plugins/AmplitudeFollower.cpp +++ b/libs/vamp-plugins/AmplitudeFollower.cpp @@ -7,7 +7,7 @@ Centre for Digital Music, Queen Mary, University of London. This file copyright 2006 Dan Stowell. - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without @@ -109,7 +109,7 @@ AmplitudeFollower::initialise(size_t channels, size_t stepSize, size_t blockSize m_stepSize = std::min(stepSize, blockSize); - // Translate the coefficients + // Translate the coefficients // from their "convenient" 60dB convergence-time values // to real coefficients m_clampcoef = m_clampcoef==0.0 ? 0.0 : exp(log(0.1)/(m_clampcoef * m_inputSampleRate)); @@ -158,9 +158,9 @@ AmplitudeFollower::getParameterDescriptors() const att.maxValue = 1.f; att.defaultValue = 0.01f; att.isQuantized = false; - + list.push_back(att); - + ParameterDescriptor dec; dec.identifier = "release"; dec.name = "Release time"; @@ -170,9 +170,9 @@ AmplitudeFollower::getParameterDescriptors() const dec.maxValue = 1.f; dec.defaultValue = 0.01f; dec.isQuantized = false; - + list.push_back(dec); - + return list; } diff --git a/libs/vamp-plugins/Onset.cpp b/libs/vamp-plugins/Onset.cpp index b8a9717024..93f90f9469 100644 --- a/libs/vamp-plugins/Onset.cpp +++ b/libs/vamp-plugins/Onset.cpp @@ -5,7 +5,7 @@ Centre for Digital Music, Queen Mary, University of London. This file copyright 2006 Chris Cannam. - + This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the @@ -136,7 +136,7 @@ Onset::initialise(size_t channels, size_t stepSize, size_t blockSize) m_peakpick = new_aubio_peakpicker(m_threshold); m_onsetdet = new_aubio_onsetdetection(m_onsettype, blockSize, channels); - + m_delay = Vamp::RealTime::frame2RealTime(4 * stepSize, lrintf(m_inputSampleRate)); @@ -157,7 +157,7 @@ Onset::reset() m_blockSize, m_stepSize, lrintf(m_inputSampleRate)); - + aubio_onset_set_threshold(m_onsetdet, m_threshold); aubio_onset_set_silence(m_onsetdet, m_silence); aubio_onset_set_minioi(m_onsetdet, m_minioi); @@ -185,7 +185,7 @@ Onset::ParameterList Onset::getParameterDescriptors() const { ParameterList list; - + ParameterDescriptor desc; desc.identifier = "onsettype"; desc.name = "Onset Detection Function Type"; diff --git a/libs/vamp-plugins/OnsetDetect.cpp b/libs/vamp-plugins/OnsetDetect.cpp index 714eee3647..d768791327 100644 --- a/libs/vamp-plugins/OnsetDetect.cpp +++ b/libs/vamp-plugins/OnsetDetect.cpp @@ -49,7 +49,7 @@ public: vector<double> dfOutput; Vamp::RealTime origin; }; - + OnsetDetector::OnsetDetector(float inputSampleRate) : Vamp::Plugin(inputSampleRate), @@ -162,7 +162,7 @@ OnsetDetector::getParameter(std::string name) const } else if (name == "sensitivity") { return m_sensitivity; } else if (name == "whiten") { - return m_whiten ? 1.0 : 0.0; + return m_whiten ? 1.0 : 0.0; } return 0.0; } @@ -265,7 +265,7 @@ OnsetDetector::initialise(size_t channels, size_t stepSize, size_t blockSize) dfConfig.adaptiveWhitening = m_whiten; dfConfig.whiteningRelaxCoeff = -1; dfConfig.whiteningFloor = -1; - + m_d = new OnsetDetectorData(dfConfig); return true; } @@ -480,7 +480,7 @@ OnsetDetector::getRemainingFeatures() } for (unsigned int i = 0; i < ppParams.length; ++i) { - + Feature feature; // feature.hasTimestamp = false; feature.hasTimestamp = true; diff --git a/libs/vamp-plugins/PercussionOnsetDetector.cpp b/libs/vamp-plugins/PercussionOnsetDetector.cpp index 623b89b6a0..35dd8ca668 100644 --- a/libs/vamp-plugins/PercussionOnsetDetector.cpp +++ b/libs/vamp-plugins/PercussionOnsetDetector.cpp @@ -7,7 +7,7 @@ Centre for Digital Music, Queen Mary, University of London. Copyright 2006 Chris Cannam. - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without diff --git a/libs/vamp-plugins/SpectralCentroid.cpp b/libs/vamp-plugins/SpectralCentroid.cpp index 762af53989..0550307969 100644 --- a/libs/vamp-plugins/SpectralCentroid.cpp +++ b/libs/vamp-plugins/SpectralCentroid.cpp @@ -7,7 +7,7 @@ Centre for Digital Music, Queen Mary, University of London. Copyright 2006 Chris Cannam. - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without diff --git a/libs/vamp-plugins/ZeroCrossing.cpp b/libs/vamp-plugins/ZeroCrossing.cpp index 4b678e3f8f..a04b0b6f28 100644 --- a/libs/vamp-plugins/ZeroCrossing.cpp +++ b/libs/vamp-plugins/ZeroCrossing.cpp @@ -7,7 +7,7 @@ Centre for Digital Music, Queen Mary, University of London. Copyright 2006 Chris Cannam. - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without @@ -165,7 +165,7 @@ ZeroCrossing::process(const float *const *inputBuffers, } if (crossing) { - ++count; + ++count; Feature feature; feature.hasTimestamp = true; feature.timestamp = timestamp + diff --git a/libs/vamp-plugins/plugins.cpp b/libs/vamp-plugins/plugins.cpp index 6a04077882..d7db2d90c0 100644 --- a/libs/vamp-plugins/plugins.cpp +++ b/libs/vamp-plugins/plugins.cpp @@ -7,7 +7,7 @@ Centre for Digital Music, Queen Mary, University of London. Copyright 2006 Chris Cannam. - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without |