Everyone Hears It!
|
|
Preston Tenk
Registered User
Join date: 16 May 2007
Posts: 6
|
05-19-2007 01:00
Hey all,
New to SL, new to scripting for it. I'm interested in making a music player that attaches to the hip, that can advance tracks/select tracks with a custom HUD, and can be heard from a smaller radius than 10m (I want it to be a personal player, so I'm looking for a headphone-like effect).. think iPod.
-Is it possible to shrink the hear radius smaller than 10m?
-Is it possible for the HUD to show the objects (tunes) within the player object as a list? (how custom can you get a HUD?)
Thanks for any help you can give, point me in any direction. I'm looking to work with a scripter on this project, as well- if any are interested. We can negotiate pay. You will be helping a great cause- You'll see what I'm after if we work together.
Cheers, Preston
|
|
Osgeld Barmy
Registered User
Join date: 22 Mar 2005
Posts: 3,336
|
05-19-2007 02:11
if you play a sound file from an object attached to a hud only you will hear it
so if your looking for something personal play it from the hud, you could still have the ipod model attached to the hip, but as decoration
be aware that non streaming sound files have to be 10 seconds long or less, playing back a handfull of 10 second chunks as one song is another magic trick all together
|
|
Preston Tenk
Registered User
Join date: 16 May 2007
Posts: 6
|
05-19-2007 02:16
From: Osgeld Barmy if you play a sound file from an object attached to a hud only you will hear it
so if your looking for something personal play it from the hud, you could still have the ipod model attached to the hip, but as decoration Fantastic! Thank you. And as I understand it, since a HUD is essential an object, you'd be able to attach the 'tunes' to it- is that right? And as an object, can it display its own contents 'on' itself (as a HUD)? Is you say yes, you'll make my day.
|
|
Osgeld Barmy
Registered User
Join date: 22 Mar 2005
Posts: 3,336
|
05-19-2007 02:18
From: Preston Tenk (how custom can you get a HUD?) as custom as you can imagine, as long as you have the creativity to make it happen with LSL's functions
|
|
Osgeld Barmy
Registered User
Join date: 22 Mar 2005
Posts: 3,336
|
05-19-2007 02:26
From: Preston Tenk Fantastic! Thank you.
And as I understand it, since a HUD is essential an object, you'd be able to attach the 'tunes' to it- is that right?
And as an object, can it display its own contents 'on' itself (as a HUD)?
Is you say yes, you'll make my day. huds are objects you drop the sound clips inside the objects inventory or use their uuid's and no it follows the same rules as any object, you will need some way to display text, probally llSetText, altho there are other ways
|
|
Envoy Costagravas
On diplomatic assignment
Join date: 24 Jan 2007
Posts: 39
|
05-19-2007 02:31
From: Osgeld Barmy be aware that non streaming sound files have to be 10 seconds long or less, playing back a handfull of 10 second chunks as one song is another magic trick all together Ok, Osgeld, I'm going to bite on this one: I'm *not* interested in streaming music, but finding some way to support sound/music files that *are* over 10 seconds in length. The large, hollow boom many people heard about 4 months ago was my jaw hitting the floor when finding out that the default audio file format was .wav! I've only seen one or two objects that had longer sound files, and it was obvious (painfully, in some instances) that these were multiple downloads strung together. If there is a more elegant way to make this happen, I would surely like to know, follow up resources, talk to people, etc. And/or, start lobbying LL for support of some lossy formats (mp3 being the obvious one), much as jpg is supported for textures. Any clues/advice/info is graciously thanked in advance! Best, EC
|
|
Preston Tenk
Registered User
Join date: 16 May 2007
Posts: 6
|
05-19-2007 02:31
From: Osgeld Barmy huds are objects
you drop the sound clips inside the objects inventory or use their uuid's
and no it follows the same rules as any object, you will need some way to display text, probally llSetText, altho there are other ways So I can perhaps embed a text field on the HUD, using something like llSetText, and have it point to it's own inventory to list it's own contents?
|
|
Preston Tenk
Registered User
Join date: 16 May 2007
Posts: 6
|
05-19-2007 02:41
From: Envoy Costagravas Ok, Osgeld, I'm going to bite on this one:...
If there is a more elegant way to make this happen, I would surely like to know, follow up resources, talk to people, etc.
And/or, start lobbying LL for support of some lossy formats (mp3 being the obvious one), much as jpg is supported for textures.
Any clues/advice/info is graciously thanked in advance!
Best, EC Envoy- I agree. The support of mp3s in SL would open up a lot of potential. I would gladly hop aboard that lobby.
|
|
Osgeld Barmy
Registered User
Join date: 22 Mar 2005
Posts: 3,336
|
05-19-2007 11:37
From: Envoy Costagravas Ok, Osgeld, I'm going to bite on this one: I'm *not* interested in streaming music, but finding some way to support sound/music files that *are* over 10 seconds in length. The large, hollow boom many people heard about 4 months ago was my jaw hitting the floor when finding out that the default audio file format was .wav!
I've only seen one or two objects that had longer sound files, and it was obvious (painfully, in some instances) that these were multiple downloads strung together. If there is a more elegant way to make this happen, I would surely like to know, follow up resources, talk to people, etc.
And/or, start lobbying LL for support of some lossy formats (mp3 being the obvious one), much as jpg is supported for textures.
Any clues/advice/info is graciously thanked in advance!
Best, EC stringing the files together is the only option without external streaming, the point of the sound files is really for sound effects not music, LL has stated a few times they really dont want to be hosting music the wav file you upload actually gets compressed when you send it up to LL's servers exactly like textures, in textures case theres no point in using a lossy format like jpg, since its compressed on upload to jpg 2k
|
|
Osgeld Barmy
Registered User
Join date: 22 Mar 2005
Posts: 3,336
|
05-19-2007 11:38
From: Preston Tenk So I can perhaps embed a text field on the HUD, using something like llSetText, and have it point to it's own inventory to list it's own contents? there is no text entry field that can be scripted, all you can do is display it
|
|
Envoy Costagravas
On diplomatic assignment
Join date: 24 Jan 2007
Posts: 39
|
05-19-2007 14:55
From: Osgeld Barmy stringing the files together is the only option without external streaming, the point of the sound files is really for sound effects not music, LL has stated a few times they really dont want to be hosting music
the wav file you upload actually gets compressed when you send it up to LL's servers exactly like textures, in textures case theres no point in using a lossy format like jpg, since its compressed on upload to jpg 2k Thanks for all that - good basic info for me. I had already inferred from the way sound was supported that LL did not have interest in supporting more standard length music files. Pity, that. I can see why, but doesn't make my dream any easier!  Yes, I recently found out about the on-the-fly jpg compression, which was a good explanation why some of my uploads looked fuzzier on SL then in RL! Any good ideas on where to hang out if I wanted to discuss sound scripting? Any good repositories of example code?
|
|
Osgeld Barmy
Registered User
Join date: 22 Mar 2005
Posts: 3,336
|
05-19-2007 16:42
|
|
Preston Tenk
Registered User
Join date: 16 May 2007
Posts: 6
|
05-19-2007 17:35
Only a few things that need to be forced into place, I guess. One being a scriptable text display, another being the shrinking of the hearing radius, and the third being a way to get that darn music up there..
IM me in SL if you're willing to help, please.
|
|
Jeff Kelley
Registered User
Join date: 8 Nov 2006
Posts: 223
|
05-20-2007 05:13
From: Envoy Costagravas I had already inferred from the way sound was supported that LL did not have interest in supporting more standard length music files. Pity, that. I can see why, but doesn't make my dream any easier! - sound effects are spatialized, hence they are monophonic, which is not good for music; - sound files play once fully downloaded, it would ask every clients in the neighbouring to download 8Mb (3 minutes @ 44.1 decompressed) because _you_ want to hear a tune; - what happens if everybody wears a clunky-crappy "10s sticked files" walkman in public places? audio turned off; - streaming is the adequate technology for hearing music; - it's so easy to launch WinAmp or iTunes in the background.
|
|
Newgate Ludd
Out of Chesse Error
Join date: 8 Apr 2005
Posts: 2,103
|
05-20-2007 07:50
From: Preston Tenk Only a few things that need to be forced into place, I guess. One being a scriptable text display, another being the shrinking of the hearing radius, and the third being a way to get that darn music up there..
IM me in SL if you're willing to help, please. You where already told about using llSetText in a previous post. If that is inadequate then look at XYText or one if its derivatives. The hearing radius for a played sound can be controlled by llTriggerSoundLimited. As for the third its called upload....  As Jeff rightly stated if its for personal use only then you might as well just run up winamp or something on your local machine. You may also want to search here for a posting concerning locally controlling iTunes or simialr. I'm afraid I cannot remember the exact post title or I'd have pasted it as a link.
_____________________
I'm back......
|
|
Jeff Kelley
Registered User
Join date: 8 Nov 2006
Posts: 223
|
05-20-2007 17:48
From: Newgate Ludd You may also want to search here for a posting concerning locally controlling iTunes or simialr. /54/78/96794/1.html
|