musicflower.plotting.plot_key_scape
- musicflower.plotting.plot_key_scape(corpus, show=True)[source]
Create key scape plot(s) from corpus. If corpus is just a single piece (two dimensions) a single key scape plot is create; if corpus contains multiple pieces (three dimensions) multiple key scape plots in different sub-plots are create.
- Parameters:
corpus – array of shape
(k, m, 12)
or(m, 12)
, wherek
is the number of pieces andm
corresponds to the triangular map dimension.show – call pyplot.show() after creating the plots