How to get all info on selected note directly

Discussions, advice, bug reports and much more about the "bach" environment.
Post Reply
Tj Shredder
Posts: 34
Joined: Sun Jul 30, 2017 11:09 am

How to get all info on selected note directly

Post by Tj Shredder » Tue May 07, 2019 5:36 pm

If I select a note, I can press v and it will be sent out the play outlet.
Is there a way to get all info just by selecting it without an extra key to be pressed?
What I miss is the chord number its in does not seem to be part of the play info...
Also I would like to know if is there a way to calculate with values in the slots that precede the the selected note?
If not I would have to enter chord numbers and other calculated values into extra slots, but I am running out of slots...

danieleghisi
Site Admin
Posts: 1347
Joined: Fri Dec 03, 2010 1:25 pm

Re: How to get all info on selected note directly

Post by danieleghisi » Wed May 08, 2019 8:10 am

Hi, no, but you can use doubleclick to send the selection if you want (see @dblclicksendsvalues).
For the chord number, see the @playoutfullpath attribute (or #playout+full+path).

(I'm not sure I've understood what you mean in the last part, i.e. what you want to do with slots...)

Tj Shredder
Posts: 34
Joined: Sun Jul 30, 2017 11:09 am

Re: How to get all info on selected note directly

Post by Tj Shredder » Wed May 08, 2019 10:28 am

Thanks, though if I look at the max window in the help center examples, I cannot see the chord number. A selection of a single chord seems always to be chord no. 1...
But I found a way to find it, by dumping out the Onsets, and finding the onset of the selected note. As I don't have chords, only single notes, I can find the chord number that way...

As we want to use bach.roll as the score for the musicians, and have also bars, I need to calculate bar numbers and things like that. I also want to calculate new pitches/frequencies which relate to previous events and some global values (stored for example in a Max number box or in a Max text object. Could also be a bach UI object if that makes it easier...). I guess I have to patch that together externally anyway...

Another problem I face is slots which contain text need to be readable better. I would like to be able to place them underneath the score, bigger and still linked to the notes space wise. At the moment they are squeezed to the note and very small... (That is for playing instructions, sound descriptions...)

And yet another problem. My first version of the score had standard slots. It would play with ezsynth without problem. Now I defined all the slots I needed and ezsynth stopped playing. By looking into the ezsynth abstraction it seems it is expecting some amplitude information. I most likely just killed it...

Is there a list of standard slot names which are needed by some of the abstractions? The default for dynamics, lyrics, articulations and notehead I found, a lot of the examples do have amplitude. What else would be important to keep? Though there are not many slots left to define...

danieleghisi
Site Admin
Posts: 1347
Joined: Fri Dec 03, 2010 1:25 pm

Re: How to get all info on selected note directly

Post by danieleghisi » Wed May 08, 2019 7:33 pm

Have you turned @playoutfullpath on? If so, in bach.roll, you also have the chord index. If you're using the bleeding edge version, here's the simple way (below)

For playing instruction, use #annotations, that's the cleanest way. You can link slots to annotation (above the staff).
In next version you'll have also custom dynamic markings, below the staff.

cage.ezsynth~ needs to have the amplitude slot defined as per its help file. There's a format message to help you (see cage.ezsynth~'s help)
Two cage abstractions (ezsynth~ and ezsampler~) need some specific slot set, as explained in their help files. In all other cases, you can define the slots however you wish. We advise to keep the dynamics, articulations, etc. as they are, but that's just a matter of convenience, you can just as simply remove them and turn them into, say, integer slots, if you need them.


<pre><code>
----------begin_max5_patcher----------
1505.3oc6assbihCD8Y6uBJdN6TRh6yS69cL0TtjA4XMirDEHhi2ol+8UW.a
rQjXyj34xRRECVsj5tO5nNz.82Vtves3YRsu2G89j2hEea4hEllzMrn86K72
geNmgqMcym2raMox+AqHQijQjxCkD6b36+fm+ZL+QeuO21EZgYbh0e4uh6FV
ItBuiHIUqHb7ZlYvfVYJEP4pI0nN3oFspxzJ53zHy2R4OtphjKsFPPVxG.O3
ghA5CQlOQnO.79rdHee4R8GObs9JYuxr6LZI4YiRT9W91OTxvG9J4PsW9VQU
AkWPd16uU1n2twwFWXRn+062vW2uQlCvLzIGucP03mHEqTpTMlUXorhttQZW
6Wbz+W3+DoplJ3sKyJgo..HxHzfd2JFp0TCsyI0eyzrF9Td1lFFS4MauMLK3
MByB0fTnEw9AoJFNQkfw5LMlPTZUid1UX3QGojprDRAUVo1mz4mbEPbxWKHa
vMLIWnVfXBYsyN4bu2X+c9dxKQ+d3zFAWtAme1VxmDzb0F0ccQJ7+jdJ+7o4
yzg5RbNUqEiSa.0jd7O81mbAST0qCm9.1qm8VogcvoaZYOatl9uFaFpY9GAH
61X6ONIMwc6Nj3MaXTdmKFczZVuOWrSgRz0TFUd3RcqlMq2eIHpw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na0hAIfj6tEG.hSRCBRRQl4LDjkEFjbyldX
D7ta5wPEPGmDEas7f3nfzna0xCTiIFbmsbHBk.CBhfsfdRHJEbq7knzLXzaG
nCNuT9trrxxEM71RRCdVkQZFgeuRlqqPIMEylt8yKWxZQSUdWoJ1V4qdfdk7
Xsjxs2gfS8I11GmEj40pG86xQ7qnmv2.8DbE9CbfdrvHtrrsBGMJQqBUT4uX
KVRSUBphGyse0Tdip39OQ65enoEbU9V0kXjKaprEd3yw1hK1WeoSU7FpoDEW
pcNkJM0tponNKaK2SSItt76K+ODuUglK
-----------end_max5_patcher-----------
</code></pre>

Tj Shredder
Posts: 34
Joined: Sun Jul 30, 2017 11:09 am

Re: How to get all info on selected note directly

Post by Tj Shredder » Fri May 17, 2019 8:44 am

Thanks, that helped, though there are still some things I can't get out:
I put back an amplitude slot at slot 1, but ezsynth still does not play... There must be another trap...
There is a bug in the bach.overview on page "Unpacking played content". playkeys has a parameter "voice" and I get the error message:
bach.playkeys: Unrecognized key 'voice', can't create object.
I was missing a list of all keys for playkeys, I have to guess whats there...
I need to extract the breakpoints for the cents. The cents key just delivers the start cent, not the following cents/pitches...

danieleghisi
Site Admin
Posts: 1347
Joined: Fri Dec 03, 2010 1:25 pm

Re: How to get all info on selected note directly

Post by danieleghisi » Sun May 19, 2019 8:48 pm

Hi, yes, we had already fixed the helpfile for next release.

As for all the routers, have a look at bach.playkeys's helpfile (namely the "routers" tab), or its reference.
Long story short: if you want pitch breakpoints, use "breakpoints" as key.

Post Reply