CreativePython 0.0.2__tar.gz → 0.1.0__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 (30) hide show
  1. creativepython-0.1.0/PKG-INFO +189 -0
  2. creativepython-0.1.0/README.md +137 -0
  3. {creativepython-0.0.2 → creativepython-0.1.0}/pyproject.toml +17 -16
  4. creativepython-0.1.0/src/CreativePython.egg-info/PKG-INFO +189 -0
  5. {creativepython-0.0.2 → creativepython-0.1.0}/src/CreativePython.egg-info/SOURCES.txt +3 -1
  6. creativepython-0.1.0/src/CreativePython.egg-info/requires.txt +16 -0
  7. {creativepython-0.0.2 → creativepython-0.1.0}/src/CreativePython.egg-info/top_level.txt +3 -1
  8. {creativepython-0.0.2 → creativepython-0.1.0}/src/_RealtimeAudioPlayer.py +501 -284
  9. creativepython-0.1.0/src/creativepython_setup.py +85 -0
  10. {creativepython-0.0.2 → creativepython-0.1.0}/src/gui.py +79 -35
  11. creativepython-0.1.0/src/iannix.py +383 -0
  12. creativepython-0.1.0/src/markov.py +263 -0
  13. {creativepython-0.0.2 → creativepython-0.1.0}/src/midi.py +1 -1
  14. {creativepython-0.0.2 → creativepython-0.1.0}/src/music.py +1066 -29
  15. creativepython-0.1.0/src/zipf.py +232 -0
  16. creativepython-0.0.2/PKG-INFO +0 -65
  17. creativepython-0.0.2/README.md +0 -25
  18. creativepython-0.0.2/src/AudioSample.py +0 -969
  19. creativepython-0.0.2/src/CreativePython.egg-info/PKG-INFO +0 -65
  20. creativepython-0.0.2/src/CreativePython.egg-info/requires.txt +0 -4
  21. creativepython-0.0.2/src/creativepython_setup.py +0 -101
  22. {creativepython-0.0.2 → creativepython-0.1.0}/LICENSE +0 -0
  23. {creativepython-0.0.2 → creativepython-0.1.0}/MANIFEST.in +0 -0
  24. {creativepython-0.0.2 → creativepython-0.1.0}/setup.cfg +0 -0
  25. {creativepython-0.0.2 → creativepython-0.1.0}/src/CreativePython.egg-info/dependency_links.txt +0 -0
  26. {creativepython-0.0.2 → creativepython-0.1.0}/src/CreativePython.egg-info/entry_points.txt +0 -0
  27. {creativepython-0.0.2 → creativepython-0.1.0}/src/__init__.py +0 -0
  28. {creativepython-0.0.2 → creativepython-0.1.0}/src/image.py +0 -0
  29. {creativepython-0.0.2 → creativepython-0.1.0}/src/osc.py +0 -0
  30. {creativepython-0.0.2 → creativepython-0.1.0}/src/timer.py +0 -0
