summaryrefslogtreecommitdiff
path: root/src/compute.h
diff options
context:
space:
mode:
authorLudovic Pouzenc <ludovic@pouzenc.fr>2012-06-16 22:29:33 +0000
committerLudovic Pouzenc <ludovic@pouzenc.fr>2012-06-16 22:29:33 +0000
commit797149c5a9ee0c7c70947f72cbaece5efd3dd687 (patch)
tree1c5a8e9dcb09c08e7741c806650c5ef1163387d0 /src/compute.h
parent593e1cbe3470f409c19a7f06f5d10c6f5677361a (diff)
download2012-violon-leds-797149c5a9ee0c7c70947f72cbaece5efd3dd687.tar.gz
2012-violon-leds-797149c5a9ee0c7c70947f72cbaece5efd3dd687.tar.bz2
2012-violon-leds-797149c5a9ee0c7c70947f72cbaece5efd3dd687.zip
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é... git-svn-id: file:///var/svn/2012-violon-leds/trunk@20 6be1fa4d-33ac-4c33-becc-79fcb3794bb6
Diffstat (limited to 'src/compute.h')
-rw-r--r--src/compute.h10
1 files changed, 10 insertions, 0 deletions
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 <stdlib.h> // for size_t
+#include <stdio.h> // 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
+