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

Username:   Password: 
 RegisterRegister   
 Sound Program
Index -> Programming, Turing -> Turing Submissions
View previous topic Printable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Jorbalax




PostPosted: Sat Oct 29, 2005 3:27 pm   Post subject: Sound Program

Simple recording program using Turing's 'sound' command. It can save songs into text files and load them.

Things to know:
- Keys run through a-z. They are not actual notes, just an increase in frequency by 50.
- You can't hold notes (I'll probably fix this later, if ever I choose to work on this again)
- the const TimeVariant at the top of the program source may need to be adjusted for your computer speed (it controls length of time between notes). What you record should sound the same as what you play.


Didn't spend much time commenting it out or anything, and some of the code is sloppy (representative of the amount of effort put into it).

There's an example song (guess.txt) too; first one to get what it "says" gets a free imaginary cookie.



guess.txt
 Description:
test file

Download
 Filename:  guess.txt
 Filesize:  225 Bytes
 Downloaded:  223 Time(s)


SoundProgram.t
 Description:
main file

Download
 Filename:  SoundProgram.t
 Filesize:  3.81 KB
 Downloaded:  211 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
Display posts from previous:   
   Index -> Programming, Turing -> Turing Submissions
View previous topic Tell A FriendPrintable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 1 Posts ]
Jump to:   


Style:  
Search: