I have tried to find an answer to this on the list but can't, so apologies if it has been discussed before.

I am trying to get specified offsets in a media file repeated using looping.

I have the start and end times in two fields and the play button calls the player using those times. This has all been working well for some time now.

I have a play button and a 'set start' and 'set end' button which inserts the timecodes into the appropriate field. This allows me to listen to a media file and to reset timecodes at will. I then have a 'repeat' button which loops, using the script below.

If I loop, it starts from the correct timecode for the first iteration, but then reverts to the previously called start timecode for the second and subsequent loops, even though the 'start' field

on mouseup
  set the looping of player "audplayer" to true
  set the currenttime of player "audplayer" to 0
  global samplerate
  put fld "audioname" into TempAud
  set the filename of player "audplayer" to TempAud
  put the timeScale of player "audplayer" into samplerate
  set the playSelection of player "audplayer" to true
  put fld "start" into startFN
  put fld "end" into endFN
  set the currenttime of player "audplayer" to round(samplerate*startFN)
  set the endtime of player "audplayer" to round(samplerate*endFN)
  start player "audplayer"
end mouseup

Any suggestions on how I can get it to loop always from the proper start time?

Thanks,


Nick

--

Project Manager
PARADISEC
Pacific And Regional Archive for Digital Sources in Endangered Cultures
http://paradisec.org.au


[EMAIL PROTECTED]
Department of Linguistics and Applied Linguistics
University of Melbourne
Vic 3010
Australia

Ph 61 (0)3 8344 5185
_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to