Computer Science Canada

Is there a volume type comand for sound in turing?

Author:  Dragoth [ Mon May 05, 2008 10:42 pm ]
Post subject:  Is there a volume type comand for sound in turing?

i am attempting a fade kind of effect with a music clip before stopping the sound. Is this possible, if so how, if not any other ways other than modifying the sound clip it's self

Author:  Clayton [ Mon May 05, 2008 11:23 pm ]
Post subject:  RE:Is there a volume type comand for sound in turing?

To the best of my knowledge, no such procedure/function exists within the Turing language to handle such a request. Your best bet is to double check the Help File (F10) just to be sure, but don't get your hopes up.

Author:  Tony [ Mon May 05, 2008 11:34 pm ]
Post subject:  RE:Is there a volume type comand for sound in turing?

Turing doesn't have access to system's volume controls.

I doubt that you can apply filters to Music.PlayFile call. I guess you can check the documentation to be sure, but it's highly unlikely.

Without modifying the file, I suppose your next option would be to read the file's binary, decode it yourself, and interpret it via playing a series of tones. Though even then, I think you can only control the frequency, not the amplitude of the sound.

Author:  Dan [ Tue May 06, 2008 1:04 am ]
Post subject:  RE:Is there a volume type comand for sound in turing?

As tony hinted at, the best option might be to use some sound file eidting program to make serveral diffrent versions of the files at diffrent amplitudes/volumes and then have turing use the one corsponding to the volume level you want.

For just a fade effect, it would be best to just edit the music file to have the fade.

Author:  Dragoth [ Tue May 06, 2008 8:41 pm ]
Post subject:  Re: Is there a volume type comand for sound in turing?

k Thanks figured as much but figured would check anyway


: