Skip to content

Commit 7fb2fe5

Browse files
committed
Squashed commit of the following:
commit 98e2960 Author: David Braun <[email protected]> Date: Thu May 26 08:45:58 2022 -0600 minor update commit 7e5fb64 Author: David Braun <[email protected]> Date: Fri May 6 08:47:52 2022 -0700 fix typo commit 7b15d92 Author: David Braun <[email protected]> Date: Fri May 6 08:41:13 2022 -0700 use 7z instead of tar on Windows commit b9441ef Author: David Braun <[email protected]> Date: Wed May 4 13:58:45 2022 -0700 fix windows build and change index of a switch CHOP. commit 3d074d8 Author: David Braun <[email protected]> Date: Wed May 4 13:39:05 2022 -0700 minor fixes commit 80427c1 Author: David Braun <[email protected]> Date: Wed May 4 13:38:44 2022 -0700 change reset/recompile execution order to fix crash on macOS The crash was from adding a shred and then resetting it. Strangely it only crashed if there was a chop (such as Null CHOP) downstream of the chuck audio chop. commit 286fe13 Author: David Braun <[email protected]> Date: Tue May 3 15:53:21 2022 -0700 refactor commit 9324c19 Author: David Braun <[email protected]> Date: Fri Feb 4 10:05:29 2022 -0800 add drum sequencer example with multilevel from Palette to control velocity commit 8ae41bc Author: David Braun <[email protected]> Date: Thu Feb 3 21:24:13 2022 -0800 fix bug where python callback for getFloat was casting values to integers commit 1e65bef Author: David Braun <[email protected]> Date: Thu Feb 3 10:17:23 2022 -0800 add VST chop to midi generator example commit eb23c10 Author: David Braun <[email protected]> Date: Tue Feb 1 19:30:20 2022 -0800 add basic_array_melody.ck commit 36ee115 Author: David Braun <[email protected]> Date: Tue Feb 1 13:43:30 2022 -0800 python version commit ea6fcce Author: David Braun <[email protected]> Date: Tue Feb 1 13:38:11 2022 -0800 fix python version commit afc709d Author: David Braun <[email protected]> Date: Tue Feb 1 13:26:24 2022 -0800 python version commit a0ed74d Author: David Braun <[email protected]> Date: Tue Feb 1 13:21:37 2022 -0800 python location commit cdd05d9 Author: David Braun <[email protected]> Date: Tue Feb 1 13:10:35 2022 -0800 python version commit 67c4d6c Author: David Braun <[email protected]> Date: Tue Feb 1 13:01:16 2022 -0800 python version commit 29a4af5 Author: David Braun <[email protected]> Date: Tue Feb 1 12:52:07 2022 -0800 python version commit f6fdd9f Author: David Braun <[email protected]> Date: Tue Feb 1 12:46:53 2022 -0800 python version commit 0fef1ad Author: David Braun <[email protected]> Date: Tue Feb 1 12:41:25 2022 -0800 python version commit 4c4cd41 Author: David Braun <[email protected]> Date: Mon Jan 31 20:43:30 2022 -0800 . commit eed40b7 Author: David Braun <[email protected]> Date: Mon Jan 31 20:38:28 2022 -0800 fix previous commit c7fce9b Author: David Braun <[email protected]> Date: Mon Jan 31 20:34:29 2022 -0800 change how cmake finds python commit a39a84b Author: David Braun <[email protected]> Date: Mon Jan 31 20:23:15 2022 -0800 try to fix workflow finding right python version commit 2cee542 Author: David Braun <[email protected]> Date: Mon Jan 31 18:11:01 2022 -0800 externalize chuck code files and undo mistake in working directory commit 6f383a5 Author: David Braun <[email protected]> Date: Sat Jan 29 16:19:55 2022 -0800 update README.md commit 4367017 Author: David Braun <[email protected]> Date: Sat Jan 29 15:33:02 2022 -0800 add control rate smoothing example commit d6f71ac Merge: 16fc2b7 6e46bbd Author: David Braun <[email protected]> Date: Thu Jan 27 17:32:08 2022 -0800 Merge branch 'feature/python-api' of github.com:DBraun/ChucKDesigner into feature/python-api commit 16fc2b7 Author: David Braun <[email protected]> Date: Thu Jan 27 17:31:07 2022 -0800 add chugin instructions commit 6e46bbd Merge: 1fbc91f 046c14d Author: David Braun <[email protected]> Date: Mon Jan 17 16:35:57 2022 -0800 Merge branch 'feature/python-api' of https://github.com/DBraun/ChucKDesigner into feature/python-api commit 1fbc91f Author: David Braun <[email protected]> Date: Mon Jan 17 16:35:55 2022 -0800 Update build_macos.sh commit 046c14d Author: David Braun <[email protected]> Date: Sun Jan 16 17:37:42 2022 -0800 update README.md commit c8ef438 Author: David Braun <[email protected]> Date: Sun Jan 16 17:21:50 2022 -0800 update sequencer.ck commit 52a582c Author: David Braun <[email protected]> Date: Sun Jan 16 16:04:44 2022 -0800 update doc image commit a867eee Author: David Braun <[email protected]> Date: Sun Jan 16 15:50:48 2022 -0800 change syntax to avoid typing global so many times commit e8b189e Author: David Braun <[email protected]> Date: Sun Jan 16 15:29:32 2022 -0800 update sequencer.ck commit c546f3b Author: David Braun <[email protected]> Date: Sun Jan 16 15:25:47 2022 -0800 add sequencer example commit eca9c0e Author: David Braun <[email protected]> Date: Sun Jan 16 15:23:41 2022 -0800 fix typo commit cd6e678 Author: David Braun <[email protected]> Date: Sun Jan 16 13:35:12 2022 -0800 . commit 749cecd Author: David Braun <[email protected]> Date: Sat Jan 15 21:55:53 2022 -0800 update README.md commit 84a4bb8 Author: David Braun <[email protected]> Date: Sat Jan 15 21:11:34 2022 -0800 Update README.md commit e869809 Author: David Braun <[email protected]> Date: Sat Jan 15 21:10:06 2022 -0800 Update README.md commit fff4240 Author: David Braun <[email protected]> Date: Sat Jan 15 21:07:39 2022 -0800 Update README.md commit bb72d60 Author: David Braun <[email protected]> Date: Sat Jan 15 20:57:42 2022 -0800 Update all.yml commit ccb4a49 Author: David Braun <[email protected]> Date: Sat Jan 15 20:54:28 2022 -0800 fix python linking issue on macos commit 3115c69 Author: David Braun <[email protected]> Date: Sat Jan 15 17:41:31 2022 -0800 . commit 1ec001e Author: David Braun <[email protected]> Date: Sat Jan 15 17:28:11 2022 -0800 . commit 179ffcc Author: David Braun <[email protected]> Date: Sat Jan 15 17:06:00 2022 -0800 . commit 2eec501 Author: David Braun <[email protected]> Date: Sat Jan 15 17:04:10 2022 -0800 . commit 7f93b1f Author: David Braun <[email protected]> Date: Sat Jan 15 16:40:05 2022 -0800 . commit 350bca7 Author: David Braun <[email protected]> Date: Sat Jan 15 16:34:16 2022 -0800 . commit 6097ad0 Author: David Braun <[email protected]> Date: Sat Jan 15 16:17:31 2022 -0800 . commit ad973b0 Author: David Braun <[email protected]> Date: Sat Jan 15 16:07:15 2022 -0800 . commit 353022c Author: David Braun <[email protected]> Date: Sat Jan 15 16:05:31 2022 -0800 . commit f8ef2d6 Author: David Braun <[email protected]> Date: Sat Jan 15 16:01:16 2022 -0800 . commit 7fade89 Author: David Braun <[email protected]> Date: Sat Jan 15 15:52:57 2022 -0800 . commit d30ab24 Author: David Braun <[email protected]> Date: Sat Jan 15 15:50:31 2022 -0800 try to install universal python commit fd671d9 Author: David Braun <[email protected]> Date: Sat Jan 15 12:41:05 2022 -0800 architecture commit d7659a8 Author: David Braun <[email protected]> Date: Sat Jan 15 12:35:14 2022 -0800 architecture commit a520c04 Author: David Braun <[email protected]> Date: Sat Jan 15 12:24:59 2022 -0800 architecture commit 7881296 Author: David Braun <[email protected]> Date: Sat Jan 15 12:23:12 2022 -0800 specify python architecture for macos commit b854b69 Author: David Braun <[email protected]> Date: Sat Jan 15 12:14:27 2022 -0800 skip arm64 macos build commit c473ccb Author: David Braun <[email protected]> Date: Sat Jan 15 12:07:20 2022 -0800 update python instructions commit 4193a4c Author: David Braun <[email protected]> Date: Sat Jan 15 12:01:45 2022 -0800 update README.md commit d4fe09c Author: David Braun <[email protected]> Date: Sat Jan 15 11:59:04 2022 -0800 update README.md commit 3cb2a0c Author: David Braun <[email protected]> Date: Sat Jan 15 11:53:22 2022 -0800 update docs commit 4d29248 Author: David Braun <[email protected]> Date: Sat Jan 15 11:34:45 2022 -0800 update README.md commit 67dc944 Author: David Braun <[email protected]> Date: Sat Jan 15 11:31:04 2022 -0800 updates commit 43eec25 Author: David Braun <[email protected]> Date: Sat Jan 15 10:31:13 2022 -0800 fix wrong type commit 7dfc9a3 Author: David Braun <[email protected]> Date: Fri Jan 14 18:55:30 2022 -0800 fix typo commit fcd406b Author: David Braun <[email protected]> Date: Fri Jan 14 17:20:53 2022 -0800 event callbacks work commit c3739dc Author: David Braun <[email protected]> Date: Fri Jan 14 15:32:00 2022 -0800 wip commit baa1420 Author: David Braun <[email protected]> Date: Fri Jan 14 13:18:54 2022 -0800 cleanup commit 90e00f1 Author: David Braun <[email protected]> Date: Fri Jan 14 10:40:33 2022 -0800 update workflow commit c36c1d5 Author: David Braun <[email protected]> Date: Thu Jan 13 22:36:58 2022 -0800 WIP with event listener commit 4dc7c9b Author: David Braun <[email protected]> Date: Thu Jan 13 21:41:01 2022 -0800 add broadcasting events to chuck commit 41ae46c Author: David Braun <[email protected]> Date: Thu Jan 13 12:05:40 2022 -0800 some fixes and testing commit 3087987 Author: David Braun <[email protected]> Date: Wed Jan 12 22:16:42 2022 -0800 lots of boilerplate commit e87f538 Author: David Braun <[email protected]> Date: Mon Jan 10 13:07:31 2022 -0800 set_global_float_array works on Windows commit c9ce6ba Author: David Braun <[email protected]> Date: Mon Jan 10 12:32:17 2022 -0800 set_global_float works on Windows commit 7ce25af Author: David Braun <[email protected]> Date: Mon Jan 10 12:02:33 2022 -0800 float array callback works on Windows commit 69b965c Author: David Braun <[email protected]> Date: Mon Jan 10 08:28:10 2022 -0800 WIP commit e1a3d1d Author: David Braun <[email protected]> Date: Sat Jan 8 21:53:10 2022 -0800 old features of chuckdesigner still work on macOS 2021.38470
1 parent e0c2920 commit 7fb2fe5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+3322
-363
lines changed

