MP3JOSS

Play a Melody using the tone() function - Arduino

Play a Melody using the tone() function - Arduino

Choose Download Format

Download MP3 Download MP4

Details

TitlePlay a Melody using the tone() function - Arduino
AuthorRobert Kostek
Duration0:05
File FormatMP3 / MP4
Original URL https://youtube.com/watch?v=jhxMA22TM5g
🎵 Support the artists — buy the original for the best audio quality! 🎵

Description

void song(int buzzerPin){

tone(buzzerPin, 932);
delay(840);
noTone(buzzerPin);

tone(buzzerPin, 466);
delay(850);
noTone(buzzerPin);

tone(buzzerPin, 415);
delay(58);
noTone(buzzerPin);

tone(buzzerPin, 311);
delay(63);
noTone(buzzerPin);

tone(buzzerPin, 311);
delay(53);
noTone(buzzerPin);

tone(buzzerPin, 415);
delay(49);
noTone(buzzerPin);

tone(buzzerPin, 311);
delay(49);
noTone(buzzerPin);

tone(buzzerPin, 415);
delay(44);
noTone(buzzerPin);

tone(buzzerPin, 349);
delay(451);
noTone(buzzerPin);

tone(buzzerPin, 311);
delay(466);
noTone(buzzerPin);

tone(buzzerPin, 311);
delay(53);
noTone(buzzerPin);

tone(buzzerPin, 349);
delay(53);
noTone(buzzerPin);

tone(buzzerPin, 311);
delay(49);
noTone(buzzerPin);

tone(buzzerPin, 349);
delay(49);
noTone(buzzerPin);

tone(buzzerPin, 349);
delay(53);
noTone(buzzerPin);

tone(buzzerPin, 311);
delay(63);
noTone(buzzerPin);

tone(buzzerPin, 349);
delay(49);
noTone(buzzerPin);

tone(buzzerPin, 311);
delay(68);
noTone(buzzerPin);

tone(buzzerPin, 440);
delay(78);
noTone(buzzerPin);

tone(buzzerPin, 466);
delay(86);
noTone(buzzerPin);

tone(buzzerPin, 523);
delay(78);
noTone(buzzerPin);

tone(buzzerPin, 554);
delay(93);
noTone(buzzerPin);

tone(buzzerPin, 622);
delay(82);
noTone(buzzerPin);

tone(buzzerPin, 698);
delay(93);
noTone(buzzerPin);

tone(buzzerPin, 784);
delay(78);
noTone(buzzerPin);

tone(buzzerPin, 880);
delay(116);
noTone(buzzerPin);

tone(buzzerPin, 932);
delay(1363);
noTone(buzzerPin);
}

void setup() {
// put your setup code here, to run once:
// call the song function with digital pin
song(11);
}

void loop() {
// put your main code here, to run repeatedly:
}

🎧 Just For You

🎵 Roar - Katy Perry 🎵 Birds Of A Feather - Billie Eilish 🎵 Uptown Funk - Mark Ronson Feat. Bruno Mars 🎵 Party Rock Anthem - Lmfao Feat. Lauren… 🎵 Tonight - Pinkpantheress 🎵 Survive - Lewis Capaldi 🎵 That's So True - Gracie Abrams 🎵 Giddy Up, Gorgeous - Tanner Adell 🎵 We Pray - Coldplay Feat. Little Simz… 🎵 Shake It To The Max (Fly) - Moliy, Silent… 🎵 Shake It To The Max (Fly) - Moliy, Silent… 🎵 The Door - Teddy Swims