
toneMelody.ino🌳
glitch swing, stringstep, hard trap, german rap,
June 23rd, 2024suno
Lyrics
/*
Melody
Plays a melody
circuit:
- 8 ohm speaker on digital pin 8
created 21 Jan 2010
modified 30 Aug 2011
by Tom Igoe
This example code is in the public domain.
https://www.arduino.cc/en/Tutorial/BuiltInExamples/toneMelody
*/
#include "pitches.h"
// notes in the melody:
int melody[] = {
NOTE_C4, NOTE_G3, NOTE_G3, NOTE_A3, NOTE_G3, 0, NOTE_B3, NOTE_C4
};
// note durations: 4 = quarter note, 8 = eighth note, etc.:
int noteDurations[] = {
4, 8, 8, 4, 4, 4, 4, 4
};
void setup() {
// iterate over the notes of the melody:
for (int thisNote = 0; thisNote < 8; thisNote++) {
// to calculate the note duration, take one second divided by the note type.
//e.g. quarter note = 1000 / 4, eighth note = 1000/8, etc.
int noteDuration = 1000 / noteDurations[thisNote];
tone(8, melody[thisNote], noteDuration);
// to distinguish the notes, set a minimum time between them.
// the note's duration + 30% seems to work well:
int pauseBetweenNotes = noteDuration * 1.30;
delay(pauseBetweenNotes);
// stop the tone playing:
noTone(8);
}
}
void loop() {
// no need to repeat the melody.
}
[end]
Recommended

여름밤
여자 아이돌 신나는 팝 이색적인 음 매혹되는 리듬 크레이지

Песня Фунтика Хорошо бродить по свету
панк-рок, Рок, хард-рок

瞬きも忘れて
anthemic rock

Lamborghini Shoes
Dark Math Shoegaze Eerie Vaporwave Prog Nostalgic 80's Synth Phonk Sad Workout Drill Brutal Psychedelic Doom Drill Wave

Deixa meu pai te instruir
reggae hawai , voice brazil man, tom sol maior e modulação de ton

Dançando na Chuva
dançante pop alegre

CHICKEN NUGGET RIZZ
metal, aggressive, guitar, rock
Illuminated Mysteries
ambient,new age,calm,mellow,repetitive,nocturnal,warm,peaceful,spiritual,meditative,atmospheric,ethereal,soothing,soft

Pot O’ Gold
Hard Rock

Dad's Day Song
pop acoustic

18 de Março
Pop

Redhead Neod
deep vocal growls powerful hard rock

Street Lights
edm aggressive phonk

Chupacabra Hustler
hypnotic groovy funk

Love Myself More
melodic dance pop lofi minimal

《Bitcoin》
powerful hip hop

역사의 흐름
dreamy, pop

ヒーローの光
日本のポップ、アップビート、エレクトロニック

Simple Melody
lolipop , anime Aria,sad song, despair, melody ,loli Aria