How do i mix two audio signals in GUI and Update the UI?

2 ビュー (過去 30 日間)
Rezaul Reza
Rezaul Reza 2021 年 12 月 30 日
コメント済み: Cris LaPierre 2021 年 12 月 31 日
This is how my GUI looks. What I would like to do is, mix and save the two audio together by pressing the button Mix. I have shared my app if you can please have a look. I know how to join them with audios from same directory but with the GUI i am having trouble.

回答 (1 件)

Cris LaPierre
Cris LaPierre 2021 年 12 月 30 日
編集済み: Cris LaPierre 2021 年 12 月 30 日
See this post on how to mix audio signals:
The challenge here is guaranteeing that the signals are both the same length, or correctly handling them if they are not.
Save using audiowrite.
  5 件のコメント
Rezaul Reza
Rezaul Reza 2021 年 12 月 31 日
that's how i am adding music. But the problem is i want them to play at the same time. Currently, once the first trackj finishes then the 2nd one starts(in the merged audio file)
Cris LaPierre
Cris LaPierre 2021 年 12 月 31 日
Yup, because that is what you have coded.
joined = [y;y2];
That code appends y2 to the bottom of y. Again, see this post on how to mix audio signals:

サインインしてコメントする。

カテゴリ

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

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by