Wearable device capable of generating music from dance movements