README.md
changeset 4 319d42cc33d8
parent 3 b89a27b9bd9e
child 5 377c84f956dc
equal deleted inserted replaced
3:b89a27b9bd9e 4:319d42cc33d8
     1 ### Chordal Analysis
     1 ### Chordal Analysis
     2 
     2 
     3 *xmlChordAna* is a python script that makes a chordal analysis of a MusicXML file.
     3 *xmlChordAna* is a python script that makes a chordal analysis of a MusicXML file.
     4 It is used as from the command line as follows:
     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:
     5 
    10 
     6         > ./xmlChordAna.py scorefile.xml
    11         > ./xmlChordAna.py scorefile.xml
     7 
    12 
     8 The output is printed on *stdout* and looks like this:
    13 The output is printed in plain text looks like this:
     9 
    14 
    10         File: bwv539p_arr.xml, ticks per quarternote: 384
    15         File: bwv539p_arr.xml, ticks per quarternote: 384
    11         342 note groups, 102 chord segments
    16         342 note groups, 102 chord segments
    12         Key: Am, confidence: 33%
    17         Key: Am, confidence: 33%
    13         ---- chord Dmin, score: 90%
    18         ---- chord Dmin, score: 90%
    24            6     E3, E4, G4, C#5
    29            6     E3, E4, G4, C#5
    25            6 1/2 E4, G4, C#5, E3
    30            6 1/2 E4, G4, C#5, E3
    26            7     E4, G4, C#5, D3
    31            7     E4, G4, C#5, D3
    27            7 1/2 E4, G4, C#5, E3
    32            7 1/2 E4, G4, C#5, E3
    28 
    33 
    29 See [this explanation][1] for more info.
    34 See [this explanation](https://wim.vree.org/keys09/uitleg.html) for more info.
    30 
    35 
    31 [1]: https://wim.vree.org/keys09/uitleg.html
    36 ### KeyScape
       
    37 
       
    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
    32 
    43 
    33 *xml2b40* is a python script to convert a MusicXML file to a list of B40 events.
    44 *xml2b40* is a python script to convert a MusicXML file to a list of B40 events.
    34 It is invoked from the command line as follows:
    45 It is invoked from the command line as follows:
    35 
    46 
    36         > ./xml2b40.py -t 384 scorefile.xml
    47         > ./xml2b40.py -t 384 scorefile.xml
    54         1536 -192
    65         1536 -192
    55         1536 -180
    66         1536 -180
    56         ...
    67         ...
    57 
    68 
    58 Each line contains two numbers: the time and a B40 note.
    69 Each line contains two numbers: the time and a B40 note.
       
    70 
       
    71 *TO DO: More explanation*