フィルターのクリア

how to change speed not pitch ?

6 ビュー (過去 30 日間)
sofiane benhamza
sofiane benhamza 2022 年 9 月 22 日
回答済み: Garv Agarwal 2023 年 6 月 19 日
Hello Communiy
firstly , i've read all the questions and answers that looks like my question
how can i change the speed of a signal keeping the pitch constant
my first methode fail
play( audioplayer( soundMatrice , f * 1.5 ); # this changes the pitch
so , i tried that
play( audioplayer( resample( soundMatrice, 3 , 2) , f ); # this also did
so can anyone help me please.
please don't comment with external links , i need an example.

回答 (1 件)

Garv Agarwal
Garv Agarwal 2023 年 6 月 19 日
Hi Sofiane,
As per my understanding, you have an audio signal, and you want to increase its speed without changing affecting its pitch.
You can do this using the stretchAudio function-
SignalOut = stretchAudio(SignalIn,Speed);
% Where Speed is the desired signal speed, for example for your case
% Speed=1.5
You can also try the below MATLAB example for this function -
openExample('audio/ApplyTimeScaleModificationExample')
For more details, you can refer to the following documentation on https://in.mathworks.com/help/audio/ref/stretchaudio.html

カテゴリ

Help Center および File ExchangeAudio and Video Data についてさらに検索

製品


リリース

R2016a

Community Treasure Hunt

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

Start Hunting!

Translated by