| 1 | <refentry id="paulstretch"> |
| 2 | <indexterm id="IndexPaulStretch"><primary>paulstretch</primary></indexterm> |
| 3 | <refentryinfo><title>Spectral Processing:Other</title></refentryinfo> |
| 4 | <refmeta> |
| 5 | <refentrytitle>paulstretch</refentrytitle> |
| 6 | </refmeta> |
| 7 | |
| 8 | |
| 9 | |
| 10 | <refnamediv> |
| 11 | <refname>paulstretch</refname> |
| 12 | <refpurpose> |
| 13 | Extreme time-stretching algorithm by Nasca Octavian Paul. |
| 14 | </refpurpose> |
| 15 | </refnamediv> |
| 16 | |
| 17 | <refsect1> |
| 18 | <title>Description</title> |
| 19 | <para> |
| 20 | The <emphasis>paulstretch</emphasis> opcode is a lightweight |
| 21 | implementation of the PaulStretch time-stretching algorithm by |
| 22 | Nasca Octavian Paul. It is ideal for timestretching a signal by |
| 23 | very large amounts. |
| 24 | </para> |
| 25 | <para> |
| 26 | The Paulstretch algorithm works very similarly to other |
| 27 | STFT-based timestretching methods, using overlap-add with a |
| 28 | hanning window. Unique to paulstretch are the use of scrambled |
| 29 | phase and very large window sizes (specified in seconds). |
| 30 | </para> |
| 31 | </refsect1> |
| 32 | |
| 33 | <refsect1> |
| 34 | <title>Syntax</title> |
| 35 | <synopsis>asig <command>paulstretch</command> istretch, iwindowsize, ift |
| 36 | </synopsis> |
| 37 | </refsect1> |
| 38 | |
| 39 | <refsect1> |
| 40 | <title>Initialization</title> |
| 41 | <para> |
| 42 | <emphasis>istretch</emphasis> -- Stretch factor. |
| 43 | </para> |
| 44 | <para> |
| 45 | <emphasis>iwindowsize</emphasis> -- Window size, in seconds. |
| 46 | </para> |
| 47 | <para> |
| 48 | <emphasis>ift</emphasis> -- source signal function |
| 49 | table. Deferred-allocation tables (see |
| 50 | <link linkend="GEN01"><citetitle>GEN01</citetitle></link>) are |
| 51 | accepted, but the opcode expects a mono source. |
| 52 | </para> |
| 53 | |
| 54 | |
| 55 | </refsect1> |
| 56 | |
| 57 | <refsect1> |
| 58 | <title>Examples</title> |
| 59 | <para> |
| 60 | Here is an example of the paulstretch opcode. It uses the file |
| 61 | <ulink |
| 62 | url="examples/paulstretch.csd"><citetitle>paulstretch.csd</citetitle></ulink> |
| 63 | <example> |
| 64 | <title>Example of the paulstretch opcode.</title> |
| 65 | <xi:include href="examples-xml/paulstretch.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 66 | </example> |
| 67 | </para> |
| 68 | </refsect1> |
| 69 | |
| 70 | <refsect1> |
| 71 | <title>See also</title> |
| 72 | <para><link linkend="SigmodSpeciale"><citetitle>Special Effects</citetitle></link></para> |
| 73 | </refsect1> |
| 74 | |
| 75 | <refsect1> |
| 76 | <title>Credits</title> |
| 77 | <para> |
| 78 | <simplelist> |
| 79 | <member>Author: &namepaul;</member> |
| 80 | <member>May 2016</member> |
| 81 | </simplelist> |
| 82 | </para> |
| 83 | </refsect1> |
| 84 | </refentry> |