I've created some basic musical notation software in C#. I have a "Sound" class that contains useful properties (Note, NoteType (Semibreve, quaver, etc.). I currently have functions that can use instances of these "Sound" classes to create frequency and duration which are used to play the note.
Now, I would just like to export this information as a midi file, how can I do this?