Little star <3 <3 <3

Twinkle_Twinkle_Little_Star

/*
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.

http://arduino.cc/en/Tutorial/Tone

*/
#include “pitches.h”

// notes in the melody:
int melody[] = {
NOTE_C5,NOTE_C5,NOTE_G5,NOTE_G5,NOTE_A5,NOTE_A5,NOTE_G5,NOTE_F5,NOTE_F5,NOTE_E5,NOTE_E5,NOTE_D5,NOTE_D5,NOTE_C5,
NOTE_G5,NOTE_G5,NOTE_F5,NOTE_F5,NOTE_E5,NOTE_E5,NOTE_D5,
NOTE_G5,NOTE_G5,NOTE_F5,NOTE_F5,NOTE_E5,NOTE_E5,NOTE_D5,
NOTE_C5,NOTE_C5,NOTE_G5,NOTE_G5,NOTE_A5,NOTE_A5,NOTE_G5,NOTE_F5,NOTE_F5,NOTE_E5,NOTE_E5,NOTE_D5,NOTE_D5,NOTE_C5};

// note durations: 4 = quarter note, 8 = eighth note, etc.:
int noteDurations[] = {
4, 4, 4,4,4,4,2,4,4,4,4,4,4,2,4,4,4,4,4,4,2,4,4,4,4,4,4,2,4, 4, 4,4,4,4,2,4,4,4,4,4,4,4
};

