Hi !
Maybe I missed something in the tutorials : is there a way to retrieve data from a roll that is not really playing but where the cursor is moving non-linearly (or with flexible speed) via setcursor?
I found a way that seems to do the trick (see screenshot) but I wonder if that's dangerous somehow to toggle play/stop all the time like this, especially where the input to setcursor comes from a line... :-\
Thanks !
Julien
EDIT : Attachment added !
Playout info from moving cursor without playing?
-
- Posts: 36
- Joined: Fri Apr 26, 2013 8:01 am
Playout info from moving cursor without playing?
- Attachments
-
- Capture d’écran 2020-02-29 à 1.04.02 PM.png (84.83 KiB) Viewed 4647 times
Last edited by Julien_Vincenot on Sat Feb 29, 2020 6:04 pm, edited 1 time in total.
Re: Playout info from moving cursor without playing?
You forgot your screenshot... Could you add it?
Maybe you could link the mousestate (max) with a snapshot and bach query pixeltotime (see Converting pixels to time)
Maybe you could link the mousestate (max) with a snapshot and bach query pixeltotime (see Converting pixels to time)
-
- Posts: 36
- Joined: Fri Apr 26, 2013 8:01 am
Re: Playout info from moving cursor without playing?
Hi Sydy
Sorry about that, added the screenshot.
Actually I took a quick look at the pixeltotime page in help center I can't wrap my head around it. Nothing is printed when I change the int boxes Maybe you can show me in context?
I tested my solution for a long while yesterday and it didn't seem to bother Max or bach. Was actually pretty solid !
J.
Sorry about that, added the screenshot.
Actually I took a quick look at the pixeltotime page in help center I can't wrap my head around it. Nothing is printed when I change the int boxes Maybe you can show me in context?
I tested my solution for a long while yesterday and it didn't seem to bother Max or bach. Was actually pretty solid !
J.
-
- Site Admin
- Posts: 1347
- Joined: Fri Dec 03, 2010 1:25 pm
Re: Playout info from moving cursor without playing?
Hi, I think you should see the "interp" message and the "getcurrentchord" messages. Look up #interp and #getcurrentchord.
The second one is coarser, the first one gives you all the information at a given point.
No need to play/stop, that would only mess with the scheduler.
The second one is coarser, the first one gives you all the information at a given point.
No need to play/stop, that would only mess with the scheduler.
-
- Posts: 36
- Joined: Fri Apr 26, 2013 8:01 am
Re: Playout info from moving cursor without playing?
Yes that's what I was worried about...
[setcursor $1, interp $1] works like a charm, thanks Daniele !
[setcursor $1, interp $1] works like a charm, thanks Daniele !
-
- Posts: 36
- Joined: Fri Apr 26, 2013 8:01 am
Re: Playout info from moving cursor without playing?
I just realized, maybe that's an oversight but interp doesn't seem to retrieve the note or chord name correct?
That was the way I was able to recover markers with my previous method (copying location to the name of notes attached to a marker). I will put that in a slot instead, but perhaps that would make sense to get names as well?
That was the way I was able to recover markers with my previous method (copying location to the name of notes attached to a marker). I will put that in a slot instead, but perhaps that would make sense to get names as well?
-
- Site Admin
- Posts: 1347
- Joined: Fri Dec 03, 2010 1:25 pm
Re: Playout info from moving cursor without playing?
Yes it would make sense, you are right.
IN the meantime you can use #slottoname and #nametoslot.
Also look up #slot+name
IN the meantime you can use #slottoname and #nametoslot.
Also look up #slot+name