OSC: Added pan width to selected
[ardour.git] / libs / vamp-plugins / AmplitudeFollower.cpp
index 7023297d33a6304ca9b74be150bdd9fc7445fefe..3b8744255202af10abd26c70a77a14430ad384c5 100644 (file)
@@ -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
@@ -108,8 +108,8 @@ AmplitudeFollower::initialise(size_t channels, size_t stepSize, size_t blockSize
        channels > getMaxChannelCount()) return false;
 
     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));
@@ -148,7 +148,7 @@ AmplitudeFollower::ParameterList
 AmplitudeFollower::getParameterDescriptors() const
 {
     ParameterList list;
-       
+
     ParameterDescriptor att;
     att.identifier = "attack";
     att.name = "Attack time";
@@ -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;
 }
 
@@ -198,7 +198,7 @@ float AmplitudeFollower::getParameter(std::string paramid) const
 
 AmplitudeFollower::FeatureSet
 AmplitudeFollower::process(const float *const *inputBuffers,
-                           Vamp::RealTime timestamp)
+                           Vamp::RealTime /*timestamp*/)
 {
     if (m_stepSize == 0) {
        cerr << "ERROR: AmplitudeFollower::process: "
@@ -210,14 +210,14 @@ AmplitudeFollower::process(const float *const *inputBuffers,
     float previn = m_previn;
 
     FeatureSet returnFeatures;
-       
+
     float val;
     float peak = 0.0f;
 
     for (size_t i = 0; i < m_stepSize; ++i) {
 
         val = fabs(inputBuffers[0][i]);
-               
+
         if (val < previn) {
             val = val + (previn - val) * m_relaxcoef;
         } else {