On Tue, 17 Dec 2002, Charlie Fiskeaux II wrote:

> 
> Now, the question is, when the teacher or student plays back this
> "recording", and the application has to compare the arrays with the current
> movietime to know when to move the sliders and change the volume, should I
> use a timeout object to compare the values every interval, or should I use a
> cycling frame script (both would cycle at about 15 fps)?  Does one take less
> memory than the other?
> 

Ok, so again, the faders are for volume/pan only, not for stuttering the 
movie, ie flipping the movietime around, right? The movietime is constant.

Originally I was going to say each mixer sprite has it's own enterframe 
but I think that's 16x the overhead...

since a user can only drag something for one channel at a time, I'd 
definately do one overseer action that records each movement/pan/vol as 
this

time: [#channel: 1, #type: #volume, #value: 100], ....

And time being how much ticks since the application was recorded/played, 
or have a timeout for each second, or make the first moviechannel be the 
master, etc etc. The 'clock' you use is up to you.

then on enterframe

on enterframe me
        if theCurrenttime < dupedList.getPropAt(1) then
           thisItem = dupedList[1]
           -- if you want to do sendsprite you could
                sendSprite(thisItem.channel, #changeValue, thisitem.type, 
thisitem.value)
           dupedList.deleteAt(1)
        end if
end




[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]

Reply via email to