필터 지우기
필터 지우기

Load .mat file within an audioPluginClass?

조회 수: 1 (최근 30일)
Angeliki Mourgela
Angeliki Mourgela 2020년 7월 7일
답변: jibrahim 2020년 7월 8일
Hi,
I wanted to ask if it would be possible to load and use a saved .mat variable within an audioPluginClass. More specifically, I have an array of 32 delay values which I want to import and add on each of the 32 channels of my filtered signal at the processing stage of the plugin, before summing. Is there an efficient way of doing this? Is it at all possible to begin with?
Thank you!
  댓글 수: 2
jibrahim
jibrahim 2020년 7월 7일
Angeliki, do these 32 delay values ever change? Is this something you want the plugin to do as it is running, or is it OK to hard-code those values when you generate the plugin? If it is the former, consider dsp.BinaryFileReader, which generates C code. If the latter, see coder.load:
https://www.mathworks.com/help/fixedpoint/ref/coder.load.html
Angeliki Mourgela
Angeliki Mourgela 2020년 7월 8일
Hi jibrahim,
Thank you very much for the response! The values do not change, they are precalculated and applied to the signal to compensate for filter delays. dsp.BinaryFileReader looks very promising, I will give it a go and see if it works!
Thank you again!
Angeliki

댓글을 달려면 로그인하십시오.

채택된 답변

jibrahim
jibrahim 2020년 7월 8일
Sorry Angeliki, my answer miht have been a little confusing. If the values are constant, I would consider coder.load. You would need dsp.BinaryFileReader only if you actuallt need to load the values from a file in the generated plugin

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Audio Plugin Creation and Hosting에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by