An electronic device comprising: a display; at least one of a speaker and a sound interface; a processor configured to electrically connect to the display, the speaker, and the sound interface; and a memory comprising modeling information and configured to electrically connect to the processor, wherein the memory stores instructions for, when executed, causing the processor to: obtain a gesture of a user of the electronic device through at least one sensor configured to obtain touch state information and operatively connected with the electronic device, output sound data corresponding to at least one musical instrument through an output device operatively connected with the electronic device, if the gesture is a gesture corresponding to at least one musical instrument, and not output the sound data, if the gesture is not the gesture corresponding to the at least one musical instrument, CHARACTERISED IN THAT the memory stores further instructions for, when executed, causing the processor to: compare the touch state information sensed by the sensor with the modeling information; and select an input tool corresponding to the compared result. a display; at least one of a speaker and a sound interface; a processor configured to electrically connect to the display, the speaker, and the sound interface; and a memory comprising modeling information and configured to electrically connect to the processor, wherein the memory stores instructions for, when executed, causing the processor to: obtain a gesture of a user of the electronic device through at least one sensor configured to obtain touch state information and operatively connected with the electronic device, output sound data corresponding to at least one musical instrument through an output device operatively connected with the electronic device, if the gesture is a gesture corresponding to at least one musical instrument, and not output the sound data, if the gesture is not the gesture corresponding to the at least one musical instrument, CHARACTERISED IN THAT the memory stores further instructions for, when executed, causing the processor to: compare the touch state information sensed by the sensor with the modeling information; and select an input tool corresponding to the compared result. obtain a gesture of a user of the electronic device through at least one sensor configured to obtain touch state information and operatively connected with the electronic device, output sound data corresponding to at least one musical instrument through an output device operatively connected with the electronic device, if the gesture is a gesture corresponding to at least one musical instrument, and not output the sound data, if the gesture is not the gesture corresponding to the at least one musical instrument, CHARACTERISED IN THAT the memory stores further instructions for, when executed, causing the processor to: compare the touch state information sensed by the sensor with the modeling information; and select an input tool corresponding to the compared result. compare the touch state information sensed by the sensor with the modeling information; and select an input tool corresponding to the compared result. <EOS>