Skip to main content

OpenScofo

OpenScofo: OpenScore Follower

OpenScofo is an open-source project designed to provide score following capabilities for contemporary music applications. Originally developed as a PureData (Pd) object, OpenScofo has now been expanded into a versatile C++ library that integrates seamlessly with multiple environments, including a Max Object, Python package, and others comming. Currently under development, OpenScofo is already functional and serves as a valuable tool for researchers and musicians.

Download

  • Check the Releases Page.
  • For Pure Data use Deken;
  • For Python use pip install OpenScofo;
  • For Max/MSP, SuperCollider and CSound use the download page;

Examples

Goal

The aim of OpenScofo is to provide a straightforward and accessible tool for real-time score following. By keeping the software lightweight, it can run seamlessly on the web through the pd4web platform, thanks to the ability to use Pure Data directly in web browsers. With pd4web and OpenScofo will be possible to use the software in rehearsals with just a single click, eliminating the need for external libraries, compatibility issues, or complex installations -- ultimately facilitating the sharing and performance of contemporary music.

Collaboration and Contribution

I invite composers, researchers and developers to contribute to the OpenScofo project. Not just with code, but with theory, math, etc. I am trying to make OpenScofo acessible via a Python implementation, to test it should be easy. By sharing the source code, I am trying to provide access to the theories and mathematical formulas that drive the software, all this come from the amazing research work of Arshia Cont and Philippe Cuvillier at IRCAM.

Technical Foundations

OpenScofo uses several concepts developed by many researches (with focus on the research of Cont and Cuvillier).

  • Pitch Comparison: Utilizes the Kullback-Leibler (KL) Divergence method for pitch comparison as presented by Christopher Raphael (2006), Arshia Cont in 2008 and 2010.
  • Rhythm Synchronization: Integrates theories of rhythm synchronization developed by Edward Large and Mari Riess Jones (1999) and Edward Large and Caroline Palmer (2002), as presented for Cont (2010).
  • Forward Algorithm: For now, OpenScofo uses the equation presented by Arshia Cont (2010) and developed by Yann Guédon (2005).
  • Score Language: Based on the scofo (by Miller Puckette) and antescofo~ (by Arshia Cont, Philippe Cuvillier, and others) language.
  • libonnx: A C library used to perform inference with ONNX models for real-time extended-technique detection.

Building

Requirements

  • On Windows, you need mingw64.

Optional

  • treesitter (npm install tree-sitter) (If you want to change/update score syntax).
  • nanobind: To build Python package.
  • PureData (optional): To build the Pd Object.

Build Options

  • OPENSCOFO_BUILD_ALL (ON/OFF): Build all OpenScofo modules, including Python, Pd, Max, Csound, SuperCollider, and Vamp. Default: ON.
  • OPENSCOFO_BUILD_PD_OBJECT (ON/OFF): Build the Pure Data (Pd) object. Default: OFF.
  • OPENSCOFO_BUILD_PY_MODULE (ON/OFF): Build the Python module. Default: OFF.
  • OPENSCOFO_BUILD_MAX_OBJECT (ON/OFF): Build the Max object. Default: OFF.
  • OPENSCOFO_BUILD_CSOUND_PLUGIN (ON/OFF): Build the Csound plugin. Default: OFF.
  • OPENSCOFO_BUILD_SC_PLUGIN (ON/OFF): Build the SuperCollider plugin. Default: OFF.
  • OPENSCOFO_BUILD_VAMP_PLUGIN (ON/OFF): Build the Vamp plugin. Default: OFF.
  • OPENSCOFO_BUILD_TESTS (ON/OFF): Build the test suite. Default: ON.
  • OPENSCOFO_RUN_TESTS_ON_BUILD (ON/OFF): Run the test suite during normal builds and fail the build if tests fail. Default: ON.
  • OPENSCOFO_BUILD_BENCHMARKS (ON/OFF): Build the optional performance executables alongside tests. Default: OFF.
  • OPENSCOFO_BUILD_WITH_LUA (ON/OFF): Build the Lua module embedded in OpenScofo. Default: ON.
  • OPENSCOFO_UPDATE_LANGUAGE (ON/OFF): Update the OpenScofo language grammar (grammar.js). Default: ON.
  • OPENSCOFO_ENABLE_NATIVE_OPTIMIZATIONS (ON/OFF): Enable native CPU optimizations. Default: ON.
  • OPENSCOFO_ENABLE_IPO (ON/OFF): Enable interprocedural optimization (IPO/LTO) when supported. Default: ON.
  • OPENSCOFO_ENABLE_SANITIZERS (ON/OFF): Enable AddressSanitizer and UndefinedBehaviorSanitizer. Default: OFF.

