0

I came across a programming assignment from Princeton University that deals with simulating guitar string plucks (see here).

I tried solving it to C# but I am currently stuck with actually playing the sound. In the example they do it by calling StdAudio.play() with a double value in the range [-1;1]. StdAudio is a class provided by Princeton (and can be found here).

So basically my question boils down to: How would I go about porting the StdAudio class to C#?

Thanks in advance!

chrischu
  • 3,047
  • 3
  • 27
  • 44
  • the second answer here may help http://stackoverflow.com/questions/8051989/importing-java-libraries-into-c-sharp - **edit** if thats not the question, it looks like taking time to figure out how to convert the code yourself – Sayse May 02 '13 at 10:18

1 Answers1

0

Instead of porting StdAudio to C#, have a look at this

http://www.smokycogs.com/blog/generating-various-audio-waveforms-in-c-sharp/

It shows a way to create audio from arbitrary values.

Meoiswa
  • 666
  • 4
  • 12