Skip to main content

A library to control the Yamaha LS9

Project description

open-ls9-control

Open LS9 Control is a C++ library for controlling the Yamaha LS9 mixer. There are also Python bindings included known as PyOpenLS9.

It depends on the Yamaha Network-MIDI driver and the port name is " Port 1" where is the name from System Preferences.

Parameters

A parameter is defined by an element, index and channel, defined in C++ as an aggregate thus:

struct Parameter {
  int element;
  int index;
  int channel;
};

And in Python as a dataclass thus:

@dataclass
class Parameter:
  "Some parameter of the desk"
  element : int
  index : int
  channel : int

The LS9 class

In C++ the LS9 class is constructed with the port name as a string and exposes the following methods:

  • void addGlobalCallback(std::function<void(Parameter, int32_t)> callback)
  • void addParamCallback(Parameter param, std::function<void(Parameter, int32_t)> callback)
  • auto get(Parameter param, std::chrono::milliseconds timeout) -> int32_t
  • void set(Parameter param, int32_t value)
  • void fade(Parameter param, int32_t value, std::chrono::milliseconds duration, std::chrono::milliseconds timeout)
  • auto nextParamTouched() -> Parameter
  • auto getChannelName(int ch, std::chrono::milliseconds timeout) -> std::string

The Python class is much the same, any callable can be used where a std::function is expected and an integer number of milliseconds is used where a std::chrono::milliseconds is expected.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyopenls9-1.0.0.tar.gz (27.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyopenls9-1.0.0-cp33-abi3-macosx_10_14_x86_64.whl (48.9 kB view details)

Uploaded CPython 3.3+macOS 10.14+ x86-64

File details

Details for the file pyopenls9-1.0.0.tar.gz.

File metadata

  • Download URL: pyopenls9-1.0.0.tar.gz
  • Upload date:
  • Size: 27.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7

File hashes

Hashes for pyopenls9-1.0.0.tar.gz
Algorithm Hash digest
SHA256 3ec36c62175dcd784c2eb3724a91b57dc9944cd0c20a048f4e3b6416d8060eda
MD5 392649667cf86cc74e61f7ae04f454b7
BLAKE2b-256 17bebe4c91de417379610a16da50160849b40bc01b4959f27ea9ccb18ade9a74

See more details on using hashes here.

File details

Details for the file pyopenls9-1.0.0-cp33-abi3-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: pyopenls9-1.0.0-cp33-abi3-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 48.9 kB
  • Tags: CPython 3.3+, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7

File hashes

Hashes for pyopenls9-1.0.0-cp33-abi3-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 5f617469ae3721983df7afadf4da1ef8b83d4fe4d2856602b2e95f6956134321
MD5 a98d59245a026897f640c9ce529fcd2d
BLAKE2b-256 b3a314a0c3df2925b0dc8319303e5eb8cf485d8fabd9c6995dbe2d4e5ede6f0b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page