[PD] readanysf~ control output of seconds played
Gerda Strobl
gerda.strobl at student.TUGraz.at
Mon Apr 3 15:46:09 CEST 2006
Dear list,
sorry for sending the first mail empty...
I need to use the output of [readanysf~] that shows me the approximate
time of the soundfile in seconds--~3 seconds before the end of the end
of the soundfile I want to trigger some different event.
So I compare int(output in seconds) with int (soundfilelength-3)
The problem is now that [readanysf~] is not always sending the same time
in seconds allthough using the same soundfile--and it can happen the the
value where it should equal int(soundfilelength-3) is not reached.
int(soundfilelength-3)=15
print: 13.4212
now: 0
print: 14.8608
now: 0
print: 16.3237
now: 0
print: 17.7866
if the output from [readanysf~] is like above the [==} never becomes true
How can I quickly solve that?
Thank you,
Gerda
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: testreadanysf.pd
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20060403/3022dd0b/attachment.asc>
More information about the Pd-list
mailing list