Skip to content

Commit 916f1f4

Browse files
authored
flac.md: Example as "level 4" heading
Added an example as "level 4" heading at the end of the apodization functions. - The example is meant as a suggestion to the text, but - The "level 4" heading is meant as a test.
1 parent a0b4f5a commit 916f1f4

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

man/flac.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -854,6 +854,24 @@ parameter (defaulting to 5e-1) is applied for the smallest used window:
854854
For example, subdivide_tukey(2/5e-1) results in the same taper as that of
855855
tukey(25e-2) and subdivide_tukey(5) in the same taper as of tukey(1e-1).
856856

857+
#### example (for illustration - impractically long!):
858+
`-A "flattop;gauss(1e-1);tukey(3e-2);punchout_tukey(3/-9e-4/54e-2);subdivide_tukey(5/7e-1);hannning`
859+
The encoder will for each subframe try all the following in order,
860+
estimate the size, and pick the best which is then used to encode:
861+
- First taper the subframe with the flattop function;
862+
- Start anew at a gauss (STDEV of ten percent of the subframe);
863+
- Start anew at a tukey window that tapers 15% of each end (total 30%);
864+
- Then each of 3 windows generated by punchout_tukey: each generated by
865+
deleting ("punching out") a third of the subframe, with a small
866+
negative overlap, tapering off 27% off each end (total 54e-2);
867+
- Finally a sequence of windows produced by subdivide_tukey: like the
868+
two previous ones, it applies cosine-tapering, but steeper tapers
869+
at the ends (the base case tapers 7e-1 divided by 5 i.e. 14 percent
870+
of the subframe), and successively trying subdivisions: the first
871+
and last half of the subframe, then the first/middle/last third etc,
872+
up to generating five windows, one for each fifth of the subframe.
873+
- Wrong and discarded: "hanning" (a not-uncommon mixup of "hamming" and "hann").
874+
857875

858876
# SEE ALSO
859877

0 commit comments

Comments
 (0)