
#include "MidiEvent.h"

MidiEvent::MidiEvent(){
  event_type = 0;
  channel = 0;
  note = 0;
  velocity = 0;
}

MidiEvent::MidiEvent(int event_type, int channel, int note, int velocity){

  this->event_type = event_type;
  this->channel = channel;
  this->note = note;
  this->velocity = velocity;
}

void MidiEvent::setData(int event_type, int channel, int note, int velocity){
  
  this->event_type = event_type;
  this->channel = channel;
  this->note = note;
  this->velocity = velocity;
  
}

void MidiEvent::printData(){
  
  cout << "event= " << event_type << 
    " channel= " << channel << 
    " note= " << note << 
    " velocity= " << velocity << endl;

}

