From 797149c5a9ee0c7c70947f72cbaece5efd3dd687 Mon Sep 17 00:00:00 2001 From: Ludovic Pouzenc Date: Sat, 16 Jun 2012 22:29:33 +0000 Subject: Création du source tree princpal. Les routines de maths pour calculer le gain déconnent encore je trouve. Reste à intégrer la partie DMX et a améliorer tout ce qui a été laissé de côté... MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: file:///var/svn/2012-violon-leds/trunk@20 6be1fa4d-33ac-4c33-becc-79fcb3794bb6 --- src/compute.h | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/compute.h (limited to 'src/compute.h') diff --git a/src/compute.h b/src/compute.h new file mode 100644 index 0000000..23d5798 --- /dev/null +++ b/src/compute.h @@ -0,0 +1,10 @@ +#ifndef COMPUTE_H +#define COMPUTE_H +#include // for size_t +#include // for printf + +float compute_level(const float *data, size_t nsamples, int rate); +void audio2hsv_1(float audio_level, float *light_h, float *light_s, float *light_v); + +#endif + -- cgit v1.2.3