void setup() {
// iterate over the notes of the melody:
for (int thisNote = 0; thisNote <44; 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(11, 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(11);
}
}

void loop() {
// no need to repeat the melody.
}

This entry was posted in Uncategorized on by .

About yerangchoi

Hi, I am Yerang. I am originally from South Korea but lived the past 4 years in India before moving to New York. Coding only exists for tumblr to me and I know very little about it. To be honesty, I was not excited for spending hours and hours in front of computer like a nerd, but I am now have excitement for creating fantastic things in this class.

115 thoughts on “Little star <3 <3 <3

  1. instagram takipçi satın al

    I blog quite often and I seriously thank you for your content.
    This article has truly peaked my interest. I will take a note of your site and
    keep checking for new details about once a week. I subscribed to your RSS feed as
    well.

  2. beğeni hilesi

    Do you mind if I quote a couple of your posts as long
    as I provide credit and sources back to your webpage? My blog is in the exact same niche as yours
    and my users would truly benefit from some of the information you provide here.
    Please let me know if this okay with you.
    Cheers!

  3. instagram takipçi satın al

    Pretty section of content. I just stumbled upon your website and in accession capital to assert that I get actually enjoyed account your blog posts.
    Any way I’ll be subscribing to your feeds and even I achievement you access consistently rapidly.

  4. Takipçi Satın Al

    Kalıcı İnstagram Takipçi Satın Al : Kazanmaya Başla
    Takipçilerinizin kalıcı olmasını istiyorsanız, öncelikle
    İnstagram takipçi satın al sayfamızda yer alan gerçek
    takipçi paketlerimizden birini tercih etmelisiniz.
    Türk takipçilerin yer aldığı birbirinden ekonomik paketlerimiz ile siz de hızla büyüyen bir profile sahip olabilirsiniz.

    Düzenli İçerik Yüklediğinizden Emin Olun
    Bir sosyal medya platformunda fenomen olmak istiyorsanız,
    düzenli ve kaliteli içerik üretmelisiniz. Hedef kitlenizin yaş ve profiline uygun içerikler üretmek ve bunu düzenli şekilde yapmak
    sizin organik olarak yeni takipçiler kazanmanızı sağlar.

    Satın aldığınız takipçilerin de profilinizi ömür boyu takip etmesini istiyorsanız gönderilerinizin takipçilerinize uygun olduğundan emin olmalısınız.

    Takipçi Satın Al sende kazan

  5. joker123

    Hello, i think that i saw you visited my website so i
    came to “return the favor”.I am trying to find things to improve my web site!I suppose its ok to use a few of your ideas!!

  6. takip2018

    Wonderful items from you, man. I have remember your stuff prior to and you’re just too
    great. I actually like what you have obtained here, really like what you are stating and the
    way by which you assert it. You make it enjoyable and
    you still take care of to stay it wise. I cant wait to learn far more from you.

    This is really a tremendous web site.

  7. instagram takipçi satın al

    Global Gerçek İnstagram Takipçi Satın Al
    Hem gerçek hem de kalıcı sosyal medya takipçisine ulaşmak oldukça zordur.

    Bu sayı 10 bin olduğunda çok daha zordur.

    Takip2018 uzman ekip üyeleri tarafından sağlanan gerçek ve kalıcı takipçiler ile sosyal
    medya hesabınız kısa sürede Keşfet sayfasında yerini alabilir.

    Siz de İnstagram takipçi satın al kategorisinde yer alan 10
    bin yurt içi ve yurt dışı takipçinin yer aldığı paketimizi tercih edebilirsiniz.

    Diğer tüm paketleri görebilmek adına instagram takipçi satın al linkimiz ;
    instagram takipçi satın al

  8. takipçi satın al

    Hi there, just became alert to your blog through Google, and found that it is truly informative.
    I’m going to watch out for brussels. I will appreciate if you continue this
    in future. A lot of people will be benefited from your writing.
    Cheers!

  9. takipçi hilesi

    Thank you a lot for sharing this with all folks you actually know what you are speaking about!

    Bookmarked. Please also discuss with my website =).

    We can have a hyperlink exchange arrangement between us

  10. Leke Kremi

    Thanks for the marvelous posting! I genuinely enjoyed reading it, you’re
    a great author.I will always bookmark your blog and may
    come back in the foreseeable future. I want to
    encourage yourself to continue your great posts, have
    a nice day!

  11. instagram beğeni hilesi

    When I initially left a comment I seem to have clicked the -Notify me when new comments
    are added- checkbox and from now on each time a comment is added I get
    4 emails with the exact same comment. Is there an easy
    method you are able to remove me from that service?
    Cheers!

  12. takipçi satın alma

    Write more, thats all I have to say. Literally, it seems as though
    you relied on the video to make your point.

    You clearly know what youre talking about, why throw away your intelligence on just posting videos to your weblog when you could be giving us something enlightening to read?

  13. leke kremi

    You really make it seem so easy together with your presentation but I
    to find this topic to be actually something that I believe I’d never understand.
    It sort of feels too complex and extremely extensive for me.
    I’m taking a look ahead to your subsequent submit, I’ll try to get the dangle of
    it!

  14. https://focus.ua/ukraine/492760-allo-ceny-na-iphone-13-v-ukraine-i-itogi-prezentacii-novinok-ot-apple

    Вечерком 14 сентября свершилась обычная осенняя презентация от фирмы Эпл,
    где были представлены ожидаемые свежие релизы: серия смартфонов
    iPhone 13, iPad, iPad mini и Apple Watch Series 7.
    1. Дизайн телефонов потерпел минимальных нововведений: самое заметное зрительное отличие – уменьшенный разрез в дисплее на передней половине гаджета благодаря смещения разговорного
    динамика ближе к окончанию устройства.

  15. en güvenilir takipçi satın alma

    I don’t know if it’s just me or if perhaps everybody else experiencing issues with your
    blog. It seems like some of the written text on your content are running
    off the screen. Can somebody else please comment and let me know
    if this is happening to them too? This could be a problem with my web browser because I’ve had this happen before.

    Thanks

  16. Türk takipçi

    Just want to say your article is as astounding. The clarity to your
    publish is simply great and that i could think you’re a professional on this subject.
    Well with your permission let me to grasp your feed to keep up to date with
    coming near near post. Thanks 1,000,000 and please carry on the rewarding work.

Leave a Reply

Your email address will not be published.