3. 목적
이 프로그램은 아이들의 음악적 관심을 높여주기 위한 교
육용 프로그램입니다.
ㅁ모양의 버튼을 누르면 소리가 나오므로써 아이들의 호
기심을 유발하고, 더 나아가 상상력을 키워주는 원동력이
될 것이라고 생각합니다.
4. 런치 패드란?
DJ들이 비트 음악 속의 노래에 지루함을 없에고자 자신들
만의 창의적인 음을 추가시키기 위해 만든 것입니다.
5. OpeningFcn
function pad2_OpeningFcn(hObject, eventdata, handles, varargin)
% This function has no output args, see OutputFcn.
% hObject handle to figure
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% varargin command line arguments to pad2 (see VARARGIN)
14. button_callback
function one_Callback(hObject, eventdata, handles)
if (get(handles.club, 'value' )==1)
play(handles.pcl1);
elseif (get(handles.drum, 'value' )==1)
play(handles.pdr1);
elseif (get(handles.classic, 'value' )==1)
play(handles.pcll1);
end
function two_Callback(hObject, eventdata, handles)
if (get(handles.club, 'value' )==1)
play(handles.pcl2);
elseif (get(handles.drum, 'value' )==1)
play(handles.pdr2);
elseif (get(handles.classic, 'value' )==1)
play(handles.pcll2);
end
15. WindowKeyPressFcn
function figure1_WindowKeyPressFcn(hObject, eventdata, handles)
switch (eventdata.Key)
case '1'
set(handles.club,'value',1);
case '3'
set(handles.drum,'value',1);
case '2'
set(handles.classic,'value',1);
case 'q'
if (get(handles.club, 'value' )==1)
play(handles.pcl1);
elseif (get(handles.drum, 'value' )==1)
play(handles.pdr1);
elseif (get(handles.classic, 'value' )==1)
play(handles.pcll1);
end