Forums > MaxMSP

seek and sfplay~

December 21, 2007 | 8:16 pm

I can’t believe I’m asking such a basic question, but here goes:

Sending a seek messsage into a named sfplay~ object that has preloaded files does not start playback from the seek point; in fact it does not start playback at all. The Max window states "error: sfplay~: seek: no open file". It seems preloaded files are not recognized as open files – odd, no?

I’m assuming I’d have to create a whole new bunch of preloads, one for each seek point, but that seems like a hassle. Any simpler solutions out there?

Thanks,
Inouk


December 21, 2007 | 9:04 pm

By the way, I know you can get the file name and stick a "prepend open" into the sfplay~ before it actually triggers playback, and then you can use seek; it just seems a bit redundant…


December 22, 2007 | 4:53 am


December 24, 2007 | 7:22 am

Inouk Demers schrieb:
> By the way, I know you can get the file name and stick a "prepend
> open" into the sfplay~ before it actually triggers playback, and then
> you can use seek; it just seems a bit redundant…

You can also just create a cue, followed by the cue number. That’s the
way I would do it anyway, (could always be the same cuenumber…)

Stefan


Stefan Tiedje————x——-
–_____———–|————–
–(_|_ —-|—–|—–()——-
– _|_)—-|—–()————–
———-()——–www.ccmix.com



jbm
July 17, 2013 | 9:23 am

Is this really the case? I can’t seek in a file that’s preloaded/cued???? I’m getting the same error as above "no open file"…



jbm
July 17, 2013 | 9:34 am

btw, I’ve also tried Stefan’s approach of a cue with the start time, but no luck. Even with the cue actually playing, if I send "preload (cue) (time)" it says "preload: no current cue"… why?



jbm
July 17, 2013 | 12:14 pm

I wound-up using Inouk’s "prepend open" hack from above. The documentation is pretty clear on the function of seek ("[…] moves to the specified position in the current file […]"), so either this is a bug, or the docs should be clear on the limitations.


July 17, 2013 | 1:03 pm

hm, you would think that if it was a bug, it could have been fixed since 2007.

so it is obviously intended like that and only missing in the docs. :)

you said you also dont gt it to work when using loadbang-"preload" … i believe stefan was talking about loadbang-"open".

if it doesnt work using "open", either, i would now like to ask you about the file format you are loading and on what platform.

-110


Viewing 8 posts - 1 through 8 (of 8 total)