• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: optimizing midi packet processing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: optimizing midi packet processing


  • Subject: Re: optimizing midi packet processing
  • From: Nonnus™ <email@hidden>
  • Date: Sat, 1 Nov 2008 21:29:17 +0000

peter

tx alot for you help and remarks :)

when i say my current handling does not seem accurate
i mean regarding timing, the sent events seem to be faithful
i can see how perfectly timed events do not reach the destination as perfectly timed


yes, my midi events are real time,
basically they are just routed from incoming midi to network stream asap

i find interesting your 2) remark
and it might be the place where operation is not as smooth

i guess i will check what is actually being sent to handleMIDIMessage:ofSize

abraços

nonnus


On Nov 1, 2008, at 8:43 PM, Peter Rebholz wrote:

I think more details might help us answer your question better. The way you process the commands depends on how you are using them. It also would help to know what you mean by the handling not being accurate.

What isn't accurate? The messages that are being passed to handleMIDIMessage:ofSize:? The timing?

Without any details on how this is being used I made the following observations:

1) You aren't paying any attention to the timeStamp property of MIDIPacket. Are you expecting all MIDIPackets to be received in realtime?
2) A MIDIPacket packet is a collection of simultaneous MIDI events. Given that, doesn't it make sense to send the whole MIDIPacket to handleMIDIMessage:ofSize:? I think you're creating extra work for your self by copying out each individual command and passing it on. Additionally, sending a message to an object does have some overhead so depending on how frequently you are calling that method you may be hurting your performance a bit.


Hope that helps,
Peter

_______________________________________________ Do not post admin requests to the list. They will be ignored. Coreaudio-api mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: optimizing midi packet processing
      • From: Robert Martin <email@hidden>
References: 
 >optimizing midi packet processing (From: Nonnus™ <email@hidden>)

  • Prev by Date: RE: optimizing midi packet processing
  • Next by Date: Re: ExtAudioFile and AIFF Files > 4GB
  • Previous by thread: optimizing midi packet processing
  • Next by thread: Re: optimizing midi packet processing
  • Index(es):
    • Date
    • Thread