arthurberman / MidiOverBluetooth

Example for midi over bluetooth
1 stars 0 forks source link

Hi downloaded ZIP but on view controller get errors #1

Open marksmithnottingham opened 9 years ago

marksmithnottingham commented 9 years ago

CoreAudioKit/CABTMIDICentralViewController.h and CoreAudioKit/CABTMIDILocalPeripheralViewController.h and MIKMIDI.h not found. Sure it's something I am doing wrong. Would love to use and learn from this project. Thanks Marksmithnottingham@gmail.com

lshofmann commented 9 years ago

Hi Mark!

There's a good chance you might just be building or testing wrong. Unfortunately, Core Audio isn't compatible with the iOS simulator, and MidiOverBluetooth requires Bluetooth Low Energy, so you will have to test on a device with BLE (anything more recent than an iPad 2 or iPhone 4 I believe). Hope that helps! Let us know if it doesn't.

marksmithnottingham commented 9 years ago

Thanks v much for your reply. You were right I hadn't noted that I could only run it on a suitable device -it would be helpful if Xcode indicated that was the problem rather than saying it couldn't find the file!

Also I had to delete all the pods related stuff.

Then problem with MIKMIDI -added all the source files to the project

-then problem with AppKit.h not found -worked out no prefixheader.h -

import

ifndef __IPHONE_5_0

warning "This project uses features only available in iOS SDK 5.0 and

later."

endif

ifdef OBJC

import <UIKit/UIKit.h>

import <Foundation/Foundation.h>

endif

Xcode 6 doesn't make one by default. Create one and add it on Build phases

-then added libxml2.dylib

then turned Always Search User Paths

+added user header search path

$(inherited) /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include "$(SDK_DIR)"/usr/include/libxml2

Would it be worth putting up something like this that others can use without having to do all the above?

Working!

I have written an app which makes performing any piece of music much easier.

Hoping to release it on app store soon.

Logical next step is so that 2 or more people can play together communicating midi over bluetooth.

Want to look at possibility of multiple musicians using midi over internet as per

http://www.makeuseof.com/tag/how-to-jam-with-your-band-online/

Should be easier than these solutions as they all use audio data rather than the minuscule amount of data used with midi protocol.

I have been using Peter Goodlife's PGMidi

https://github.com/petegoodliffe/PGMidi

but will perhaps use MIKMIDI for the bluetooth only.

Thanks again

Mark

On Fri, May 1, 2015 at 7:20 PM, Laura Hofmann notifications@github.com wrote:

Hi Mark!

There's a good chance you might just be building or testing wrong. Unfortunately, Core Audio isn't compatible with the iOS simulator, and MidiOverBluetooth requires Bluetooth Low Energy, so you will have to test on a device with BLE (anything more recent than an iPad 2 or iPhone 4 I believe). Hope that helps! Let us know if it doesn't.

— Reply to this email directly or view it on GitHub https://github.com/Zigsfi/MidiOverBluetooth/issues/1#issuecomment-98195127 .

marksmithnottingham commented 9 years ago

I have put my version up at marksmithnottingham just so that you can see what I have done. I will take it down in a couple of days as I don't want it to compete with your excellent work. Mark

On Sat, May 2, 2015 at 11:12 AM, Mark Smith marksmithnottingham@gmail.com wrote:

Thanks v much for your reply. You were right I hadn't noted that I could only run it on a suitable device -it would be helpful if Xcode indicated that was the problem rather than saying it couldn't find the file!

Also I had to delete all the pods related stuff.

Then problem with MIKMIDI -added all the source files to the project

-then problem with AppKit.h not found -worked out no prefixheader.h -

import

ifndef __IPHONE_5_0

warning "This project uses features only available in iOS SDK 5.0 and

later."

endif

ifdef OBJC

import <UIKit/UIKit.h>

import <Foundation/Foundation.h>

endif

Xcode 6 doesn't make one by default. Create one and add it on Build phases

-then added libxml2.dylib

then turned Always Search User Paths

+added user header search path

$(inherited) /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include "$(SDK_DIR)"/usr/include/libxml2

Would it be worth putting up something like this that others can use without having to do all the above?

Working!

I have written an app which makes performing any piece of music much easier.

Hoping to release it on app store soon.

Logical next step is so that 2 or more people can play together communicating midi over bluetooth.

Want to look at possibility of multiple musicians using midi over internet as per

http://www.makeuseof.com/tag/how-to-jam-with-your-band-online/

Should be easier than these solutions as they all use audio data rather than the minuscule amount of data used with midi protocol.

I have been using Peter Goodlife's PGMidi

https://github.com/petegoodliffe/PGMidi

but will perhaps use MIKMIDI for the bluetooth only.

Thanks again

Mark

On Fri, May 1, 2015 at 7:20 PM, Laura Hofmann notifications@github.com wrote:

Hi Mark!

There's a good chance you might just be building or testing wrong. Unfortunately, Core Audio isn't compatible with the iOS simulator, and MidiOverBluetooth requires Bluetooth Low Energy, so you will have to test on a device with BLE (anything more recent than an iPad 2 or iPhone 4 I believe). Hope that helps! Let us know if it doesn't.

— Reply to this email directly or view it on GitHub https://github.com/Zigsfi/MidiOverBluetooth/issues/1#issuecomment-98195127 .

arthurberman commented 9 years ago

Hey Mark, Thanks for checking out our work. If you're interested in a more advanced application of the ideas here, check out our other project Pocket Orchestra. Zigs