Debian Codegraph @

opcodes/mp3scal.xml

raw symbols SCIP
1 <refentry id="mp3scal">
2 <indexterm id="IndexMp3scal"><primary>mp3scal</primary></indexterm>
3 <refentryinfo><title>Spectral Processing:Other</title></refentryinfo>
4 <refmeta>
5 <refentrytitle>mp3scal</refentrytitle>
6 </refmeta>
7
8 <refnamediv>
9 <refname>mp3scal</refname>
10 <refpurpose>
11 Phase-locked vocoder processing with onset detection/processing, 'tempo-scaling'.
12 </refpurpose>
13 </refnamediv>
14
15 <refsect1>
16 <title>Description</title>
17 <para>
18 <emphasis>mp3scal</emphasis> implements phase-locked vocoder
19 processing from mp3-format disk files, resampling if necessary.
20 </para>
21 <para>
22 This opcode allows for time and frequency-independent scaling. Time is advanced internally. The quality of the effect is generally improved with phase locking switched on.
23 </para>
24 <para>
25 <emphasis>mp3scal</emphasis> will also scale pitch, independently of frequency, using a transposition factor (k-rate).
26 </para>
27 </refsect1>
28
29 <refsect1>
30 <title>Syntax</title>
31 <synopsis>asig, asig2, ktime <command>mp3scal</command> Sfile, ktimescal, kpitch, kamp[, iskip, ifftsize, idecim, ilock]
32 </synopsis>
33 </refsect1>
34
35 <refsect1>
36 <title>Initialization</title>
37 <para>
38 <emphasis>Sfile</emphasis> -- source soundfile stereo mp3 files.
39 </para>
40 <para>
41 <emphasis>ifftsize</emphasis> -- FFT size (power-of-two), defaults to 2048.
42 </para>
43 <para>
44 <emphasis>idecim</emphasis> -- decimation, defaults to 4 (meaning hopsize = fftsize/4)
45 </para>
46 <para>
47 <emphasis>iskip</emphasis> -- skiptime in seconds, defaults to 1.
48 </para>
49 <para>
50 <emphasis>ilock</emphasis> -- 0 or 1, to switch phase-locking
51 on/off, defaults to 1.
52 </para>
53 </refsect1>
54
55 <refsect1>
56 <title>Performance</title>
57 <para>
58 <emphasis>ktimescal</emphasis> -- timescaling ratio, &lt; 1
59 stretch, > 1 contract. Non-negative numbers only.
60 </para>
61 <para>
62 <emphasis>kamp</emphasis> -- amplitude scaling
63 </para>
64 <para>
65 <emphasis>kpitch</emphasis> -- grain pitch scaling (1=normal pitch, &lt; 1 lower, > 1 higher)
66 </para>
67 <para>
68 <emphasis>ktime</emphasis> -- time stamp
69 </para>
70 <para>
71 <emphasis>asig</emphasis>, <emphasis>asig2</emphasis> -- stereo output signals
72 </para>
73 </refsect1>
74
75 <refsect1>
76 <title>Examples</title>
77 <para>
78 Here is an example of the mp3scal opcode. It uses the file <ulink url="examples/mp3scal.csd"><citetitle>mp3scal.csd</citetitle></ulink>.
79 <example>
80 <title>Example of the mp3scal opcode.</title>
81 <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>
82 <xi:include href="examples-xml/mp3scal.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
83 </example>
84 </para>
85 </refsect1>
86
87 <refsect1>
88 <title>See Also</title>
89 <para>
90 <link linkend="SiggenStft"><citetitle>Short-time Fourier Transform (STFT) Resynthesis</citetitle></link>
91 </para>
92 </refsect1>
93
94 <refsect1>
95 <title>Credits</title>
96 <para>
97 <simplelist>
98 <member>Author: &namevictor;</member>
99 <member>April 2016</member>
100 </simplelist>
101 </para>
102
103 <para>New in version 6.07</para>
104 <para>April 2016.</para>
105 </refsect1>
106 </refentry>
107