| 1 | |
| 2 | <refentry id="plltrack"> |
| 3 | <indexterm id="Indexplltrack"><primary>plltrack</primary></indexterm> |
| 4 | <refentryinfo><title>Instrument Control:Sensing and Control</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>plltrack</refentrytitle> |
| 7 | </refmeta> |
| 8 | |
| 9 | <refnamediv> |
| 10 | <refname>plltrack</refname> |
| 11 | <refpurpose> |
| 12 | Tracks the pitch of a signal. |
| 13 | </refpurpose> |
| 14 | </refnamediv> |
| 15 | |
| 16 | <refsect1> |
| 17 | <title>Description</title> |
| 18 | <para> |
| 19 | <emphasis>plltrack</emphasis>, a pitch tracker based on a phase-locked loop algorithm, described in Zolzer, U, Sankarababu, S.V. and Moller, S, "PLL-based Pitch Detection and Tracking for Audio Signals. Proc. of IIH-MSP 2012". |
| 20 | </para> |
| 21 | </refsect1> |
| 22 | |
| 23 | <refsect1> |
| 24 | <title>Syntax</title> |
| 25 | <synopsis>acps, alock <command>plltrack</command> asig, kd [, kloopf, kloopq, klf, khf, kthresh]</synopsis> |
| 26 | </refsect1> |
| 27 | |
| 28 | <refsect1> |
| 29 | <title>Performance</title> |
| 30 | <para> |
| 31 | <emphasis>acps</emphasis> -- estimated pitch in Hz. |
| 32 | </para> |
| 33 | |
| 34 | <para> |
| 35 | <emphasis>alock</emphasis> -- phase lock indicator, a phase error indicating the quality of the tracking, with values between 0 and 1. Higher values |
| 36 | indicate good tracking |
| 37 | </para> |
| 38 | |
| 39 | <para> |
| 40 | <emphasis>kd</emphasis> -- PLL feedback gain, controls frequency range of PLL (between 0 and 1). Higher values increase the range of the tracking. |
| 41 | </para> |
| 42 | |
| 43 | <para> |
| 44 | <emphasis>kloopf</emphasis> -- PLL LP filter cf, controls frequency range of PLL (opt, defaults to 20Hz). |
| 45 | </para> |
| 46 | |
| 47 | <para> |
| 48 | <emphasis>kloopq</emphasis> -- PLL LP filter Q, controls rise time of FO step (opt, defaults to 1/3) |
| 49 | </para> |
| 50 | |
| 51 | <para> |
| 52 | <emphasis>klf</emphasis> -- lowest tracking freq (opt, defaults to 20Hz) |
| 53 | </para> |
| 54 | |
| 55 | <para> |
| 56 | <emphasis>khf</emphasis> -- highest tracking freq (opt, defaults to 1500Hz) |
| 57 | </para> |
| 58 | |
| 59 | <para> |
| 60 | <emphasis>kthresh</emphasis> -- tracking signal level threshold (optional, defaults to 0.001, equiv to -60dBfs) |
| 61 | </para> |
| 62 | |
| 63 | <para> |
| 64 | <emphasis>plltrack</emphasis> analyzes the input signal, <emphasis>asig</emphasis>, |
| 65 | estimating the fundamental of a monophonic signal. Its output is updated every sample. |
| 66 | </para> |
| 67 | </refsect1> |
| 68 | |
| 69 | <refsect1> |
| 70 | <title>Examples</title> |
| 71 | <para> |
| 72 | Here is an example of the plltrack operator. It uses the file <ulink url="examples/plltrack.csd"><citetitle>plltrack.csd</citetitle></ulink>. |
| 73 | <example> |
| 74 | <title>Example of the plltrack operator.</title> |
| 75 | <para>See the sections <link linkend="UsingRealTime"><citetitle>Real-time Audio</citetitle></link> and <link linkend="CommandFlags"><citetitle>Command Line Flags</citetitle></link> for more information on using command line flags.</para> |
| 76 | <xi:include href="examples-xml/plltrack.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 77 | </example> |
| 78 | </para> |
| 79 | </refsect1> |
| 80 | |
| 81 | <refsect1> |
| 82 | <title>See also</title> |
| 83 | <para><link linkend="ControlSensing"><citetitle>Sensing and Control: Tempo and Pitch estimation</citetitle></link></para> |
| 84 | </refsect1> |
| 85 | |
| 86 | <refsect1> |
| 87 | <title>Credits</title> |
| 88 | <para> |
| 89 | <simplelist> |
| 90 | <member>Author: &namevictor;</member> |
| 91 | <member>NUI, Maynooth.</member> |
| 92 | <member>Maynooth, Ireland</member> |
| 93 | <member>September, 2012</member> |
| 94 | </simplelist> |
| 95 | </para> |
| 96 | |
| 97 | <para>New in Csound version 5.18.031</para> |
| 98 | </refsect1> |
| 99 | </refentry> |