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 std::string_view and exposes the following methods:

  • static auto portNames() -> std::vectorstd::string
  • 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. It also has the portNames static method which returns a list of strings.

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.1.0.tar.gz (27.8 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.1.0-cp33-abi3-macosx_10_14_x86_64.whl (51.3 kB view details)

Uploaded CPython 3.3+macOS 10.14+ x86-64

File details

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

File metadata

  • Download URL: pyopenls9-1.1.0.tar.gz
  • Upload date:
  • Size: 27.8 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.1.0.tar.gz
Algorithm Hash digest
SHA256 05f4d776e2ce0d1c5bb3d42b93743bd64f23be21673740bc29cadf211b806349
MD5 6d0df991d2670d66408c42788a3fe4a7
BLAKE2b-256 04f3f5970caf08d49078033fb56951e61c5b4ea4abb3883f406af5f1a05ad92b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyopenls9-1.1.0-cp33-abi3-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 51.3 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.1.0-cp33-abi3-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 49d6e2f98ec99d32211b3201518702204e74a6338e78f843b7022ed5897af023
MD5 da4c684ddc44cdfebd0176e338fd406e
BLAKE2b-256 c95e154ef01d723b9af6c5f7b588368f664ff418a683cc905445255f606add74

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