tag:blogger.com,1999:blog-7481875957453356650.post8208384197427190275..comments2024-03-27T19:11:05.510-07:00Comments on Pete Goodliffe: Sending MIDI through CoreMIDIPete Goodliffehttp://www.blogger.com/profile/11084090457826022937noreply@blogger.comBlogger26125tag:blogger.com,1999:blog-7481875957453356650.post-8774024933164628642014-03-09T05:11:30.965-07:002014-03-09T05:11:30.965-07:00I wondered if the iOS simulator can also detect mi...I wondered if the iOS simulator can also detect midi sources which are connected to my laptop. I don't think so, because nothing is detected when I run PGMidi.<br /><br />I am actually a musician who's working on an iOS app. During a preparing phase (I'm creating songs) I'm running Ableton Live together with AU Lab. I worked out how to send midi from Live to AU Lab.<br /><br />Now I would like to recreate the AUGraph that I have in AU Lab in Xcode and send the midi from Live to the iOS simulator to work on the next phase of the song. The purpose is that I have controls in the iOS app that change parameters in the AUGraph. It would be great if I still can run this together with Ableton LiveHilkehttps://www.blogger.com/profile/16904512850752647520noreply@blogger.comtag:blogger.com,1999:blog-7481875957453356650.post-84456956845677271342013-10-23T08:52:38.533-07:002013-10-23T08:52:38.533-07:00Hi,
I got a warinigs like Dario here…
"Varia...Hi,<br /><br />I got a warinigs like Dario here…<br />"Variable length arrays are a C99 feature"<br /><br />Have Xcode 4.6<br />Have tested every combination of language standard in the "build settings"…<br /><br />Has anyone solved this?<br /><br />thax<br /><br />Byte packetBuffer[size+100]; is the problem in…<br /><br /><br />- (void) sendBytes:(const UInt8*)bytes size:(UInt32)size<br />{<br /> NSLog(@"%s(%u bytes to core MIDI)", __func__, unsigned(size));<br /> assert(size < 65536);<br /> Byte packetBuffer[size+100];<br /> MIDIPacketList *packetList = (MIDIPacketList*)packetBuffer;<br /> MIDIPacket *packet = MIDIPacketListInit(packetList);<br /> packet = MIDIPacketListAdd(packetList, sizeof(packetBuffer), packet, 0, size, bytes);<br /><br /> [self sendPacketList:packetList];<br />}Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-7481875957453356650.post-69490070256182105372012-07-30T05:04:44.048-07:002012-07-30T05:04:44.048-07:00Hi Pete
So many Core MIDI Apps are available. I w...Hi Pete<br /><br />So many Core MIDI Apps are available. I want to design a 30 pins connector(hardware) with MIDI-IN/MIDI-OUT/THRU port to communicate MIDI Message with external MIDI controller. What basic components should have in PCB circuitry. Any input? Thanks.logtech1946https://www.blogger.com/profile/11988918223640736935noreply@blogger.comtag:blogger.com,1999:blog-7481875957453356650.post-80755945700817782052012-05-25T15:42:57.593-07:002012-05-25T15:42:57.593-07:00Hi Pete,
first, thanks for you example, that real...Hi Pete,<br /><br />first, thanks for you example, that realy helped me to get into the CoreMidi stuff.<br /><br />I want to ask you a question because I think you may have an answer or any idea why:<br /><br />I want to call in my own App the function "MIDIFlushOutput" but it doesn't work.<br />So just in case I did something wrong, I tried it with your "original" example code. I just added one function to send MIDI-Notes in advance with an timestamp and then called MIDIFLushOutput, but I had the same behavior as bevore. All in "future" sended MIDI-Notes received the target. Actually this function should delete all outstanding MIDI-Notes, so that there won't be send.<br /><br />Do you ore someone have any idea why?<br />Maybe I should post the code here !?<br /><br /><br />Best Regards,<br /><br />FKAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-7481875957453356650.post-84898998678594415212012-05-14T07:55:02.678-07:002012-05-14T07:55:02.678-07:00Thanks for the post.
I'd like to connect your ...Thanks for the post.<br />I'd like to connect your application (running on iPad) to GarageBand (running on the Mac) through the USB cable, but GarageBand doesn't recognize the iPad (with your app running) as an external MIDI device.<br />Is that connection possible? I'm doing something wrong?<br />Thanks.<br />Marcelo.Cicconethttps://www.blogger.com/profile/02145709816117292739noreply@blogger.comtag:blogger.com,1999:blog-7481875957453356650.post-39639475573767238882012-05-04T14:29:10.154-07:002012-05-04T14:29:10.154-07:00Hi Pete,
I created an app using your old PGMIDI f...Hi Pete,<br /><br />I created an app using your old PGMIDI for Xcode 4.0, but now I tried to recompile the same software with Xcode 4.3.2, for iOS 5.1 . . . ... It doesn't work.<br />I refreshed my code with ARC, but now I find a new error:<br /><br />MidiMonitor[49285:fb03] Error (Create MIDI client): -50:Error Domain=NSMachErrorDomain Code=-50 "The operation couldn’t be completed. (Mach error -50.)"<br /><br />I don't understand what is changed, and why I should have problem with MIDI connection.<br /><br />I also tried to use your last version of PGMIDI, and its code, but I get the same error.<br /><br />Thanks a lot in advance.<br /><br />DarioneDarionehttps://www.blogger.com/profile/00446261542817936644noreply@blogger.comtag:blogger.com,1999:blog-7481875957453356650.post-37172420489184674252012-02-06T05:01:33.419-08:002012-02-06T05:01:33.419-08:00Thanks again for your super-fast help.
I tried usi...Thanks again for your super-fast help.<br />I tried using:<br />1)GCC 4.2 --> error<br />2)LLVM GCC 4.2 --Z error<br />3)LLVM compiler 2.0 --> build succeeded but:<br />warinigs:<br />1)variadic macros were introduced in C99 [-Wvariadic-macros,1]<br />2) compound literals are a C99-specific feature [-pedantic,3]<br />3)Semantic Issue: Variable length arrays are a C99 feature, accepted as an extension<br /><br />..anyway ...it runs....thanks Pete, thanks a lot!!!<br /><br />DarioDarionehttps://www.blogger.com/profile/00446261542817936644noreply@blogger.comtag:blogger.com,1999:blog-7481875957453356650.post-88589258955006449492012-02-06T03:25:02.717-08:002012-02-06T03:25:02.717-08:00Dario, check that you've set the language stan...Dario, check that you've set the language standard in your "build settings" to at lead C99Pete Goodliffehttps://www.blogger.com/profile/11084090457826022937noreply@blogger.comtag:blogger.com,1999:blog-7481875957453356650.post-54810528595350638462012-02-06T02:43:32.982-08:002012-02-06T02:43:32.982-08:00Hi Pete,
at first : THANKS, THANKS a lot! As you&...Hi Pete,<br /><br />at first : THANKS, THANKS a lot! As you'll understand, I'm a newbie, and sorry for the maybe "stupid" questions. When I run the program in xcode (MIDIMonitor - iphone4.3 simulator) I find 4 warnings and 3 error:<br />warnings:<br />1) warning: anonymous variadic macros were introduced in C99<br />errors:<br />1)error: ISO C++ forbids compound-literals<br />2)error: ISO C++ forbids variable-size array 'packetBuffer'<br /><br />Surely I'm doing something wrong. Thanks for all.<br /><br />DarioDarionehttps://www.blogger.com/profile/00446261542817936644noreply@blogger.comtag:blogger.com,1999:blog-7481875957453356650.post-90603977958975222702011-11-24T02:10:01.720-08:002011-11-24T02:10:01.720-08:00Please note that I have updated this post as the l...Please note that I have updated this post as the location of the PGMidi repo has changed (by popular request) to GitHub: https://github.com/petegoodliffe/PGMidi.Pete Goodliffehttps://www.blogger.com/profile/11084090457826022937noreply@blogger.comtag:blogger.com,1999:blog-7481875957453356650.post-72716898053092286832011-09-21T08:41:26.524-07:002011-09-21T08:41:26.524-07:00Hi, Great Post and example code. All works well wi...Hi, Great Post and example code. All works well with USB camera connector, but I can't get MIDI Monitor to recognise any Wifi Input connections or data. Seems to work fine for Garageband and similar. Any ideas?Pygarnoreply@blogger.comtag:blogger.com,1999:blog-7481875957453356650.post-63781469366742411382011-09-14T02:18:34.675-07:002011-09-14T02:18:34.675-07:00As documented in the PGMidiSourceDelegate protocol...As documented in the PGMidiSourceDelegate protocol, you need to make use of NSObject's<br /><br />performSelectorOnMainThread:withObject:waitUntilDone:<br /><br />That will allow you to schedule selectors on the UI thread from the MIDI thread.Pete Goodliffehttps://www.blogger.com/profile/11084090457826022937noreply@blogger.comtag:blogger.com,1999:blog-7481875957453356650.post-91082604903860169672011-09-13T12:05:21.169-07:002011-09-13T12:05:21.169-07:00Hi Pete - Thanks so much for your superb midi comm...Hi Pete - Thanks so much for your superb midi communication app. I have one question.. regarding threading and updating UIs. As you mention in the PGmidi.h comments, you must be careful about autoreleasing things. As a noobie, I am really struggling to find a way of updating my UI objects when receiving midi. I have a button on my ipad(call it mute on/off), which when touched sends midi to my laptop app, which in turn sends midi back to my ipad which updates the button image. This works fine, but when I sends the midi message directly from my laptop app instead, I cannot find a way to update the UI. Any help or pointers would be greatly appreciated.<br />Thanks,<br />Leigh HuntLeigh Huntnoreply@blogger.comtag:blogger.com,1999:blog-7481875957453356650.post-59472099244092697852011-02-01T01:23:24.311-08:002011-02-01T01:23:24.311-08:00The UM-1 works really well with iPad. I've not...The UM-1 works really well with iPad. I've not had problems with it.<br /><br />In fact, I've not had any simple USB MIDI interface fail when placed behind a powered hub.<br /><br />If your iPad gets upset, it might be worth switching it off and on again to reset it. Often this clears some UDB weirdness.Pete Goodliffehttps://www.blogger.com/profile/11084090457826022937noreply@blogger.comtag:blogger.com,1999:blog-7481875957453356650.post-75568104534557826702011-01-29T12:55:08.833-08:002011-01-29T12:55:08.833-08:00You got it to work with a Edirol UM-1? Strange. ...You got it to work with a Edirol UM-1? Strange. I just plugged mine in, and an ipad warning message popped up which said "unrecognized device". I tried plugging in a powered usb hub, because I was afraid it might be drawing too much power. But that didn't help... Did you have to do anything special to get yours to work?Greg Kellumhttps://www.blogger.com/profile/12019641756558771274noreply@blogger.comtag:blogger.com,1999:blog-7481875957453356650.post-77671648959974528442011-01-02T03:03:32.281-08:002011-01-02T03:03:32.281-08:00Thanks for the tip and your example code. Works gr...Thanks for the tip and your example code. Works great with a cheap (€6.50) LogiLink USB-to-MIDI-adapter (model UA0037 connected via noname iPad USB adapter, iPad 3G 16GB running iOS 4.2.1).Michael Engelhttp://multicores.orgnoreply@blogger.comtag:blogger.com,1999:blog-7481875957453356650.post-61891164624472307782010-12-08T10:20:56.890-08:002010-12-08T10:20:56.890-08:00This comment has been removed by the author.Antonio Graziolihttps://www.blogger.com/profile/14900536143722012785noreply@blogger.comtag:blogger.com,1999:blog-7481875957453356650.post-31133352303327394772010-12-08T10:20:19.446-08:002010-12-08T10:20:19.446-08:00thanks that's what I was looking for. I will t...thanks that's what I was looking for. I will test it soon on my iPadAntonio Graziolihttps://www.blogger.com/profile/14900536143722012785noreply@blogger.comtag:blogger.com,1999:blog-7481875957453356650.post-91455114471479735492010-11-29T12:21:13.518-08:002010-11-29T12:21:13.518-08:00I tried another Roland piano and it worked! I retr...I tried another Roland piano and it worked! I retry the former tomorrow.Lacinoreply@blogger.comtag:blogger.com,1999:blog-7481875957453356650.post-20274054358261311832010-11-29T04:34:01.525-08:002010-11-29T04:34:01.525-08:00Hi Pete,
I built your app today and tested on my ...Hi Pete,<br /><br />I built your app today and tested on my iPad (4.2.1), but it seems not recognizing my Roland digital piano, which works nicely with another CoreMidi app (called Midi Monitor).<br />Do you have an idea why?<br />I would be happy to debug this issue and commit the code back to you, but I have no idea if this can be debugged at all, as connecting my piano takes away the PC connectivity.<br /><br />Regards<br />LaciLacinoreply@blogger.comtag:blogger.com,1999:blog-7481875957453356650.post-37873687255424350152010-11-15T15:38:44.197-08:002010-11-15T15:38:44.197-08:00FYI: I've used it with my M-Audio USB Uno, whi...FYI: I've used it with my M-Audio USB Uno, which has LEDs on it.<br /><br />I've heard that supposedly Core MIDI also enabled MIDI over a network connection like WiFi (assuming the device can read the network connection, like a MacBook). Do you know if this is true?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-7481875957453356650.post-49921622364037569232010-11-11T03:08:41.682-08:002010-11-11T03:08:41.682-08:00From what I understand, its iPad only. Certainly, ...From what I understand, its iPad only. Certainly, at first.<br /><br />The circuitry in the iPhone is different, so it cannot support the camera connection kit. Different hardware is required to enable a USB connection on an iPhone over the 30-pin connector.Pete Goodliffehttps://www.blogger.com/profile/11084090457826022937noreply@blogger.comtag:blogger.com,1999:blog-7481875957453356650.post-39884679613390655542010-11-10T08:23:38.670-08:002010-11-10T08:23:38.670-08:00But this coremidi with usb work only with ipad or ...But this coremidi with usb work only with ipad or also with iphone? [and camera connection]Smashnoreply@blogger.comtag:blogger.com,1999:blog-7481875957453356650.post-89646903556812462132010-11-05T15:09:46.902-07:002010-11-05T15:09:46.902-07:00I'm just afraid of it not working because it h...I'm just afraid of it not working because it has leds :) maybe i'll just get one that works once 4.2 comes outBruno Afonsohttps://www.blogger.com/profile/00330256731605971811noreply@blogger.comtag:blogger.com,1999:blog-7481875957453356650.post-83685237579580708782010-11-05T14:51:49.448-07:002010-11-05T14:51:49.448-07:00No, but I have successfully used an Edirol UM-1No, but I have successfully used an Edirol UM-1Pete Goodliffehttps://www.blogger.com/profile/11084090457826022937noreply@blogger.com