Esempio n. 1
0
 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));
     }
 }
Esempio n. 2
0
		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);
			}
		}