Hello, I need help with that problem: I have a audio file playing from readsf~, this audio contains silence that I need to detect. I used a threshold to do so, but it seems not to work. After many tests I realise that the signal out of readsf~ vary form -1 to 1 and outputs 0 when there is no sound or silence. Therefore it found impossible to use threshold directly after readsf~. I assume this is something I do wrong because I do not understand that very much. I tried then to use env~ that triggers a bang when above 0, I guess this solution is not very precise and I wonder how much delay there is between the real silence and the time env~ sends a 0. The solution to my problem would be a peakdetector maybe. Are there any ? Thanks
Hello there,
Just tried to tweak the makefile.linux in ann's CVS directory, to no avail...followed Adam's advice with regards to cflags and ld flags, but methinks I'm simply not there yet:
ld: Undefined symbols: dyld_stub_binding_helper
If I then go get chaos's darwin part of its makefile and stick it in makefile.linux (after tweaking targets, etc.) I get this (sorry for flood):
[musswlap2:externals/ann/src] dc% make -f makefile.linux pd_darwin
cc -DPD -DMAXLIB -DUNIX -DMACOSX -O2 -Wall -W -Wshadow -Wstrict-prototypes
-Wno-unused -Wno-parentheses -Wno-switch -I../../../src -I../../../obj -c
*.c
ann.c:34: warning: function declaration isn't a prototype
In file included from /usr/include/math.h:24,
from ann_som.c:10:
/usr/include/architecture/ppc/math.h:228: warning: declaration of exp' shadows a global declaration /usr/include/architecture/ppc/math.h:214: warning: shadowed declaration is here /usr/include/architecture/ppc/math.h:229: warning: declaration of
exp'
shadows a global declaration
/usr/include/architecture/ppc/math.h:214: warning: shadowed declaration is
here
ann_som.c: In function som_makedist': ann_som.c:108: warning: declaration of
y1' shadows a global declaration
/usr/include/architecture/ppc/math.h:421: warning: shadowed declaration is
here
ann_som.c: In function som_list': ann_som.c:217: warning: declaration of
s' shadows a parameter
ann_som.c:182: warning: shadowed declaration is here
ann_som.c:229: warning: declaration of s' shadows a parameter ann_som.c:182: warning: shadowed declaration is here ann_som.c:241: warning: declaration of
s' shadows a parameter
ann_som.c:182: warning: shadowed declaration is here
ann_som.c: In function som_read': ann_som.c:433: warning: implicit declaration of function
close'
cc -bundle -undefined suppress -flat_namespace -o ann.pd_darwin ann.o
ann.o ann_som.o
ld: multiple definitions of symbol _ann_new
ann.o definition of _ann_new in section (__TEXT,__text)
ann.o definition of _ann_new in section (__TEXT,__text)
ld: multiple definitions of symbol _ann_setup
ann.o definition of _ann_setup in section (__TEXT,__text)
ann.o definition of _ann_setup in section (__TEXT,__text)
make: *** [ann.pd_darwin] Error 1
Which is where I get lost.
has anyone managed to compile ann for darwin yet?
d
ecdc.dyndns.org/dc --)+
Hello again,
Sorry to polute the list with this, but I've answered my own question...
cc -bundle -undefined suppress -flat_namespace -o ann.pd_darwin ann.o ann.o ann_som.o ld: multiple definitions of symbol _ann_new
should have told me that multiple ann.o were being called (2)...
so, just calling:
DARWINEXTERNALS = ann_som.o
worked fine.
d
ecdc.dyndns.org/dc --)+