Utility to monitor and control soundworks' shared states within Max.
Notes:
~/Documents/Max 8/Packages
See the overview patch for more informations
cf. ~/Documents/Max 8/Packages/soundworks/extras/soundworks.maxpat
soundworks.shared-state
soundworks.example.server
npm install --save @soundworks/max
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);
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.
Documents/Max 8/Packages
ln -s .path/to/soundworks-max/max/soundworks ~/Documents/Max\ 8/Packages
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
CMD + OPTION + M
then CMD + E
then click on the button
https://soundworks.dev/credits.html