필터 지우기
필터 지우기

AudioPlugin communication between code and GUI

조회 수: 2 (최근 30일)
Nuno Coelho
Nuno Coelho 2020년 12월 7일
댓글: Nuno Coelho 2020년 12월 9일
Hi!
When I change a value on VST GUI it calls the correspondent SET function and changes the variable value.
It is possible to make the opposite? I want to change a GUI value using a code change.
Exemple: when change variable value A change in code variable value B. Then a want to refresh the GUI value B. Normally we call SET function for that variable but that doesn't work.
Thanks
  댓글 수: 2
jibrahim
jibrahim 2020년 12월 9일
Hi Nuno,
We might be able to help if you include sample code (an audioPlugin) with some detail about what is not working in a DAW. Does this work in audioTestBench and not in a DAW?
Nuno Coelho
Nuno Coelho 2020년 12월 9일
On audioTestBench it works since I move the mouse. The value is updated.
At DAW nothing happends.
EXAMPLE:
this function round linkwitz riley filter order to even (round up).
So, when variable LPF is Linkwitz-Riley variable ORD_LPF is updated. I want to update it not just on code but on GUI.
I can't find a method to access to audio interface.
function set.LPF(obj,val)
obj.LPF = val;
if strcmp(val,'Linkwitz-Riley') == true
if obj.ORD_LPF <=1
obj.ORD_LPF = 2;
else
d = floor(obj.ORD_LPF);
d(d <= 1) = 2;
e = mod(d,2)+d;
obj.ORD_LPF = e;
end
end
needToDesignFilters(obj);
end
Thanks

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

답변 (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