forked from cannam/tuning-difference
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
35 lines (24 loc) · 1.46 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
Plugin to calculate comparative tuning of recordings
----------------------------------------------------
This plugin estimates the tuning frequency (concert-A) of a recording,
by comparing it with a "reference" recording of the same music that
has a known tuning frequency. The aim is to identify the tuning
frequency of the unknown recording even in difficult cases, such as
where A is tuned more than a semitone below 440Hz.
The reference recording could be another performance at known pitch
or, for example, a MIDI rendering at 440Hz. The two recordings must be
in the same key, although I suppose you could also interpret this
plugin as finding the pitch difference of any transposition between
the two recordings' keys plus any underlying tuning difference.
The plugin expects to receive the two different recordings of the same
piece of music as its two channels of input. (You can provide these
using the --multiplex option in Sonic Annotator, for example.) If you
feed it a single piece of music, you won't get anything worthwhile.
Example usage:
$ export VAMP_PATH=. # if running from the build directory
$ sonic-annotator -m -d vamp:tuning-difference:tuning-difference:tuningfreq PreludeInCMajorBWV846.mp3 BWV846Egarr.mp3 -w csv --csv-stdout --csv-omit-filename
Here the first file is a MIDI rendering using a piano sample at 440Hz,
and the second is a harpsichord recording tuned with A=397Hz. After
processing, this prints
0.000000000,397.009
Chris Cannam, Feb 2015