Re: optimizing midi packet processing
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