Electronic flute comprising: - a central body, - a lower cover and an upper cover that enclose the central body, - a first printed circuit board disposed between the central body and the upper cover, - a second printed circuit board disposed between the lower cover and the central body, - a control unit connected to the first and to the second PCB (5, 6), and - a battery connected to the control unit; wherein said central body comprises: - a channel that extends longitudinally from an inlet to an outlet hole, - a planar upper wall wherein holes in communication with the channel are obtained, being suitable for being closed by the user's fingers to generate the desired notes, - shanks that protrude in upper position from the upper wall around the holes of the notes, - a planar lower wall wherein a lower hole in communication with the channel is obtained, it being suitable for being closed by the user's thumb, and - a lower shank that protrudes in lower position from the lower wall around the lower hole; said first PCB comprises through holes and proximity sensors disposed around said holes to detect when the hole is approached by the user's finger to close the hole; said first PCB being disposed on the upper wall of the central body, in such a way that the shanks of the central body penetrate the holes of the first PCB; said upper cover comprising holes wherein said shanks of the central body are engaged; said second PCB comprises a through hole and at least one proximity sensor disposed around said hole of the second PCB to detect when the hole of the second PCB is approached by the user's finger; said second PCB being disposed under the lower wall of the central body, in such a way that the lower shank of the central body penetrates the hole of the second PCB; and said lower cover comprising a hole wherein said lower shank of the central body is engaged. - a central body, - a lower cover and an upper cover that enclose the central body, - a first printed circuit board disposed between the central body and the upper cover, - a second printed circuit board disposed between the lower cover and the central body, - a control unit connected to the first and to the second PCB (5, 6), and - a battery connected to the control unit; - a channel that extends longitudinally from an inlet to an outlet hole, - a planar upper wall wherein holes in communication with the channel are obtained, being suitable for being closed by the user's fingers to generate the desired notes, - shanks that protrude in upper position from the upper wall around the holes of the notes, - a planar lower wall wherein a lower hole in communication with the channel is obtained, it being suitable for being closed by the user's thumb, and - a lower shank that protrudes in lower position from the lower wall around the lower hole; said first PCB comprises through holes and proximity sensors disposed around said holes to detect when the hole is approached by the user's finger to close the hole; said first PCB being disposed on the upper wall of the central body, in such a way that the shanks of the central body penetrate the holes of the first PCB; said upper cover comprising holes wherein said shanks of the central body are engaged; said second PCB comprises a through hole and at least one proximity sensor disposed around said hole of the second PCB to detect when the hole of the second PCB is approached by the user's finger; said second PCB being disposed under the lower wall of the central body, in such a way that the lower shank of the central body penetrates the hole of the second PCB; and said lower cover comprising a hole wherein said lower shank of the central body is engaged.