Hydrogen - Linux Drum Machine |
#include <Sample.h>
Inheritance diagram for Sample:
Public Member Functions | |
virtual string | getClassName () |
Return the class name. | |
Sample (uint nFrames, string filename) | |
Constructor. | |
~Sample () | |
Destructor. | |
void | setData_L (float *left) |
Imposta i dati del sample audio. | |
void | setData_R (float *right) |
Imposta i dati del sample audio. | |
float * | getData_L () |
Restituisce i dati del sample audio (Canale sinistro). | |
float * | getData_R () |
Restituisce i dati del sample audio (Canale destro). | |
uint | getNFrames () |
Restituisce il numero di samples. | |
uint | getNBytes () |
Restituisce il numero di bytes del sample audio ( due canali ). | |
string | getFilename () |
Restituisce il filename dell'AudioSample. | |
void | setFilename (string filename) |
void | save (string filename) |
Static Public Member Functions | |
Sample * | load (string filename) |
Load a sample from disk. | |
Private Attributes | |
string | filename |
name of the audio sample. | |
uint | nFrames |
Total number of frames int this sample. | |
float * | dataL |
Left channel data. | |
float * | dataR |
Right channel data. |
|
|