Building Steps

git clone https://github.com/charlesneimog/OpenScofo
cmake . -B build
cmake --build build

Tests run automatically with the default options. See Running the tests for configuration coverage, CTest commands, and WebAssembly testing.

GPLv3 Licensing Notice

OpenScofo is distributed under the GNU General Public License version 3 (GPLv3).

The GPLv3 is a free and open source license. Software distributed as a derivative work of OpenScofo, or as part of a combined work that is subject to the GPLv3, must itself be licensed under the GPLv3 and be accompanied by its complete corresponding source code.

The Free Software Foundation considers both static and dynamic linking to generally create such combined works.

Failure to comply with the GPLv3 automatically terminates the rights granted under the license and may constitute copyright infringement.

Full license text: GNU GPLv3 License Text

Metadata

Release files for OpenScofo 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for OpenScofo 0.3.0
File Interpreter ABI Platform Actions
openscofo-0.3.0-cp312-abi3-win_amd64.whl CPython 3.12 abi3 Windows x86-64 Details for openscofo-0.3.0-cp312-abi3-win_amd64.whl
openscofo-0.3.0-cp312-abi3-manylinux_2_35_x86_64.whl CPython 3.12 abi3 Linux glibc 2.35+ x86-64 Details for openscofo-0.3.0-cp312-abi3-manylinux_2_35_x86_64.whl
openscofo-0.3.0-cp312-abi3-macosx_10_15_universal2.whl CPython 3.12 abi3 macOS 10.15+ universal2 (ARM64, x86-64) Details for openscofo-0.3.0-cp312-abi3-macosx_10_15_universal2.whl

Total release size: 5.5 MB

Release files / openscofo-0.3.0-cp312-abi3-win_amd64.whl

Download URL openscofo-0.3.0-cp312-abi3-win_amd64.whl
Size 2.8 MB
Tags CPython 3.12 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
c09966d0d800a3e760d72ab55dd494dfd81f25b17e1457aa43dcfcc32348ed8a
BLAKE2b-256 checksum
How to use checksums
53d84e0a687f6e580bcf1c03b1ad0a8a0c7321d3882dcc811a494c0dd79a8f4b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Release files / openscofo-0.3.0-cp312-abi3-manylinux_2_35_x86_64.whl

Download URL openscofo-0.3.0-cp312-abi3-manylinux_2_35_x86_64.whl
Size 966.2 kB
Tags CPython 3.12 Linux glibc 2.35+ x86-64 abi3
SHA-256 checksum
How to use checksums
bd197d3389c646f1ec8b50d0f76b2390c61e6e992b140358ad15c3fda3f78b69
BLAKE2b-256 checksum
How to use checksums
a1f18409b90b68d3fd3cc904d8752e39dd2ad6de90f34e58def330c65b3bd80a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Release files / openscofo-0.3.0-cp312-abi3-macosx_10_15_universal2.whl

Download URL openscofo-0.3.0-cp312-abi3-macosx_10_15_universal2.whl
Size 1.7 MB
Tags CPython 3.12 abi3 macOS 10.15+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
cc72098dd6f251a5caf6bd9a6468d773179dacc3656e5145d207c0b5b69712ff
BLAKE2b-256 checksum
How to use checksums
d25c7dbb87691f06410a420be7ab02a6507a13aa1afae5ab8a82b8848d265708
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Security for OpenScofo 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.3.0 This release

3 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page