chord-progression-network 0.1.6__tar.gz → 0.1.7__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.7
4
4
  Summary: Network transition chord progressions
5
5
  Author-email: Gene Boggs <gene.boggs@gmail.com>
6
6
  License: GNU GENERAL PUBLIC LICENSE
@@ -778,23 +778,23 @@ from chord_progression_network import Generator
778
778
  from random_rhythms import Rhythm
779
779
 
780
780
  r = Rhythm(
781
- durations: [ 1/2, 1/3, 1, 3/2, 2 ],
781
+ durations=[ 1/2, 1/3, 1, 3/2, 2 ],
782
782
  groups={1/3: 3, 1/2: 2},
783
783
  )
784
784
  motifs = [ r.motif() for _ in range(4) ]
785
- print(motifs)
786
785
 
787
786
  s = stream.Score()
788
787
  p = stream.Part()
789
788
 
789
+ g = Generator()
790
+
790
791
  for m in motifs:
791
- g = Generator(max=len(m))
792
+ g.max = len(m)
792
793
  phrase = g.generate()
793
794
  for i, d in enumerate(m):
794
795
  c = chord.Chord(phrase[i])
795
796
  c.duration = duration.Duration(d)
796
797
  p.append(c)
797
-
798
798
  s.append(p)
799
799
 
800
800
  s.show()
@@ -80,23 +80,23 @@ from chord_progression_network import Generator
80
80
  from random_rhythms import Rhythm
81
81
 
82
82
  r = Rhythm(
83
- durations: [ 1/2, 1/3, 1, 3/2, 2 ],
83
+ durations=[ 1/2, 1/3, 1, 3/2, 2 ],
84
84
  groups={1/3: 3, 1/2: 2},
85
85
  )
86
86
  motifs = [ r.motif() for _ in range(4) ]
87
- print(motifs)
88
87
 
89
88
  s = stream.Score()
90
89
  p = stream.Part()
91
90
 
91
+ g = Generator()
92
+
92
93
  for m in motifs:
93
- g = Generator(max=len(m))
94
+ g.max = len(m)
94
95
  phrase = g.generate()
95
96
  for i, d in enumerate(m):
96
97
  c = chord.Chord(phrase[i])
97
98
  c.duration = duration.Duration(d)
98
99
  p.append(c)
99
-
100
100
  s.append(p)
101
101
 
102
102
  s.show()
@@ -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.7"
@@ -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.7
4
4
  Summary: Network transition chord progressions
5
5
  Author-email: Gene Boggs <gene.boggs@gmail.com>
6
6
  License: GNU GENERAL PUBLIC LICENSE
@@ -778,23 +778,23 @@ from chord_progression_network import Generator
778
778
  from random_rhythms import Rhythm
779
779
 
780
780
  r = Rhythm(
781
- durations: [ 1/2, 1/3, 1, 3/2, 2 ],
781
+ durations=[ 1/2, 1/3, 1, 3/2, 2 ],
782
782
  groups={1/3: 3, 1/2: 2},
783
783
  )
784
784
  motifs = [ r.motif() for _ in range(4) ]
785
- print(motifs)
786
785
 
787
786
  s = stream.Score()
788
787
  p = stream.Part()
789
788
 
789
+ g = Generator()
790
+
790
791
  for m in motifs:
791
- g = Generator(max=len(m))
792
+ g.max = len(m)
792
793
  phrase = g.generate()
793
794
  for i, d in enumerate(m):
794
795
  c = chord.Chord(phrase[i])
795
796
  c.duration = duration.Duration(d)
796
797
  p.append(c)
797
-
798
798
  s.append(p)
799
799
 
800
800
  s.show()