routesong.py
is a python3 script that can generate a route through a graph of words with a specified musical metre.
The given word graph and metre are specified using CSV files. Both are hard-coded into the python script within the first 40 lines of code.
An example graph (CCP Games' Eve Online solar systems) is saved in /DATA/graph/
. Example metres are saved in /DATA/metre/
.
The script was written to be executed by Python version 3.5.3.
The script uses the following extra python packages:
-
Name: networkx
Version: 2.2
Summary: Python package for creating and manipulating graphs and networks
Home-page: http://networkx.github.io/
Author: NetworkX Developers
Author-email: [email protected]
License: BSD -
Name: matplotlib
Version: 3.0.2
Summary: Python plotting package
Home-page: http://matplotlib.org
Author: John D. Hunter, Michael Droettboom
Author-email: [email protected]
License: BSD
On Debian 9 with the python3
package installed, run $ python3 routesong.py
and make sure the contents of /DATA/ is present. To change which graph or metre is loaded then edit the first 40 lines of the script (inconvenient, yes, but this works for me).
PGP: 3457 A265 922A 1F38 39DB 0264 A0A2 95AB DC34 69C9
I am a novice programmer. Code is likely not efficient or well-formatted.