.github/workflows/all.yml

+36-11
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ jobs:
1616
with:
1717
submodules: true
1818

19+
- name: Setup Python
20+
uses: actions/setup-python@v2
21+
with:
22+
python-version: "3.9"
23+
1924
- name: Add msbuild to PATH
2025
uses: microsoft/[email protected]
2126

@@ -25,15 +30,15 @@ jobs:
2530
- name: Build Windows (Release)
2631
run: |
2732
mkdir build
28-
cmake . -DCMAKE_BUILD_TYPE=Release -Bbuild
33+
cmake . -DCMAKE_BUILD_TYPE=Release -Bbuild -DPython_ROOT_DIR=$pythonLocation
2934
cd build
3035
msbuild ChucKDesignerCHOP.sln /property:Configuration=Release
3136
3237
- name: Make distribution
3338
run: |
3439
mkdir chuckdesigner_dist
3540
move ${{ github.workspace }}/Plugins/ChucK*.dll chuckdesigner_dist
36-
tar.exe -c -f ChucKDesigner-${{ matrix.os }}.zip chuckdesigner_dist
41+
7z a ChucKDesigner-${{ matrix.os }}.zip ./chuckdesigner_dist/* -r
3742
3843
- name: Upload artifact
3944
uses: actions/upload-artifact@v2
@@ -45,12 +50,25 @@ jobs:
4550
runs-on: ${{ matrix.os }}
4651
strategy:
4752
matrix:
48-
os: [macos-10.15, macos-11]
53+
os: [macos-latest]
4954
steps:
5055
- uses: actions/checkout@v2
5156
with:
5257
submodules: true
5358

59+
- name: Setup Python 3.8
60+
uses: actions/setup-python@v2
61+
with:
62+
python-version: '3.8'
63+
64+
- name: Setup Python 3.9
65+
run: |
66+
which python
67+
python --version
68+
pip install --upgrade certifi
69+
cd install_script
70+
python macos_install_python.py
71+
5472
- name: Get CMake
5573
uses: lukka/get-cmake@latest
5674

@@ -62,11 +80,17 @@ jobs:
6280
6381
- name: Build MacOS (Release)
6482
run: |
65-
mkdir build
66-
cd build
67-
cmake .. -G "Xcode" -DCMAKE_OSX_ARCHITECTURES=x86_64
83+
export PATH=/Library/Frameworks/Python.framework/Versions/3.9:/Library/Frameworks/Python.framework/Versions/3.9/bin:/Library/Frameworks/Python.framework/Versions/3.9/lib:$PATH
84+
which python3
85+
python3 --version
86+
which python3
87+
python3 --version
88+
mkdir build && cd build
89+
cmake .. -G "Xcode" -DCMAKE_OSX_ARCHITECTURES="x86_64" -DCMAKE_OSX_DEPLOYMENT_TARGET=11.0
6890
xcodebuild -configuration Release -project ChucKDesignerCHOP.xcodeproj
6991
ls -r *
92+
install_name_tool -change @rpath/libChucKDesignerShared.dylib @loader_path/../../../libChucKDesignerShared.dylib Release/ChucKDesignerCHOP.plugin/Contents/MacOS/ChucKDesignerCHOP
93+
install_name_tool -change @rpath/libChucKDesignerShared.dylib @loader_path/../../../libChucKDesignerShared.dylib Release/ChucKListenerCHOP.plugin/Contents/MacOS/ChucKListenerCHOP
7094
7195
- name: Make distribution
7296
run: |
@@ -76,11 +100,12 @@ jobs:
76100
mv ${{ github.workspace }}/build/Release/ChucKListenerCHOP.plugin chuckdesigner_dist
77101
zip -r ChucKDesigner-${{ matrix.os }}.zip chuckdesigner_dist
78102
79-
- name: Upload artifact
80-
uses: actions/upload-artifact@v2
81-
with:
82-
name: my-artifact-${{ matrix.os }}
83-
path: ChucKDesigner-${{ matrix.os }}.zip
103+
# Don't upload until we figure out codesigning.
104+
# - name: Upload artifact
105+
# uses: actions/upload-artifact@v2
106+
# with:
107+
# name: my-artifact-${{ matrix.os }}
108+
# path: ChucKDesigner-${{ matrix.os }}.zip
84109

85110
create-release:
86111
if: startsWith(github.ref, 'refs/tags/v')

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
build
22
Backup
3+
CrashAutoSave*
4+
*.dmp
35
ChucKDesigner.[0-9]*.toe
46
.DS_STORE

CMakeLists.txt

+21-7
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ file(GLOB CK_SOURCES
3030
${CMAKE_CURRENT_SOURCE_DIR}/thirdparty/chuck/src/core/lo/*.c
3131
)
3232

33+
list(FILTER CK_SOURCES EXCLUDE REGEX ".*lex.yy.c")
34+
3335
if(WIN32)
3436
list(FILTER CK_SOURCES EXCLUDE REGEX ".*server_thread.c")
3537
list(FILTER CK_SOURCES EXCLUDE REGEX ".*lo/config.h")
@@ -40,8 +42,6 @@ else()
4042
list(APPEND CK_SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/thirdparty/chuck/src/core/chuck.yy.c")
4143
endif()
4244

43-
message("CK_SOURCES: " ${CK_SOURCES})
44-
4545
file(GLOB TOUCHDESIGNER_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/thirdparty/TouchDesigner/*)
4646

4747
add_library(ChucKDesignerShared SHARED
@@ -134,13 +134,15 @@ set_property(TARGET ${PROJECT_NAME} PROPERTY CXX_STANDARD 14)
134134
set_target_properties(${PROJECT_NAME} PROPERTIES
135135
BUNDLE true
136136
BUNDLE_EXTENSION "plugin"
137-
MACOSX_BUNDLE_GUI_IDENTIFIER design.dirt.cpp.${PROJECT_NAME}
137+
# PRODUCT_BUNDLE_IDENTIFIER design.dirt.cpp.${PROJECT_NAME}
138+
# MACOSX_BUNDLE_GUI_IDENTIFIER design.dirt.cpp.${PROJECT_NAME}
138139
MACOSX_BUNDLE_INFO_STRING ${PROJECT_NAME}
139140
MACOSX_BUNDLE_BUNDLE_NAME ${PROJECT_NAME}
140141
MACOSX_BUNDLE_BUNDLE_VERSION "0.1"
141142
MACOSX_BUNDLE_SHORT_VERSION_STRING "0.1"
142143
MACOSX_BUNDLE_COPYRIGHT "David Braun"
143-
# MACOSX_BUNDLE_INFO_PLIST ${CMAKE_CURRENT_SOURCE_DIR}/src/Info.plist
144+
MACOSX_BUNDLE_INFO_PLIST ${CMAKE_CURRENT_SOURCE_DIR}/src/Info.plist
145+
XCODE_ATTRIBUTE_FRAMEWORK_SEARCH_PATHS "/System/Library/PrivateFrameworks /Library/Frameworks"
144146
)
145147

146148
# Include header directories
@@ -152,6 +154,11 @@ target_include_directories(ChucKListenerCHOP PUBLIC
152154
$<INSTALL_INTERFACE:ChucKListenerCHOP>
153155
)
154156

157+
set(Python_FIND_REGISTRY "LAST")
158+
set(Python_FIND_STRATEGY "LOCATION")
159+
find_package(Python 3.9 EXACT REQUIRED COMPONENTS Interpreter Development)
160+
target_link_libraries(${PROJECT_NAME} PUBLIC Python::Python)
161+
155162
target_link_libraries(${PROJECT_NAME} PUBLIC ChucKDesignerShared)
156163

157164
target_compile_definitions(${PROJECT_NAME} PRIVATE
@@ -205,21 +212,23 @@ endif()
205212
project(ChucKDesignerCHOP VERSION 0.0.1)
206213

207214
add_library(ChucKDesignerCHOP MODULE
208-
${CMAKE_CURRENT_SOURCE_DIR}/src/ChuckDesignerCHOP.h
215+
${CMAKE_CURRENT_SOURCE_DIR}/src/ChucKDesignerCHOP.h
209216
${CMAKE_CURRENT_SOURCE_DIR}/src/ChucKDesignerCHOP.cpp
210217
${TOUCHDESIGNER_SOURCES}
211218
)
212219
set_property(TARGET ${PROJECT_NAME} PROPERTY CXX_STANDARD 14)
213220
set_target_properties(${PROJECT_NAME} PROPERTIES
214221
BUNDLE true
215222
BUNDLE_EXTENSION "plugin"
216-
MACOSX_BUNDLE_GUI_IDENTIFIER design.dirt.cpp.${PROJECT_NAME}
223+
# PRODUCT_BUNDLE_IDENTIFIER design.dirt.cpp.${PROJECT_NAME}
224+
# MACOSX_BUNDLE_GUI_IDENTIFIER design.dirt.cpp.${PROJECT_NAME}
217225
MACOSX_BUNDLE_INFO_STRING ${PROJECT_NAME}
218226
MACOSX_BUNDLE_BUNDLE_NAME ${PROJECT_NAME}
219227
MACOSX_BUNDLE_BUNDLE_VERSION "0.1"
220228
MACOSX_BUNDLE_SHORT_VERSION_STRING "0.1"
221229
MACOSX_BUNDLE_COPYRIGHT "David Braun"
222-
# MACOSX_BUNDLE_INFO_PLIST ${CMAKE_CURRENT_SOURCE_DIR}/src/Info.plist
230+
MACOSX_BUNDLE_INFO_PLIST ${CMAKE_CURRENT_SOURCE_DIR}/src/Info.plist
231+
XCODE_ATTRIBUTE_FRAMEWORK_SEARCH_PATHS "/System/Library/PrivateFrameworks /Library/Frameworks"
223232
)
224233

225234
# Include header directories
@@ -231,6 +240,11 @@ target_include_directories(ChucKDesignerCHOP PUBLIC
231240
$<INSTALL_INTERFACE:ChucKDesignerCHOP>
232241
)
233242

243+
set(Python_FIND_REGISTRY "LAST")
244+
set(Python_FIND_STRATEGY "LOCATION")
245+
find_package(Python 3.9 EXACT REQUIRED COMPONENTS Interpreter Development)
246+
target_link_libraries(${PROJECT_NAME} PUBLIC Python::Python)
247+
234248
target_link_libraries(${PROJECT_NAME} PUBLIC ChucKDesignerShared)
235249

236250
target_compile_definitions(${PROJECT_NAME} PRIVATE

ChucKDesigner.toe

8.54 KB
Binary file not shown.

0 commit comments

Comments
 (0)