Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Remote audio question

Kirilisa Tigerpaw
Registered User
Join date: 6 Nov 2007
Posts: 15
11-25-2007 19:17
So there is this magic piano living on a plot near my land. When you play the piano (the plot allows anyone to walk on it but I'm sure I don't have permissions to change the land's media URL), it gives you a dialog, you choose a song, and after a moment it will play what you chose. When it gets to the end of the song, it pauses a moment, and then starts playing the same song again. ergo, it can't be streaming media, right?

All of the song choices are longer than 10 seconds: ergo, they are not uploaded sound files.

I really don't believe the piano is setting the land parcel media URL like radios do either. It isn't just a question of turning on or off a certain streaming URL: each song is distinct and repeatable.

I looked inside the piano, and while all the scripts were locked down so I couldn't see them, I saw that it had one script, and then one notecard for each song name.

Can anyone tell me how such a piano works? I know how to call up 10 second sound files from within inventory, and I know about setting the music/media URL of a land parcel, but how on earth does one make an object so that you click on it and it plays something that isn't streaming media but must be located on an external server?

I've searched the forums and script libraries a bunch, but I can't find anything really relating to this. I find lots of radios etc. but they all work off streaming media. Maybe I've put in the wrong search terms (unfortunately 'mp3' is too short for this forum to accept as a search term)...

Thanks!
Mrc Homewood
Mentor of Randomness
Join date: 24 Feb 2007
Posts: 779
11-25-2007 19:20
i belive it may have the UUID of the diffrent song clips stored in that notecard, only way i can exsplain it
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
11-25-2007 19:26
You can make an SL version of a CD. A bunch of sequential 10 sec parts of the song is uploaded and stitched together with a script which plays one after the other to make the complete song. Kind of expensive to upload your complete CD collection but perfect for something like a piano with only a handful of songs.

/15/67/10576/1.html
_____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime.
From: someone
I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum
Kirilisa Tigerpaw
Registered User
Join date: 6 Nov 2007
Posts: 15
Hmmmmmm
11-26-2007 00:09
Hi guys,

Thanks to you both for getting back. I have one question for each of your comments, though...

Mrc, you say you think it has the "UUID of the different song clips stored in that notecard" but (and forgive my ignorance, I've only been mucking with LSL for about a week) doesn't that just mean it would be referencing sound clips in the avatar's inventory or suchlike? How would that get around the 10 second limit, since you can only upload clips of 10 seconds or less?

Jesse, I've glanced over Psyke's Music Script before (haven't actually put it into something and tried it yet though) but I was under the impression that this was slightly different because for Psyke's script you are actually uploading all the 10-second clips into the inventory of the object, but on this piano, there are no clips in it at all (I suppose it could just be referencing them from elsewhere in the person's inventory?)

The piano is at The Zymurgys Haven, Shades Rest (204, 105, 90) if anyone wants to check it out....
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
11-26-2007 00:52
From: Kirilisa Tigerpaw
Mrc, you say you think it has the "UUID of the different song clips stored in that notecard" but (and forgive my ignorance, I've only been mucking with LSL for about a week) doesn't that just mean it would be referencing sound clips in the avatar's inventory or suchlike? How would that get around the 10 second limit, since you can only upload clips of 10 seconds or less?

it doesn't get around it, it's just a convenience to be able to group all that songs clips in order without having them in inventory, sound clips even copies in item inventories are ALL just references to the uuid of the one an only copy which is on the assest server. the local server, or the client requests a copy to play, but there'es only one source.

From: someone
Jesse, I've glanced over Psyke's Music Script before (haven't actually put it into something and tried it yet though) but I was under the impression that this was slightly different because for Psyke's script you are actually uploading all the 10-second clips into the inventory of the object, but on this piano, there are no clips in it at all (I suppose it could just be referencing them from elsewhere in the person's inventory?)

as above, they are refrenced by the uuid, whether that's done in the script, listed in a notecard, or by clips names dropped in inventory doesn't matter...

it's also possible to use the lands music url to achieve the same effect, by having a shoutcast server configured to play a static file. these can be configured to loop, and playback starts at the begining per user.

I doubt this is the case though, unless you are required to turn on the stream to hear the piano, but in that scenario the notecards could just be a lazy way of naming the buttons for the dialog, and their contents would be specific urls for the file to be played

PS ok I was bad, my name isn't Jesse or MrC, just speeding through and not paying attention... reply already written, no point wasting it
_____________________
|
| . "Cat-Like Typing Detected"
| . This post may contain errors in logic, spelling, and
| . grammar known to the SL populace to cause confusion
|
| - Please Use PHP tags when posting scripts/code, Thanks.
| - Can't See PHP or URL Tags Correctly? Check Out This Link...
| -
Squirrel Wood
Nuteater. Beware!
Join date: 14 Jun 2006
Posts: 471
11-26-2007 01:31
There is no neccessity to have a shoutcast server configured to play a static file.

You can simply upload an mp3 somewhere and directly reference that file as media url.
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
11-26-2007 01:55
From: Squirrel Wood
There is no neccessity to have a shoutcast server configured to play a static file.

You can simply upload an mp3 somewhere and directly reference that file as media url.

yeah but that wouldn't auto replay would it? never tried it myself so I don't know....
_____________________
|
| . "Cat-Like Typing Detected"
| . This post may contain errors in logic, spelling, and
| . grammar known to the SL populace to cause confusion
|
| - Please Use PHP tags when posting scripts/code, Thanks.
| - Can't See PHP or URL Tags Correctly? Check Out This Link...
| -
Kirilisa Tigerpaw
Registered User
Join date: 6 Nov 2007
Posts: 15
11-26-2007 04:54
Hi Void,

Thanks for that, it helped in clarifying. I'll give it a shot now and try to improve my benighted saxophone...
ElQ Homewood
Sleeps Professionally
Join date: 25 Apr 2007
Posts: 280
Yes, it would..
12-25-2007 16:43
From: Void Singer
yeah but that wouldn't auto replay would it? never tried it myself so I don't know....


Actually, using the llParcelMediaCommandList command PARCEL_MEDIA_COMMAND_LOOP does this quite well. Also, dunno if it's a glitch in sl lately or what, static one-song files automatically loop unless the script later resets the parcel media url somewhere else or to nothing.