Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Play only part of sound file?

Corporal Candour
Registered User
Join date: 3 Sep 2005
Posts: 38
09-19-2005 12:35
Is it possible to play only part of a sound file? I was planning to make a piano with individual keys to press, but the problem is that I'd need to have 88 different sound clips just to do that. So is it possible to just record maybe 5 key strikes on 1 sound file, and play only part of it (the part that has the specified key)?

Ex. like from the 3 to the 4 second mark as the E key
Zapoteth Zaius
Is back
Join date: 14 Feb 2004
Posts: 5,634
09-19-2005 12:42
From: Corporal Candour
Is it possible to play only part of a sound file? I was planning to make a piano with individual keys to press, but the problem is that I'd need to have 88 different sound clips just to do that. So is it possible to just record maybe 5 key strikes on 1 sound file, and play only part of it (the part that has the specified key)?

Ex. like from the 3 to the 4 second mark as the E key


To my knowledge, theres no way to do this.

You'd need to upload the individule keys..
_____________________
I have the right to remain silent. Anything I say will be misquoted and used against me.
---------------
Zapoteth Designs, Temotu (100,50)
---------------
Cid Jacobs
Theoretical Meteorologist
Join date: 18 Jul 2004
Posts: 4,304
09-19-2005 12:50
llAdjustSoundVolume()

llStopSound()
_____________________
Zapoteth Zaius
Is back
Join date: 14 Feb 2004
Posts: 5,634
09-19-2005 12:57


Hmm.. Suppose you could turn down the volume all the way until the part you want to listen to and then use StopSound.

But you'd get pauses before it played the sound, and you'd have to be incredibly accurate with some timers or something..
_____________________
I have the right to remain silent. Anything I say will be misquoted and used against me.
---------------
Zapoteth Designs, Temotu (100,50)
---------------
Cid Jacobs
Theoretical Meteorologist
Join date: 18 Jul 2004
Posts: 4,304
09-19-2005 13:43
From: Zapoteth Zaius
Hmm.. Suppose you could turn down the volume all the way until the part you want to listen to and then use StopSound.

But you'd get pauses before it played the sound, and you'd have to be incredibly accurate with some timers or something..


llPreloadSound()

It wouldnt be perfect, and it would be near impossible, but it could be done.
_____________________
Zapoteth Zaius
Is back
Join date: 14 Feb 2004
Posts: 5,634
09-19-2005 13:46
From: Cid Jacobs
llPreloadSound()

It wouldnt be perfect, and it would be near impossible, but it could be done.


Hehe I lilke the way you think :D
_____________________
I have the right to remain silent. Anything I say will be misquoted and used against me.
---------------
Zapoteth Designs, Temotu (100,50)
---------------
Keknehv Psaltery
Hacker
Join date: 11 Apr 2005
Posts: 1,185
09-19-2005 15:11
Yes, something like that would work, but it would be dependent upon variable l (the speed of lag)... really, it would be much easier and more dependable to just upload the separate clips.