Files
tlib/synth/note_event.h
Christopher Herb eaf72afdab updated namespaces
2023-07-08 05:51:31 +02:00

26 lines
419 B
C++

#pragma once
namespace trnr {
enum note_event_type {
note_on = 0,
note_off
};
class note_event {
public:
note_event_type type;
int midi_note;
float velocity;
int offset;
note_event(note_event_type type, int _midi_note, float _velocity, int _offset)
: type { type }
, midi_note { _midi_note }
, velocity { _velocity }
, offset { _offset }
{
}
};
}