CreativePython 0.3.3__py3-none-any.whl → 0.3.4__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,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: CreativePython
3
- Version: 0.3.3
3
+ Version: 0.3.4
4
4
  Summary: A Python-based software environment for developing algorithmic art projects.
5
5
  Author-email: "Dr. Bill Manaris" <manaris@cofc.edu>, Taj Ballinger <ballingertj@g.cofc.edu>, Trevor Ritchie <ritchiets@g.cofc.edu>
6
6
  License: MIT License
@@ -1,11 +1,11 @@
1
1
  _RealtimeAudioPlayer.py,sha256=tjqBjSOvSvH1kP0t6q35xsbKHPr0wuLUvGdxdWAY73E,44590
2
2
  _notationRenderer.py,sha256=PdrVPWLuyxy0TQorX1DJ8TuyPpZbSM97Dq_ULypY-Gs,33358
3
- gui.py,sha256=FGRqbivQbG7cXun56SpzN_cNGCI1Dr57Ow3LEMr-V1A,158105
3
+ gui.py,sha256=F61nJjzTJk77bOcoZLi_ypLzbuFQ7nyl--kWe0Z1iYA,158115
4
4
  iannix.py,sha256=jlBJhPzBcIl2iayG01ldoslAytxYOvP3z_vN-EgiJA4,17188
5
5
  image.py,sha256=xg74OM78j744yJcJwPh39TDTZDHy8M-GZmjK2FSaosw,4011
6
6
  markov.py,sha256=VhTXZfDDHETj6KhriFmOLHKNjgx08cWZvpLECuGRTG0,24653
7
7
  midi.py,sha256=7WmitUu0xRqoo0KET4uQ1TEFZxc81CJCWqsND2SJGgA,42227
8
- music.py,sha256=TdEXGDW_glL_tyqrEalbJWpn9yxbuDE0WIz7Z_RcFLo,259232
8
+ music.py,sha256=4rx12scrqa6kmUur0bCgK_4Ql_akNLuMfMiaCLx4D8c,259322
9
9
  osc.py,sha256=76qLrFE_vXLaqi0c4XDilromvVSZjPMseNIpQm9C1IM,18724
10
10
  timer.py,sha256=dx9XxcsoSKLscH_M2St6MQQ-zgCcGvwsOYHMb3qXOUE,21513
11
11
  zipf.py,sha256=27lJHtlC8RfEvnenN02DAbjdnNZEppwrkijuCehIavU,30162
@@ -97,9 +97,9 @@ CreativePython/resources/550973__luizguilherme_a__clean-guitarr-riff.mp3,sha256=
97
97
  CreativePython/resources/chopper.jpg,sha256=AykvUOwRSDi4g6OpfcNQ-LgwPE05_eVkCv5E9lnhUbk,135266
98
98
  CreativePython/resources/de-brazzas-monkey.jpg,sha256=AFCxemqkDYv_TPpcLwrHnTtoxGduvZD7O2S0xMqQ4C0,119054
99
99
  bin/libportaudio.2.dylib,sha256=ooJlm7QeL7jYzc1c8YMmH-C8PhYHwDvBJZkNDVPFRbE,286592
100
- creativepython-0.3.3.dist-info/licenses/LICENSE,sha256=tz38qDa5RhHMqzZR1Q5QafqWdXn_EhheXYBP7FjgtEM,1992
101
- creativepython-0.3.3.dist-info/licenses/LICENSE-PSF,sha256=JN1jUPIsEUH1mq3AXxet-b1IdhAr-XzscXBZiz74c9c,3371
102
- creativepython-0.3.3.dist-info/METADATA,sha256=ckAPjQpzGCGDyz3cBSukk7d250ynn1ba7XN5pbA3gXw,8733
103
- creativepython-0.3.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
104
- creativepython-0.3.3.dist-info/top_level.txt,sha256=DUHyUQtMM2S0AjMePQc6ONTvGShY3tshO3kBDGLV-_Y,108
105
- creativepython-0.3.3.dist-info/RECORD,,
100
+ creativepython-0.3.4.dist-info/licenses/LICENSE,sha256=tz38qDa5RhHMqzZR1Q5QafqWdXn_EhheXYBP7FjgtEM,1992
101
+ creativepython-0.3.4.dist-info/licenses/LICENSE-PSF,sha256=JN1jUPIsEUH1mq3AXxet-b1IdhAr-XzscXBZiz74c9c,3371
102
+ creativepython-0.3.4.dist-info/METADATA,sha256=6pvo0vY5A1BEANEIYu7AKDvZ4imLTYuirrcspyGC1ek,8733
103
+ creativepython-0.3.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
104
+ creativepython-0.3.4.dist-info/top_level.txt,sha256=DUHyUQtMM2S0AjMePQc6ONTvGShY3tshO3kBDGLV-_Y,108
105
+ creativepython-0.3.4.dist-info/RECORD,,
gui.py CHANGED
@@ -1242,13 +1242,13 @@ class Display(Interactable):
1242
1242
  """
1243
1243
  Returns the display's canvas width (in pixels).
1244
1244
  """
1245
- return self._scene.width()
1245
+ return int(self._scene.width())
1246
1246
 
1247
1247
  def getHeight(self):
1248
1248
  """
1249
1249
  Returns the display's canvas height (in pixels).
1250
1250
  """
1251
- return self._scene.height()
1251
+ return int(self._scene.height())
1252
1252
 
1253
1253
  def setSize(self, width, height):
1254
1254
  """
music.py CHANGED
@@ -536,9 +536,12 @@ def mapScale(value, minValue, maxValue, minResultValue, maxResultValue, scale=CH
536
536
  so pitchRow must contain offsets (from the root) between 0 and 11.
537
537
  """
538
538
  # check if value is within the specified range
539
- if value < minValue or value > maxValue:
540
- raise ValueError("value, " + str(value) + ", is outside the specified range, " \
541
- + str(minValue) + " to " + str(maxValue) + ".")
539
+ # if value < minValue or value > maxValue:
540
+ # raise ValueError("value, " + str(value) + ", is outside the specified range, " \
541
+ # + str(minValue) + " to " + str(maxValue) + ".")
542
+
543
+ # clamp value to specified range
544
+ value = min(maxValue, max(value, minValue))
542
545
 
543
546
  # check pitch row - it should contain offsets only from 0 to 11
544
547
  badOffsets = [offset for offset in scale if offset < 0 or offset > 11]