4 ms·
I have done some iOS and macOS work in the past using ObjectiveC and C. I have done some DSP work using MaxMSP and PureData. This morning I decided I wanted to
by williamcotton 3y ago
I have done some iOS and macOS work in the past using ObjectiveC and C. I have done some DSP work using MaxMSP and PureData.
This morning I decided I wanted to write a simple audio visualizer for my iPhone using SwiftUI, a language and framework I have never used. Within an hour I had through the direction of ChatGPT-4 an app running on my phone using a 3rd party library called AudioKit and drawing some fractal looking thingies, as well as a pretty decent understanding of how it all worked because I asked for detailed explanations of every line of code.
I’m not sure that I could have had this little app up and working in a single day let alone an hour if I only had a search engine at my disposal.
- ldhough 3y agoGoogling "audio visualizer SwiftUI" gives me these as the first, fourth, and seventh results: https://medium.com/swlh/swiftui-create-a-sound-visualizer-cadee0b6ad37 https://medium.com/swlh/swiftui-create-a-sound-visualizer-ca... https://audiokitpro.com/audiovisualizertutorial/ https://audiokitpro.com/audiovisualizertutorial/ https://developer.apple.com/documentation/accelerate/visualizing_sound_as_an_audio_spectrogram https://developer.apple.com/documentation/accelerate/visuali... I do tend to reach for GPT4 before Google for things like this now, but I feel like it should definitely be possible to get this up in only slightly longer with just Google, even if you want some mods.
- williamcotton 3y agoBut I wasn’t interested in someone else’s audio visualizer, I was interested in a specific approach using pitch detection and primitive line drawings, not displaying an FFT as a bar graph. Sure, I could have synthesized a few different search engine responses but it would have taken a lot more work and I would have run into issues that slowed me down to the point where I had to get back to my other duties as the father of 2 and 4 year olds who were home for the week!
- ldhough 3y agoYeah its definitely better than piecing together parts from different tutorials to be sure.