brickOS Kernel Developer v0.9.0
note_t Struct Reference

the note structure describing a single note. More...

#include <dsound.h>

Collaboration diagram for note_t:

Public Attributes

unsigned char pitch
 note pitch, 0 ^= A_0 (~55 Hz)
 
unsigned char length
 note length in 1/16ths
 

Detailed Description

the note structure describing a single note.

Note
a song to play is made up of an array of these structures which is then handed to dsound_play() [in C] or Sound::play() [in C++].

The last entry in the list should have the {pitch} value set to PITCH_END

Rests should be specified by placing PITCH_PAUSE in the {pitch} value. The duration of the rest is placed in {length}.

Definition at line 56 of file dsound.h.

Member Data Documentation

◆ length

unsigned char note_t::length

note length in 1/16ths

Definition at line 58 of file dsound.h.

◆ pitch

unsigned char note_t::pitch

note pitch, 0 ^= A_0 (~55 Hz)

Definition at line 57 of file dsound.h.


The documentation for this struct was generated from the following file: