With essentia’s viterbi https://github.com/MTG/essentia/issues/253 or - [Madmom’s Vitebi implementation](https://github.com/CPJKU/madmom/blob/51969404126cf98584ab3fc21efce64ed7342ab3/madmom/ml/hmm.pyx#L434) (cython) - Johan Pawels https://ismir2017.smcnus.org/wp-content/uploads/2017/10/195_Paper.pdf