Querying the onset of a Bach.Score note

Discussions, advice, bug reports and much more about the "bach" environment.
Post Reply
sydy
Posts: 43
Joined: Tue Mar 21, 2017 1:34 pm

Querying the onset of a Bach.Score note

Post by sydy » Thu Nov 28, 2019 4:08 pm

Hy,

I need to query the onset of a selected bach.score note. I couldn't figure out how to get this information. (The information on the bach.score object is not precise enough for my task and I want it as message...)
Thanks in advance.
m

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

Re: Querying the onset of a Bach.Score note

Post by danieleghisi » Sun Dec 01, 2019 8:26 pm

Hi,

wouldn't [bach.playkeys onset] work in your case? If not, can you provide an example?
see below

<pre><code>
----------begin_max5_patcher----------
1446.3oc6a01bphCE9y5uBF9raWRPPb+196nSGmHDq4dCILjfst2o+22j.nn
D7Zkt1NciskWxIgy47jmbjCkyulNweM+Urv26u7dzaxjeMcxDSS5Flzb9D+b
zqoTjvzMeF9E95e3OqVjD+pzz7ZT51GJJILYqHRlQfpy+QTaaEHY5VB64Uk3
TYsViBCeHFFMyClD8PvLuXfdKD9Pf2SMihUkSXTrzX.fiMxqjssFzzp.sCms
RoS00eERJKIqqj0N3jCNzD+c3RAgyTWi03Rsvj.PPfQ3aSm1t8soy9H.EJZ+
Ow6Edbl.e.cnDFNkWwLcD1Gxl21wZmTtu.WiW99GvkKhlgFzLIQuUe76AMAe
tnYNVHPOi6AmBL0KcKuLyC3AUflWVUdgpQk0oTuEdW3sAhP3xiLQvheCgDZG
BuA+1PWDo7xCtdAQYb3LhrDwdt01YUT5Q6WiNobJurVZf1XOtAzwp6.LfVEr
iSRwhBTpBA5bAfwcF2FNSJH+iQ8.ELbDSq49MeFFqmc4+Viz5tC1VaTcIh1Y
XMBW+RJOWMMRVSnD49yEqMeFJ2XM9+cIAQasTgDsYidgXS.vnKQJVVimAZ.v
KRCPpyfAcvIJmWz3xOp7Kf4WUu7eR6kMMAaaxNYZQGidCJE2M1VFdCphJYb0
RPJWJrRGNkEtr6zrFDDcLvtFwKa4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ZKvRSg6oa+zxrTvqJSaqGwlBfzawAEmoBBPX0okerOZmO3D
0N6cqmlqwE0SzGfdBuB8.5omZXDUTzTekFknUgJL2OpqnzjYlSIr5SM0hnJn
4NRa+iLsfJS2p9B3TYUYcgV9ZbcEL6qu+iRVEoonXUNmRklZd0TOhEME4noz
Xm91z+Evua.7s
-----------end_max5_patcher-----------
</code></pre>

sydy
Posts: 43
Joined: Tue Mar 21, 2017 1:34 pm

Re: Querying the onset of a Bach.Score note

Post by sydy » Mon Dec 02, 2019 11:35 am

yeah, sorry for the idiot question I've posted.
I don't know what I've done wrong when I tried it...
Of course, this works.

Post Reply