@soundworks/max
v1.1.1
Published
A Max client for sharing states with soundworks@v4
Downloads
8
Readme
soundworks | max
Utility to monitor and control soundworks' shared states within Max.
Notes:
- This repository has been tested on Mac only, Windows version should work but is untested.
Table of Contents
Max
Install
- Download the Max package (soundworks-max.zip) from the release :
https://github.com/collective-soundworks/soundworks-max/releases - Unzip the package and copy the resulting directory in
~/Documents/Max 8/Packages
- Open the helper patch for more informations
Usage
See the overview patch for more informations
cf. ~/Documents/Max 8/Packages/soundworks/extras/soundworks.maxpat
Running the example
- In the "overview" menu click
soundworks.shared-state
- Start the soundworks server by opening the
soundworks.example.server
and follow the instructions.
Javascript
Install
npm install --save @soundworks/max
Usage
In the src/server/index.js
of your soundworks application, and configure the Max client:
import { Server } from '@soundworks/core/server.js';
// 1. Import the `configureMaxClient` function from the @soundworks/max package
import { configureMaxClient } from '@soundworks/max';
import { loadConfig } from '../utils/load-config.js';
// 2. Configure max client
const config = loadConfig(process.env.ENV, import.meta.url);
configureMaxClient(config);
const server = new Server(config);
Caveats
Each soundworks.shared-state
object creates a new soundworks client, which is
known suboptimal, but improves user friendliness.
One of our unit test use 25 instances, which work on all systems without issues.
This test has been run with 100 objects successfully on ARM, but not on Intel.
Development notes
Link Max package into Documents/Max 8/Packages
ln -s .path/to/soundworks-max/max/soundworks ~/Documents/Max\ 8/Packages
Running the test suite
Launching all the tests
npm test -- tests/**/*.spec.js
Launching only one test file
npm test -- tests/the-test/index.spec.js
For verbose output
VERBOSE=1 npm test -- tests/the-test/index.spec.js
How to open patcher?
CMD + OPTION + M
then CMD + E
then click on the button
Credits
https://soundworks.dev/credits.html