Tomas Gandini
Just Me!
Join date: 27 Jun 2006
Posts: 384
|
10-10-2009 17:29
Are there functions in LSL to be able to do Fast Fourier Transforms to obtain the frequency of sounds being streamed in world, such as middle C or A440 on a keyboard?
_____________________
 Never underestimate the power of stupid people in large groups
|
Zena Juran
Registered User
Join date: 21 Jul 2007
Posts: 473
|
10-10-2009 17:41
You could probably do the algorithm in LSL but there is no way to sample incoming frequencies. 
|
Haravikk Mistral
Registered User
Join date: 8 Oct 2005
Posts: 2,482
|
10-11-2009 05:34
Sounds are a purely client-side effect, the simulator just hands them out, so scripts never get more than a name or a key to play with.
_____________________
Computer (Mac Pro): 2 x Quad Core 3.2ghz Xeon 10gb DDR2 800mhz FB-DIMMS 4 x 750gb, 32mb cache hard-drives (RAID-0/striped) NVidia GeForce 8800GT (512mb)
|
Tomas Gandini
Just Me!
Join date: 27 Jun 2006
Posts: 384
|
10-12-2009 06:24
Oh! Rereading my OP I saw that I misstated where the sounds were. I meant to say sound bites that have been uploaded to the servers and played with an LSL script not sounds being streamed in world from an external source. Sorry.
Even so, if there is no way to sample the frequencies, the FFT algorithm would be useless.
Thanks!
_____________________
 Never underestimate the power of stupid people in large groups
|
Haravikk Mistral
Registered User
Join date: 8 Oct 2005
Posts: 2,482
|
10-12-2009 11:20
Same issue I'm afraid; all a sound is to a simulator is a key, and sometimes a lump of data waiting to go to a client. The viewer requests all uploaded sounds that are currently playing on nearby objects, and the simulators simply sends them, the viewer then plays them.
All a script can do with a sound is apply it to an object (play it), or inspect its key. To do the kind of things you want to do would require you to create a bot (a custom viewer for perform specialised tasks, often without any rendering engine etc.) to get ahold of the sound, and then transmit data to the script. But the information would be in-sync only with that viewer, other users could be at any point in the sound when it begins.
_____________________
Computer (Mac Pro): 2 x Quad Core 3.2ghz Xeon 10gb DDR2 800mhz FB-DIMMS 4 x 750gb, 32mb cache hard-drives (RAID-0/striped) NVidia GeForce 8800GT (512mb)
|