@@ -0,0 +1,189 @@
1
+ Metadata-Version: 2.4
2
+ Name: CreativePython
3
+ Version: 0.1.0
4
+ Summary: A Python-based software environment for developing algorithmic art projects.
5
+ Author-email: "Dr. Bill Manaris" <manaris@cofc.edu>, Taj Ballinger <ballingertj@g.cofc.edu>, Trevor Ritchie <ritchiets@g.cofc.edu>
6
+ License: MIT License
7
+
8
+ Copyright (c) 2025 Dr. Bill Manaris
9
+
10
+ Permission is hereby granted, free of charge, to any person obtaining a copy
11
+ of this software and associated documentation files (the "Software"), to deal
12
+ in the Software without restriction, including without limitation the rights
13
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
+ copies of the Software, and to permit persons to whom the Software is
15
+ furnished to do so, subject to the following conditions:
16
+
17
+ The above copyright notice and this permission notice shall be included in all
18
+ copies or substantial portions of the Software.
19
+
20
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26
+ SOFTWARE.
27
+
28
+ Project-URL: Homepage, https://jythonmusic.me
29
+ Keywords: music,audio,midi,learning,algorithmic art,algoart
30
+ Classifier: Programming Language :: Python :: 3
31
+ Classifier: Operating System :: OS Independent
32
+ Classifier: License :: OSI Approved :: MIT License
33
+ Requires-Python: >=3.9
34
+ Description-Content-Type: text/markdown
35
+ License-File: LICENSE
36
+ Requires-Dist: tinysoundfont>=0.3.6
37
+ Requires-Dist: osc4py3>=1.0.8
38
+ Requires-Dist: mido>=1.3.3
39
+ Requires-Dist: numpy>=2.3.2
40
+ Requires-Dist: pyaudio>=0.2.14
41
+ Requires-Dist: PySide6>=6.9.1
42
+ Requires-Dist: sounddevice>=0.5.2
43
+ Requires-Dist: soundfile>=0.13.1
44
+ Requires-Dist: tqdm>=4.67.1
45
+ Requires-Dist: pooch>=1.8
46
+ Requires-Dist: platformdirs>=4.2
47
+ Requires-Dist: pypianoroll>=1.0
48
+ Provides-Extra: dev
49
+ Requires-Dist: build; extra == "dev"
50
+ Requires-Dist: twine; extra == "dev"
51
+ Dynamic: license-file
52
+
53
+ # CreativePython
54
+
55
+ CreativePython is a Python-based software environment for developing algorithmic art projects. It mirrors the [JythonMusic API](https://jythonmusic.me/api-reference/).
56
+
57
+ This package is still under development.
58
+
59
+ ---
60
+
61
+ ## Quick Install
62
+
63
+ The CreativePython Install Scripts [(Download)](https://www.dropbox.com/scl/fo/7cwxayca38ajcc533bpgs/AGP4pnP-xhb-5LH_7YPsgyk?rlkey=2led17m6h0ku9y3hzbsnvsio1&dl=1) install CreativePython and all its required software, including Python3, FluidSynth, PortAudio, ffmpeg, Homebrew (on Mac), and Windows Build Kit (on Windows).
64
+
65
+ ### Windows
66
+ 1. Open `win-scripts.zip`. Right-click `windows_setup.ps1`, and **Run with PowerShell** (it will open a PowerShell window and begin installing).
67
+ 2. Follow any prompts and let it finish.
68
+ - If you do not have Windows Build Kit installed, it will be installed as part of this process. This may take some time to complete.
69
+
70
+ ### macOS
71
+ 1. Open `mac-scripts.tgz`. Control-click `mac_setup.command`, and **Open** (it will open a Terminal window and begin installing).
72
+ 2. Follow any prompts and let it finish.
73
+ - If you do not have Command Line Tools for XCode installed, it will be installed as part of this process. This may take some time to complete.
74
+
75
+ ---
76
+
77
+ ## Custom Install
78
+
79
+ ---
80
+
81
+ ### 1. Install Python 3 + pip
82
+
83
+ #### Windows
84
+ 1. Open PowerShell as Administrator (search "PowerShell" in the Start menu, and select "Run as Administrator"). Copy and Paste the following commands at each step.
85
+
86
+ 2. Install **Chocolatey** if you don't have it. [(Documentation)](https://docs.chocolatey.org/en-us/choco/setup/) Copy/Paste the following command:
87
+
88
+ ```Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))```
89
+
90
+ When finished, exit this window and open a new PowerShell window.
91
+
92
+ 3. Install Python 3.
93
+
94
+ ```Invoke-Expressed "choco install python -y"```
95
+
96
+ 4. Verify that Python was installed.
97
+
98
+ ```py --version```
99
+
100
+ You should see something like "Python 3.12.4"
101
+
102
+ #### MacOS
103
+ 1. Open Terminal (press Command + Space, type "Terminal", and hit Enter). Copy and Paste the following commands at each step.
104
+
105
+ 2. Install **Homebrew** if you don't have it.
106
+
107
+ ```/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"```
108
+
109
+ 3. Install Python 3.
110
+
111
+ ```brew install python```
112
+
113
+ 4. Verify your installation.
114
+
115
+ ```python3 --version```
116
+
117
+ You should see something like "Python 3.12.4"
118
+
119
+ ---
120
+
121
+ ### 2. Install System Libraries
122
+
123
+ #### Windows
124
+ - **Microsoft Build Tools**
125
+ Microsoft Build Tools contains the necessary tools to compile C++ packages that come with some Python libraries.
126
+
127
+ 1. Open a new PowerShell window.
128
+
129
+ 2. Download the latest Microsoft Build Tools.
130
+
131
+ ```Invoke-WebRequest -Uri "https://aka.ms/vs/17/release/vs_buildtools.exe" -OutFile "$env:TEMP\vs_buildtools.exe"```
132
+
133
+ 3. Run the Installer.
134
+
135
+ ```Start-Process "$env:TEMP\vs_buildtools.exe" -ArgumentList "--installPath C:\Program Files\Microsoft Build Tools" --quiet --wait --norestart --nocache --includeRecommended --add Microsoft.VisualStudio.Workload.VCTools" -Wait```
136
+
137
+ 4. Add Build Tools to your PATH.
138
+
139
+ ```[Environment]::SetEnvironmentVariable("PATH", "$(Join-Path (Get-ChildItem 'C:\Program Files\Microsoft Build Tools\VC\Tools\MSVC' -Directory | Sort-Object Name -Descending | Select-Object -First 1).FullName 'bin\Hostx64\x64');$env:PATH", [EnvironmentVariableTarget]::Machine)```
140
+
141
+ 5. Verify your Installation.
142
+
143
+ ```Get-Command nmake.exe```
144
+
145
+ You should see a list of Applications, likely only containing 'nmake.exe'.
146
+
147
+ If you get an error, try the command in a new PowerShell window.
148
+
149
+
150
+ - **PortAudio**:
151
+ On Windows, PortAudio comes with our Python libraries below.
152
+
153
+ - **FluidSynth**:
154
+ 1. Open a new PowerShell window.
155
+ 2. Install the latest FluidSynth.
156
+
157
+ ```Invoke-Expression "choco install fluidsynth -y"```
158
+
159
+ - **ffmpeg**:
160
+ 1. Open a new PowerShell window.
161
+ 2. Install the latest FFmpeg.
162
+
163
+ ```Invoke-Expression "choco install ffmpeg -y"```
164
+
165
+ #### Mac
166
+ - **All Libraries**:
167
+ 1. Open Terminal.
168
+ 2. Install PortAudio, FluidSynth, and ffmpeg.
169
+
170
+ ```brew install portaudio fluidsynth ffmpeg```
171
+
172
+ ---
173
+
174
+ ### 3. Install CreativePython
175
+
176
+ #### Any OS
177
+ 1. Open Command Prompt/Terminal.
178
+
179
+ ```pip install CreativePython```
180
+
181
+ ```cp-setup```
182
+
183
+ 2. When prompted, download the default soundfont (It's FluidR3 GM2-2, by the way). If you choose not to download the soundfont, you will need to provide your own.
184
+
185
+ 3. Verify your installation.
186
+
187
+ ```cp-test```
188
+
189
+ You should hear a single MIDI note played at C4. If so, you're all set!
@@ -0,0 +1,137 @@
1
+ # CreativePython
2
+
3
+ CreativePython is a Python-based software environment for developing algorithmic art projects. It mirrors the [JythonMusic API](https://jythonmusic.me/api-reference/).
4
+
5
+ This package is still under development.
6
+
7
+ ---
8
+
9
+ ## Quick Install
10
+
11
+ The CreativePython Install Scripts [(Download)](https://www.dropbox.com/scl/fo/7cwxayca38ajcc533bpgs/AGP4pnP-xhb-5LH_7YPsgyk?rlkey=2led17m6h0ku9y3hzbsnvsio1&dl=1) install CreativePython and all its required software, including Python3, FluidSynth, PortAudio, ffmpeg, Homebrew (on Mac), and Windows Build Kit (on Windows).
12
+
13
+ ### Windows
14
+ 1. Open `win-scripts.zip`. Right-click `windows_setup.ps1`, and **Run with PowerShell** (it will open a PowerShell window and begin installing).
15
+ 2. Follow any prompts and let it finish.
16
+ - If you do not have Windows Build Kit installed, it will be installed as part of this process. This may take some time to complete.
17
+
18
+ ### macOS
19
+ 1. Open `mac-scripts.tgz`. Control-click `mac_setup.command`, and **Open** (it will open a Terminal window and begin installing).
20
+ 2. Follow any prompts and let it finish.
21
+ - If you do not have Command Line Tools for XCode installed, it will be installed as part of this process. This may take some time to complete.
22
+
23
+ ---
24
+
25
+ ## Custom Install
26
+
27
+ ---
28
+
29
+ ### 1. Install Python 3 + pip
30
+
31
+ #### Windows
32
+ 1. Open PowerShell as Administrator (search "PowerShell" in the Start menu, and select "Run as Administrator"). Copy and Paste the following commands at each step.
33
+
34
+ 2. Install **Chocolatey** if you don't have it. [(Documentation)](https://docs.chocolatey.org/en-us/choco/setup/) Copy/Paste the following command:
35
+
36
+ ```Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))```
37
+
38
+ When finished, exit this window and open a new PowerShell window.
39
+
40
+ 3. Install Python 3.
41
+
42
+ ```Invoke-Expressed "choco install python -y"```
43
+
44
+ 4. Verify that Python was installed.
45
+
46
+ ```py --version```
47
+
48
+ You should see something like "Python 3.12.4"
49
+
50
+ #### MacOS
51
+ 1. Open Terminal (press Command + Space, type "Terminal", and hit Enter). Copy and Paste the following commands at each step.
52
+
53
+ 2. Install **Homebrew** if you don't have it.
54
+
55
+ ```/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"```
56
+
57
+ 3. Install Python 3.
58
+
59
+ ```brew install python```
60
+
61
+ 4. Verify your installation.
62
+
63
+ ```python3 --version```
64
+
65
+ You should see something like "Python 3.12.4"
66
+
67
+ ---
68
+
69
+ ### 2. Install System Libraries
70
+
71
+ #### Windows
72
+ - **Microsoft Build Tools**
73
+ Microsoft Build Tools contains the necessary tools to compile C++ packages that come with some Python libraries.
74
+
75
+ 1. Open a new PowerShell window.
76
+
77
+ 2. Download the latest Microsoft Build Tools.
78
+
79
+ ```Invoke-WebRequest -Uri "https://aka.ms/vs/17/release/vs_buildtools.exe" -OutFile "$env:TEMP\vs_buildtools.exe"```
80
+
81
+ 3. Run the Installer.
82
+
83
+ ```Start-Process "$env:TEMP\vs_buildtools.exe" -ArgumentList "--installPath C:\Program Files\Microsoft Build Tools" --quiet --wait --norestart --nocache --includeRecommended --add Microsoft.VisualStudio.Workload.VCTools" -Wait```
84
+
85
+ 4. Add Build Tools to your PATH.
86
+
87
+ ```[Environment]::SetEnvironmentVariable("PATH", "$(Join-Path (Get-ChildItem 'C:\Program Files\Microsoft Build Tools\VC\Tools\MSVC' -Directory | Sort-Object Name -Descending | Select-Object -First 1).FullName 'bin\Hostx64\x64');$env:PATH", [EnvironmentVariableTarget]::Machine)```
88
+
89
+ 5. Verify your Installation.
90
+
91
+ ```Get-Command nmake.exe```
92
+
93
+ You should see a list of Applications, likely only containing 'nmake.exe'.
94
+
95
+ If you get an error, try the command in a new PowerShell window.
96
+
97
+
98
+ - **PortAudio**:
99
+ On Windows, PortAudio comes with our Python libraries below.
100
+
101
+ - **FluidSynth**:
102
+ 1. Open a new PowerShell window.
103
+ 2. Install the latest FluidSynth.
104
+
105
+ ```Invoke-Expression "choco install fluidsynth -y"```
106
+
107
+ - **ffmpeg**:
108
+ 1. Open a new PowerShell window.
109
+ 2. Install the latest FFmpeg.
110
+
111
+ ```Invoke-Expression "choco install ffmpeg -y"```
112
+
113
+ #### Mac
114
+ - **All Libraries**:
115
+ 1. Open Terminal.
116
+ 2. Install PortAudio, FluidSynth, and ffmpeg.
117
+
118
+ ```brew install portaudio fluidsynth ffmpeg```
119
+
120
+ ---
121
+
122
+ ### 3. Install CreativePython
123
+
124
+ #### Any OS
125
+ 1. Open Command Prompt/Terminal.
126
+
127
+ ```pip install CreativePython```
128
+
129
+ ```cp-setup```
130
+
131
+ 2. When prompted, download the default soundfont (It's FluidR3 GM2-2, by the way). If you choose not to download the soundfont, you will need to provide your own.
132
+
133
+ 3. Verify your installation.
134
+
135
+ ```cp-test```
136
+
137
+ You should hear a single MIDI note played at C4. If so, you're all set!
@@ -1,23 +1,10 @@
1
1
  [build-system]
2
- requires = [
3
- "setuptools>=69.0",
4
- "tinysoundfont>=0.3.6",
5
- "osc4py3>=1.0.8",
6
- "mido>=1.3.3",
7
- "numpy>=2.3.2",
8
- "pyaudio>=0.2.14",
9
- "PySide6>=6.9.1",
10
- "sounddevice>=0.5.2",
11
- "soundfile>=0.13.1",
12
- "pooch>=1.8",
13
- "platformdirs>=4.2",
14
- "pypianoroll>=1.0"
15
- ]
2
+ requires = ["setuptools>=69.0"]
16
3
  build-backend = "setuptools.build_meta"
17
4
 
18
5
  [project]
19
6
  name = "CreativePython"
20
- version = "0.0.2"
7
+ version = "0.1.0"
21
8
  description = "A Python-based software environment for developing algorithmic art projects."
22
9
  readme = "README.md"
23
10
  license = { file = "LICENSE" }
@@ -26,13 +13,27 @@ authors = [
26
13
  { name = "Taj Ballinger", email = "ballingertj@g.cofc.edu" },
27
14
  { name = "Trevor Ritchie", email = "ritchiets@g.cofc.edu" },
28
15
  ]
29
- keywords = ["audio", "midi", "learning", "algorithmic art", "algoart"]
16
+ keywords = ["music", "audio", "midi", "learning", "algorithmic art", "algoart"]
30
17
  requires-python = ">=3.9"
31
18
  classifiers = [
32
19
  "Programming Language :: Python :: 3",
33
20
  "Operating System :: OS Independent",
34
21
  "License :: OSI Approved :: MIT License",
35
22
  ]
23
+ dependencies = [
24
+ "tinysoundfont>=0.3.6",
25
+ "osc4py3>=1.0.8",
26
+ "mido>=1.3.3",
27
+ "numpy>=2.3.2",
28
+ "pyaudio>=0.2.14",
29
+ "PySide6>=6.9.1",
30
+ "sounddevice>=0.5.2",
31
+ "soundfile>=0.13.1",
32
+ "tqdm>=4.67.1",
33
+ "pooch>=1.8",
34
+ "platformdirs>=4.2",
35
+ "pypianoroll>=1.0"
36
+ ]
36
37
 
37
38
  [project.urls]
38
39
  Homepage = "https://jythonmusic.me"
@@ -0,0 +1,189 @@
1
+ Metadata-Version: 2.4
2
+ Name: CreativePython
3
+ Version: 0.1.0
4
+ Summary: A Python-based software environment for developing algorithmic art projects.
5
+ Author-email: "Dr. Bill Manaris" <manaris@cofc.edu>, Taj Ballinger <ballingertj@g.cofc.edu>, Trevor Ritchie <ritchiets@g.cofc.edu>
6
+ License: MIT License
7
+
8
+ Copyright (c) 2025 Dr. Bill Manaris
9
+
10
+ Permission is hereby granted, free of charge, to any person obtaining a copy
11
+ of this software and associated documentation files (the "Software"), to deal
12
+ in the Software without restriction, including without limitation the rights
13
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
+ copies of the Software, and to permit persons to whom the Software is
15
+ furnished to do so, subject to the following conditions:
16
+
17
+ The above copyright notice and this permission notice shall be included in all
18
+ copies or substantial portions of the Software.
19
+
20
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26
+ SOFTWARE.
27
+
28
+ Project-URL: Homepage, https://jythonmusic.me
29
+ Keywords: music,audio,midi,learning,algorithmic art,algoart
30
+ Classifier: Programming Language :: Python :: 3
31
+ Classifier: Operating System :: OS Independent
32
+ Classifier: License :: OSI Approved :: MIT License
33
+ Requires-Python: >=3.9
34
+ Description-Content-Type: text/markdown
35
+ License-File: LICENSE
36
+ Requires-Dist: tinysoundfont>=0.3.6
37
+ Requires-Dist: osc4py3>=1.0.8
38
+ Requires-Dist: mido>=1.3.3
39
+ Requires-Dist: numpy>=2.3.2
40
+ Requires-Dist: pyaudio>=0.2.14
41
+ Requires-Dist: PySide6>=6.9.1
42
+ Requires-Dist: sounddevice>=0.5.2
43
+ Requires-Dist: soundfile>=0.13.1
44
+ Requires-Dist: tqdm>=4.67.1
45
+ Requires-Dist: pooch>=1.8
46
+ Requires-Dist: platformdirs>=4.2
47
+ Requires-Dist: pypianoroll>=1.0
48
+ Provides-Extra: dev
49
+ Requires-Dist: build; extra == "dev"
50
+ Requires-Dist: twine; extra == "dev"
51
+ Dynamic: license-file
52
+
53
+ # CreativePython
54
+
55
+ CreativePython is a Python-based software environment for developing algorithmic art projects. It mirrors the [JythonMusic API](https://jythonmusic.me/api-reference/).
56
+
57
+ This package is still under development.
58
+
59
+ ---
60
+
61
+ ## Quick Install
62
+
63
+ The CreativePython Install Scripts [(Download)](https://www.dropbox.com/scl/fo/7cwxayca38ajcc533bpgs/AGP4pnP-xhb-5LH_7YPsgyk?rlkey=2led17m6h0ku9y3hzbsnvsio1&dl=1) install CreativePython and all its required software, including Python3, FluidSynth, PortAudio, ffmpeg, Homebrew (on Mac), and Windows Build Kit (on Windows).
64
+
65
+ ### Windows
66
+ 1. Open `win-scripts.zip`. Right-click `windows_setup.ps1`, and **Run with PowerShell** (it will open a PowerShell window and begin installing).
67
+ 2. Follow any prompts and let it finish.
68
+ - If you do not have Windows Build Kit installed, it will be installed as part of this process. This may take some time to complete.
69
+
70
+ ### macOS
71
+ 1. Open `mac-scripts.tgz`. Control-click `mac_setup.command`, and **Open** (it will open a Terminal window and begin installing).
72
+ 2. Follow any prompts and let it finish.
73
+ - If you do not have Command Line Tools for XCode installed, it will be installed as part of this process. This may take some time to complete.
74
+
75
+ ---
76
+
77
+ ## Custom Install
78
+
79
+ ---
80
+
81
+ ### 1. Install Python 3 + pip
82
+
83
+ #### Windows
84
+ 1. Open PowerShell as Administrator (search "PowerShell" in the Start menu, and select "Run as Administrator"). Copy and Paste the following commands at each step.
85
+
86
+ 2. Install **Chocolatey** if you don't have it. [(Documentation)](https://docs.chocolatey.org/en-us/choco/setup/) Copy/Paste the following command:
87
+
88
+ ```Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))```
89
+
90
+ When finished, exit this window and open a new PowerShell window.
91
+
92
+ 3. Install Python 3.
93
+
94
+ ```Invoke-Expressed "choco install python -y"```
95
+
96
+ 4. Verify that Python was installed.
97
+
98
+ ```py --version```
99
+
100
+ You should see something like "Python 3.12.4"
101
+
102
+ #### MacOS
103
+ 1. Open Terminal (press Command + Space, type "Terminal", and hit Enter). Copy and Paste the following commands at each step.
104
+
105
+ 2. Install **Homebrew** if you don't have it.
106
+
107
+ ```/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"```
108
+
109
+ 3. Install Python 3.
110
+
111
+ ```brew install python```
112
+
113
+ 4. Verify your installation.
114
+
115
+ ```python3 --version```
116
+
117
+ You should see something like "Python 3.12.4"
118
+
119
+ ---
120
+
121
+ ### 2. Install System Libraries
122
+
123
+ #### Windows
124
+ - **Microsoft Build Tools**
125
+ Microsoft Build Tools contains the necessary tools to compile C++ packages that come with some Python libraries.
126
+
127
+ 1. Open a new PowerShell window.
128
+
129
+ 2. Download the latest Microsoft Build Tools.
130
+
131
+ ```Invoke-WebRequest -Uri "https://aka.ms/vs/17/release/vs_buildtools.exe" -OutFile "$env:TEMP\vs_buildtools.exe"```
132
+
133
+ 3. Run the Installer.
134
+
135
+ ```Start-Process "$env:TEMP\vs_buildtools.exe" -ArgumentList "--installPath C:\Program Files\Microsoft Build Tools" --quiet --wait --norestart --nocache --includeRecommended --add Microsoft.VisualStudio.Workload.VCTools" -Wait```
136
+
137
+ 4. Add Build Tools to your PATH.
138
+
139
+ ```[Environment]::SetEnvironmentVariable("PATH", "$(Join-Path (Get-ChildItem 'C:\Program Files\Microsoft Build Tools\VC\Tools\MSVC' -Directory | Sort-Object Name -Descending | Select-Object -First 1).FullName 'bin\Hostx64\x64');$env:PATH", [EnvironmentVariableTarget]::Machine)```
140
+
141
+ 5. Verify your Installation.
142
+
143
+ ```Get-Command nmake.exe```
144
+
145
+ You should see a list of Applications, likely only containing 'nmake.exe'.
146
+
147
+ If you get an error, try the command in a new PowerShell window.
148
+
149
+
150
+ - **PortAudio**:
151
+ On Windows, PortAudio comes with our Python libraries below.
152
+
153
+ - **FluidSynth**:
154
+ 1. Open a new PowerShell window.
155
+ 2. Install the latest FluidSynth.
156
+
157
+ ```Invoke-Expression "choco install fluidsynth -y"```
158
+
159
+ - **ffmpeg**:
160
+ 1. Open a new PowerShell window.
161
+ 2. Install the latest FFmpeg.
162
+
163
+ ```Invoke-Expression "choco install ffmpeg -y"```
164
+
165
+ #### Mac
166
+ - **All Libraries**:
167
+ 1. Open Terminal.
168
+ 2. Install PortAudio, FluidSynth, and ffmpeg.
169
+
170
+ ```brew install portaudio fluidsynth ffmpeg```
171
+
172
+ ---
173
+
174
+ ### 3. Install CreativePython
175
+
176
+ #### Any OS
177
+ 1. Open Command Prompt/Terminal.
178
+
179
+ ```pip install CreativePython```
180
+
181
+ ```cp-setup```
182
+
183
+ 2. When prompted, download the default soundfont (It's FluidR3 GM2-2, by the way). If you choose not to download the soundfont, you will need to provide your own.
184
+
185
+ 3. Verify your installation.
186
+
187
+ ```cp-test```
188
+
189
+ You should hear a single MIDI note played at C4. If so, you're all set!
@@ -2,16 +2,18 @@ LICENSE
2
2
  MANIFEST.in
3
3
  README.md
4
4
  pyproject.toml
5
- src/AudioSample.py
6
5
  src/_RealtimeAudioPlayer.py
7
6
  src/__init__.py
8
7
  src/creativepython_setup.py
9
8
  src/gui.py
9
+ src/iannix.py
10
10
  src/image.py
11
+ src/markov.py
11
12
  src/midi.py
12
13
  src/music.py
13
14
  src/osc.py
14
15
  src/timer.py
16
+ src/zipf.py
15
17
  src/CreativePython.egg-info/PKG-INFO
16
18
  src/CreativePython.egg-info/SOURCES.txt
17
19
  src/CreativePython.egg-info/dependency_links.txt
@@ -0,0 +1,16 @@
1
+ tinysoundfont>=0.3.6
2
+ osc4py3>=1.0.8
3
+ mido>=1.3.3
4
+ numpy>=2.3.2
5
+ pyaudio>=0.2.14
6
+ PySide6>=6.9.1
7
+ sounddevice>=0.5.2
8
+ soundfile>=0.13.1
9
+ tqdm>=4.67.1
10
+ pooch>=1.8
11
+ platformdirs>=4.2
12
+ pypianoroll>=1.0
13
+
14
+ [dev]
15
+ build
16
+ twine
@@ -1,11 +1,13 @@
1
- AudioSample
2
1
  _RealtimeAudioPlayer
3
2
  __init__
4
3
  creativepython_setup
5
4
  gui
5
+ iannix
6
6
  image
7
7
  images
8
+ markov
8
9
  midi
9
10
  music
10
11
  osc
11
12
  timer
13
+ zipf