MidiEvent constructor

MidiEvent({
  1. required MidiEventType type,
  2. int? channel,
  3. int? note,
  4. int? velocity,
  5. int? value1,
  6. int? value2,
  7. List<int>? data,
  8. DateTime? timestamp,
})

Implementation

MidiEvent({
  required this.type,
  this.channel,
  this.note,
  this.velocity,
  this.value1,
  this.value2,
  this.data,
  DateTime? timestamp,
}) : timestamp = timestamp ?? DateTime.now();