When you use phasor~, you normally already know how long it will take for the sound to be finished playing (because you set its frequency to play it back at the proper speed)
Store the information about the sound loaded (or recorded) and use that to stop the playback after one play duration.

[del <time>]
|
[t  b  b]
|        |
[0(     [0(
[        |
[phasor]

You get <time> ms is from [soundfiler]--[/ 44.1], or the length of your table times 44.1. (assuming your sound runs at 44.1 kHz)
Probably best to put a [hip~ 5] after that, in case the first sample of your table is not 0.

Tim


2011/9/19 Pierre Massat <pimassat@gmail.com>
I generally use threshold~, though it's quite tricky too...

Pierre


2011/9/19 James Dunn <james@4thharmonic.com>
Hi list,

I'm controlling tabread4~ with a phasor~ but don't want my samples to loop (most of the time). What's the best way to detect a phasor~'s reset? ( in both directions - I'm playing the samples forwards and backwards). I've looked at edge~ and samphold~ triggered by a bang~ but it seems quite tricky.

thanks

James

_______________________________________________
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list


_______________________________________________
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list