|
|
|
@ -1,24 +1,12 @@
@@ -1,24 +1,12 @@
|
|
|
|
|
/*
|
|
|
|
|
* Copyright (C) 2020 Alexandros Theodotou <alex at zrythm dot org> |
|
|
|
|
* |
|
|
|
|
* This file is part of Zrythm |
|
|
|
|
* |
|
|
|
|
* Zrythm is free software: you can redistribute it and/or modify |
|
|
|
|
* it under the terms of the GNU Affero General Public License as published by |
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or |
|
|
|
|
* (at your option) any later version. |
|
|
|
|
* |
|
|
|
|
* Zrythm is distributed in the hope that it will be useful, |
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
|
|
|
* GNU Affero General Public License for more details. |
|
|
|
|
* |
|
|
|
|
* You should have received a copy of the GNU Affero General Public License |
|
|
|
|
* along with Zrythm. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
|
* SPDX-FileCopyrightText: © 2020 Alexandros Theodotou <alex@zrythm.org> |
|
|
|
|
* SPDX-License-Identifier: LicenseRef-ZrythmLicense |
|
|
|
|
* |
|
|
|
|
* This file incorporates work covered by the following copyright and |
|
|
|
|
* permission notice: |
|
|
|
|
* |
|
|
|
|
* --- |
|
|
|
|
* |
|
|
|
|
* Copyright (C) 2008-2011 Fons Adriaensen <fons@linuxaudio.org> |
|
|
|
|
* Copyright (C) 2013 Robin Gareus <robin@gareus.org> |
|
|
|
|
* |
|
|
|
@ -33,11 +21,15 @@
@@ -33,11 +21,15 @@
|
|
|
|
|
* GNU General Public License for more details. |
|
|
|
|
* |
|
|
|
|
* You should have received a copy of the GNU General Public License |
|
|
|
|
* along with this program; if not, write to the Free Software Foundation, |
|
|
|
|
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
|
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
|
* |
|
|
|
|
* SPDX-License-Identifier: GPL-2.0-or-later |
|
|
|
|
* |
|
|
|
|
* --- |
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
#include <math.h> |
|
|
|
|
#include <stdbool.h> |
|
|
|
|
#include <stdlib.h> |
|
|
|
|
|
|
|
|
|
#include "audio/peak_dsp.h" |
|
|
|
|