[PD] readanysf~ control output of seconds played
Gerda Strobl
gerda.strobl at student.TUGraz.at
Mon Apr 3 15:30:42 CEST 2006
Dear list,
I play a file using sound [readanysf~] which has the function of showing
me the approximate time in seconds--unfortunately the numbers at the
output are not always the same(but using always the same soundfile).
I need to send a 1-message 3 seconds before the file stops--so I compare
the actual time with the overall time of the (soundfile -3)---the
problem is now that sometimes the [==] message never sends a 1 because
the left input sometimes reaches now value that equals (filelength-3).
print: 14.7215
print: 16.1844
print: 17.6472
soundfilelength=18.49
int(soundfilelength-3)=15
when the output of the seconds of readanysf~ is like above--it doesn't
equal 15
How can I quickly solve that?
Attached is a patch+*.wav illustrating the problem.
Thank you.
Gerda
-------------- next part --------------
A non-text attachment was scrubbed...
Name: earth41.wav.tar.gz
Type: application/gzip
Size: 1361529 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20060403/37c3ba3c/attachment.bin>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: testreadanysf.pd
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20060403/37c3ba3c/attachment.txt>
More information about the Pd-list
mailing list