Live data from Hacker News

I made a guitar tuner app using Flutter and Rust

justune.eu

141–150 of 153 posts

Re: I made a guitar tuner app using Flutter and Rust

#141
post #139
post #59

Earlier quoted context omitted.

Why not just dart?

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

Then why bother with Flutter at all?

Re: I made a guitar tuner app using Flutter and Rust

#142
post #83

Earlier quoted context omitted.

I meant https://github.com/RustAudio/cpal (should've checked).

Haha, no worries :) "clap" does indeed sound audio-related, and "clap" is only one transposition from "cpal"!

Heh, I always get those two crates names confused, even now, rereading comments I again thought it was "clap" and not "cpal" (because "clap" like in "clapping").

Re: I made a guitar tuner app using Flutter and Rust

#143
post #141
post #139

Earlier quoted context omitted.

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

Then why bother with Flutter at all?

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

#144
post #36

Earlier quoted context omitted.

Performance reasons, also wanted it to work on the web (Flutter web support is fairly recent, and dart/flutter libraries don't automatically work on the web, they have to support the platform).

Thanks. Is dart performance that bad? I thought it compiled to machine code if needed. With the web support I was hoping the since dart can be transpiled to JS Flutter might do something similar. I'll have to look into this, I'm learning Dart due to its ability to run on most platforms.

It's not great. Especially on the web.

Re: I made a guitar tuner app using Flutter and Rust

#145
post #94

What algorithm are you using? I've been tempted to write a tuner using autocorrelation, because in my experience it picks up pitch wonderfully.

Look at this crate: https://crates.io/crates/pitch-detection

It has documentation attached mentioning pitch detection algorithms it implements.

Re: I made a guitar tuner app using Flutter and Rust

#148
post #143
post #141

Earlier quoted context omitted.

Then why bother with Flutter at all?

It's amazing for UI (and portable). Rust - not so much (or more like not at all) at the moment.

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

#149

Earlier quoted context omitted.

In general polyphonic pitch detection is a much harder problem to solve than monophonic. I guess focussing on guitar tuning only rather than trying to transcribe a whole song makes the problem a bit simpler but still is probably a lot more challenging than handling one note a time. Cool feature though, I had never thought of a polyphonic tuner!

My Snark died and I was about to order another one when I saw the TC Electronic PolyTune. I splurged and bought it. I love it!

Can one set the A to 432Hz?

Re: I made a guitar tuner app using Flutter and Rust

#150
post #133

The app looks great, but since no source code is provided knowing that it's made with Flutter and Rust isn't really of much use for anyone (esp. for learning purposes). For anyone interested, I found a nice open source tuner for Android https://github.com/thetwom/Tuner

Agreed. Without source code, this is just Yet Another Guitar Tuner App(tm) this time with Magic Rust Pixie Dust(tm) (take our word for it). If they release source code, I'll toss them money. Until then, pass.

"toss them money" ? i'm confused. Also, if you view-source you can see some boilerplate that strongly suggests it's flutter
Post reply on HN