דלג לתוכן

Lesson 20: Melody player

English

A song in a list

  • A song is a list of notes. Each note has a pitch (how high) and a length (how long).
  • An array keeps a list of numbers under one name, so a for loop can play them one after another.
  • With two arrays, one for pitch and one for length, the Arduino can play any tune.

Words for this lesson

Word Meaning
melody a tune: notes one after another
pitch how high or low a note is, in Hz
array a list of values with one name, like notes
index the position in an array; the first one is 0
scale notes going up step by step: C D E F G …

היכנס או צור חשבון

IGCSE, A-Level & AP