coastline 0.0.4
Loading...
Searching...
No Matches
MusicChannel Struct Reference

The state of a channel of the music. More...

#include <audio.h>

Public Attributes

u64 portamentoTarget
s16 portamentoSpeed
s16 volumeSlide
u8 note
u8 instrument
u8 volume
u8 effect
u8 effectParameter
u8 rowInstrument
u8 arpeggio [4]
u8 arpeggioOn
u8 pad17

Detailed Description

The state of a channel of the music.

Member Data Documentation

◆ portamentoTarget

u64 MusicChannel::portamentoTarget

The mixer step a tone portamento slides to, or 0.

◆ portamentoSpeed

s16 MusicChannel::portamentoSpeed

The change of the period a tick, or 0.

◆ volumeSlide

s16 MusicChannel::volumeSlide

The change of the volume a tick, or 0.

◆ note

u8 MusicChannel::note

The note, from 0.

◆ instrument

u8 MusicChannel::instrument

The instrument playing, from 1, or 0 for none.

◆ volume

u8 MusicChannel::volume

The volume, from 0 to 64.

◆ effect

u8 MusicChannel::effect

The effect command of the last row.

◆ effectParameter

u8 MusicChannel::effectParameter

The parameter of the effect command of the last row.

◆ rowInstrument

u8 MusicChannel::rowInstrument

The instrument of the last row.

◆ arpeggio

u8 MusicChannel::arpeggio[4]

The three notes of an arpeggio, then the index of the note playing.

◆ arpeggioOn

u8 MusicChannel::arpeggioOn

Whether an arpeggio plays.

◆ pad17

u8 MusicChannel::pad17

Padding to the 8-byte alignment of the structure.


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