Copy and paste. not complete but can be run on the finch and make sounds.
use Libraries.Robots.BirdBrain.Finch
// This code is not complete. It will run on the Finch and do a rought version of the song.
// There are some problems with the code or the documentation. I will do the need data collection.
Finch finch
number d=0.35
number speed=3
number h = d*2
number w=d*4
number q = d
number e=d/2
number s =d/4
//START Motors
// A
repeat 2 times
finch:PlayNote(55, e)
finch:Pause(0.10)
finch:PlayNote(60, q)
finch:Pause(d/2)
finch:PlayNote(60, e)
//finch:Pause(d*4)
finch:PlayNote(58, d)
finch:Pause(d)
finch:PlayNote(62, d)
finch:Pause(d)
finch:PlayNote(58, d)
finch:Pause(d)
finch:PlayNote(60, d)
finch:Pause(d)
finch:PlayNote(55, d)
finch:Pause(d*3)
end
finch:Pause(d*3)
// B
finch:PlayNote(69,8)
finch:Pause(d)
finch:PlayNote(71,8)
finch:Pause(d)
finch:PlayNote(72,8)
finch:Pause(d)
finch:PlayNote(75,15)
finch:Pause(d)
finch:PlayNote(60,8)
finch:Pause(d)
finch:Disconnect()