LMMS
Loading...
Searching...
No Matches
Dump Class Reference

#include <Dump.h>

Public Member Functions

 Dump ()
 ~Dump ()
void startnow ()
void inctick ()
void dumpnote (char chan, char note, char vel)
void dumpcontroller (char chan, unsigned int type, int par)

Private Attributes

FILE * file
int tick
int k
int keyspressed

Detailed Description

Object used to dump the notes into a text file

Todo

see if this object should have knowledge about the file that it will write to

upgrade from stdio to iostream

Constructor & Destructor Documentation

◆ Dump()

Dump::Dump ( )

Constructor

◆ ~Dump()

Dump::~Dump ( )

Destructor Closes the dumpfile

Member Function Documentation

◆ dumpcontroller()

void Dump::dumpcontroller ( char chan,
unsigned int type,
int par )

Dump the Controller

Parameters
chanThe channel of the Controller
typeThe type
parThe value of the controller
Todo
figure out what type is exactly meaning

◆ dumpnote()

void Dump::dumpnote ( char chan,
char note,
char vel )

Dump Note to dumpfile

Parameters
chanThe channel of the note
noteThe note
velThe velocity of the note

◆ inctick()

void Dump::inctick ( )

Tick the timestamp

◆ startnow()

void Dump::startnow ( )

Open dumpfile and prepare it for dumps

Todo
see if this fits better in the constructor

Member Data Documentation

◆ file

FILE* Dump::file
private

◆ k

int Dump::k
private

◆ keyspressed

int Dump::keyspressed
private

◆ tick

int Dump::tick
private

The documentation for this class was generated from the following files: