Git Product home page Git Product logo

cycsound's Introduction

cycsound

This is an early stage project to develop a cython wrapper of the csound api -- essentially wrapping the csound.h api.

There's a very good and well-maintained ctypes-based wrapper called ctcsound.py which is provided by default with csound. Anyone wanting to use python and csound should use that.

Note: development is slowing down to consider upcoming changes in version 7 of the csound api

Rationale

To provide an alternative to the default ctypes-based wrapper. Cython has some advantages over ctypes which are elaborated here by cython core developer, but really, the main driver from my side was to learn the csound api by wrapping it.

If this project develops further and becomes a bit more mature, it might be a useful alternative for those who are integrating csound with other cython-based code and who want to distributabe a statically linked extension as a self-contained wheel for example.

Status

  • wrap enough to play arbitrary csd files
  • build static variant as wheel (macOS only)
  • include support for plugins in wheel
  • unittests (partially implemented)
  • threaded / async / non-blocking performance
  • complete wrapping of csound.h
  • feature parity with ctcsound.py

Building

Requires python3 and cython and csound to be installed on your system using the default platform installation.

To build (with the default dynamic linking) on both Linux and macOS:

make

or

python3 setup.py build

To build with static linking on macOS needs homebrew

make STATIC=1

or

STATIC=1 python3 setup.py build

To build on Windows:

python setup.py build

Test

Requires pytest

just pytest or make test

cycsound's People

Contributors

shakfu avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.