# PESTO - pitch detection algorithm

**URL:** <https://discourse.flucoma.org/t/pesto-pitch-detection-algorithm/2740>\
**Category:** New Ideas\
**Created:** [February 4, 2026, 2:46pm UTC](https://discourse.flucoma.org/t/pesto-pitch-detection-algorithm/2740 "2026-02-04T14:46:25Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![rodrigo.constanzo](https://discourse.flucoma.org/user_avatar/discourse.flucoma.org/rodrigo.constanzo/32/12_2.png) [@rodrigo.constanzo](https://discourse.flucoma.org/u/rodrigo.constanzo)\
**Post date:** [February 4, 2026, 2:46pm UTC](https://discourse.flucoma.org/t/pesto-pitch-detection-algorithm/2740/1 "2026-02-04T14:46:25Z")

</div>

Much like the [Hz thread](https://discourse.flucoma.org/t/hz-pitch-detection-algorithm/2574) from a while back I came across this newer algorithm today by Sony called PESTO : Pitch Estimation with Self-supervised Transposition-equivariant Objective.

> **[GitHub - SonyCSLParis/pesto: Self-supervised learning for real-time pitch...](https://github.com/SonyCSLParis/pesto)**
>
> Self-supervised learning for real-time pitch estimation

Basically a neural pitch detection algorithm.

Someone’s made a Max external, which is handy: [pesto~](https://github.com/QosmoInc/pesto_tilde).

I had a quick play with it and although at smaller block sizes it’s quite shit, at 1024 (the default it seems), the tracking is really nice. Quite a bit better than Yin.

Obviously there’s so many other things that would be interesting to have (if/when dev time comes up), but just wanted to post this here in case it’s of interest as more cutting edge pitch detection algorithms (whereas I don’t think [Hz](https://discourse.flucoma.org/t/hz-pitch-detection-algorithm/2574) is so cutting edge, more just use-case-optimized).

---

<div class="post-metadata">

**Author:** ![tedmoore](https://discourse.flucoma.org/user_avatar/discourse.flucoma.org/tedmoore/32/439_2.png) [@tedmoore](https://discourse.flucoma.org/u/tedmoore)\
**Post date:** [February 4, 2026, 8:12pm UTC](https://discourse.flucoma.org/t/pesto-pitch-detection-algorithm/2740/2 "2026-02-04T20:12:04Z")

</div>

> [@rodrigo.constanzo](#):
>
> Quite a bit better than Yin.

That’s cool. Can you give us a bit of quantization on this, maybe a plots and stats comparing the two?

---

<div class="post-metadata">

**Author:** ![rodrigo.constanzo](https://discourse.flucoma.org/user_avatar/discourse.flucoma.org/rodrigo.constanzo/32/12_2.png) [@rodrigo.constanzo](https://discourse.flucoma.org/u/rodrigo.constanzo)\
**Post date:** [February 4, 2026, 8:46pm UTC](https://discourse.flucoma.org/t/pesto-pitch-detection-algorithm/2740/3 "2026-02-04T20:46:55Z")

</div>

Not gone that deep with it, just did some A/B-ing with it in patches and listening.

Don’t really know what kind of material would be suitable for quantifying the difference.

Actually here’s a quick screen capture:

https://www.youtube.com/embed/lJ8j9LL3SMQ?feature=oembed&wmode=opaque

---

<div class="post-metadata">

**Author:** ![tedmoore](https://discourse.flucoma.org/user_avatar/discourse.flucoma.org/tedmoore/32/439_2.png) [@tedmoore](https://discourse.flucoma.org/u/tedmoore)\
**Post date:** [February 4, 2026, 9:07pm UTC](https://discourse.flucoma.org/t/pesto-pitch-detection-algorithm/2740/4 "2026-02-04T21:07:07Z")

</div>

nice. thanks for the demo!

---

<div class="post-metadata">

**Author:** ![tremblap](https://discourse.flucoma.org/user_avatar/discourse.flucoma.org/tremblap/32/5_2.png) [@tremblap](https://discourse.flucoma.org/u/tremblap)\
**Post date:** [February 12, 2026, 2:21pm UTC](https://discourse.flucoma.org/t/pesto-pitch-detection-algorithm/2740/5 "2026-02-12T14:21:02Z")

</div>

can you compare with pesto `@conf 0.70`or fftyin with threshold at 0.98? What I hear is yin spitting pitch with low (0.7 is low) confidence…

it does look fast though

---

<div class="post-metadata">

**Author:** ![rodrigo.constanzo](https://discourse.flucoma.org/user_avatar/discourse.flucoma.org/rodrigo.constanzo/32/12_2.png) [@rodrigo.constanzo](https://discourse.flucoma.org/u/rodrigo.constanzo)\
**Post date:** [February 13, 2026, 9:58am UTC](https://discourse.flucoma.org/t/pesto-pitch-detection-algorithm/2740/6 "2026-02-13T09:58:57Z")

</div>

Here’s a follow up video showing some more.

https://www.youtube.com/embed/T65TCmNp1Io?feature=oembed&wmode=opaque

It seems like the confidence in pesto is way stickier/better (even with this funky vocal sample), and also seems to track the microtonal stuff even better (by comparison the yin sounds a bit _sharp_ most of the time).

---

<div class="post-metadata">

**Author:** ![tremblap](https://discourse.flucoma.org/user_avatar/discourse.flucoma.org/tremblap/32/5_2.png) [@tremblap](https://discourse.flucoma.org/u/tremblap)\
**Post date:** [February 13, 2026, 10:34am UTC](https://discourse.flucoma.org/t/pesto-pitch-detection-algorithm/2740/7 "2026-02-13T10:34:09Z")

</div>

it is indeed more accurate, sad that the license is not compatible (iirc) we could have, eventually, incorporated it. How’s the cpu usage?

---

<div class="post-metadata">

**Author:** ![rodrigo.constanzo](https://discourse.flucoma.org/user_avatar/discourse.flucoma.org/rodrigo.constanzo/32/12_2.png) [@rodrigo.constanzo](https://discourse.flucoma.org/u/rodrigo.constanzo)\
**Post date:** [February 13, 2026, 4:50pm UTC](https://discourse.flucoma.org/t/pesto-pitch-detection-algorithm/2740/8 "2026-02-13T16:50:43Z")

</div>

> [@tremblap](#):
>
> the license is not compatible

> <https://github.com/SonyCSLParis/pesto/blob/master/LICENSE.md>

I don’t know this stuff too well, but I guess this means it’s GPL3.

> [@tremblap](#):
>
> How’s the cpu usage?

Crazy crazy cheaper. Like, crazy.

yin seems to move between 17% and 45% whereas PESTO stays between 3-4% (for 100 instances of each).

Yin:

 ![Screenshot 2026-02-13 at 4.49.20 PM](https://discourse.flucoma.org/uploads/default/original/2X/4/4011375aa2e78291efd1f1ce89cab7bd1c0e153f.png)

Pesto:

 ![Screenshot 2026-02-13 at 4.49.08 PM](https://discourse.flucoma.org/uploads/default/original/2X/8/8e5e3410f9fdf3817d12d3f89d03996b2a841bcf.png)
