C and MIDI help

Just a quick question:
I would like to experiment with MIDI programming, but, in order to do that, I need to write the midi code in normal, non-objective C (?). I know this code as well, but I don't understand how it works with a cocoa app. Does it replace the normal dot-m implementation file or does it require some additional import code.
(Also, if anyone could point me to a good MIDI programming walkthrough/tutorial, (that's more than just a reference), that would be awesome)
Thanks!!

Assuming you're using Xcode just use a .c extension on your files that are C. Xcode will compile it correctly (technically you could still use .m for C files but no point in making it confusing.)
Objective-C can call C methods without issue, so do all of your GUI work in Obj-C/Cocoa and have it call your C code as needed.
Eric

Similar Messages

  • Error while trying to synchronize Audio and MIDI-HELP PLZ!!!

    Hi there, i have just started gettin the message wheneva i try and play audio/audio instr:
    'Error while thrying to synchronize Audio and MIDI-Sample Rate 41222 recognized. Check conflict between Logic Pro and external device'
    I get lots of high frequency bleeps n squeals thru the speakers. I am runing Motu 828mk2 and have only started gettin the problem reently its been fine before. The Motu has not problem playing audio in iTunes etc but as soon i open Logic it goes funny.

    Hi there, i have just started gettin the message
    wheneva i try and play audio/audio instr:
    'Error while thrying to synchronize Audio and
    MIDI-Sample Rate 41222 recognized. Check conflict
    between Logic Pro and external device'
    I get lots of high frequency bleeps n squeals thru
    the speakers. I am runing Motu 828mk2 and have only
    started gettin the problem reently its been fine
    before. The Motu has not problem playing audio in
    iTunes etc but as soon i open Logic it goes
    funny.
    Sounds like you need the infamous MOTU "Reset".
    (the bleeps & squeals is a give away)
    Follow these steps to restore the 828mkII to Factory Default Settings.
    -Disconnect the firewire cable from the 828mkII
    -Press the Setup knob
    -Turn the Setup knob all the way to the right
    -Press the Select knob
    -Press the Value knob
    -Power off the interface and plug the firewire cable back
    in
    -Power the interface back on
    Pancenter-

  • Error while trying to synchronize Audio and MIDI. plz help i cant hear anything

    plz help me i cant hear nothing and its says: Error while trying to synchronize Audio and MIDI.
    Sample Rate 38536 recognized.
    Check conflict between Logic Pro X and external device. ????????   PLZ HELP

    It means you are overtaxing the CPU, likely with just one (3rd party-)software instrument plugin. Ignore the word "external", in this context it often means "3rd party plugin".
    So what synth is it? Since you're Dutch, it's probably one of the trancy dancy synths, such as Albino, Diva, Sylenth or Massive... I could be wrong though...
    The best way to avoid this message is to Freeze the track with the guilty synner - however, a frozen track cannot be edited, so if that is a problem, you will have to make the synth itself run lighter, which can be achieved by turning of internal effects that are ON the synth itself, especially reverb.
    http://help.apple.com/logicpro/mac/10/#lgcpf1cbfd51

  • Help with "Error syncing Audio and Midi" message. How to fix?

    Hi,
    I'm running Logic Pro 7.1 on a G5 Dual 2.5 PowerMac. My audio interface is a Digidisign Digi002R, and my MIDI interface is a MOTU Fastlane. Up until a few days ago everything was working fine. I didn't install any new software or anything.
    All of a sudden in any Logic session I open (new or saved) I get all kinds of artifacts that sound like they're associated with sample rate problems.
    True to form, on playback after 4 or 5 seconds a message comes up telling me that there is an error syncing audio and midi. It tells me that a sample rate of 88209, or 88213, or 88207 (each time it's different) was detected, and that there is a conflict between Logic and my external device.
    My Digi002R is set to 44.1, and Logic is set to 44.1 as well. I have no idea where this problem came from.
    The only thing I do know is that I've been using the Peachtree Press Apple Pro Training Series to study for my Level 1 Logic certification. it comes with a CD with Logic sessions to use with the text. The CD comes with a Logic Epress Demo but I didn't download that as I've already got Logic Pro. I dragged those session files to my desktop, and the problem occured for the first time when iopened up that first session from the CD. After that, every single session has this problem and I have no idea how to fix it.
    Sorry for the incredibly long message, but can anybody help?
    Thanks
    PowerBook G4 15", PowerMac G5 Dual 2.5   Mac OS X (10.4.7)  

    Hey,
    Thanks. I appreciate the help, but I've tried all of that. I just don't get it. I've unplugged everything, I've shut down, powered down, relaunched everything a dozen times and the problem doesn't go away. I know that the problem is with Logic because the interface works perfectly fnie with everything else, from Pro Tools to iTunes.
    I'm having Logic Pro 7.2 shipped to me so I'm hoping that installing that will reset everything, but until then I can't do anything in Logic.
    Anybody ever encounter anything like this?

  • Error Trying to Sync Audio and MIDI - Please Help!

    Hey everyone, I know this is a fairly common problem, and I've tried following the Logic Help and manual, but it hasn't solved it.
    Last night, I was recording and mixing with my MOTU 828mkII into my Powerbook G4 running Logic Pro 6.4, and everything was working perfectly. Today, when I opened up Logic again to work on mixing the song I recorded last night, after not having changed a single preference anywhere, something bizarre happened. When I clicked the play button, the song began playing, but no sound came out, except for a high-pitched digital howling sound, and after about 5 seconds, an error message came up saying, "Error Trying to Sync Audio and MIDI." I tried other song files I'd recorded months ago, and even with brand new song files, and the same exact problem occurred!
    Apparently, it's a discrepancy in the sample rates between my MOTU and Logic? But both have been set to 44.1 for months, and I haven't changed anything. The Logic Help said to change the Sync Mode to MTC Continuous (which I believe it was already set to) or MTC Trigger/ASD (which didn't help).
    I even tried re-installing Logic altogether, and changing the sample rates both on my MOTU and Logic to 48 and then back to 44.1, and nothing works.
    Please help me! What should I do?
    Thanks very much,
    TB

    I suffered from this problem, and it was particularly frustrating to me since I was not even using MIDI, or so I thought. The "Error Trying to Sync Audio and MIDI" message seemed to crop up just as I was ready to print a final mix.
    I did some research and learned that the Logic automation is actually MIDI data, furthermore, I learned that The sample accurate automation feature in Logic Audio results in randomly sized audio buffers being passed to plug-ins.
    My solution?
    Turn OFF "sample accurate automation" in the menu Logic Pro / Preferences / Audio...
    The automation is very accurate even with this option disabled.

  • Help... Logic can't synchronize audio and MIDI...?

    Please help -- I'm on a deadline and can't solve this problem...
    My project is only four tracks: MIDI Drum kit, MIDI Bass, and two Audio guitar tracks.
    When trying to record a vocal on a fifth track (Audio), I get no sound in my headphones of the single audio track I'm singing to, or of the audio track I'm recording.
    After about five seconds, this message pops onto the screen:
    "Error: Logic is unable to synchronize audio and MIDI"
    I've searched every dialog box and the entire manual, and I can't find where my setup is wrong.
    The setup: I used the Aggregate Device info from this forum, and all operations other than the current problem are working fine.
    I'm using a MobilePre USB (updated driver), a single mic into the MobilePre and headphones out of it. Single USB connection to the computer.
    My MacBookPro has 3 gigs RAM, 40 gigs free disk space, system 10.5.2.
    Can anyone offer any advice... please... Thanks in advance

    Probably to do with the aggregate device stuff.
    Who told you to use that?
    Disable your aggregate device stuff.
    Reinstall your M-audio driver.
    In Logic make sure your project settings sync mode is set to internal,and you have selected the M-audio driver in preferences>Audio.
    Good luck.

  • "Error while trying to sync Audio and Midi"

    "Error while trying to sync Audio and Midi" I have been having this problem now and then for some time. Now, I can't run any audio files without a lot of popping. I tried all the suggestions on the support document for this issue. I even downloaded new drivers from Motu for my Express XT Midi interface and my 828MK11 Audio interface. There has been no change. HEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEELP!!!!!!
    Also, I have tried reseting the 828 to factory default and that does not help.
    Jonathan Jenkins

    Hi,
    I solved my own problem by resetting the factory presets:
    Follow these steps to restore the MOTU 828mkII to Factory Default Settings.
    Disconnect the firewire cable from the 828mkII
    Press the Setup knob
    Turn the Setup knob all the way to the right
    Press the Select knob
    Press the Value knob
    Power off the interface and plug the firewire cable back in
    Power the interface back on
    The same steps can be followed to restore the Factory Default Settings on a Traveler.
    -Robert

  • "Error While Trying To Synchronise Audio And Midi"...non-tempo event found

    "Error While Trying To Synchronise Audio And Midi"...non-tempo event found
    now when I shutdown Logic And relaunch the Project, the notes hang and "WHAT THE FRIIGIN"
    (this was a bug way back when Logic7 was first released)
    this is bad!
    SvK

    Thanks Steven.
    big help. In our session we keep getting this problem where the song counter stops, the music keeps playing and we get an error message saying:
    Non Tempo-Event found in Sync Reference
    We looked in the tempo list and somehow there was a tempo event of 0.00 tempo in there.
    We deleted it, got the same error message, but the prob seems to be fixed.
    Apple, please fix this!
    Thanks
    Felix

  • "error while trying to synchronize Audio and MIDI"

    Hello All,
    Just got Logic 8... installed (as upgrade from 7)
    I keep (consistantly) getting this:
    "error while trying to synchronize Audio and MIDI" when in play or record mode... has anyone any ideas regarding a 'fix' or maybe even to point out stupidity on my part re settings; I'm open to comments here and would obviously love to get this fixed/sorted out.
    System is basically: G5 Dual 1.8/OS 10.4.10/MOTU 828 Mk2
    Thanks in advance.

    Hi,
    I first did what the manual was telling me but that made no difference as the sync would drop within 5 to 15 bars... very frustrating.
    Since my original posting I have spoken with MOTU regarding this Audio/MIDI sync problem. There is evidently a simple reset that needs to be done (that is if like me you are using a MOTU 828 Mk2 interface), you have to toggle through both digital input and output settings in the Audio Control Panel. The problem then goes away.
    I hope that is helpful. I think that this probably is relevant to all MOTU interfaces, or is at least worth trying if you are having this problem... maybe other manufacturers too... ?
    Cheers, Kick

  • Error while trying to synchronise audio and midi

    Hi
    Logic worked all day and suddenly start giving this message:
    error while trying to synchronise audio and midi.
    Nothing was changed and we also have no sound.
    We don't have any midi device, its just the G5 and Logic installed.
    Any idea how to solve this issue.
    Jeanne

    Howdo
    Someone else has been having this problem and I've tried to help 'cos it used to happen to me too. Try adjusting your I/O buffer level in your Logic Audio Driver preferences - raise it a bit higher and the problem should go away. Problem is you get more latency. (I'm assuming it's set lower than 512, but not knowing your audio hardware... and your not using internal audio are you???)

  • Pop up saying error while trying to sync audi and midi

    HELP! is there anyone who is experiencing or has experienced an error pop up saying error while trying to sync audio and midi in your logic pro8? it's doing it on every song I pull up now. I've tried buffering, reloading, Help? all was fine the night before.
    Sincere, The Silver Conductor

    Check the clock source on your audio interface if you're using one. It should be set to internal. What's your setup?

  • Solution for "Error while trying to synchronize Audio and MIDI" and "System Overload" messages

    Article for those who hate Logic error windows
    Seen in Logic Pro 9.1.7 on Mac OS X Lion 10.7.4
    and Logic Pro 9.0.0 on Mac OS X Snow Leopard 10.6.5
    Logic Pro:
    System Overload.
    The audio engine was not able to process all required data in time.
    (-10011)
    Error while trying to synchronize Audio and MIDI.
    Sample Rate xxxxx recognized.
    Check conflict between Logic Pro and external device.
    The search in the help given as follows: overload occurs when you use a lot of tracks and a lot of effects on them, and the synchronization is lost when the selected MIDI track for recording or playback. Yes, this is all that is written in the resources. And here are useful tips that have been found:
    The Bounce function allows the entire instrument track to be recorded as an audio file. This bounced audio file can then be used (as an audio region) on a standard audio track, allowing you to reassign the available processing power for further software instrument tracks. For more details, see "Bouncing Your Project."
    You can also make use of the Freeze function to capture the output of a software instrument track, again saving processing power. For details, see "Freezing Tracks in the Arrange Area."
    These tips - about the timing. About overload - there are no tips, except as "reducing the number of plug-ins" and "increasing latency". Zero useful tips - I got two errors in the test project with a blank audio track with no effects, MIDI drums and standard synthesizer, it was no aux buses, and the entire project was only a single plugin in the master track.
    Here is the configuration of my computer:
    iMac12, 2
    CPU: Intel Core i5 3,1 GHz
    Memory: 4 GB
    And here's a project that almost immediately stops Logic, all instruments and plug-ins with the init-patch, ie not the most demanding settings:
    It's sad.
    When this happened the first time, I could start the project only if the empty audio track has been selected, a track specially designed so that you can at least start the project. Then, this problem has evaporated along with the changing conditions of work and I forgot about it until the last case.
    I was looking for the cause of the problem in the console and the system monitor for two days, and finally I found that Logic ping to the network frequently. I remembered the exact time of occurrence of the problem, and system logs revealed that the problems began immediately, as soon as I deactivate the service of the Internet.
    Solution: enable the Internet, or add a new network service on a computer with no Internet. I just created the Ethernet connection to the ip address 1.0.0.0
    Logic immediately began to sing.

    Hi gabaghoul
    Yes, it worked for me on four different OS and Logic versions (10.6 - 10.8 and 9.0 - 9.1.6)
    It does not work in some cases, hard enough to tell in which one, but you can try, it very easy: go to the net settings and create new Ethernet connection to the ip address 1.0.0.0 and connect LAN cable to the port.
    Also you can try to figure out what happens in your system while Logic error occured - fot that you just start Console and search "logicpro"
    Pay attention to repetitive events in a console and events with suitable timing, not so far from error
    The problem may be related to the GUI or system memory, sometimes turning off Safari (or Chrome, others browsers) might help.
    Message was edited by: spred

  • GarageBand: Error while trying to synchronize Audio and MIDI.

    This error recently started popping up for me while using garageband.
    GarageBand: Error while trying to synchronize Audio and Midi
    Sample rate xxxxxx recognized
    Check conflict between garageband and external device
    When I use garageband, my input and output are usually set to my scarlett 2i2 interface and I've never received the synchronizing error before today.  I am not using any Midi.
    I've checked the Audio Midi Setup tool to make sure that my format is at 44100.0Hz and have set the "sound" in system preferences to use my scarlett 2i2 interface for input and built-in system for output.
    Can anyone help me out with why i'm receiving this error?

    Good grief!  I'm on a Mac OS X and was having this same problem.  All these discussions about so much technical jargon just had me exhausted ... not only did I not understand what was being referred to, but I couldn't imagine how to do what was being said.
    Here's what got me straight:
    1.  Go to System Preferences and click on Sound
    2.  Click on Input and select your USB mic (or whatever you're using)
    3.  Click on Output and select Internal Speakers
    Done.  No more problem with Garageband!

  • (rare?) Error while trying to synchronize Audio and MIDI.

    Hello there,
    My problem: Until today, I've been working with all my projects without any problems with my configuration, but today I've turned on the computer and when I play any project (including a new project with one or two audio tracks or the SAME PROJECT that i've been working the last night), 3 or 4 seconds later I get the fantastic and typical error from logic and an apparently more slow performance loading projects...
    everytime... play, and error...play (or pause) and error...
    "Error while trying to synchronize Audio and MIDI.
    Sample Rate 41347 recognized.
    Check conflict between Logic Pro and external device."
    and sometimes... (randomly)  
    "System Overload. The audio engine was not able to process all required data in time."
    ... and I haven't touched anything / no updates / no setup changes... NOTHING.
    I've tried all these things (searching in the forum) with NO luck:
    http://support.apple.com/kb/TS2111
    http://support.apple.com/kb/TA24535
    My equipment:
    Macbook pro 2,4 Intel Core 2 Duo / 2 GB RAM
    Logic Pro 9.1.3
    Snow Leopard 10.6.7
    Motu ultralite Mk2
    Lacie quadra 1 TB (FW800)
    - I have a motu ultralite mk2, but i've tried with the built-in audio too, and I'll just get the same performance.
    - I've tried with the lacie hardrive on and off and with projects in the internal hardrive and others with all the audios in the external.
    The funny thing is that i've been working in a project this last night and all PERFECT, and now its impossible work with it, and I haven't changed anything.
    PLEASE, any help? I'm confused and I need to finish some works...
    THANKS!

    If the MOTU unit has a reset procedure, unplug it from the Mac and do it now. That's simialr to what the older 828MkII units used do when they needed to be run through the reset procedure.
    It can be caused by a Firewire/USB glitch or power surge when powering up the computer.
    p.s.
    As a side note, I remember that same error.....
    "Error while trying to synchronize Audio and MIDI. Sample Rate 41347 recognized."
    From Logic 3.5, it's been around for that long, with different sample rates of course.
    Back then it was from bad audio drivers.. it's difficult to pin down some of these errors as they can be caused by different things.
    pancenter-

  • ERROR while trying to synchronize Audio and MIDI but I'm NOT using ANY midi

    So as the heading says... i hit playback, and I get that error message. but the thing is, i do not have ANY midi recorded, nor am i trying to play any back, no midi instruments loaded, nor any midi tracks at all, AND I do not even have any midi gear hooked up.
    also, it is saying that sample rate 44100 recognized but for one, the session is set and locked in to 96khz. with the computor as master for mlan to the O2R. with no other audio gear even hooked up. so where would it even be getting 44100 from??
    also, this with only playing back 7 tracks with a 10k rpm drive. so that isn't the problem.
    Message was edited by: Kenosis Studios

    dingdangdawg wrote:
    I get this audio/midi sync error from time to time, and have never found a good explanation. I, too, have disconnected midi devices, etc. Its frustrating because it comes and goes, and when it comes it stops playback.I wish someone had a definitive answer on what might be causing this. Sorry I can't help...
    The message is a bit of a misnomer (or is it?) in the sense that if there is no MIDI, it's obviously not Audio & MIDI that are out of sync. All audio/MIDI sequencers that I'm aware of internally sync MIDI to Audio. MIDI timing is taken from the audio driver/sample-rate otherwise MIDI would be free floating and locked to the computers clock rather than the audio stream. In a sense... there's always MIDI. When this error pops up it just means the internal relationship between The Audio stream/sample rate and and MIDI timing has exceeded an error threshold. It's most often caused by a blip in the audio stream. It can also (rarely) be caused by MIDI drivers and or MIDI errors,
    Possible causes: bad audio drivers, a rogue plugin, a processor spike, a corrupted song, Logic sync settings, some other computer process going on,
    MIDI Clock being sent out on all channels, plus a bunch of other reasons I've long forgotten.
    Oh, "the audio interface". MOTU devices often need to be reset if they're left plugged in during an OS upgrade, or Logic upgrade.
    Note: if you have a firewire audio interface. Before any OS upgrade or and major app upgrade. Unplug the firewire cable and turn the interface off. OS upgrades initialize the firewire ports and it can play havoc with some firewire audio units.
    pancenter-

Maybe you are looking for

  • Oracle 8.1.5 Error

    Upon running the Oracle 8.1.5 Enterprise runIns.sh I get the error message "Initializing Java Virtual Machine from /usr/local/jre/bin/jre. Please Wait..." Then it brings up the error on the next line "Xlib:connection to lulu:0.0 refused by server." I

  • Pasta 3.0 - Printing Purchase Order Forms using Pasta

    Has everyone successfully gotten the Pasta utility using the PrintForm functionality to work for printing Purchase Orders in a 11.5.8 environment. We have applied the latest Pasta patches for 3.0.4 and has created a postscript file from a msword docu

  • Why are there many more glyphs available in Illustrator CS4 than Indesign CS4?

    I am in the process of converting a document from Illustrator to InDesign. Many of the glyphs and ligatures in Illustrator aren't available in Indesign for the same font, Bickham Script Pro. I checked that all of the opentype settings between the two

  • Bad Server Certifcate?

    Alright, I've got a bit of an odd problem here. Whenever I go on to a site that Safari says could be "insecure," I choose to continue, but when loading the page, all pictures on that page are replaced by blue boxes with question marks in them. So I c

  • Marker command for N8975A Noise Figure Analyzer

    hi, I am new to labVIEW and have a simple question to ask. May I know if anyone have try to place a marker in N8975A Noise Figure Analyzer using labVIEW? If so, may I know what is the command for that? Thanks.