You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
752 B
27 lines
752 B
// Author: Gockner, Simon
|
|
// Created: 2021-04-09
|
|
// Copyright(c) 2021 SimonG. All Rights Reserved.
|
|
|
|
using NAudio.Midi;
|
|
|
|
namespace Lib.Midi.Messages
|
|
{
|
|
public class NoteOnMessage : MidiMessage
|
|
{
|
|
public NoteOnMessage(NoteOnEvent noteOnEvent)
|
|
: base(noteOnEvent)
|
|
{
|
|
|
|
}
|
|
|
|
public NoteOnMessage(long absoluteTime, int channelNumber, int noteNumber, int velocity, int duration)
|
|
: base(new NoteOnEvent(absoluteTime, channelNumber, noteNumber, velocity, duration))
|
|
{
|
|
|
|
}
|
|
|
|
private NoteOnEvent NoteOnEvent => (NoteOnEvent) _midiEvent;
|
|
public int NoteNumber => NoteOnEvent.NoteNumber;
|
|
public int Velocity => NoteOnEvent.Velocity;
|
|
}
|
|
} |