Changing tracks names #62
Unanswered
coeur-de-loup
asked this question in
Q&A
Replies: 2 comments 1 reply
-
I found the problem. I was trying to access the track by its name instead of its index! Is there a way to get track by name, or we have to loop over all tracks to find index?
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Hey @coeur-de-loup, Looping through the tracks is currently the way to go since Live returns an array of tracks. I'd recommend using the const tracks = await ableton.song.get("tracks");
const track = tracks.find(t => t.raw.name === "My Track");
track?.set("name", "My Track 2"); I hope this helps! |
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
-
Hi,
First of all, this project is awesome, thanks so much for your hard work and for sharing it!
I managed to make the test() script work, but I can't find the right syntax to change a track name... Is it possible?
Beta Was this translation helpful? Give feedback.
All reactions