フィルターのクリア

music play used toolbox

2 ビュー (過去 30 日間)
reema
reema 2014 年 6 月 4 日
編集済み: Walter Roberson 2023 年 2 月 9 日
which toolbox is used in matlab for music play..me use matlab r2013a

回答 (1 件)

Supraja
Supraja 2023 年 2 月 9 日
MATLAB does not offer any separate toolbox to play music. This can be done without using any separate toolbox. In order to play audio data in MATLAB , you can instantiate an AUDIOPLAYER object with the data.
The line of code below will create the audioplayer object:
player=audioplayer (y,fs);
play(player);
y is the audio file which you want to play and fs is sampling frequency. You can also control the play/pause, control stop, start and timing through functions.
The detailed documentation of the AUDIOPLAYER is given here : Object for playing audio - MATLAB (mathworks.com).
  1 件のコメント
Walter Roberson
Walter Roberson 2023 年 2 月 9 日
編集済み: Walter Roberson 2023 年 2 月 9 日
audioplayer is fine when the entire sound is known at the time the audioplayer is constructed, but if you are constructing on the fly you need a different tool, such as an audio device writer object from Audio System Toolbox, https://www.mathworks.com/help/audio/ref/audiodevicewriter-system-object.html

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

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by