Note record used when constructing synthetic events for sonification. More...

#include <NoteData.h>

Public Member Functions

 NoteData (sv_frame_t _start, sv_frame_t _dur, int _mp, int _vel)
 
float getFrequency () const
 

Public Attributes

sv_frame_t start
 
sv_frame_t duration
 
int midiPitch
 
float frequency
 
bool isMidiPitchQuantized
 
int velocity
 
int channel
 

Detailed Description

Note record used when constructing synthetic events for sonification.

Definition at line 25 of file NoteData.h.

Constructor & Destructor Documentation

NoteData::NoteData ( sv_frame_t  _start,
sv_frame_t  _dur,
int  _mp,
int  _vel 
)
inline

Definition at line 27 of file NoteData.h.

Member Function Documentation

float NoteData::getFrequency ( ) const
inline

Definition at line 39 of file NoteData.h.

References frequency, and Pitch::getFrequencyForPitch().

Member Data Documentation

sv_frame_t NoteData::start

Definition at line 29 of file NoteData.h.

sv_frame_t NoteData::duration

Definition at line 32 of file NoteData.h.

int NoteData::midiPitch

Definition at line 33 of file NoteData.h.

float NoteData::frequency

Definition at line 34 of file NoteData.h.

Referenced by getFrequency(), and Event::toNoteData().

bool NoteData::isMidiPitchQuantized

Definition at line 35 of file NoteData.h.

Referenced by Event::toNoteData().

int NoteData::velocity

Definition at line 36 of file NoteData.h.

int NoteData::channel

Definition at line 37 of file NoteData.h.


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