Music::Interval::Barycentric
version 0.01_01
my @chords = get_chords(@ARGV); printf "D: %.3f\n", distance($chords[0], $chords[1]); print join(', ',barycenter(3)),"\n"; print distance(@chords), "\n"; print evenness_index($chords[0]); print orbit_distance(@chords), "\n"; print forte_distance(@chords), "\n";
Barycentric chord analysis
Music::Interval::Barycentric - Barycentric Musical Interval Space
Return array references for CSV chords.
* This is a legacy method from fetching commandline arguments.
Return the barycenter (the "central coordinate") given an integer representing the number of notes in a chord.
Interval space distance metric between chords.
* This is used by the orbit_distance() and evenness_index() functions.
TODO
Return the list of cyclic permutations of the given intervals.
Return a chord distance from the barycenter.
http://www.amazon.com/Geometry-Musical-Chords-Interval-Representation/dp/145022797X
Gene Boggs <gene@cpan.org>
Copyright 2012, Gene Boggs
This code is licensed under the same terms as Perl itself.
This software is copyright (c) 2014 by Gene Boggs.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Music::Interval::Barycentric, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Music::Interval::Barycentric
CPAN shell
perl -MCPAN -e shell install Music::Interval::Barycentric
For more information on module installation, please visit the detailed CPAN module installation guide.