chord-progression-network 0.1.6__py3-none-any.whl → 0.1.8__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
1
  # The root of the entire project
2
2
  from chord_progression_network.chord_progression_network import Generator
3
3
 
4
- __version__ = "0.1.6"
4
+ __version__ = "0.1.8"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: chord_progression_network
3
- Version: 0.1.6
3
+ Version: 0.1.8
4
4
  Summary: Network transition chord progressions
5
5
  Author-email: Gene Boggs <gene.boggs@gmail.com>
6
6
  License: GNU GENERAL PUBLIC LICENSE
@@ -777,18 +777,16 @@ from music21 import chord, duration, stream
777
777
  from chord_progression_network import Generator
778
778
  from random_rhythms import Rhythm
779
779
 
780
- r = Rhythm(
781
- durations: [ 1/2, 1/3, 1, 3/2, 2 ],
782
- groups={1/3: 3, 1/2: 2},
783
- )
780
+ r = Rhythm(durations=[1, 3/2, 2])
784
781
  motifs = [ r.motif() for _ in range(4) ]
785
- print(motifs)
786
782
 
787
783
  s = stream.Score()
788
784
  p = stream.Part()
789
785
 
786
+ g = Generator()
787
+
790
788
  for m in motifs:
791
- g = Generator(max=len(m))
789
+ g.max = len(m)
792
790
  phrase = g.generate()
793
791
  for i, d in enumerate(m):
794
792
  c = chord.Chord(phrase[i])
@@ -0,0 +1,7 @@
1
+ chord_progression_network/__init__.py,sha256=2MYqaHPkZfYgPvIq_NXSPPHQb33E-cRt5m92Fmu1J9Q,129
2
+ chord_progression_network/chord_progression_network.py,sha256=arIOhj1lPGU52MiiUjNSLxb-xaamtTuQ0frViY02umA,7767
3
+ chord_progression_network-0.1.8.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
4
+ chord_progression_network-0.1.8.dist-info/METADATA,sha256=x_6ZzPj93C_mwRAd73VkJB2TYiROVLVKcqNknYjVwgQ,44905
5
+ chord_progression_network-0.1.8.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
6
+ chord_progression_network-0.1.8.dist-info/top_level.txt,sha256=wFUVCeOSCx3HJnvfUXj-OD7ElVGjXWJSBwHCJnqcCu0,26
7
+ chord_progression_network-0.1.8.dist-info/RECORD,,
@@ -1,7 +0,0 @@
1
- chord_progression_network/__init__.py,sha256=t5UCJ4wb5sRbaul7y2k5hyEIn4MqputEcTK916Y1eHc,129
2
- chord_progression_network/chord_progression_network.py,sha256=arIOhj1lPGU52MiiUjNSLxb-xaamtTuQ0frViY02umA,7767
3
- chord_progression_network-0.1.6.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
4
- chord_progression_network-0.1.6.dist-info/METADATA,sha256=8Y_I24O6DRkvpPTyTXdVAPdmON5uCle-bUiS3bVtRdY,44962
5
- chord_progression_network-0.1.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
6
- chord_progression_network-0.1.6.dist-info/top_level.txt,sha256=wFUVCeOSCx3HJnvfUXj-OD7ElVGjXWJSBwHCJnqcCu0,26
7
- chord_progression_network-0.1.6.dist-info/RECORD,,