@soundworks/max v1.1.1
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/maxUsage
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/PackagesRunning the test suite
Launching all the tests
npm test -- tests/**/*.spec.jsLaunching only one test file
npm test -- tests/the-test/index.spec.jsFor verbose output
VERBOSE=1 npm test -- tests/the-test/index.spec.jsHow to open patcher?
CMD + OPTION + M then CMD + E then click on the button
Credits
https://soundworks.dev/credits.html
License
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago