Main Page | Data Structures | File List | Data Fields | Globals | Related Pages

note_t Struct Reference

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

#include <dsound.h>


Data Fields

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.


Field Documentation

unsigned char note_t::length
 

note length in 1/16ths

Definition at line 58 of file dsound.h.

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:
brickOS is released under the Mozilla Public License.
Original code copyright 1998-2002 by the authors.

Generated on Mon Feb 16 21:01:56 2004 for brickOS C by doxygen 1.3.5