Kmeter
Kmeter
Kmeter
2 The K-System 7
3 Installation 9
4 Controls 10
4.1 Meter selection . . . . . . . . . . . . . . . . . 10
4.2 Averaging method . . . . . . . . . . . . . . . . 11
4.3 Infinite peak hold . . . . . . . . . . . . . . . . 11
4.4 Show peak level meter . . . . . . . . . . . . . 12
4.5 Discrete segments . . . . . . . . . . . . . . . . 12
4.6 Magnify meters . . . . . . . . . . . . . . . . . 12
4.7 Monitoring section . . . . . . . . . . . . . . . 13
4.7.1 Dim outputs . . . . . . . . . . . . . . . 13
4.7.2 Mute outputs . . . . . . . . . . . . . . 13
4.7.3 Stereo flip . . . . . . . . . . . . . . . . 13
4.7.4 Mono . . . . . . . . . . . . . . . . . . . 14
4.8 Reset button . . . . . . . . . . . . . . . . . . . 14
4.9 Select a skin . . . . . . . . . . . . . . . . . . . 14
4.10 Validation button . . . . . . . . . . . . . . . . 15
4.11 About button . . . . . . . . . . . . . . . . . . . 15
4.12 Display license . . . . . . . . . . . . . . . . . . 16
3
Contents
5 Meters 17
5.1 K-System meter . . . . . . . . . . . . . . . . . 17
5.2 Average level meter . . . . . . . . . . . . . . . 18
5.3 Peak level meter . . . . . . . . . . . . . . . . . 19
5.4 Overload counter . . . . . . . . . . . . . . . . 19
5.5 Maximum true peak display . . . . . . . . . . 20
5.6 Maximum peak display . . . . . . . . . . . . . 20
5.7 Phase correlation meter . . . . . . . . . . . . 20
5.8 Stereo meter . . . . . . . . . . . . . . . . . . . 21
6 Validation 22
6.1 Validation status . . . . . . . . . . . . . . . . . 24
6.2 Frequency and phase response . . . . . . . . 24
7 Final words 29
A Build K-Meter 30
A.1 Dependencies . . . . . . . . . . . . . . . . . . 30
A.1.1 premake . . . . . . . . . . . . . . . . . 30
A.1.2 Compilers . . . . . . . . . . . . . . . . 31
A.1.3 JUCE library . . . . . . . . . . . . . . . 31
A.1.4 Virtual Studio Technology SDK . . . . 32
A.1.5 Fastest Fourier Transform in the West 32
A.1.6 Python . . . . . . . . . . . . . . . . . . 34
A.1.7 Jinja . . . . . . . . . . . . . . . . . . . . 35
A.1.8 Artistic Style . . . . . . . . . . . . . . . 35
A.2 GNU/Linux . . . . . . . . . . . . . . . . . . . . 37
A.2.1 Environment . . . . . . . . . . . . . . . 37
A.2.2 Build . . . . . . . . . . . . . . . . . . . 40
A.3 Microsoft Windows . . . . . . . . . . . . . . . 41
A.3.1 Build . . . . . . . . . . . . . . . . . . . 41
4
Contents
B Licenses 42
B.1 GNU General Public License . . . . . . . . . . 42
B.2 Creative Commons Attribution-ShareAlike
4.0 International . . . . . . . . . . . . . . . . . 57
5
1 The loudness race
When comparing two similar pieces of music, the louder
one is perceived as sounding better. This is only true for
very short periods of time and there is no evidence that
louder music sells better. Still, the loudness of music pro-
ductions has continuously grown during the last decades.
As maximum levels of records, tapes and digital media have
a natural limit, however, mastering engineers use sophist-
icated dynamic compression techniques to achieve higher
loudness without distorting the music. Unfortunately, they
have even started distorting the music and reducing its ste-
reo width to achieve even higher perceived loudness.
This decrease in dynamic range does not leave the music
unharmed. Current compressed music blasts away your
ears and makes you turn down the volume of your ampli-
fier. Having lowered the volume, you’ll find that the “better-
sounding” compressed music suddenly sounds very dull
and boring in comparison to music with less compression.
In contrast, music with high dynamic range makes you turn
up the volume – heck, it even sounds better when being
broadcast on the radio!
6
2 The K-System
The K-System has been devised by mastering engineer Bob
Katz in order to counteract the ongoing loudness race and
to help adjusting the levels of different songs during mas-
tering. K-System meters are level meters that do not place
the 0 dB mark on top of the meter. Instead, 0 dB on K-
System meters relates to a reference loudness. There are
three K-System scales:
• K-20 (0 dB at −20 dB FS, recommended)
• K-14 (0 dB at −14 dB FS)
• K-12 (0 dB at −12 dB FS)
Using the K-System is easy. Just calibrate your monitor sys-
tem so that pink noise (−20 dB FS RMS, 20 Hz to 20 kHz)
yields 83 dB SPL1 on each channel2 . Then mark the mon-
itor’s gain position as “K-20”. Jump to chapter 6 for inform-
ation on how to find a suitable audio file.
1
This level has to be adapted to room size. You can find recommen-
ded sound pressure levels for different room volumes in table 10.2
of ATSC Recommended Practice A/85:2013. To help you with con-
version, 35 cubic feet are roughly equivalent to 1 m3 .
2
Measure with all other channels muted. Be careful to take different
panning laws into consideration.
7
The K-System
8
3 Installation
In order to use the pre-compiled binaries, simply extract
the K-Meter files from the downloaded archive. For the
plug-ins, you’ll then have to move the extracted files to your
respective plug-in folder.
K-Meter requires a processor which supports the SSE2 in-
struction set. On Windows, you might also have to install
the Visual C++ Redistributable for Visual Studio 2017.
Loading K-Meter may take a few seconds: it checks your
computer’s capabilities on start-up so that FFT calculations
will run at maximum speed. Be patient – this little wait
in the beginning may well result in lower resource usage
later.
Should the stand-alone version ever fail to start, you can
reset its settings by deleting the file K-Meter (Stereo)
.settings or K-Meter (Surround).settings. These files
are located in ~/.config (GNU/Linux) or %appdata%\.
config\ (Windows).
9
4 Controls
10
Controls
11
Controls
12
Controls
13
Controls
4.7.4 Mono
14
Controls
15
Controls
16
5 Meters
In accordance with ITU-R BR.779-2 and BS.1738, K-Meter
assumes a 5.1 surround channel order of L, R, C, LFE, Ls and
Rs. Please double-check whether this matches your host’s
channel order!
17
Meters
18
Meters
19
Meters
20
Meters
21
6 Validation
I have gone to great lengths to ensure that all meters read
correctly. You want to validate for yourself? Just download
and extract the source code. The directory validation con-
tains instructions and FLAC-compressed wave files. To val-
idate ITU-R mode, please download ITU-R BS.2217-1 and
follow the instructions (ignore the tests for loudness gat-
ing). A word of warning: these audio files may damage your
ears and speakers, so please watch your monitor levels!
Begin by starting K-Meter. If in a Bash shell, try this:
32 and 64 bit
./kmeter_stereo 2>&1 | tee /tmp/validate.log
22
Validation
23
Validation
24
Validation
25
Validation
26
Validation
27
Validation
28
7 Final words
I want to express my gratitude to Bob Katz for kindly an-
swering all of my questions regarding the K-System meter
and checking this document for technical errors. I’d fur-
ther like to thank Tod Gentille for creating the Mac binar-
ies, bram@smartelectronix for his code to calculate logar-
ithmic rise and fall times, and Raiden for working out the
ITU-R BS.1770-1 filter specifications. David Tkaczuk sug-
gested some great improvements. I must also thank the
beta testers and users of K-Meter for sending kind words,
suggestions and bug reports. Finally, I want to thank the
open source community for making all of this possible.
Although coding K-Meter has been a lot of fun, it has also
been a lot of work. So if you like K-Meter, why not send me
an email and tell me so? Write a few words about yourself,
send suggestions for future updates or volunteer to create a
nice skin. I also really enjoy listening to music that you have
produced using my software . . .
Thanks for using free software. I hope you’ll enjoy it!
29
A Build K-Meter
A.1 Dependencies
A.1.1 premake
Importance: required
Version: 5.0.0 (alpha14)
License: BSD
Homepage: premake.github.io
Installation
30
Build K-Meter
A.1.2 Compilers
Importance: required
Linux: Clang 6.0 (or gcc 7.5.0)
Windows: Visual Studio 2017
License: proprietary (Visual Studio) / Open Source
Importance: required
Version: 5.4.7
License: ISC and GPL v3 (among others)
Homepage: www.juce.com
Installation
31
Build K-Meter
Importance: optional
Version: 2.4 / 3.6.14
License: proprietary / GPL v3
Homepage: www.steinberg.net
Installation
Importance: required
Version: 3.3.5
License: GPL v2
Homepage: www.fftw.org
Installation on GNU/Linux
32
Build K-Meter
32 bit
./configure --enable-float --with-pic \
--enable-sse2 --enable-avx
make
mkdir -p bin/linux/i386/
mv .libs/* bin/linux/i386/
make clean
64 bit
./configure --enable-float --with-pic \
--enable-sse2 --enable-avx
make
mkdir -p bin/linux/amd64/
mv .libs/* bin/linux/amd64/
make clean
Installation on Mac OS X
33
Build K-Meter
64 bit
./configure --enable-float --with-pic \
--enable-sse2 --enable-avx
make
mkdir -p bin/mac/x64/
mv .libs/* bin/mac/x64/
make clean
A.1.6 Python
Importance: optional
Version: 3.6 (or higher)
License: Python Software Foundation License
Homepage: www.python.org
34
Build K-Meter
Installation (Windows)
A.1.7 Jinja
Importance: optional
Version: 2.10 (or higher)
License: BSD
Homepage: jinja.pocoo.org
Importance: optional
Version: 3.1
License: LGPL v3
Homepage: astyle.sourceforge.net
35
Build K-Meter
Installation
36
Build K-Meter
A.2 GNU/Linux
A.2.1 Environment
37
Build K-Meter
[bionic-amd64]
description=Ubuntu bionic (amd64)
directory=/srv/chroot/bionic_amd64
profile=default
personality=linux
type=directory
users=username
38
Build K-Meter
64 bit
sudo schroot -c bionic-amd64
Now install a few packages – less and vim are optional, but
might come in handy:
32 and 64 bit
apt-get update
apt-get -y install bash-completion clang \
libasound2-dev libjack-jackd2-dev \
mesa-common-dev xorg-dev less vim
apt-get clean
39
Build K-Meter
32 bit
schroot -c bionic-i386
64 bit
schroot -c bionic-amd64
A.2.2 Build
where CFG is one of debug x32, debug x64, release x32 and
release x64, and TARGET is the version you want to compile,
such as linux standalone stereo.
40
Build K-Meter
In case you run into problems, you can try to switch com-
pilers by opening the file run premake.sh and using the pre-
make options --cc=clang or --cc=gcc.
The compiled binaries will end up in the directory bin.
A.3.1 Build
41
B Licenses
Preamble
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.
42
Licenses
Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
For the developers’ and authors’ protection, the GPL clearly explains
that there is no warranty for this free software. For both users’ and
authors’ sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
0. Definitions.
43
Licenses
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
44
Licenses
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work’s
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
45
Licenses
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work’s
users, your or third parties’ legal rights to forbid circumvention of
technological measures.
You may convey verbatim copies of the Program’s source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
a) The work must carry prominent notices stating that you modified
46
Licenses
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
47
Licenses
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
48
Licenses
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
7. Additional Terms.
49
Licenses
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
If you add terms to a covered work in accord with this section, you
50
Licenses
8. Termination.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
51
Licenses
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
52
Licenses
53
Licenses
The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
54
Licenses
55
Licenses
<one line to give the program’s name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
The hypothetical commands ‘show w’ and ‘show c’ should show the appropriate
parts of the General Public License. Of course, your program’s commands
might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<http://www.gnu.org/licenses/>.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
56
Licenses
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
57
Licenses
=======================================================================
By exercising the Licensed Rights (defined below), You accept and agree
to be bound by the terms and conditions of this Creative Commons
Attribution-ShareAlike 4.0 International Public License ("Public
License"). To the extent this Public License may be interpreted as a
contract, You are granted the Licensed Rights in consideration of Your
acceptance of these terms and conditions, and the Licensor grants You
such rights in consideration of benefits the Licensor receives from
making the Licensed Material available under these terms and
conditions.
Section 1 -- Definitions.
58
Licenses
59
Licenses
Section 2 -- Scope.
a. License grant.
60
Licenses
5. Downstream recipients.
b. Other rights.
61
Licenses
a. Attribution.
62
Licenses
information.
b. ShareAlike.
2. You must include the text of, or the URI or hyperlink to, the
Adapter’s License You apply. You may satisfy this condition
in any reasonable manner based on the medium, means, and
context in which You Share Adapted Material.
Where the Licensed Rights include Sui Generis Database Rights that
apply to Your use of the Licensed Material:
a. for the avoidance of doubt, Section 2(a)(1) grants You the right
to extract, reuse, reproduce, and Share all or a substantial
portion of the contents of the database;
For the avoidance of doubt, this Section 4 supplements and does not
replace Your obligations under this Public License where the Licensed
63
Licenses
a. This Public License applies for the term of the Copyright and
Similar Rights licensed here. However, if You fail to comply with
this Public License, then Your rights under this Public License
terminate automatically.
b. Where Your right to use the Licensed Material has terminated under
Section 6(a), it reinstates:
64
Licenses
For the avoidance of doubt, this Section 6(b) does not affect any
right the Licensor may have to seek remedies for Your violations
of this Public License.
c. For the avoidance of doubt, the Licensor may also offer the
Licensed Material under separate terms or conditions or stop
distributing the Licensed Material at any time; however, doing so
will not terminate this Public License.
Section 8 -- Interpretation.
a. For the avoidance of doubt, this Public License does not, and
shall not be interpreted to, reduce, limit, restrict, or impose
conditions on any use of the Licensed Material that could lawfully
be made without permission under this Public License.
65
Licenses
=======================================================================
66