[Subject Prev][Subject Next][Thread Prev][Thread Next][Date Index][Thread Index]

[hts-users:01637] harmless bug in HTS_pstream()


HTS_PStreamSet_create() has a minor bug:

                        if (not_bound || k == 0)
                           pst->sm.ivar[msd_frame][m] =
                               HTS_finv(HTS_SStreamSet_get_vari
                                        (sss, i, state, m));
                        else
                           pst->sm.ivar[msd_frame][k] = 0.0;

The last line should be

                           pst->sm.ivar[msd_frame][m] = 0.0;


In HTS_demo-SLT m == k, so the bug is harmless there, but it might
theoretically affect other implementations.

br,
  Nicholas


References
[hts-users:01636] HTS_vocoder.c: float to short conversion, Nicholas Volk