HNHacker News
TopNewBestAskShowJobs

zduny

152 karma · joined October 8, 2022

Software developer located in Poland.
submissionscomments
zduny··on I made a guitar tuner app using Flutter and Rust
Thanks for mentioning the problem. I haven't noticed it using a laptop and trackpad.
zduny··on I made a guitar tuner app using Flutter and Rust
I'm considering adding that feature in future versions depending on interest.
zduny··on I made a guitar tuner app using Flutter and Rust
Look at this crate: https://crates.io/crates/pitch-detection

It has documentation attached mentioning pitch detection algorithms it implements.

zduny··on I made a guitar tuner app using Flutter and Rust
It's not great. Especially on the web.
zduny··on I made a guitar tuner app using Flutter and Rust
It's amazing for UI (and portable).

Rust - not so much (or more like not at all) at the moment.

zduny··on I made a guitar tuner app using Flutter and Rust
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").
zduny··on Ask HN: What is this aversion to Rust on online forums about?
But I feel like there's some deeper story about Rust that I've missed and am out of the loop now.

Well, to me Rust is just a tool that I've discovered, it meet my expectations so I started using it.

Only then I've started noticing comments on reddit or whatever like "bleh, not Rust again" and really don't get why a programming language can be so triggering to people.

zduny··on I made a guitar tuner app using Flutter and Rust
I meant https://github.com/RustAudio/cpal (should've checked).
zduny··on I made a guitar tuner app using Flutter and Rust
What is that anger about Rust on internet forums about?

I started learning Rust because it's a language with interesting characteristics and welcoming documentation.

Only then I've discovered it's apparently "controversial" for some reason...

zduny··on I made a guitar tuner app using Flutter and Rust
20 promo codes for the Android app:

[all codes have been redeemed]

zduny··on I made a guitar tuner app using Flutter and Rust
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).
zduny··on I made a guitar tuner app using Flutter and Rust
Well, all the Rust crates I've mentioned in other comment have comprehensive examples attached, so it's just a matter of connecting their functionality together :)
zduny··on I made a guitar tuner app using Flutter and Rust
Ok.
zduny··on I made a guitar tuner app using Flutter and Rust
I don't know if it is allowed here:

Please reply if you would be interested in free promo codes for the Android app, I will post some.

zduny··on I made a guitar tuner app using Flutter and Rust
Android or Web?

If web - well, it sadly requires modern browser on relatively modern hardware - it has some performance problems currently in browsers, I'm not happy about that fact, I am considering improving it if the app catches enough interest.

If Android - please consider returning the app and getting your money back as long as you still can - I'm afraid I won't be able to solve it in quick fashion.

zduny··on I made a guitar tuner app using Flutter and Rust
Not at the moment. Sorry.

I'm planning to create a simpler free version of the app for the sake of cross-promotion, I may open source that one (but I can't make any promises currently, both regarding creating the actual app and open sourcing it).

zduny··on I made a guitar tuner app using Flutter and Rust
Maybe in future version :)
zduny··on I made a guitar tuner app using Flutter and Rust
Yes, I did the app mostly for myself as I was getting disappointed with them adding too many unnecessary (IMO) features to it.
zduny··on I made a guitar tuner app using Flutter and Rust
Flutter for the UI. Rust for the listening, and pitch detecting backend. Connected the former with the latter using flutter_rust_bridge.

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

zduny··on I made a guitar tuner app using Flutter and Rust
It's available free (and no ads) for desktop browsers and as a $1 Android app (on mobile needs to be an app for performance reasons and I believe it's a fair price).