Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Is there a volume type comand for sound in turing?
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Dragoth




PostPosted: 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
Sponsor
Sponsor
Sponsor
sponsor
Clayton




PostPosted: 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.
Tony




PostPosted: 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.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Dan




PostPosted: 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.
Computer Science Canada Help with programming in C, C++, Java, PHP, Ruby, Turing, VB and more!
Dragoth




PostPosted: 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
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 5 Posts ]
Jump to:   


Style:  
Search: