Skip to content

Commit

Permalink
Added comment on what to to next and how to make class available on m…
Browse files Browse the repository at this point in the history
…acOS
  • Loading branch information
mahal committed Mar 19, 2024
1 parent fda91fd commit 4f3f246
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,19 @@ Steps involved:
this implementation caches the resulting image.


Suggested next steps on development:
* Layout and draw the slices directly on a Canvas (instead of HStack) and independently move the Canvas left.
* Make class compatible with macOS
- Drawing with Canvas instead of UIGraphicsImageRenderer
(caching of UIImage no longer needed if callback can draw directly on one Canvas)
- CrossPlatformColor from Waveform.swift or Color.Resolved instead of UIColor for gradient lookup
* Add some parameters that can be changed while the spectrogram is running
- Pause so user can have a close look at the analyzed past
- Gain or sensitivity
- Speed of the rolling plot / detail frequency by adjusting fftSize
- Min and max frequency shown


Cause of inefficiency of this implementation
* Each time a new slice arrives from FFTTap, the view gets a complete layout update.
* Rendering of new slices is done on a background thread and involves too many steps
Expand Down

0 comments on commit 4f3f246

Please sign in to comment.