Is there a program that can represent functions as sound?

2

1

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.

mahos

Posted 2011-08-29T20:09:43.797

Reputation: 23

Question was closed 2018-01-27T06:26:16.010

By the way, please don't post duplicates across the network, they'll be closed where they're off topic.

– slhck – 2011-08-30T18:59:05.447

@ 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 – 2011-08-30T20:21:29.553

Just a friendly reminder. Sorry, those people told you to ask elsewhere and still migrated it. – slhck – 2011-08-30T20:29:48.433

Answers

1

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.

Szabolcs

Posted 2011-08-29T20:09:43.797

Reputation: 2 248

0

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.

vemv

Posted 2011-08-29T20:09:43.797

Reputation: 640

0

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.

Keltari

Posted 2011-08-29T20:09:43.797

Reputation: 57 019