Re:I made a guitar tuner app using Flutter and Rust
by audio_stuff on Monday October 10, 2022 @09:21AM
(#33151025)
Awesome, thanks!
Re:I made a guitar tuner app using Flutter and Rust
by bobajeff on Monday October 10, 2022 @10:06AM
(#33151570)
>Flutter for the UI. Rust for the listening, and pitch detecting backend. Connected the former with the latter using flutter_rust_bridge.
It's good to see that there is a active project to help with making Android apps using rust.
Re:I made a guitar tuner app using Flutter and Rust
by frr149 on Monday October 10, 2022 @10:58AM
(#33152170)
Why not just dart?
Re:I made a guitar tuner app using Flutter and Rust
by mkss on Tuesday October 11, 2022 @02:19AM
(#33160064)
Dart being a GC'd runtime makes it quite hard to use for low latency audio applications, probably not as critical for audio input as output, but still potential issue, for more details see: https://github.com/dart-lang/sdk/issues/46943
Re:I made a guitar tuner app using Flutter and Rust
by pjmlp on Tuesday October 11, 2022 @03:07AM
(#33160293)
Then why bother with Flutter at all?
Re:I made a guitar tuner app using Flutter and Rust
by zduny on Tuesday October 11, 2022 @05:24AM
(#33161138)
It's amazing for UI (and portable).
Rust - not so much (or more like not at all) at the moment.
Re:I made a guitar tuner app using Flutter and Rust
by pjmlp on Tuesday October 11, 2022 @06:00AM
(#33161393)
And has a GC running all the time, including when the called Rust code is executing, making it pointless to avoid using Dart in first place.
Re:I made a guitar tuner app using Flutter and Rust
by sodality2 on Monday October 10, 2022 @12:27PM
(#33153363)
> - native desktop/iOS (not currently released): https://crates.io/crates/clap
I hope you didn't use a command line parser to stream audio...
Re:I made a guitar tuner app using Flutter and Rust
by zduny on Monday October 10, 2022 @01:02PM
(#33153829)
I meant https://github.com/RustAudio/cpal (should've checked).
Re:I made a guitar tuner app using Flutter and Rust
by sodality2 on Monday October 10, 2022 @01:13PM
(#33153966)
Haha, no worries :) "clap" does indeed sound audio-related, and "clap" is only one transposition from "cpal"!
Re:I made a guitar tuner app using Flutter and Rust
by audio_stuff on Monday October 10, 2022 @02:47PM
(#33155048)
"clap" IS actually audio related too https://github.com/free-audio/clap :)
More details on Rust backend:
For listening (getting audio signal from microphone) I used:
- Android: https://crates.io/crates/oboe
- native desktop/iOS (not currently released): https://crates.io/crates/clap
- Web: https://crates.io/crates/web-sys (so basically JS Web Audio API called from Rust compiled to WASM).
For pitch detection:
- https://crates.io/crates/pitch-detection