Da Vinci Firmware 1
Firmware for the DaVinci-M rocket avionics board.
Loading...
Searching...
No Matches
Musical Note and Tempo Definitions
Collaboration diagram for Musical Note and Tempo Definitions:

Macros

#define REST   0
 A rest (silence) in a melody.
 
#define NOTE_Gb5   740
 Note G-flat, 5th octave.
 
#define NOTE_D6   1175
 Note D, 6th octave.
 
#define NOTE_Db6   1109
 Note D-flat, 6th octave.
 
#define NOTE_B5   988
 Note B, 5th octave.
 
#define NOTE_A5   880
 Note A, 5th octave.
 
#define TEMPO_BASE_MS   100
 The base duration for a note, in milliseconds.
 
#define DURATION_QUARTER   (TEMPO_BASE_MS)
 Duration of a quarter note.
 
#define DURATION_EIGHTH   (TEMPO_BASE_MS / 2)
 Duration of an eighth note.
 
#define DURATION_HALF   (TEMPO_BASE_MS * 2)
 Duration of a half note.
 

Detailed Description

Macro Definition Documentation

◆ DURATION_EIGHTH

#define DURATION_EIGHTH   (TEMPO_BASE_MS / 2)

Duration of an eighth note.

Definition at line 63 of file buzzer.h.

◆ DURATION_HALF

#define DURATION_HALF   (TEMPO_BASE_MS * 2)

Duration of a half note.

Definition at line 64 of file buzzer.h.

◆ DURATION_QUARTER

#define DURATION_QUARTER   (TEMPO_BASE_MS)

Duration of a quarter note.

Definition at line 62 of file buzzer.h.

◆ NOTE_A5

#define NOTE_A5   880

Note A, 5th octave.

Definition at line 59 of file buzzer.h.

◆ NOTE_B5

#define NOTE_B5   988

Note B, 5th octave.

Definition at line 58 of file buzzer.h.

◆ NOTE_D6

#define NOTE_D6   1175

Note D, 6th octave.

Definition at line 56 of file buzzer.h.

◆ NOTE_Db6

#define NOTE_Db6   1109

Note D-flat, 6th octave.

Definition at line 57 of file buzzer.h.

◆ NOTE_Gb5

#define NOTE_Gb5   740

Note G-flat, 5th octave.

Definition at line 55 of file buzzer.h.

◆ REST

#define REST   0

A rest (silence) in a melody.

Definition at line 54 of file buzzer.h.

◆ TEMPO_BASE_MS

#define TEMPO_BASE_MS   100

The base duration for a note, in milliseconds.

Definition at line 61 of file buzzer.h.