You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I am currently writing a small sound tracking player here. The usage example uses rodio. It might be fun to add scope-tui as a feature. is this a possibility? What do you think about that?
it may be cool to provide scope-tui as a dependency and not only a binary, so that other projects handling music and making TUIs can integrate these visualizers and not reinvent the wheel. idk if we can have a generic event type instead of crossterm's, and also if lib should include parsing/file sources
The text was updated successfully, but these errors were encountered:
use scope::{input::Matrix, display::{GraphConfig,DisplayMode, oscilloscope::Oscilloscope}};let data :Matrix<f64> = vec![];// Matrix<T> == Vec<Vec<T>>letmut osc = Oscilloscope::default();let cfg = GraphConfig::default();let datasets = osc.process(&cfg, data);// these aren't ratatui's Dataset but implement Into<Dataset>
you should probably receive batches of samples from rodio and pass them to Oscilloscope/Vectorscope/Spectroscope. These will process your data and spit out a Vec<DataSet>. Note that DataSet is basically a ratatui's Dataset but with owned strings
Discussed in https://github.com/alemidev/scope-tui/discussions/6
Originally posted by sbechet March 24, 2024
it may be cool to provide scope-tui as a dependency and not only a binary, so that other projects handling music and making TUIs can integrate these visualizers and not reinvent the wheel. idk if we can have a generic event type instead of crossterm's, and also if lib should include parsing/file sources
The text was updated successfully, but these errors were encountered: