Skip to content

Commit ee17492

Browse files
committed
bump version
1 parent 374be1f commit ee17492

4 files changed

Lines changed: 20 additions & 22 deletions

File tree

.github/workflows/c-cpp.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
---
21
name: Compile Binaries
32
on:
43
# push:
@@ -13,7 +12,7 @@ on:
1312

1413
env:
1514
LIBNAME: OpenScofo
16-
LIBVERSION: 0.1.5
15+
LIBVERSION: 0.1.6
1716
permissions:
1817
contents: write
1918
jobs:
@@ -169,11 +168,9 @@ jobs:
169168
# assets
170169
mkdir -p SuperCollider/assets
171170
cp Tests/assets/* SuperCollider/assets/
171+
172172
- name: Upload Emscripten Build
173173
if: runner.os == 'Linux'
174-
with:
175-
name: SuperCollider-${{env.LIBNAME}}-${{env.LIBVERSION}}-${{ runner.os }}
176-
path: SuperCollider
177174
run: |
178175
mkdir -p Emscripten
179176
mkdir -p Emscripten
@@ -222,7 +219,7 @@ jobs:
222219
uses: softprops/action-gh-release@v2
223220
with:
224221
tag_name: v${{ env.LIBVERSION }}-alpha
225-
name: ${{ env.LIBNAME }} v${{ env.LIBVERSION }}
222+
name: ${{ env.LIBNAME }} v${{ env.LIBVERSION }}-alpha
226223
target_commitish: ${{ github.sha }}
227224
files: |
228225
release_assets/*.zip

CMakeLists.txt

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
cmake_minimum_required(VERSION 3.25)
2-
project(OpenScofo VERSION 0.1.5)
1+
cmake_minimum_required(VERSION 3.30)
2+
project(OpenScofo VERSION 0.1.6 LANGUAGES C CXX
3+
HOMEPAGE_URL "https://charlesneimog.github.io/OpenScofo/"
4+
DESCRIPTION "OpenScofo is a Open Source Score Follower designed for contemporary music")
35

46
set(CMAKE_CXX_STANDARD 20)
57
set(CMAKE_CXX_STANDARD_REQUIRED ON)
@@ -11,6 +13,8 @@ set(BUILD_EXAMPLES OFF)
1113
set(CMAKE_OSX_DEPLOYMENT_TARGET 13.3)
1214
set(TREE_SITTER_VERSION "v0.26.6")
1315

16+
add_definitions(-DOPENSCOFO_VERSION="${PROJECT_VERSION}-alpha")
17+
1418
if(EMSCRIPTEN)
1519
message(STATUS "Emscripten compilation")
1620
set(CMAKE_CXX_FLAGS
@@ -132,7 +136,7 @@ if(NOT EXISTS "${OSCOFO_ONLINE_EDITOR_WASM}" OR ${UPDATE_OSCOFO_LANGUAGE})
132136

133137
# Download archive if missing
134138
if(NOT EXISTS "${TS_ARCHIVE}")
135-
file(DOWNLOAD "${TS_URL}" "${TS_ARCHIVE}" SHOW_PROGRESS STATUS download_status)
139+
file(DOWNLOAD "${TS_URL}" "${TS_ARCHIVE}" STATUS download_status)
136140
list(GET download_status 0 status_code)
137141
if(NOT status_code EQUAL 0)
138142
message(FATAL_ERROR "Failed to download web-tree-sitter archive")
@@ -220,7 +224,6 @@ list(APPEND ScofoSrc Sources/OpenScofo/OpenScofo.cpp)
220224
add_library(OpenScofo STATIC ${ScofoSrc})
221225

222226
target_include_directories(OpenScofo PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/Sources/OpenScofo")
223-
target_compile_definitions(OpenScofo PUBLIC OPENSCOFO_VERSION="${PROJECT_VERSION}")
224227
set_target_properties(OpenScofo PROPERTIES POSITION_INDEPENDENT_CODE ON)
225228
target_link_libraries(OpenScofo PUBLIC fftw3 tree-sitter score_parser onnx spdlog onsetsds)
226229

Sources/Wrappers/SuperCollider/OpenScofo.cpp

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,11 @@ struct ScOpenScofo : public SCUnit {
7070
continue;
7171
}
7272

73-
const auto begin = std::find_if_not(item.begin(), item.end(), [](unsigned char c) {
74-
return std::isspace(c) != 0;
75-
});
73+
const auto begin =
74+
std::find_if_not(item.begin(), item.end(), [](unsigned char c) { return std::isspace(c) != 0; });
7675
const auto end = std::find_if_not(item.rbegin(), item.rend(), [](unsigned char c) {
77-
return std::isspace(c) != 0;
78-
}).base();
76+
return std::isspace(c) != 0;
77+
}).base();
7978

8079
if (begin < end) {
8180
std::string descriptorId(begin, end);
@@ -113,8 +112,8 @@ struct ScOpenScofo : public SCUnit {
113112
m_LastDescValid = true;
114113
}
115114

116-
OpenScofo::Description desc = (m_FollowScore && m_OScofo->ScoreIsLoaded()) ? m_OScofo->GetDescription()
117-
: m_LastDesc;
115+
OpenScofo::Description desc =
116+
(m_FollowScore && m_OScofo->ScoreIsLoaded()) ? m_OScofo->GetDescription() : m_LastDesc;
118117

119118
const auto descriptor = m_OScofo->GetDescriptorsEnum(descriptorId);
120119
if (descriptor == OpenScofo::Descriptors::INVALID || descriptor == OpenScofo::Descriptors::ONNX) {
@@ -126,7 +125,7 @@ struct ScOpenScofo : public SCUnit {
126125
case OpenScofo::Descriptors::CHROMA:
127126
case OpenScofo::Descriptors::MELOGRAM:
128127
case OpenScofo::Descriptors::MAGNITUDE:
129-
case OpenScofo::Descriptors::POWER: {
128+
case OpenScofo::Descriptors::POWERARRAY: {
130129
auto &arrayValues = m_OScofo->GetDescriptionArray(desc, descriptor);
131130
values.assign(arrayValues.begin(), arrayValues.end());
132131
return true;
@@ -274,6 +273,5 @@ PluginLoad(OpenScofoUGens) {
274273
DefineUnitCmd("OpenScofo", "getDescriptor", (UnitCmdFunc)&cmdGetDescriptor);
275274
DefineUnitCmd("OpenScofo", "loadOnnxModel", (UnitCmdFunc)&cmdLoadOnnxModel);
276275

277-
Print("\nOpenScofo version %d.%d.%d (build on %s), by Charles K. Neimog\n\n", OSCOFO_VERSION_MAJOR,
278-
OSCOFO_VERSION_MINOR, OSCOFO_VERSION_PATCH, OSCOFO_BUILD_TIME);
276+
printf("\nOpenScofo version %s (%s), by Charles K. Neimog\n\n", OPENSCOFO_VERSION, OSCOFO_BUILD_TIME);
279277
}

Sources/Wrappers/SuperCollider/examples/1-score-follow.scd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
s.waitForBoot {
33
var repoRoot = PathName(thisProcess.nowExecutingPath).pathOnly;
44

5-
~audioPath = (repoRoot +/+ "../assets/bwv-1013.wav").standardizePath;
6-
~scorePath = (repoRoot +/+ "../assets/bwv-1013.txt").standardizePath;
5+
~audioPath = "/home/neimog/Documents/Git/OpenScofo/Tests/assets/bwv-1013.wav";
6+
~scorePath = "/home/neimog/Documents/Git/OpenScofo/Tests/assets/bwv-1013.txt";
77
~lastEvent = -1;
88

99
~sndBuf = Buffer.read(s, ~audioPath);

0 commit comments

Comments
 (0)