diff base/SincWindow.cpp @ 505:930b5b0f707d

Merge branch 'codestyle-and-tidy'
author Chris Cannam <cannam@all-day-breakfast.com>
date Wed, 05 Jun 2019 12:55:15 +0100
parents fdaa63607c15
children
line wrap: on
line diff
--- a/base/SincWindow.cpp	Thu May 30 16:18:13 2019 +0100
+++ b/base/SincWindow.cpp	Wed Jun 05 12:55:15 2019 +0100
@@ -19,27 +19,27 @@
 SincWindow::init()
 {
     if (m_length < 1) {
-	return;
+        return;
     } else if (m_length < 2) {
-	m_window.push_back(1);
-	return;
+        m_window.push_back(1);
+        return;
     } else {
 
-	int n0 = (m_length % 2 == 0 ? m_length/2 : (m_length - 1)/2);
-	int n1 = (m_length % 2 == 0 ? m_length/2 : (m_length + 1)/2);
-	double m = 2 * M_PI / m_p;
+        int n0 = (m_length % 2 == 0 ? m_length/2 : (m_length - 1)/2);
+        int n1 = (m_length % 2 == 0 ? m_length/2 : (m_length + 1)/2);
+        double m = 2 * M_PI / m_p;
 
-	for (int i = 0; i < n0; ++i) {
-	    double x = ((m_length / 2) - i) * m;
-	    m_window.push_back(sin(x) / x);
-	}
+        for (int i = 0; i < n0; ++i) {
+            double x = ((m_length / 2) - i) * m;
+            m_window.push_back(sin(x) / x);
+        }
 
-	m_window.push_back(1.0);
+        m_window.push_back(1.0);
 
-	for (int i = 1; i < n1; ++i) {
-	    double x = i * m;
-	    m_window.push_back(sin(x) / x);
-	}
+        for (int i = 1; i < n1; ++i) {
+            double x = i * m;
+            m_window.push_back(sin(x) / x);
+        }
     }
 }