ButtonDownFcn function question on guitar tuner
Show older comments
Hi there! I am trying to figure out what this part of the code does.( Program link http://www.mathworks.com/matlabcentral/fileexchange/26367-guitar-tuner/content/GuitarTuner.m )
function figure1_ButtonDownFcn(hObject, eventdata, handles) % hObject handle to figure1 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)
The comment says "Executes on mouse press over figure background." I need more information on this one though because all you have to do when the program runs is to click on the "rec" button and play the note you want , so that the tuner shows you whether the note you hit is correct or not. Does this part of code appear when you do something specific when setting up stuff on GUI??
Accepted Answer
More Answers (2)
Joakim Magnusson
on 13 Aug 2014
1 vote
at function playbutton1_Callback(hObject, eventdata, handles) it says set(hObject,'CData',PlayEnabled);
What is CData and how can it become PlayEnabled?? What other parameters can CData take??
I belive CData has something to do with the buttons appaerance and i think PlayEnabled is just what the author named the appearance to.
1 Comment
John Bitzios
on 13 Aug 2014
John Bitzios
on 12 Aug 2014
0 votes
Categories
Find more on Naming Conventions in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!