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.
- {creativepython-0.3.3/src/CreativePython.egg-info → creativepython-0.3.4}/PKG-INFO +1 -1
- {creativepython-0.3.3 → creativepython-0.3.4}/pyproject.toml +1 -1
- {creativepython-0.3.3 → creativepython-0.3.4/src/CreativePython.egg-info}/PKG-INFO +1 -1
- {creativepython-0.3.3 → creativepython-0.3.4}/src/gui.py +2 -2
- {creativepython-0.3.3 → creativepython-0.3.4}/src/music.py +6 -3
- {creativepython-0.3.3 → creativepython-0.3.4}/LICENSE +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/LICENSE-PSF +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/MANIFEST.in +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/README.md +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/setup.cfg +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/__init__.py +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/.DS_Store +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/ArvoPart.CantusInMemoriam.py +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/ConcretPH_Xenakis.py +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/DeepPurple.SmokeOnTheWater.py +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/JS_Bach.Canon.TriasHarmonica.BWV1072.py +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/JS_Bach.Canon_1.GoldbergGround.BWV1087.py +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/Mozart.MusikalischesWurfelspiel.py +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/PierreCage.StructuresPourDeuxChances.py +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/RGB_Display.py +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/TerryRiley.InC.py +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/arpeggiator1.py +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/arpeggiator2.py +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/autumnLeaves.py +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/axelF.py +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/biosignals.txt +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/boids.py +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/brownianMelody.py +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/changesByTupac.py +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/clementine.py +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/continuousPitchInstrumentAudio.py +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/drumExample.py +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/drumMachinePattern1.py +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/drumsComeAlive.py +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/fibonacci.py +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/findPitchOctave.py +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/furElise.py +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/generativeMusic.py +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/goldenTree.py +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/guidoWordMusic.py +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/harmonicesMundi.py +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/harmonicesMundiRevisisted.py +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/harmonographLateral.py +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/harmonographRotary.py +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/iPianoBlackDown.png +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/iPianoOctave.png +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/iPianoParallel.py +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/iPianoSimple.py +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/iPianoWhiteCenterDown.png +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/iPianoWhiteLeftDown.png +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/iPianoWhiteRightDown.png +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/midiIn1.py +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/midiIn2.py +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/midiIn3.py +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/midiOut.a.py +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/midiOut.b.py +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/midiSynthesizer.py +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/midiSynthesizer2.py +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/moondog-bird_slament.wav +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/musicalSphere.py +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/note.py +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/octoplus.py +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/oscIn1.py +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/oscIn2.py +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/pentatonicMelody.py +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/pianoPhase.py +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/pianoRollGenerator.py +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/playNote.py +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/proteinMusic.py +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/randomCircles.py +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/randomCirclesThroughMidiInput.py +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/randomCirclesTimed.py +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/retrograde.a.py +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/retrograde.b.py +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/retrograde.c.py +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/rowYourBoat.py +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/scaleTutor.py +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/sierpinskiTriangle.py +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/simpleButtonInstrument.py +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/simpleCircleInstrument.py +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/sineMelody.py +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/sineMelodyPlus.py +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/sliderControl.py +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/sonifyBiosignals.py +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/sonifyImage.py +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/soundscapeLoutrakiSunset.jpg +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/stringQuartet.py +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/textMusic.py +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/theWayItIs.py +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/themeAndVariations.py +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/throwingDice.py +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/windChimes.py +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/zipfMetrics.py +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/resources/.DS_Store +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/resources/550973__luizguilherme_a__clean-guitarr-riff.mp3 +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/resources/chopper.jpg +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/resources/de-brazzas-monkey.jpg +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython.egg-info/SOURCES.txt +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython.egg-info/dependency_links.txt +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython.egg-info/requires.txt +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython.egg-info/top_level.txt +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/_RealtimeAudioPlayer.py +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/_notationRenderer.py +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/bin/libportaudio.2.dylib +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/iannix.py +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/image.py +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/markov.py +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/midi.py +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/osc.py +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/timer.py +0 -0
- {creativepython-0.3.3 → creativepython-0.3.4}/src/zipf.py +0 -0
- {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
|
+
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.
|
|
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
|
+
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
|
-
|
|
541
|
-
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/ConcretPH_Xenakis.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/drumMachinePattern1.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/findPitchOctave.py
RENAMED
|
File without changes
|
|
File without changes
|
{creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/generativeMusic.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/harmonicesMundi.py
RENAMED
|
File without changes
|
|
File without changes
|
{creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/harmonographLateral.py
RENAMED
|
File without changes
|
{creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/harmonographRotary.py
RENAMED
|
File without changes
|
{creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/iPianoBlackDown.png
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/iPianoWhiteCenterDown.png
RENAMED
|
File without changes
|
{creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/iPianoWhiteLeftDown.png
RENAMED
|
File without changes
|
{creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/iPianoWhiteRightDown.png
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/midiSynthesizer.py
RENAMED
|
File without changes
|
{creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/midiSynthesizer2.py
RENAMED
|
File without changes
|
{creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/moondog-bird_slament.wav
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/pentatonicMelody.py
RENAMED
|
File without changes
|
|
File without changes
|
{creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/pianoRollGenerator.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/randomCirclesTimed.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/sierpinskiTriangle.py
RENAMED
|
File without changes
|
{creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/simpleButtonInstrument.py
RENAMED
|
File without changes
|
{creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/simpleCircleInstrument.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/sonifyBiosignals.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/examples/themeAndVariations.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython/resources/de-brazzas-monkey.jpg
RENAMED
|
File without changes
|
|
File without changes
|
{creativepython-0.3.3 → creativepython-0.3.4}/src/CreativePython.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|