private Message MakeNote(LibNoteMessage note, Tuple <IMusicGenerator, InfoObject, PrivateInfoObject> context) { if (note.Type == LibNoteMessage.MessageType.Off) { return(new NoteOffMessage(_outputDevice, context.Item2.Channel, note.Pitch, note.Velocity, note.Time)); } else { return(new NoteOnMessage(_outputDevice, context.Item2.Channel, note.Pitch, note.Velocity, note.Time)); } }
private Message MakeNote(LibNoteMessage note, Tuple<IMusicGenerator, InfoObject, PrivateInfoObject> context) { if (note.Type == LibNoteMessage.MessageType.Off) { return new NoteOffMessage(_outputDevice, context.Item2.Channel, note.Pitch, note.Velocity, note.Time); } else { return new NoteOnMessage(_outputDevice, context.Item2.Channel, note.Pitch, note.Velocity, note.Time); } }