Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I need a program that can represent functions as sound. Something like Mathematica's "play" which can generate a sound with the amplitude given as a function of time.

The program should support "writing/exporting" to a lossless audio format.

@soandos what I meant was a program that gives sound represntation of a mathmatical function "similar to how you plot functions"visualy"" Check Mathmatica for play to see what it does.

share|improve this question
    
By the way, please don't post duplicates across the network, they'll be closed where they're off topic. –  slhck Aug 30 '11 at 18:59
    
@ slhck : i didnt duplicate ,i asked the question on stackoverflow.com and some one told me to post it here so i posted it here beforei knew that they will migrate it to here.iam still knew after all and i didnt know that the 2 sites were connected –  mahos Aug 30 '11 at 20:21
    
Just a friendly reminder. Sorry, those people told you to ask elsewhere and still migrated it. –  slhck Aug 30 '11 at 20:29

3 Answers 3

up vote 1 down vote accepted

You can do this using the ChucK programming language. It is made specifically for synthesizing audio.

Directly specifying the waveform as a function is not the typical way to work, but I believe it is also possible.

share|improve this answer

Software synthesizers use functions such as sine or random in order to oscillate a parameter, e.g. the frequency cutoff of a filter or the volume of a sound source.

All synths implement the same predefined functions though, so you'd have to get one coded from scratch in order to be able to pass any given function to them.

share|improve this answer

I dont know of any programs that fulfill the requirements you are asking for. However, long, long ago I wrote a similar program is Turbo Pascal as my final for my AP Comp Sci class in high school. It took in basic mathematical functions and plotted them in a graph, and for fun I threw in a sound function as well. If you cant find a program that does this, I dont think it would be hard for a programmer to throw one together.

BTW, most of the basic mathematical functions sound rather annoying in an electronic speaker beep. Perhaps with modern sound cards and wave table synthesis it wouldnt sound so much like an scratching an electronic chalkboard.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.