/// <summary>TODO</summary> /// <param name="note"></param> /// <param name="tempo">whole-notes / second</param> public NoteInfo(INote note, int tempo) { var beatTime = 60.0F * 4.0F / tempo; _pitch = (Midi.Pitch)(note.PianoKey + 20); _velocity = (int)Math.Pow(10, note.Energy / 10) * 80; _duration = (float)(note.Duration * beatTime); _length = (float)(note.LengthSeconds * beatTime * 0.95); var lengthFactor = note.Style; }
public MidiProfileItem(Midi.Pitch _pitch, Keys _key) { key = _key; pitch = _pitch; }
public NoteOnSignal(Note note) { this.pitch = MidiHelper.Instance.GetMidiPitch(note); this.velocity = MidiHelper.Instance.GetMidiVelocity(note); }