Dynamically change pitch of an audio playback

조회 수: 2 (최근 30일)
James
James 2011년 3월 1일
Hello, I am currently working on a real-time Simulink simulation of a high speed craft simulator for my final year University project. The simulator uses a joystick input to control the thottle of the craft. I wish to relate this throttle position to the pitch an engine audio output, but am so far having little joy.
What would be the best approach to altering the pitch of an audio file as it plays back? I have attempted to use a Phase/Frequency offset block, but cannot find how to dynamically alter the frequency offset parameter. I have also attempted using upsample and downsample blocks, but again ran into the problem whereby I could not change the up/downsample factor as the throttle position was changed, with the added inconvenience that a low-pass filter was needed.
Any help would be much appreciated!
  댓글 수: 3
Paulo Silva
Paulo Silva 2011년 3월 2일
Maybe messing around with the audio amplitude, instead of increasing the pitch you could increase the amplitude?
James
James 2011년 3월 2일
I don't follow... I'm not trying to change the amplitude/volume, I'm trying to change the pitch.

댓글을 달려면 로그인하십시오.

답변 (2개)

James
James 2011년 3월 2일
Realised that the frequency offset block has an external frequency offset option. Now I just need to find how to change a continuous signal to a discrete signal (as the frequency in doesn't work if the signal is continuous), and I'm there!

James
James 2011년 3월 3일
Actually this produces an audio signal with very poor quality - unsure of exactly why, but it doesn't seem the way forwards.

카테고리

Help CenterFile Exchange에서 Aerospace Applications에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by