nsscreencast / comments

Public comments on NSScreencast.com
0 stars 0 forks source link

Rendering Waveforms in SwiftUI #203

Open subdigital opened 3 years ago

subdigital commented 3 years ago

Written on 07/09/2020 18:40:03

URL: https://nsscreencast.com/episodes/447-rendering-waveforms-in-swiftui

subdigital commented 3 years ago

originally written by godofbiscuits on 07/13/2020 13:16:30

Hey Ben,

I wondered why you went through the effort of using number of steps when you ended up having to provide step-size to the APIs anyway. Apple really LOVES their duration vs frequency argument. They seem to mention it in every AVFoundation & Metal session. :). I gave up a long time ago and just start off with durations and that mindset. The old adage: if you discover you're fighting Cocoa, stop. Then do it Cocoa's way. It makes for more Happy.

Oh, and did you know about Desmos? https://www.desmos.com

It's like Grapher, but will industry support and a few more features than Grapher, the biggest, most useful one for me is sliders. Like the ones you created in code. You can specify values to be user-input as sliders (step or smooth) and watch how changing that value affects the plotted behavior. There are iOS apps for it as well as using the website, but those appear to be not much more than a wrapper on the website. YouTube also has quite a few primers for using it, although I'd have to say none so far come anywhere near as close to NSScreencast in quality.

subdigital commented 3 years ago

originally written by subdigital on 07/13/2020 14:54:21

Can you elaborate on the steps / duration-vs-frequency comment? I'm not sure I follow.

Desmos looks pretty neat, thanks for sharing!