sound

Play Sound in .Net using generated Waveform data

How can I play a sound based on waveform data that my .Net program is generating from user input and mathematical functions? By "waveform data" I am mean SPL values in a fixed interval time-series (probably 44.1 kHz). I presume that this requires some kind of streaming buffer arrangement. Note, that this has to be live/real-time, so j...

Create a Flash Equalizer (modify output sound)

Hi it'd like to know if it's at all possible create a "parametric" equalizer in flash. Not just the usual graphic effects but a tool to modify the output of the sound that pass trough the application. Any reference, tips idea welcomed. Thanks ...

Real-time Pitch Shifting on the iPhone

I have a children's iPhone application that I am writing and I need to be able to shift the pitch of a sound sample using Core Audio. Does anyone have any example code I could look at where this is done. There are many music and game apps in the app store that do this so I know I am not the first one. However, I cannot find any examples ...

Is there a simple way to convert MP3 to WAV in vb2005?

Is there a simple way to convert MP3 to WAV in vb2005? what i would like to do is play MP3 files in vb2005 but first they need to be converted to a byte(memory) wave string before they can be played internally by the program unless someone else built a class or module for this already. ...

Are there any legal and royalty-free sound libraries to get sounds for iPhone applications?

Problem: Great graphics, nice app. But no sound. I want sound. UPDATE: All cleared now. Soundsnap.com does not exclude iPhone apps. Tasos Frantzolas responded that there are no copyright problems with sounds on soundsnap.com. There has been a misunderstanding because a huge content provider of sound snap told me to not use the sounds i...

Waveform API from Apple commercial?

In the new iPhone 3GS commercial, Apple shows voice control with a cool blue waveform animation. Is this visual effect for rendering the waveforms (or maybe just volumes) available as an API call or source code somewhere? (Not the voice control part, just the audio visualization) I think you could get the sound info from AVAudioPlayer's...

List of values to a sound file

Guys, Im trying to engineer in python a way of transforming a list of integer values between 0-255 into representative equivalent tones from 1500-2200Hz. Timing information (at 1200Hz) is given by the (-1),(-2) and (-3) values. I have created a function that generates a .wav file and then call this function with the parameters of each to...

iPhone: Adjusting playback volume in app during a phone call

I have a soundboard application that plays mp3 files using AVAudioPlayer. The sound can be adjusted to high while listening to any of the clips. My problem is when the phone is in use and I navigate to the app to play the soundboard the volume is set very low. I'm trying to make it so the the sound from my app can be heard by the perso...

Error ping sound using Visual C++ and MFC

Is there a basic function call in MFC that simply plays the input error ping? I am looking for something analogous to the AfxMessageBox() call that simply plays the ping that is frequently heard when an error is made. ...

How can I play sound file (mp3,wav,etc) directly with no associated application?

I need also to be able to control its volume. Also, how do I control system sound volume, to detect low volume, or mute states ? ...

In a bash script/command how can I make a PC beep noise, or play a sound file?

I have some long running scripts with breaks requiring input/interaction to continue but when I switch to another window I'd like to be notified (by sound) that a task is complete and now awaiting input. I would prefer to be able to play an audio clip (*.mp3, *.ogg, etc.) but wouldn't care if the only solution is to make the PC Speaker ...

How to apply sound distortion in actionscript-3?

Let's say the sound input is either an embedded mp3 file or the microphone. Is there an example of how to make it sound demonic and creepy, or like a radio transmission from the battlefield in actionscript-3 dynamically on runtime. Reference: http://www.youtube.com/watch?v=JAY88WH0FcU ...

how to play pcm raw data in java

Hi I have PCM samples in a short array. What is the best way to play this out? The format is 8000Hz, Mono, 16 bit, big endian. (The PCM samples are generated in the code and not read through some file) Thanks ...

AVAudioPlayer resetting currently playing sound and playing it from beginning

I'm having an issue using AVAudioPlayer where I want to reset a player if it's currently playing and have it play again. I try the following with no luck: The sound plays once but then the second time i select the button it stops the sound, the third time starts the sound up again. //Stop the player and restart it if (player.playing) ...

How to use System.Media.SoundPlayer to asynchronously play a sound file?

Here's a deceptively simple question: What is the proper way to asynchronously play an embedded .wav resource file in Windows Forms? Attempt #1: var player = new SoundPlayer(); player.Stream = Resources.ResourceManager.GetStream("mySound"); player.Play(); // Note that Play is asynchronous Good: doesn't block the UI thread Bad: Soun...

What algorithms could I use for audio volume level?

Let's say I have a slider that can go between 0 and 1. The SoundTransform.volume also ranges between 0 (silent) and 1 (full volume), but if I use a linear function, let's say SoundTransform.volume = slider.volume, the result is rather not pleasing. I really haven't studied the human ear, but I overheard once that human perception is log...

Algorithm for music imitation?

I'm interested in automatic music making. I was thinking about a program that is fed a large number of 1-bar arpeggios (= fixed length sequences of notes, for simplicity) and generates its own sequences, based on what it learnt. To start with, I know I could use letter (digram? trigram?) frequency analysis, only applied to note pitches,...

Having trouble calling getCodeBase in Clojure

I'm trying to write a function to play a sound file once, using some resources I found. The code is as follows: (defn play [file] (let [songp (URL. (.getCodeBase) file) song (.newAudioClip songp)] (. song play))) The problem is, (.getCodeBase) is a malformed member expression. I'm not sure what to do. How do you call a meth...

Real-time java sound volume adjustment

I play back sound with Java's SourceDataLine but whenever I try to adjust the volume (gain), there is a 0.2-0.5 second delay between the action and the response in the speaker. The audio data is written in 4k-16k chunks (16bit mono, 22kHz ~ 44k/s). How can I make this volume adjustment more real-time? Does the write(byte[], int, int) ...

How do I set a value in Objective C for an iPhone app?

I'm very new at Objective C and developing for the iPhone so I apologize if this is an easy answer I've tried searching Google for going on 3 days now and bought iPhone Development for Dummies and no luck on something like this. Essentially what I would like to do is play a sound when a button is pressed and then I would like to add 1 t...