Octal Khan
Putting the Mod in Modern
Join date: 14 Feb 2004
Posts: 116
|
12-03-2005 10:13
hokay folks, i am very new to the world of LSL but I am trying to learn as much as I can. Ive got some (extremely) basic scripting skills so that helps a bit, but please be patient with my dumb questions.... My main objective is to build a virtual sound studio, which Ive already started here at Shamrock 55,155. Things are going well, Ive got llLoopMaster running a bunch of lLoopSlaves and you can turn tracks on and off at will. Ive even implemented some interactive turntable scratching. But its all a little stagnant because its the same loops over and over. So i've implemented a listener on each musical device that will change the loop sounds llLoopSlave is using depending on what virtual button is pushed by the user. And it works, after a fashion. Problem is, everything drifts out of sync pretty fast once a new loop sound is selected. Im using llSetSoundQueueing(TRUE) on all the slaves to try and keep it all in sync, but after the second or third pattern switch it all drifts horribly. Part of it seems to be the lag from loading in a new sound for the first time, but even preloaded sounds go out of sync pretty quickly. anyway if someone has time to give me advice on this it would be much appreciated. otherwise it seems ive run up against the limitations of LSL/SL/LAG.....:/ thanks!
|
Senuka Harbinger
A-Life, one bit at a time
Join date: 24 Oct 2005
Posts: 491
|
12-03-2005 13:16
From: Octal Khan hokay folks, i am very new to the world of LSL but I am trying to learn as much as I can. Ive got some (extremely) basic scripting skills so that helps a bit, but please be patient with my dumb questions.... My main objective is to build a virtual sound studio, which Ive already started here at Shamrock 55,155. Things are going well, Ive got llLoopMaster running a bunch of lLoopSlaves and you can turn tracks on and off at will. Ive even implemented some interactive turntable scratching. But its all a little stagnant because its the same loops over and over. So i've implemented a listener on each musical device that will change the loop sounds llLoopSlave is using depending on what virtual button is pushed by the user. And it works, after a fashion. Problem is, everything drifts out of sync pretty fast once a new loop sound is selected. Im using llSetSoundQueueing(TRUE) on all the slaves to try and keep it all in sync, but after the second or third pattern switch it all drifts horribly. Part of it seems to be the lag from loading in a new sound for the first time, but even preloaded sounds go out of sync pretty quickly. anyway if someone has time to give me advice on this it would be much appreciated. otherwise it seems ive run up against the limitations of LSL/SL/LAG.....:/ thanks! I've never played with the llLoopMaster/Slave functions myself, but it sounds like you need to have the loops check themselves against the world clock, and have a hard start on the loop every certain number of seconds. say all the track lengths are divisible by 3 seconds, and so set up your loop sounds to reset every 3,6,9,12, etc. seconds in time to the world clock to fix drift. kinda like forcing a small loop time within a larger loop in acid music studios.
|
Octal Khan
Putting the Mod in Modern
Join date: 14 Feb 2004
Posts: 116
|
12-03-2005 13:44
From: Senuka Harbinger I've never played with the llLoopMaster/Slave functions myself, but it sounds like you need to have the loops check themselves against the world clock, and have a hard start on the loop every certain number of seconds. say all the track lengths are divisible by 3 seconds, and so set up your loop sounds to reset every 3,6,9,12, etc. seconds in time to the world clock to fix drift. kinda like forcing a small loop time within a larger loop in acid music studios. thanks! can you give me some example of how to implement that? would I use llGetTime or llGetTimeofDay? and how do I tell the sound to "reset" itself against the clock?
|