Unable to export recorded audio as wav file

2 ビュー (過去 30 日間)
Prem Harshe
Prem Harshe 2020 年 5 月 21 日
回答済み: Sai Sri Pathuri 2020 年 5 月 26 日
I got the code for virtual piano from https://www.mathworks.com/matlabcentral/fileexchange/21262-matlab-piano. but the output function is not working . please help.
% --- Executes on button press in OutToWav.
function OutToWav_Callback(hObject, eventdata, handles)
% hObject handle to OutToWav (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
SoundVector = handles.SoundVector;
SampleRate = handles.SampleRate;
if SoundVector == 0
return;
else
Filename = get(handles.Filename, 'String');
wavwrite(SoundVector, 1/SampleRate, 32, Filename);
end

回答 (1 件)

Sai Sri Pathuri
Sai Sri Pathuri 2020 年 5 月 26 日
Matlab Piano is one of the several submissions in MATLAB File Exchange on MATLAB Central which is a forum for our product users to interact, exchange information and knowledge, without MathWorks' involvement. Feel free to contact the author of this submission directly for specific questions about the implementation

カテゴリ

Help Center および File ExchangeJust for fun についてさらに検索

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by