sound

Linux, C++ audio capturing (just microphone) library

I'm developing a musical game, it's like a singstar but instead of singing, you have to play the recorder. It's called oFlute, and it's still in early development stage. In the game, I capture the microphone input, then run a simple FFT analysis and compare the results to typical recorder's frequencies, thus getting the played note. A...

iPhone: What is the best approach to changing the sound of a rolling ball based on speed?

I need to play a sound of a ball rolling and change the sound based on the ball's speed. I was using AVFoundation and just playing different samples but that didn't sound natural enough. I tried OpenAL and something like: alSourcef(sourceID, AL_PITCH, thePitch); and passing in thePitch, but didn't like the results. Does anyone have a...

What should I use to replace the WinAPI Beep() function?

I've got a Visual C++/CLI app which uses beeps to signify good and bad results (used when the user can't see the screen). Currently I use low pitched beeps for bad results and high pitched beeps for good results: if( goodResult == true ) { Beep(1000, 40); } else { Beep(2000, 20); } This works okay on my Vista laptop, but I've...

How do I get a mp3 file's total time in Java?

The answers provided in How do I get a sound file’s total time in Java? work well for wav files, but not for mp3 files. They are (given a file): AudioInputStream audioInputStream = AudioSystem.getAudioInputStream(file); AudioFormat format = audioInputStream.getFormat(); long frames = audioInputStream.getFrameLength(); double durationIn...

Identifying voice as male or female

I'm not much into audio engineering, so please be easy on me. I'm receiving an audio file as input, and need to detect whether the speaker is male or female. Any ideas how to go about doing this? I'm using php, but am open to using other languages, and don't mind learning a little bit of sound theory as long as the time is proportionat...

PlaySystemSound with mute switch on

I know, I have to set the AudioSession to the 'playback' category, which allows audio even when the mute switch is on. This is what I do, but sound still gets muted when switch is on. UInt32 sessionCategory = kAudioSessionCategory_MediaPlayback; AudioSessionSetProperty(kAudioSessionProperty_AudioCategory,sizeof(sessionCategory), &sess...

iPhone Datepicker plays 'tick' sound

Hey guys, Does any of you know what event I can tap into on the DatePicker when the wheel moves. I want to play a sound (got sound code) as the wheel spin. Just like the timer set picker in Apple's clock app. All that is there is a single event for ValueChanges which only fires once, at the end of a wheel spin. Thanks in advance ...

Android Signal analysis + some filters.

Hello, as the world cup is the main sport event and the Vuvuzelas are the most annoying sound in the world, I had an idea to remove them definitively by reading this new ( http://www.popsci.com/diy/article/2010-06/simple-software-can-filter-out-vuvuzela-whine) that told us that the sound has some frequencies at 233Hz + 466,932,1864Hz. ...

Making the sound for a Flash game.

Hu guys, I'm developing a Flash game, and I'm interested in knowing what would be the process of making sounds. I want to make my own sounds, if possible, and not to download some premade standard (and possibly lawsuitable if they are not "totally free") sounds from the web. So.. I've read that a synthesizer could be useful.. but, I re...

How to get volume on line in Java

I'd like to check my systemmixers for volume in Java. So I loop through all mixers and create a line. Is there a possibility to get an integer of the volume currently active on that line? I only seem to find adjustments to the systemvolume or linevolume but not the current actual volume. Or should I try to record a little part of every...

sine wave glissando from one pitch to another in Numpy

Hello! I have been working on a program where I need to slowly and smoothly change the pitch of a sine wave from one pitch to another. I am able to get an array of the frequency the pitch should be at any given moment (for instance, [440, 526.5, 634.2 794.8, 880], though much, much longer) but it seems I am unable to actually apply tha...

iPhone Dev: short sound and vibration at the same time

Hello there, is there any way to play a short sound and let the phone vibrate at the same time? I found something about AudioQueing, but I'm a newbie and cant wrap my head around that whole process of AudioQueing. Kind regards from Germany ...

Java: capture soundoutput

Is it possible to capture soundoutput of the computer in Java? It is possible to capture the microphone but that's not what I need, I need to capture parts of sound that the computer is playing and I can't figure it out. Thanks ...

Audio programming and tone synthesis

I am mostly a business programmer and I've not done anything in audio programming since the ZX Spectrum so I'm not sure how to even ask this question correctly. I just need some pointers in the right direction with regards to writing (Android in this case, but it is really a general question) applications which deal with audio such as a...

Is there a way to make JavaSound to use the codecs installed on your SO ?

Hello, I am using java Sound with the following code: public static void main(String[] args) throws Exception { JFrame frame = new JFrame(); frame.setSize(200,200); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setVisible(true); JFileChooser fc = new JFileChooser(); fc.showOpenDialog(null); File...

what is the best way to play sound quickly upon fast button presses xcode?

hi i have a soundboard its just a screen with about 8 buttons. each individual button will have its own sound which will be played upon button press There are a couple of ways i could play the sound, such as using SystemSound or AVAudioPlayer system sound so far seems have the quickest response times, avaudioplayer is quite slow, it cant...

What is a good format for storing sounds on windows compressed?

Currently we use .wav files for storing our sounds with our product. However, these can get large. I know there are many different sound files out there, however what is the best sound file to use that will: 1) Work on all windows-based systems (XP+) 2) Doesn't add a lot of extra code (ie: including a 3 mb library to play mp3's will o...

Anybody having problems with sound playing on iPhone OS 4.0?

I just installed an app I'm building on my iPhone 4, and even though the sounds I'm using play in the simulator, they don't play on the phone. Just using an AVAudioPlayer object for all the sounds that need to play when a user interacts with the app. ...

Soundbank for Java

I am working on a Java applet that uses javax.sound.midi.sequencer to play a MIDI sequence. In order for this to work, the visitor needs to have a soundbank installed on his/her computer. Apparently, the Windows JRE doesn't come with a soundbank, and one has to be downloaded separately from http://java.sun.com/products/java-media/sound/...

[Python] Use 2 sound cards

I need to play a sound with sound card "A", while recording another sound using sound card "B". I know how to play or record a sound (using PyAudio), but I don't know how to choose which sound card to use for it. I have the impression that PyAudio doesn't allow choosing the sound card, but I might be wrong (I'm a beginner at Python). ...