JG Electronics

MIDI Tool

MIDI Tool is intended as a Cocoa example and a starting point for some basic MIDI functions.

It’s based on Apple’s example code Play Soft MIDI and MIDI Echo which I used as a starting point.

I copied the code into Xcode4.0 and I replaced some deprecated functions / methods.

After writing the code I had to think about how to test the application with MIDI.

Back in 1995 I did a MIDI project and for that project I build a MIDI-analyzer which was still in my workshop. With the MIDI analyzer I tested the MIDI Tool application.

MIDI Tool receives and sends MIDI data and plays MIDI notes as well.

MIDI Tool is full Cocoa and that means all classes end on .m.

The MVC design pattern is followed in MIDI Tool, there is one Controller class and two Model classes. In the MIDI_ToolAppDelegate class I wrote as an example a method that quits the application when the application window is closed.

The MIDI Tool project is not completed.


The application icon is from Vincent Garnier.

http://benjigarner.deviantart.com/art/Fruity-Apples-80805804


If you have questions about programming topics please ask these questions on a developer mailing list from Apple. There you find people with far more knowledge then I.

For questions concerning Core Audio goto: coreaudio-api@lists.apple.com

For books about the foundation of Cocoa Programming visit: www.bignerdranch.com

Other useful books:

C++ From the Beginning, author Jan Skansholm.

Cocoa Programming Developer’s Handbook, author David Chisnall.

Core Audio, authors Kevin Avila and Chris Adamson.


If you have remarks or if you find bugs please send me an email: jgelectronics@icloud.com


Click on the picture to download the application and the source code.


Happy Coding!


John

© JG Electronics