Keyboard(s) Paint Routine Inline Function
-
@d-healey Is it possible using LAF to display separate keyboards with separate sample map ranges?
I used the paint routine to get around using Engine.SetKeyColour. .isNoteNumberMapped allows for showing more than one sample map at a time.
-
@ulrik hm.. I get the idea. I'll see what I can do with it. I'm not sure how routing the midi will work with MPE enabled instruments. Thanks !
-
@crd I think you can use isNoteNumberMapped within laf
-
@d-healey Got it. Thanks. I will give it a go.
-
@d-healey
What is the laf function to call? draw___?Sorry -- I see: "drawWhiteNote", "drawBlackNote"
-
It seems like paint routines are still the only way to have multiple keyboards with separate sample map ranges shown. Unless there is some way to assign "Engine.setKeyColour" to a specific floating tile LaF keyboard that I am missing.
-
Unfortunately it seems the
parentName
property of the notes isn't populated - @Christoph-HartIf it was you could query which floating tile the key belonged to and colour it differently.
At the moment the only other way I can think to differentiate between them is by setting the key width differently for each one.
HiseSnippet 1158.3oc6VszaaaDDdoroQEaRaCPO0SDF8fLfp.kphsSBLhs0CWi3GBVNNAnoHXE4RosZ0trKWZGg.CDzeY8mTu2CtyxGlT1JtwBHEn.UGr47ZmuY42Lb5IEtjvPgDYT9zoADjwCL6OkqF0ZDlxQ62FY7UliISGHvROEITg1cZ.NLj3gLLVZOsOFkWFE+6Oe9tXFl6RxUgPmIntjCnSnpbs819ETFqK1ibJcRAuat89tBdKASDA3YISGT.1cLdH4Hr1sRlHiU53QUBYeEF.C3ytBuo8GItfm3+YzP5.FQKTG0GNnD0nVinLudY0ZHBYrbu7JeojJ+aMOj5QuVe9Mv2DavNOhh2AFktKHU+d.IiBPZ4DH8Hy9tRZfJ2hFOeo49bEQ5igq5hPIwWTo+xvrk.7fqpMAOlzUBBWGQk0cbpZC+YsmYYAW2gJaF12dK6N7gTNolqj.ExdLw.LK4.OPHFuC2qKgvpnCBbuljLjFBmX2HtqhJ3UV0Shu3UinJxQBEY0p19YVFV0VL3WWy58Vko91UfmqwAWNJZx.hzdqs.rrlUYvZYsILj9etwun0WuYMG6maOrVHQkPJpj7uPH8dqY+z4ZZ.Kh.nr7kVkIrPRxIOOGwbE82hHWnwbZ.Vfi9.07DQD2i3cBwUg4CYjJYHqpcCv0KW6YYUmsfqq2i4UhKPqKsruoIe+4ZS+FRJXLhbtl0cFx6JvJ73Kvp1mi0Ubli.0YV93JeZ7Q2DBSAGE784T0wAjT4tBlmlmoe91rWTJiCd5k62FqvZBcpNvu.hTQ0vwnM4bXhPB8trYaR3XkH.ZtaIlDH35SvXEUr0GlQ9wbBCQ8zihB3rWjNMpN5cEGzLMW3629BpmZz0J9iee6QD5vQ4if9va1Vitqy3CToS.RxXWl.qn7gmRgKJch+Zyhp93YFgtUlSuCRJXKyLziFLLaPW4U777tR6NvDmjq8pqt56lUaiT0wNqHuSk6bV9iu5K8FCy2aYauJjsWoAzpO0t9iqp0zlFFvvSOFX1mm1CBF8wPqRr8CDW.AApZzLV9mnIh0arQrbqnPkXxdRbvHpa3Lg1l3iiXpcBBHXo96.fUkLJw3tLXTNbTm.2hBvfSs0eR7uM2zYim3rQ8XuNULDZ2NT3Ql4j0iegwwbfGngRrtWFRNC5OExBX45rAF6xvp9porabR85j8F3l5gFFoJOKMxz2g6UH2qacI7UII7Fs.84F7Rz8lK23iwn9v3Oyb4F+mjK27+4x+qvka.KqcqkRf0gDdQ.jlcGI8xfoFfOTMyhI5kO3gT0zhKKdOVbx4NWb5SEhOxrGU4NZ9XrzbvH7IrOGXLccyGZ1w2GdqmCvkM695Ec2x+gzCazn63ODqjTng2D5V5CcatjT5.b3lFkzeFOQ1QKquA5S3dwB5V0Ti00xFoFqmYDMA6JEu0MY8D8BseQrF.S7382KadnV1tNJdkEHNSmZNnIPCwacc0k+O.yNmeLMVfX9wEHllKPLOdAhY8EHlMVfX17NiQOKZmHXFXR6.nnWm3gtFFc3XfYEyBQ+MvlYZ9D
-
Is there a way to trigger a note in a specific sampler with code directly? That way works but breaks MPE...
-
@crd Sorry I don't know how to do that
-
When the keyboard's
useFlatStyle
property is set to true the keyboard has a transparent background. However I notice that there is a line at the bottom and a shadow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EwAj743x5cCb1mgUiUKYEXwvQ8RuAJtAi5AcNRU1lzLEuG2M2VeXkauiV5u986pk9sepE59Sjg2BDtQ.oJ9.g9UwUNfF8BSk0Sd4gT0x7uZ9+1qF+Wo3yMGQUN9alik1.GgwAeL33p2ZelYuYyf68LBtqY+e7iyCqnWIhz83CwJIEZwMg1kwPCmCYkhPOn0njdjXhss1VWAFS3twF54Oqb1PaarxYiTmnEXGo3cNIi20uluWLBvId7+HSYygZaqFn3Q9PdlPqLZAzR7NGG8w+KgozaNmlaQNe0VjyAaQNe8VjygaQNGsE4b7ilidZzoQvTvj1A.XTu34tFF83XPYEqBQ+qzA2fh
-
@d-healey setting "DefaultAppearance" to false gets rid of the lower line. I'm not sure if that helps...
I ended up using a paint routine instead of the floating tile approach.
-
@crd said in Keyboard(s) Paint Routine Inline Function:
setting "DefaultAppearance" to false gets rid of the lower line. I'm not sure if that helps...
Still shows up here, just moves down a bit.