B4R Tutorial Play The Piano - Create Arduino and B4R code.

With this tool you can create Arduino and B4R code to be played in a passive Buzzer. You just play the song in the piano and the code is created automatically. When you play the last note leave it for 2 seconds in order for the last note to be registered and then copy the code. First and last note are registered with a duration of 500ms. Change these two durations according to your needs.


 

Attachments

  • PianoCode.zip
    2 KB · Views: 32
Last edited:

hatzisn

Expert
Licensed User
Longtime User
Fixed a bug where the last note was not being registered. Now it is. When you play the last note leave it for 2 seconds in order to be registered and then copy the code. Please redownload.
 

hatzisn

Expert
Licensed User
Longtime User
Fixed a bug. rESP8266MusicBox.b4xlib has built in delay when the sound plays so no need for the "Delay(duration)" in B4R code. Please re-download.
 
Top