Re: [OT] Don't draw every 10th sample(!) (Was Re: Best drawing technology for audio waveforms, envelopes, etc.?)
Re: [OT] Don't draw every 10th sample(!) (Was Re: Best drawing technology for audio waveforms, envelopes, etc.?)
- Subject: Re: [OT] Don't draw every 10th sample(!) (Was Re: Best drawing technology for audio waveforms, envelopes, etc.?)
- From: "R. Matthew Emerson" <email@hidden>
- Date: Tue, 26 Jun 2007 20:29:06 -0400
On Jun 25, 2007, at 2:45 PM, Hans Kuder wrote:
One other thought - rather than drawing one or a few paths
horizontally
through each (on-screen) sample, what if I drew each (on-screen)
sample as
its own vertical line with height equal to amplitude? This would
essentially
be trading one complex path for hundreds of very simple paths. Can
anyone
comment on the performance advantages or disadvantages of this?
Perhaps CGContextStrokeLineSegements() might be convenient in this
circumstance.
I remember learning about that function at a WWDC. See http://
developer.apple.com/samplecode/QuartzLines/
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
References: | |
| >Best drawing technology for audio waveforms, envelopes, etc.? (From: "Hans Kuder" <email@hidden>) |
| >Re: Best drawing technology for audio waveforms, envelopes, etc.? (From: Alastair Houghton <email@hidden>) |
| >Re: Best drawing technology for audio waveforms, envelopes, etc.? (From: "Hans Kuder" <email@hidden>) |
| >Re: Best drawing technology for audio waveforms, envelopes, etc.? (From: "I. Savant" <email@hidden>) |
| >[OT] Don't draw every 10th sample(!) (Was Re: Best drawing technology for audio waveforms, envelopes, etc.?) (From: Alastair Houghton <email@hidden>) |
| >Re: [OT] Don't draw every 10th sample(!) (Was Re: Best drawing technology for audio waveforms, envelopes, etc.?) (From: "Hans Kuder" <email@hidden>) |