Are there any limitations when converting EEG CSV to WAV?

6 ビュー (過去 30 日間)
Cherie Chao
Cherie Chao 2020 年 12 月 16 日
コメント済み: Cherie Chao 2021 年 1 月 30 日
I tried to convert some EEG CSV files from CSV to WAV, that only has a sampling rate of 256, and most of them work, with some sort of pulse sounds.
I used the coding steps as mentioned here: https://www.mathworks.com/matlabcentral/answers/471007-how-to-convert-csv-file-into-audio-file
Then, I viewed or edited them with Adobe Audition software. However, it seems like sometimes it doesn't work with no sounds.. Could someone please help explain what may be the issue?
I attach here the two files that work and don't work.
Could someone also help explain what it means when I get to the audiowrite step, it has the following warnings, what does it mean?
Warning: Data clipped when writing file.
> In audiowrite>clipInputData (line 470)
In audiowrite (line 241)
Thank you for all your help!

採用された回答

Chaitanya Mallela
Chaitanya Mallela 2021 年 1 月 26 日
Data clipping happens when the audio data to write is not in the valid range depending on its type.
Refer the documentation link for audiowrite function to check the valid ranges for the audio data to write.
  1 件のコメント
Cherie Chao
Cherie Chao 2021 年 1 月 30 日
Thank you so much for replying! Yep, you're right! I also looked into other forum answers and found that the range has to be between +1 and -1, so then all the values had to be divided by the maximum value. Then the error message no longer showed!

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeEEG/MEG/ECoG についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by