Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

listener "playing_status" not working correctly #25

Closed
sfxter opened this issue Apr 2, 2021 · 5 comments
Closed

listener "playing_status" not working correctly #25

sfxter opened this issue Apr 2, 2021 · 5 comments

Comments

@sfxter
Copy link

sfxter commented Apr 2, 2021

Hello,
I can't get to add "playing_status" listener, either to clipslot or clip itselft. Am I doing this correctly?

ableton.song.get("scenes").then(async (scenes) => {
  const firsScene = scenes[0];
  const clipSlots = await firsScene.get("clip_slots");
  const firstClipslot = clipSlots[0];
  firstClipslot.addListener("playing_status", (p) => console.log("status", p));
});

Clipslot works with listeners "is_triggered" and "has_clip", but not with "playing_status".

Is there a recommended practice to remove listener from clip or clipslot?

Thank you once again.

@leolabs
Copy link
Owner

leolabs commented Apr 7, 2021

I've tried and could reproduce the issue. It's a bit odd though, it seems that Ableton itself isn't sending any events to the playing_status listener. I'll do more testing and report the error to Ableton if it's really an issue on their side :)

@leolabs
Copy link
Owner

leolabs commented May 29, 2021

I've tried different methods and I can't get Ableton to fire on changes to this property. I've contacted Ableton about this and will add a comment to the findings section of the readme.

@nilsmango
Copy link

nilsmango commented Jul 12, 2023

I think I found what the problem was: in the Python midi script you need to attach the playing status listener to the clip of the clip_slot, not the slot directly. Worked for my script.

@leolabs
Copy link
Owner

leolabs commented Jul 12, 2023

Thanks for sharing your solution!

@nilsmango
Copy link

No problem. I still can't really use the playing status listener as it still does not seem to fire when you stop a clip, really odd.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants