CreativePython 0.3.3__tar.gz → 0.3.4__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.
Files changed (112) hide show
  1. {creativepython-0.3.3/src/CreativePython.egg-info → creativepython-0.3.4}/PKG-INFO +1 -1
  2. {creativepython-0.3.3 → creativepython-0.3.4}/pyproject.toml +1 -1
  3. {creativepython-0.3.3 → creativepython-0.3.4/src/CreativePython.egg-info}/PKG-INFO +1 -1
  4. {creativepython-0.3.3 → creativepython-0.3.4}/src/gui.py +2 -2
  5. {creativepython-0.3.3 → creativepython-0.3.4}/src/music.py +6 -3
  6. {creativepython-0.3.3 → creativepython-0.3.4}/LICENSE +0 -0
  7. {creativepython-0.3.3 → creativepython-0.3.4}/LICENSE-PSF +0 -0
  8. {creativepython-0.3.3 → creativepython-0.3.4}/MANIFEST.in +0 -0
  9. {creativepython-0.3.3 → creativepython-0.3.4}/README.md +0 -0
  10. {creativepython-0.3.3 → creativepython-0.3.4}/setup.cfg +0 -0
  11. {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/__init__.py +0 -0
  12. {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/.DS_Store +0 -0
  13. {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/ArvoPart.CantusInMemoriam.py +0 -0
  14. {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/ConcretPH_Xenakis.py +0 -0
  15. {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/DeepPurple.SmokeOnTheWater.py +0 -0
  16. {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/JS_Bach.Canon.TriasHarmonica.BWV1072.py +0 -0
  17. {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/JS_Bach.Canon_1.GoldbergGround.BWV1087.py +0 -0
  18. {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/Mozart.MusikalischesWurfelspiel.py +0 -0
  19. {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/PierreCage.StructuresPourDeuxChances.py +0 -0
  20. {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/RGB_Display.py +0 -0
  21. {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/TerryRiley.InC.py +0 -0
  22. {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/arpeggiator1.py +0 -0
  23. {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/arpeggiator2.py +0 -0
  24. {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/autumnLeaves.py +0 -0
  25. {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/axelF.py +0 -0
  26. {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/biosignals.txt +0 -0
  27. {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/boids.py +0 -0
  28. {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/brownianMelody.py +0 -0
  29. {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/changesByTupac.py +0 -0
  30. {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/clementine.py +0 -0
  31. {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/continuousPitchInstrumentAudio.py +0 -0
  32. {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/drumExample.py +0 -0
  33. {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/drumMachinePattern1.py +0 -0
  34. {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/drumsComeAlive.py +0 -0
  35. {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/fibonacci.py +0 -0
  36. {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/findPitchOctave.py +0 -0
  37. {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/furElise.py +0 -0
  38. {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/generativeMusic.py +0 -0
  39. {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/goldenTree.py +0 -0
  40. {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/guidoWordMusic.py +0 -0
  41. {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/harmonicesMundi.py +0 -0
  42. {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/harmonicesMundiRevisisted.py +0 -0
  43. {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/harmonographLateral.py +0 -0
  44. {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/harmonographRotary.py +0 -0
  45. {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/iPianoBlackDown.png +0 -0
  46. {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/iPianoOctave.png +0 -0
  47. {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/iPianoParallel.py +0 -0
  48. {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/iPianoSimple.py +0 -0
  49. {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/iPianoWhiteCenterDown.png +0 -0
  50. {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/iPianoWhiteLeftDown.png +0 -0
  51. {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/iPianoWhiteRightDown.png +0 -0
  52. {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/midiIn1.py +0 -0
  53. {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/midiIn2.py +0 -0
  54. {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/midiIn3.py +0 -0
  55. {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/midiOut.a.py +0 -0
  56. {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/midiOut.b.py +0 -0
  57. {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/midiSynthesizer.py +0 -0
  58. {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/midiSynthesizer2.py +0 -0
  59. {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/moondog-bird_slament.wav +0 -0
  60. {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/musicalSphere.py +0 -0
  61. {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/note.py +0 -0
  62. {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/octoplus.py +0 -0
  63. {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/oscIn1.py +0 -0
  64. {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/oscIn2.py +0 -0
  65. {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/pentatonicMelody.py +0 -0
  66. {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/pianoPhase.py +0 -0
  67. {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/pianoRollGenerator.py +0 -0
  68. {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/playNote.py +0 -0
  69. {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/proteinMusic.py +0 -0
  70. {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/randomCircles.py +0 -0
  71. {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/randomCirclesThroughMidiInput.py +0 -0
  72. {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/randomCirclesTimed.py +0 -0
  73. {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/retrograde.a.py +0 -0
  74. {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/retrograde.b.py +0 -0
  75. {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/retrograde.c.py +0 -0
  76. {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/rowYourBoat.py +0 -0
  77. {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/scaleTutor.py +0 -0
  78. {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/sierpinskiTriangle.py +0 -0
  79. {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/simpleButtonInstrument.py +0 -0
  80. {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/simpleCircleInstrument.py +0 -0
  81. {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/sineMelody.py +0 -0
  82. {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/sineMelodyPlus.py +0 -0
  83. {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/sliderControl.py +0 -0
  84. {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/sonifyBiosignals.py +0 -0
  85. {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/sonifyImage.py +0 -0
  86. {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/soundscapeLoutrakiSunset.jpg +0 -0
  87. {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/stringQuartet.py +0 -0
  88. {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/textMusic.py +0 -0
  89. {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/theWayItIs.py +0 -0
  90. {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/themeAndVariations.py +0 -0
  91. {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/throwingDice.py +0 -0
  92. {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/windChimes.py +0 -0
  93. {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/zipfMetrics.py +0 -0
  94. {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/resources/.DS_Store +0 -0
  95. {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/resources/550973__luizguilherme_a__clean-guitarr-riff.mp3 +0 -0
  96. {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/resources/chopper.jpg +0 -0
  97. {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/resources/de-brazzas-monkey.jpg +0 -0
  98. {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython.egg-info/SOURCES.txt +0 -0
  99. {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython.egg-info/dependency_links.txt +0 -0
  100. {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython.egg-info/requires.txt +0 -0
  101. {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython.egg-info/top_level.txt +0 -0
  102. {creativepython-0.3.3 → creativepython-0.3.4}/src/_RealtimeAudioPlayer.py +0 -0
  103. {creativepython-0.3.3 → creativepython-0.3.4}/src/_notationRenderer.py +0 -0
  104. {creativepython-0.3.3 → creativepython-0.3.4}/src/bin/libportaudio.2.dylib +0 -0
  105. {creativepython-0.3.3 → creativepython-0.3.4}/src/iannix.py +0 -0
  106. {creativepython-0.3.3 → creativepython-0.3.4}/src/image.py +0 -0
  107. {creativepython-0.3.3 → creativepython-0.3.4}/src/markov.py +0 -0
  108. {creativepython-0.3.3 → creativepython-0.3.4}/src/midi.py +0 -0
  109. {creativepython-0.3.3 → creativepython-0.3.4}/src/osc.py +0 -0
  110. {creativepython-0.3.3 → creativepython-0.3.4}/src/timer.py +0 -0
  111. {creativepython-0.3.3 → creativepython-0.3.4}/src/zipf.py +0 -0
  112. {creativepython-0.3.3 → creativepython-0.3.4}/tests/test_keyEvent.py +0 -0
@@ -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
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "CreativePython"
7
- version = "0.3.3"
7
+ version = "0.3.4"
8
8
  description = "A Python-based software environment for developing algorithmic art projects."
9
9
  readme = "README.md"
10
10
  license = { file = "LICENSE" }
@@ -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
@@ -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
  """
@@ -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]
File without changes
File without changes
File without changes