Author Topic: Tuner on LCD  (Read 582 times)

ReneMadeira

  • Newbie
  • *
  • Posts: 24
    • View Profile
Tuner on LCD
« on: January 06, 2022, 07:14:42 AM »
Hello,
Just recieved my kit and I'm assembling it in my spare time.
Still planning the enclosure, number of switches, controls..
In the meantime, I was wondering if it's possible to have a tuner on the LCD screen, accessible from a longpress on a footswitch.
Don't really know how much of effort would be involved since I can't understand python well, so I posted here before opening a request in github.
Regards,

Randall (Admin)

  • Administrator
  • Full Member
  • *****
  • Posts: 217
    • View Profile
Re: Tuner on LCD
« Reply #1 on: January 07, 2022, 06:08:45 PM »
Sure, anything is possible with software!

Because clip-on tuners are common and a tuner plugin exists in MOD (via the MOD web UI), a tuner feature isn't at the top of my list of things to work on, but another user has prototyped something which is terminal based.  I'll try to dig up that thread.

As someone who has tried to implement a tuner using an arduino, I can attest that the code that listens to a string played with all of the harmonics that make up that signal and reliably distill it to a single frequency is not as simple as it might appear.  There are plenty of solutions out there using Zero-Crossings, Peak Detection, Slope Detection, Autocorrelation, etc.  My suggestion would be to choose one that someone has already perfected and plumb in the signal input and display.

Regarding the display, you/we could likely write some fairly simple python code likely using the PIL graphics lib (like the rest of pi stomp) to render a meter.  Another very active user in this forum has been working on a redux of some of the LCD graphics that could make it even easier to add a "Tuner" page.


AeonKen

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: Tuner on LCD
« Reply #2 on: February 08, 2023, 12:43:06 PM »
Has this been implemented/planed?

Randall (Admin)

  • Administrator
  • Full Member
  • *****
  • Posts: 217
    • View Profile
Re: Tuner on LCD
« Reply #3 on: February 08, 2023, 04:08:45 PM »
It's been played with.  I'm personally too busy with other features and a bit discouraged that even the Tuna tuner available in MOD and the one used by Moddwarf is pretty lame.  I just use a clip tuner.