Windows MIDI conversion question

Erik Hansen erikhans08 at yahoo.com
Fri Aug 20 18:05:32 EDT 2004


--- "J. Landman Gay" <jacque at hyperactivesw.com>
wrote:

> create a lookup table that
>  has pairs of time stamps
> and graphics. You'd have to 
> do each piece of music individually, which is
> the tedious part. You'd 
> note the place in the music where each graphic
> needs to change and store 
> a table where the first number is the time in
> the movie and the second 
> is the graphics number, something like this:
> 
> 0,1
> 155,2
> 423,3
> 
> and so forth. Then create a handler that sends
> itself a message every 
> few milliseconds. The handler would check the
> currentTime of the movie 
> and if it matches an entry in the table, it
> sets the dancer to the 
> graphic indicated by the second item in the
> line.
> 
> local myTable -- contains the numbers list
> 
> on andale
>   get the currentTime of player "myMusic"
>   put lineoffset(cr&it,cr&myTable) into
> theMatch
>   if theMatch > 0 then
>     setDancers (item 2 of line theMatch of
> cr&myTable)
>   end if
>   send "andale" to me in 100 milliseconds
> end andale
> 
> The carriage returns are to make sure that only
> numbers at the 
> beginnings of the lines match. The above is
> untested, so you may need to 
> tweak it. You'd also have to write something
> that stops the messaging 
> when the player stops.

well, the first part is working!
the loc, icon, vis are stored.

> Alternately, you could try the Shakobox for
> Windows file that Judy 
> posted. The link still works and I was able to
> grab the file, haven't had time to test it yet.

thanks, i will get going on all of the above.

Erik Hansen



=====
erik at erikhansen.org    http://www.erikhansen.org


		
_______________________________
Do you Yahoo!?
Win 1 of 4,000 free domain names from Yahoo! Enter now.
http://promotions.yahoo.com/goldrush


More information about the use-livecode mailing list