chord-progression-network 0.1.7__tar.gz → 0.1.9__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.7
3
+ Version: 0.1.9
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,10 +777,7 @@ 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
782
 
786
783
  s = stream.Score()
@@ -795,6 +792,7 @@ for m in motifs:
795
792
  c = chord.Chord(phrase[i])
796
793
  c.duration = duration.Duration(d)
797
794
  p.append(c)
795
+
798
796
  s.append(p)
799
797
 
800
798
  s.show()
@@ -79,10 +79,7 @@ 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
84
 
88
85
  s = stream.Score()
@@ -97,6 +94,7 @@ for m in motifs:
97
94
  c = chord.Chord(phrase[i])
98
95
  c.duration = duration.Duration(d)
99
96
  p.append(c)
97
+
100
98
  s.append(p)
101
99
 
102
100
  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.7"
4
+ __version__ = "0.1.9"
@@ -64,13 +64,12 @@ class Generator:
64
64
 
65
65
  def _build_scale(self):
66
66
  s = musical_scales.scale(self.scale_note)
67
- # remove the octave number from the strinified Note
67
+ # remove the octave number from the stringified Note
68
68
  s2 = []
69
69
  for n in s:
70
70
  s2.append(re.sub(r"\d+", "", f"{n}"))
71
71
  if self.flat:
72
- flattened = [ self._equiv(note) for note in s2 ]
73
- s2 = flattened
72
+ s2 = [ self._equiv(note) for note in s2 ]
74
73
  if self.verbose:
75
74
  print('Scale:', s2)
76
75
  return s2
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: chord_progression_network
3
- Version: 0.1.7
3
+ Version: 0.1.9
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,10 +777,7 @@ 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
782
 
786
783
  s = stream.Score()
@@ -795,6 +792,7 @@ for m in motifs:
795
792
  c = chord.Chord(phrase[i])
796
793
  c.duration = duration.Duration(d)
797
794
  p.append(c)
795
+
798
796
  s.append(p)
799
797
 
800
798
  s.show()