From 792fd531f67a9490f16eb594b4b3eb646128275e Mon Sep 17 00:00:00 2001 From: Ludovic Pouzenc Date: Fri, 22 Jun 2012 22:58:30 +0000 Subject: "Backport de l'IHM de test7 dans le projet principal. Application licence GPL v3.0 Renommage appli Music2Light (homonymes existants) -> Instru2Light git-svn-id: file:///var/svn/2012-violon-leds/trunk@30 6be1fa4d-33ac-4c33-becc-79fcb3794bb6 --- src/compute.c | 30 ++++++++++++++++++++++-------- 1 file changed, 22 insertions(+), 8 deletions(-) (limited to 'src/compute.c') diff --git a/src/compute.c b/src/compute.c index ce0575f..e574838 100644 --- a/src/compute.c +++ b/src/compute.c @@ -1,3 +1,20 @@ +/* + Instru2Light - Illumine un instrument de musique en temps réel + Copyright (C) 2012 Ludovic Pouzenc + + 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 3 of the License, or + (at your option) any later version. + + This program 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 General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . +*/ #include "compute.h" #include "fft.h" @@ -6,10 +23,6 @@ #define MIN_SAMPLES 256 #define MAX_SAMPLES 2048 -//#define MAX(a,b) (a>b?a:b) -//#define MIN(a,b) (a