News for hackers. Stuff that matters.

zduny

Re:I made a guitar tuner app using Flutter and Rust on Tuesday October 11, 2022 @05:30AM (#33161188)
Thanks for mentioning the problem. I haven't noticed it using a laptop and trackpad.
Re:I made a guitar tuner app using Flutter and Rust on Tuesday October 11, 2022 @05:28AM (#33161178)
I'm considering adding that feature in future versions depending on interest.
Re:I made a guitar tuner app using Flutter and Rust on Tuesday October 11, 2022 @05:27AM (#33161161)
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 on Tuesday October 11, 2022 @05:25AM (#33161148)
It's not great. Especially on the web.
Re:I made a guitar tuner app using Flutter and Rust 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 on Tuesday October 11, 2022 @05:23AM (#33161125)
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").
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.

Re:I made a guitar tuner app using Flutter and Rust 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 on Monday October 10, 2022 @10:53AM (#33152112)
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...

Re:I made a guitar tuner app using Flutter and Rust on Monday October 10, 2022 @10:11AM (#33151649)
20 promo codes for the Android app:

C84DWEZJ690SZMDMH8CJVJJ

4PLTCBMWVANG2DSDK5L6J0U

7DZ209Q8MPGUSD8TLYDMSYT

C1JMYEV5BM22TWNQZ41FUBR

1A2EMZU4MZ2TM235VSAEMAM

W99RCM7V1MR6QCT4FJWM0GQ

ZQVW0YDBPKQMTWQ8Y4WQ4FX

TPXXBKLP75MC2YHGD59HE91

EHFXTJ035M2933UE0CMSD9V

199J1DBZZMLCZEWBG18FF0U

QF1UEZ9VV9WRKF6QBEVA25A

K5YQ36W2ZHWKFE66RSKFWPE

PKVUMEB1SDQQHK72V1WYF9X

FN1SX02P2W23QJFVTD4ZD2G

8TRJ7TW8K5BH8Z1SJM47PRT

P2XXEUPWS2HWZ8J6QXN9SF3

Y4X3KNXMRL28JPT3Q9TM8PM

UFMLABBHRS5ACBBKS2CW0GC

BD9Z90TR99DENNRYSJD40LX

DWVREU5F6NTF8M9QWMYXUER

Re:I made a guitar tuner app using Flutter and Rust on Monday October 10, 2022 @09:50AM (#33151391)
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).
Re:I made a guitar tuner app using Flutter and Rust on Monday October 10, 2022 @09:46AM (#33151342)
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 :)
Re:I made a guitar tuner app using Flutter and Rust on Monday October 10, 2022 @09:36AM (#33151213)
Ok.
Re:I made a guitar tuner app using Flutter and Rust on Monday October 10, 2022 @09:34AM (#33151188)
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.

Re:I made a guitar tuner app using Flutter and Rust on Monday October 10, 2022 @09:27AM (#33151095)
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.

Re:I made a guitar tuner app using Flutter and Rust on Monday October 10, 2022 @09:25AM (#33151078)
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).

Re:I made a guitar tuner app using Flutter and Rust on Monday October 10, 2022 @09:21AM (#33151037)
Maybe in future version :)
Re:I made a guitar tuner app using Flutter and Rust on Monday October 10, 2022 @09:21AM (#33151024)
Yes, I did the app mostly for myself as I was getting disappointed with them adding too many unnecessary (IMO) features to it.
Re:I made a guitar tuner app using Flutter and Rust on Monday October 10, 2022 @09:14AM (#33150946)
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

Re:I made a guitar tuner app using Flutter and Rust on Monday October 10, 2022 @08:18AM (#33150395)
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).