Method() decides notes are pressed or not
-
Is there a method that only changes when notes are pressed and when not. So a method that only decides whether notes are pressed or not.
Which also does not change when notes are added.
Is there a possibility? -
@Sac-Ten What is the end goal you're trying to achieve?
-
@d-healey I'm trying to create a simple word builder. Currently I can jump one letter per note. Now it should also work with chords.
function onNoteOn() { if(Message.AFTERTOUC_CC) { StepValue = Label1.get("text").charAt(Step); if(Message.getNoteNumber() == reset) { StepValue = ""; Step = -1; } Step += 1; Console.print(StepValue); } if(Label1.get("text").charAt(Step) == " ") Step += 1; if(Step == Label1.get("text").length) Step = 0; //All Phrases Toggle Sampler if(Label1.get("text").charAt(Step-1) == "h") MidiMuter1.setAttribute(MidiMuter1.ignoreButton, 1); else MidiMuter1.setAttribute(MidiMuter1.ignoreButton, 0); }
HiseSnippet 1964.3oc6Z81aaaiFmJNpsxsq20h8hCCX.BA2.bPRSsbyZOrth5D2jgfU2ZDm06d00iQlVhWjIEjnZSVQAFtuCG5Wi8QXeU12f9h68aOjT1hxU10ynqq6VDPLzCIe3yum+PxeTH8R39jzTdBxx4nyhIHqqX2+LlHrSHlxPG7.j0Us6hSEjDWcS6dVLNMkL.YYU6qjMX4rJR8756uKNBy7IEMgPOgS8IOjNhJJZsW6ulFEsOd.4H5HiQuc6C74rN7HdFfmZ1MQwX+SvAjGgkCaEaj0E1a.UvS5KvBRJxZ0c4CNqeH+4L83eBMkdbDQJ3g5CSjt484QCjHV1JpSHMZPuw9cJBlzdEQgZ5nvGa2kNfNo8hnweV0gagFlwCqUJCuZkfmmI7ZZ.uJfjkAjVUCoqY22OgFKJ5QhmKae.CRNCwPX2DJ5whV4GuncGNLBlXqQ3SH6m.BSznwsa1bSW3m0ua85PnOU39LbhqzC6lAiwy8dtppgsBHhRAjFqULn0.sKT9g3iIQREGaVP0N7QwbFHzXMc2kU4AjHhfLSUzcWVkCIoDwL0P0aEJ7H9bLyjQrV4nQX1LUILSMV4n5KHwv3Zd2IRPTFZP6uR8ZrlfbJfpshHr.QXw.eBNJSBq0V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3pL7AYQXQ462HuTWdGv1OktTg7hCrTp3LyK8M8kdVcwtzy7uS1hB2qY2iJ7CqFuqTAdgk9+Zi27qP9Q16MbHwWT.1Us2+eL26K9NGJepFJW2tuHgfGQYA4a5nviwVPuCtUe7Beq9dIjHNdP4h1en8tYP7Jobqeeako1YDOiUxV4H+PRLAKfzugNWp8gG9UI7r3o0502WUrbTBPvCBElc7XFAh6BSerSBOMcH3Np4J0rqdYIAxXUQKGRdFIIsba.oMH2yX.4B4xVK4wOoDYtl52ECbKN0bzJqz7HrJeuhsV1aJ4VSIeqoj2dJ4OeJ4aOk7cJj0Azt3XYkg7SsLEqhKtXepEXB5gAW1nJdWZvjIW2RQAbyhvrBJFF3CjOTi2h+gZxgzksmvWTgjqTHWdglUs2QnvfV1JK.8nqZaxhcZVRu99KBEq+j8P5o8EY9mHODKsBpVu2Nv4cyWYyYLF6Sk0p6wdFrIEzhDiWGXiLDCjlF2Z47XWNPVKjyn9k2R.VhGDPRLwdkNDbQCXGohV931GBjefaCYx43g.cMbR4c59EEK79E+EGqLe8Wr0v0UtKu6+ePTn1e3IJLuP2UyoI3BVOQ7Add9J1pC1bk7P9sBpGxyD.+hwmwaCDA5Cje7IlzAVQtssVtoTVBn9D1.kvOAO4c5Ml6frSuwch7GOUfuk+t5lsV0HL4AoJ9uQ.qjHyR5TfhkDRv46KAMwVmSS7bZhmSS7WeZhs9c.MwE6Kw8GaZhsNml34zDOml34zD+cLMw2GnbD1Og+Te8wIRrdIUK.JYp+yebr6Jkc8Fe9gscysZhFAmW9Tee4Bga.Q3p0o0RnysVBc1dIz4yWBct8RnycVBc9ayUGIUkcxD7Q5MIgF5smtvxZuIEV0P+LjOFlMK
-
@Sac-Ten I'm not understanding your original question. Could you rephrase/simplify it?
@Christoph-Hart Looks like you have a typo
addConstant("AFTERTOUC_CC", HiseEvent::AfterTouchCCNumber);
-
@d-healey For example, when I press a note, the sampler for "a" is activated. Next I press another note and it activates the next sampler for "b" for example. (Example from snippet). But if I press two notes at the same time, first "a" then "b" would be activated again. But I would like to have only "a" activated for both notes. And for the next chord only "b".
-
@Sac-Ten I think having one sampler per letter is not the most efficient way to do this. Why don't you map the letters to different velocity levels or different groups?
Here's a simple way to tell if the second note played creates a chord
HiseSnippet 721.3ocsUs0aSCCE1tqAQBWDShe.V6oVosp1w1.oAhw5ETErsJ51DuM4431ZMG6HGmAUHdiev7O.NNIqsasprUIxCQ4b0e9b9NmzynY7jDsAg8OcbLGgepW+wJ6nlinBEpaKD94dGQSrbCIW0giioII7PDFu1GcJv9kQYO+98GRkTEiOUEBctVv3eVDIrS016fOIjxNzP9ohnY7dmC5xzplZoNEvyZd0QwT1Uzg7ioN2J4gvOpcnvpM8sTKOA74Pc339izeSk6+4hDwkRtSnApOjnb0nliDxvd2bWSPHb4dSu4qkeyeo2QhPwD8Sq.uHy.YZDyVCvkVFjZ7.fDdFHUNGRq60mYDw1oVb34IdcUPCY.EJ0yBkbeQk9E1qoF7PYqEQuh2w.BShnxd0quIAdUc+f.CeHQBcWWef7NRa0PghWaH2dVrETUo59CRULqPqHZ0wZK+DUkpA+HvGxehVxqwjbpAbKvWLfTox7Ifr0jCnJ4sj50pu8tUC7mjfXiPYqrQyQZS3Ft7vkI74sCmMgRXEd4GD3ubXG7y.xcg9fA4X+N1bkJiVJ4lEZ1cFlkEXEUZzkbyljqoxT9DGgd3sIFO59QLX4ctYbTq5pD1Sh4ExczxPWC2887zHTQqG95rtsnVpiYUnC7KlarBGbvs3WCil47LeuV7jqr5XX3bNRHP+0goRp81yDtg+BCP83VDQGYSkHrimc4vCXPo9RGTtuPbcudBKazhwXoEfQnR8+.iEqWdlW6AC3L6T.V1qyWW0cI+ii+K5TqPM7Hp0H9NB6cbZTeXqJiCmtRAyXfNbIGaIWttS1UA5yUgYB+AdJL1vIiKL13FinHJynufkOE3Vf83LM.lTY6q8geb.xjFnrICHNOX7GEA6RufwbW+s.B7hiY6UHlWsBwryJDytqPL6sBw75UHl2rzXb+F6CoVcT93.nnW6rUDXbaEEXVYrPzeAAo7LsA
-
@d-healey Wooow that works!!!
Thank u so much!!!I think having one sampler per letter is not the most efficient way to do this.
Yes, that was just for testing:beaming_face_with_smiling_eyes: