Sequence::Note Struct Reference

#include <Sequence.h>

Description

A discreet sound that plays for a specified amount of time.

Functions

 Note (AssetID sound_, float duration_=4.f, uint8_t volume_=128, uint8_t panning_=128)
 

Properties

float duration
 
AssetID sound
 
uint8_t volume
 
uint8_t panning
 

Constructor & Destructor Documentation

Note ( AssetID  sound_,
float  duration_ = 4.f,
uint8_t  volume_ = 128,
uint8_t  panning_ = 128 
)
inline

Convenience constructor.

Parameters
duration_Duration attribute in beats.
sound_AssetID refering to a loaded sound.
volume_Volume of the note. 255 is max volume while 0 is no ouptu sound.
panning_Panning of the note. 0 is output on only the left channel and 255 is only on the right channel.

Field Documentation

float duration

Duration of the sound in beats.

AssetID sound

AssetID of the sound to be played.

uint8_t volume

Volume of the note. 0 - 255: 0 is no sound while 255 is max volume.

uint8_t panning

Panning of the note.


The documentation for this struct was generated from the following file:
  • /home/jc/git/Dynacoe/DynacoeSrc/includes/Dynacoe/Sequence.h