Set the volume for a mixer device #93
Unanswered
paulmacmillan
asked this question in
Q&A
Replies: 1 comment 1 reply
-
This should do the trick: const ableton = new Ableton({ logger: console });
await ableton.start();
const tracks = await ableton.song.get("tracks");
const mixer = await tracks[0].get("mixer_device");
const volume = await mixer.get("volume");
const sends = await mixer.get("sends");
console.log("Volume:", await volume.get("value"));
console.log("Sends:", await Promise.all(sends.map((s) => s.get("value"))));
await volume.set("value", 0); // 0: -inf dB, 1: +6 dB
await sends[0].set("value", 1); // 0: -inf dB, 1: 0 dB Let me know if it works for you 🙂 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey Leo,
Your package is amazing and has been central in our recent project of a building instruments on top of Ableton.
Do you know if it's possible to set the volume of a track ? When I look at your source code I don't see anything even though it seems to be available in the LOM. Looka like, we can get the volume through your module but not set it.
Then, same question for the send parameters in a similar fashion.
Thanks for your answer 🙏🏼
Beta Was this translation helpful? Give feedback.
All reactions