3
|
1 |
### Chordal Analysis
|
|
2 |
|
|
3 |
*xmlChordAna* is a python script that makes a chordal analysis of a MusicXML file.
|
4
|
4 |
|
|
5 |
An interactive demo is avaiable on the
|
|
6 |
[Chord Analysis](../keys09/abc2chord.html?../js/pre_wind.js) page. It runs the script on
|
|
7 |
my server and formats the output in some neat html.
|
|
8 |
|
|
9 |
At the command line *xmlChordAna* is used as follows:
|
3
|
10 |
|
|
11 |
> ./xmlChordAna.py scorefile.xml
|
|
12 |
|
4
|
13 |
The output is printed in plain text looks like this:
|
3
|
14 |
|
|
15 |
File: bwv539p_arr.xml, ticks per quarternote: 384
|
|
16 |
342 note groups, 102 chord segments
|
|
17 |
Key: Am, confidence: 33%
|
|
18 |
---- chord Dmin, score: 90%
|
|
19 |
0 D3, D4, F4, A4
|
|
20 |
2 D3, F4, A4, D5
|
|
21 |
2 1/2 F4, A4, D5, D3
|
|
22 |
3 F4, A4, D5, C#3
|
|
23 |
3 1/2 F4, A4, D5, D3
|
|
24 |
---- chord Ehdim, score: 75%
|
|
25 |
4 D5, E3, E4, G4
|
|
26 |
---- chord C#hdim, score: 92%
|
|
27 |
5 E3, E4, G4, C#5
|
|
28 |
5 1/2 E3, E4, G4, B4
|
|
29 |
6 E3, E4, G4, C#5
|
|
30 |
6 1/2 E4, G4, C#5, E3
|
|
31 |
7 E4, G4, C#5, D3
|
|
32 |
7 1/2 E4, G4, C#5, E3
|
|
33 |
|
4
|
34 |
See [this explanation](https://wim.vree.org/keys09/uitleg.html) for more info.
|
|
35 |
|
|
36 |
### KeyScape
|
3
|
37 |
|
4
|
38 |
On the [KeyScape](../keys09) page you can find two other interactive demos. One makes
|
|
39 |
a *keyscape* from a MIDI file. The other runs the same chordal analysis as *xmlChordAna*,
|
|
40 |
but for a MIDI file. There is no download page (yet) for these programs.
|
|
41 |
|
|
42 |
### B40 notes
|
3
|
43 |
|
|
44 |
*xml2b40* is a python script to convert a MusicXML file to a list of B40 events.
|
|
45 |
It is invoked from the command line as follows:
|
|
46 |
|
|
47 |
> ./xml2b40.py -t 384 scorefile.xml
|
|
48 |
|
|
49 |
and produces the following output:
|
|
50 |
|
|
51 |
0 129
|
|
52 |
0 169
|
|
53 |
0 180
|
|
54 |
0 192
|
|
55 |
768 -192
|
|
56 |
768 -169
|
|
57 |
768 192
|
|
58 |
768 209
|
|
59 |
960 -129
|
|
60 |
960 129
|
|
61 |
1152 -129
|
|
62 |
1152 124
|
|
63 |
1344 -124
|
|
64 |
1344 129
|
|
65 |
1536 -192
|
|
66 |
1536 -180
|
|
67 |
...
|
|
68 |
|
4
|
69 |
Each line contains two numbers: the time and a B40 note.
|
|
70 |
|
|
71 |
*TO DO: More explanation*
|