chord-progression-network 0.1.6__tar.gz → 0.1.8__tar.gz

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,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])
@@ -79,18 +79,16 @@ from music21 import chord, duration, stream
79
79
  from chord_progression_network import Generator
80
80
  from random_rhythms import Rhythm
81
81
 
82
- r = Rhythm(
83
- durations: [ 1/2, 1/3, 1, 3/2, 2 ],
84
- groups={1/3: 3, 1/2: 2},
85
- )
82
+ r = Rhythm(durations=[1, 3/2, 2])
86
83
  motifs = [ r.motif() for _ in range(4) ]
87
- print(motifs)
88
84
 
89
85
  s = stream.Score()
90
86
  p = stream.Part()
91
87
 
88
+ g = Generator()
89
+
92
90
  for m in motifs:
93
- g = Generator(max=len(m))
91
+ g.max = len(m)
94
92
  phrase = g.generate()
95
93
  for i, d in enumerate(m):
96
94
  c = chord.Chord(phrase[i])
@@ -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])