summaryrefslogtreecommitdiff
path: root/audio/denemo/files/patch-src__pitchentry.c
diff options
context:
space:
mode:
Diffstat (limited to 'audio/denemo/files/patch-src__pitchentry.c')
-rw-r--r--audio/denemo/files/patch-src__pitchentry.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/audio/denemo/files/patch-src__pitchentry.c b/audio/denemo/files/patch-src__pitchentry.c
new file mode 100644
index 000000000000..eb7c540f57f1
--- /dev/null
+++ b/audio/denemo/files/patch-src__pitchentry.c
@@ -0,0 +1,13 @@
+--- src/pitchentry.c.orig 2011-04-27 19:59:45.153923000 +0200
++++ src/pitchentry.c 2011-05-07 11:02:38.000000000 +0200
+@@ -14,7 +14,9 @@
+ #define DEFAULT_HIGH (4500.0)
+ #define DEFAULT_LOW (60.0)
+ #define DEFAULT_TIMER_RATE (50)
+-
++#ifndef log2(x)
++ #define log2(x) (log(x)/log(2))
++#endif
+
+ static GtkWidget *PR_window = NULL;/* a top level window for controlling pitch-recognition entry.
+ We do not create one of these for each view (ie each DenemoGUI object, ie each score) because there is only one audio input source being used, so we would have to cope with resource contention issues, there is just no point. */