npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

klatt-syn

v1.0.6

Published

Klatt formant synthesizer

Downloads

32

Readme

KlattSyn - Klatt Formant Synthesizer

This is a redevelopment of the classic Klatt cascade-parallel formant synthesizer. The program code is written in TypeScript, which is compiled to JavaScript. It can run within a web browser or with Node.

This implementation of a Klatt synthesizer has been developed by Christian d'Heureuse in 2019 and is based on the following documents and source code:

Online demo: www.source-code.biz/klattSyn NPM package: klatt-syn GUI application: github.com/chdh/klatt-syn-app

A note on amplitudes

The meaning of amplitude parameters has changed in this implementation of the Klatt synthesizer.

Amplitude values in dB are always relative. In this implementation, we use positive dB values to amplify and negative dB values to attenuate a signal. 0 is used to pass a signal unchanged. -99 is used to mute a signal.

The original Klatt synthesizer used dB values in the range 0 to 87 for amplitude parameters. 0 was used to mute a signal. 57 was used to pass a signal unchanged.

Klatt (1980) states: "The amplitudes of the formant peaks generated by the parallel vocal tract model have been constrained such that, if A1 to A5 are all set to 60 dB, the transfer function will approximate that found in the cascade model." This is no longer the case.

The following table can be used to pragmatically map old values to new values for amplitude parameters in dB:

| Old dB | New dB | | ----: | ---: | | 87 | 30 | | 57 | 0 | | 27 | -30 | | 0 | -99 |

In addition, most amplitude parameter values where internally adjusted in the old source code. To find the corresponding new value, An adjustment value must be subtracted.

| Old symbol | Linear factor | Adjustment dB | Parameter | | :--- | ---: | ---: | :--- | | AP | 0.05 | -26.0 | Aspiration amplitude | | AF | 0.25 | -12.0 | Frication amplitude | | AB | 0.05 | -26.0 | Parallel bypass amplitude | | A1 | 0.4 | -8.0 | Parallel formant 1 amplitude (L1) | | A2 | 0.15 | -16.5 | Parallel formant 2 amplitude (L2) | | A3 | 0.06 | -24.4 | Parallel formant 3 amplitude (L3) | | A4 | 0.04 | -28.0 | Parallel formant 4 amplitude (L4) | | A5 | 0.022 | -33.2 | Parallel formant 5 amplitude (L5) | | A6 | 0.03 | -30.5 | Parallel formant 6 amplitude (L6) | | AN | 0.6 | -4.4 | Parallel nasal amplitude |