A Music Generation Method by Hand-waving with Smartphone
Inspired by the Internet of Things allowing objects to speak,let the smartphone's built-in sensors sense the phone's status and gen-erate music melodies without the need for additional hardware devices.After experimenting with sensors embedded in smartphones,the main idea is to imagine a sensor based spatial coordinate system in front of a handheld smartphone,and swing the smartphone along the+x,-x,+y,++y,-y,-y,+z,and-z axes to obtain perceptual data.Based on the data,octave notes are mapped to different hand movements,driving the speaker to play the corresponding notes.Experiments on applications developed on the Android platform have shown that simple melodies such as"Little Stars"can be played based on the mapping of actions and notes,turning smartphones into musical instruments suitable for young people and other groups to engage in music enlightenment education based on their own interaction,achieving the goal of teaching through music.