pitch

Programmatically increase the pitch of an array of audio samples

不想你离开。 提交于 2019-11-28 04:46:58
Hello kind people of the audio computing world, I have an array of samples that respresent a recording. Let us say that it is 5 seconds at 44100Hz. How would I play this back at an increased pitch? And is it possible to increase and decrease the pitch dynamically? Like have the pitch slowly increase to double the speed and then back down. In other words I want to take a recording and play it back as if it is being 'scratched' by a d.j. Pseudocode is always welcomed. I will be writing this up in C. Thanks, EDIT 1 Allow me to clarify my intentions. I want to keep the playback at 44100Hz and so

Graphing the pitch (frequency) of a sound

你说的曾经没有我的故事 提交于 2019-11-28 02:59:22
I want to plot the pitch of a sound into a graph. Currently I can plot the amplitude. The graph below is created by the data returned by getUnscaledAmplitude() : AudioInputStream audioInputStream = AudioSystem.getAudioInputStream(new BufferedInputStream(new FileInputStream(file))); byte[] bytes = new byte[(int) (audioInputStream.getFrameLength()) * (audioInputStream.getFormat().getFrameSize())]; audioInputStream.read(bytes); // Get amplitude values for each audio channel in an array. graphData = type.getUnscaledAmplitude(bytes, 1); public int[][] getUnscaledAmplitude(byte[] eightBitByteArray,

Cepstral Analysis for pitch detection

柔情痞子 提交于 2019-11-28 02:55:50
I'm looking to extract pitches from a sound signal. Someone on IRC just explained to me how taking a double FFT achieves this. Specifically: take FFT take log of square of absolute value (can be done with lookup table) take another FFT take absolute value I am attempting this using vDSP I can't understand how I didn't come across this technique earlier. I did a lot of hunting and asking questions; several weeks worth. More to the point, I can't understand why I didn't think of it. I am attempting to achieve this with vDSP library. It looks as though it has functions to handle all of these

Algorithm to determine fundamental frequency from potential harmonics

不羁的心 提交于 2019-11-27 17:34:17
问题 I am attempting to extract a fundamental frequency from a sound source. maybe someone is singing A3 into the microphone, so I want to be detecting ~ 110Hz my approach is: FFT 1024 floats use the phase of each bin to accurately determine its precise frequency determine peaks (typically 50 or so) order them with the loudest first (Peak[0].power=1063.343750, .freq=2032.715088 (Peak[1].power=1047.764893, .freq=3070.605225 (Peak[2].power=1014.986877, .freq=5925.878418 (Peak[3].power=1011.707825,

Python Audio Frame Pitch Change

泪湿孤枕 提交于 2019-11-27 16:54:27
问题 I'm attempting to use pyaudio to make a voice masker. With the way I have it set up right now, the only thing I have to do is input the sound, change the pitch on the fly, and chunk it right back out. The first and last part are working, and I think I'm getting close to changing pitch... emphasis on the "think". Unfortunately, I'm not too familiar with the type of data I'm working with and how exactly to manipulate it the way I want. I've gone through the audioop documentation and havn't

How to set pitch of an audio file or recorded audio file in iphone sdk?

妖精的绣舞 提交于 2019-11-27 15:25:16
问题 I am recoding a file or I have audio file I want to change the pitch and play the audio file. How can I set the pitch in a iphone program that is using objective-c. Please help me out of this. Thank you, Madan Mohan. 回答1: The naive approach is to play it using a different sampling rate as compared to the sampling rate used to record the file. For example, if the file was recorded with Fs=44100Hz, then playing it with Fs=22050Hz, will give you half the original pitch. Of course this naive

Cepstral Analysis for pitch detection

牧云@^-^@ 提交于 2019-11-27 05:02:28
问题 I'm looking to extract pitches from a sound signal. Someone on IRC just explained to me how taking a double FFT achieves this. Specifically: take FFT take log of square of absolute value (can be done with lookup table) take another FFT take absolute value I am attempting this using vDSP I can't understand how I didn't come across this technique earlier. I did a lot of hunting and asking questions; several weeks worth. More to the point, I can't understand why I didn't think of it. I am

Programmatically increase the pitch of an array of audio samples

纵然是瞬间 提交于 2019-11-27 00:39:33
问题 Hello kind people of the audio computing world, I have an array of samples that respresent a recording. Let us say that it is 5 seconds at 44100Hz. How would I play this back at an increased pitch? And is it possible to increase and decrease the pitch dynamically? Like have the pitch slowly increase to double the speed and then back down. In other words I want to take a recording and play it back as if it is being 'scratched' by a d.j. Pseudocode is always welcomed. I will be writing this up

Real-time Pitch Shifting on the iPhone

别说谁变了你拦得住时间么 提交于 2019-11-26 15:23:18
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 of it being done. you can use dirac-2 from dsp dimension for pitch shifting on the iphone. quote: - "DIRAC2 is available as both a commercial object library offering unlimited sample rates and phase locked multichannel support and as a free single channel, 44.1

Real-time Pitch Shifting on the iPhone

一世执手 提交于 2019-11-26 04:24:07
问题 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 of it being done. 回答1: you can use dirac-2 from dsp dimension for pitch shifting on the iphone. quote: - "DIRAC2 is available as both a commercial object