-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: Spectrogram #9
Comments
i already tried making it myself, but afaik ratatui graphs do not allow for solid blocks that would look the best for this usecase. |
It's maybe not quite fully what you're looking for, but I added ChartType::Bar to the Chart widget just recently in ratatui/ratatui#1205. This should be out in Ratatui 0.27.1 (and is likely in an alpha release already). I don't think it would get close to that image though :D |
hi! sorry for my late replies
it definitely would @eye-wave ! right now i have a spectogram implemented (you can reach it cycling views with TAB), but it is only an instant view: there is no color shading for history. to support such a view i need to first rework a bit how we receive audio data: right now i plan to do this eventually ™️ but it's not a very small change, some work will be required :)
thanks! this looks great and it definitely helps a ton, but to achieve a usable spectrogram with history we probably need to be able to shade bar blocks individually. i think it's possible as both cava and btop do it, i'm not sure if ratatui already supports it from 0.27.1, i may look into adding such feature into ratatui first! once again thanks @joshka for maintaining this awesome library!! c: |
oh speaking of usable spectrogram history, that would be also nice for other stuff. for example using smaller buffer with a oscilloscope to achieve the resolution of huge buffers that normally would drop the framerate to 1 or 2 |
I don't know what else to say. Spectrogram would be a really cool addition for this app
The text was updated successfully, but these errors were encountered: