sound

Analysing a Digital/Analog signal via Microphone

I just need to be pointed in the right direction as I may be in over my head here. If I wanted to write a program to analyze a sound wave how would I go about this? I have an idea that it will involve a mixture of a maths package (like mathematica or matlab) and C or C++ but not sure where to start. I'm only wondering at the moment...

Noise in background when generating sine wave in Java

I'm getting a slight distortion (sounds like buzzing) in the background when I run the following code. Because of its subtle nature it makes believe there is some sort of aliasing going on with the byte casting. AudioFormat = PCM_SIGNED 44100.0 Hz, 16 bit, stereo, 4 bytes/frame, big-endian Note: code assumes (for now) that the data is ...

Advice on playing sound files from an ASP.NET MVC app

I'm working on a new ASP.NET MVC / JQuery app which will need to play short sound files in response to user actions. For example, in some cases, when a user clicks on a word, the computer should pronounce that word (there is a small finite list of words). I'd like advice on the following: Which sound file format(s) would you recomme...

Ruby sound playback

This is 2009, back in 2001 or so, there used to be no good bindings for sound playback in ruby. Has there been a change? I am looking for something to control playback of either raw sound or mp3, ogg and flac. My Googling has turned up dry. Edit: Linux, OSX and if possible Windows. ...

Reimplementing the "ToneMatrix" audio toy

There is a really cool audio "toy" called ToneMatrix. I would like to reimplement it as a Java applet. I've tried using JFugue's player.play with individual notes for sound and Thread.sleep for timing, but the results are horrible. JFugue stops responding after the 17th (yes, really, I counted) invocation of player.play and Thread.sleep...

MidiUnavailableException in Java?

Hi, I'm having some trouble playing MIDI files in Java. What I get is a MidiUnavailableException (MIDI OUT transmitter not available) when I try to play it. My code is standard: try { midiseq = MidiSystem.getSequencer(); midiseq.open(); midiseq.setSequence(MidiSystem.getSequence(sound1)); midiseq.setLoopCount(Sequencer.L...

Does waveInXXX applies a lowpass filter?

When I use the (win32) waveInXXX functions in order to collect samples from a mic at a certain sampling frequency (say 8kHZ, even lower possibly), does the system/soundcard applies a lowpass filter on the input sample, or would i get aliasing? Should I sample at a higher frequency and do the filtering myself before lowering the sampling ...

Sound sampling at low frequencies

I've actually posted this question before, but it hasn't been answered. Maybe I wasn't clear enough, so let me rephrase: As you know, when you're sampling a signal at a certain sampling rate, any frequency that's higher than half of the sampling rate gets aliased. In order to avoid it, you need to pass the signal (either in the analog f...

Playing sounds with C++?

How would i make it so in my program there is a button when that button is clicked i want it to play a .wma file without opening and media player? ...

play two sounds simultaneously iphone sdk

I am trying to make a small music app on the iphone. I want to have an octave a piano which will respond to touches and play the key or keys that the user touches. How would i be able to get two or more sounds to play at the same time so it sounds like a chord? I tried using AVFoundation but the two sounds just play one after the other. ...

MP3 playback with dynamic tempo adjustment

I need to whip up a quickie app, something quick and dirty, on windows that lets a user control the tempo of a playing mp3 file with a slider. Any recommendations on libraries/programming languages/controls that can make this easy? I don't have control over the media choice (has to be mp3) or the platform (has to be windows) Edit: Ac...

Load .wav file for OpenAL in Cocoa

I need to load sound files to a Cocoa-based OpenAL app. Progress: The OpenAL utility function alutLoadWAVFile has been deprecated; the alut header is no longer included in Mac OS X SDKs. According to the TechNotes, the actual code is still there for binary compatibility. However, if I attempt to add a declaration for the function, t...

iPhone: how to make key click sound for custom keypad?

Is there a way to programmatically invoke the keypad "click" sound? My app has a custom keypad (built out of UIButtons) and I'd like to provide some audio feedback when the user taps on the keys. I tried creating my own sounds in Garageband, but wasn't happy with any of my creations. If there isn't a standard way to invoke the key cli...

How to start writing a music visualizer in C++?

Hi, I'm interested in learning to use OpenGL and I had the idea of writing a music visualizer. Can anyone give me some pointers of what elements I'll need and how I should go about learning to do this? ...

How to detect iphone is on silent mode.

I am developing one application. In that I want to detect through coding that "is iphone on silent mode or not?". I am developing it by using cocoa with objective-c. If anyone knows it kindly reply. ...

Determine when to close a sound-playing thread in Java

I am playing of a sound-file in Java, and is looking for a simple way to determine when the sound-file has finished playing so I can kill the thread. Is there a simple way to accomplish this? ...

Flash playing SWF, video is normal sound is sped up half way on 4th scene

when i play each individule scene as an SWF all the sounds are synced correctly, but it when i play the entire animation that half way through on scene 4 the sounds play too early and are also sped up about 2X regular speed. how can i fix this? ...

Write a Program Which Recognizes a Sound and Performs Action

I would like to write a program which is capable of storing a sound pattern, such as a train whistle, horn (beep beep)...listening for the sound via the microphone...and then taking some action when the sound is heard. I know a little python and have programmed a long time ago in VB. Mainly I am an Oracle, PLSQL guy. The program will req...

Fast Audio Input/Output

Here's what I want to do: I want to allow the user to give my program some sound data (through a mic input), then hold it for 250ms, then output it back out through the speakers. I have done this already using Java Sound API. The problem is that it's sorta slow. It takes a minimum of about 1-2 seconds from the time the sound is made to...

Set microphone volume in C#

Is there a way to set the microphone volume in C# (normally done in control panel -> audio -> advanced, go to recording, and then dragging the slider)? I only want to set it to maximum, if that makes it any easier. Thanks! ...