Scripfx -how to add velocity
-
@ospfeigrp depends on what you want to control. If you want velocity -> volume then use a core.gain node and connect the midi output to the Gain parameter.
-
@Christoph-Hart seems to work but to all voices.
HiseSnippet 1556.3ocwX8zaaTDEeVmLN0ookVQ6MN3ioRMAm1PAQODmXmzZQSpUbZTAEoxjcmXOJqmY0tichAwYJm3.m5s9A.j3J2hDm3LeA3.2oR7A.ducV6csWWisUpYiT7Ny7dy6279+rU8U17f.kOwJ2Ac73Dqkn05H0MJ0fIjjJkIVWmtKKPy8yalZqNdrf.tCwxZtGgSXkadR3ya1XKlKSZyimhPNTIr4OQzTnimsZwOS35tCygefnYBpWuXEakrjxU0BvybzBDOl8or578XHYYnDqra6HzJ+ZZllG.zrkxoSsFpyjF5OTDHN1kiCViTC1HyzjRMDtNU6dVCHDq4qFexmybxuEcWgin27wZfaDtP9XNRpCrxLJHs1D.IqDPZdCjtIslsuvSGuBhmqRqHACxILPUmDJFZIVWPKo.Bj5UaxNkuiOLnGCK+fBEtad3e24gmzRZqEJYdkbOkl+T4x2YwudwbK9MKlevkN4jgtFJFekqK2enKiVW+Qw3xxVMOl6e27sYts38HDN98qSyNd5TayoNAgJYEoP+TOdz3cTtNntBeOsEfDo1f2dVkxLMCMJQyAz4w80BDNVk4sAuZiIJGsLO3TsxC7qSY+.OGkSKWlte2ILtIZAPezmMDMTx.gtSx3pA8wl+sqOJjPe7ebZGS3dSZUg1twvwalgfWPq8tFuQQrWit8Imvs0wfcd5NOejgmyOdtRwPYbCUWLJTEjOBjkhFlemmu1PCReIMNfvym6w74Gnp5x5rb.qomKee.u2M+wtJ6SqI9Jd5nHOCD1BoXY6FLoj6FLMAaYujRfQ1W0RKj02ko8EmSrn60pYMHUtMuTD5f4rxfwYlwEvwn+RMtzIbv+.OQKtFN1JZw05tXhPz835yT9mFZNhdGNKntmRaycIa55pNqjpomHxsET9gyUU41wqgRJrwoLTzEha1T0B18Hb9XVvALgK5meH2OHbSVfVXU3OvGeOkCnUn6vrAsWmpLcCLX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ln51lVir1Vh2OMLaB4eAri3wPA
-
@Christoph-Hart This is something I also wonder how to accomplish, independent velocity for each note, without interfering to already sounding notes
If I have one note sounding I don't want the second pressed key make the already sounding note change gain -
@ulrik Ok, I figured it out how to have velocity per note in scriptnode
In the Midi chain grab the midi events with a midi control node, set it to velocity, connect output to a math.mul and place the math.mul at the end of the script -
@ulrik I have a problem with this. I use exactly the same thing in my project, but as soon as I lightly press a key, all previous notes can hardly be heard. If I then press a note harder it cracks once and everything is back to normal until I play another note with a lower velocity
-
@meto396 If you set it up like this it works here.
HiseSnippet 1618.3oc4Y8zaaTDEeV6LNMtoUsPqT4lO.RshpH6RnPEGhShcJVzjXkMXAmJS2cr8Hu6LlcGmDCBoJwEtw4diOBbka8K.RH0uH8a.7lY206t1qcrcSCUfqTjmYdyL+d+626MtM8DVTeegGxXsiG1mhLVGaNjK6taWBiiZTCYbarokGqujKrokZQcDVL4PzNC6S78o1HCi7OVIpwZqfzed8V6PbHbKZ7THTKAyh9DlKSFOaypeEywYOhM8XlaBo2rZCKAeWgiX..q73xn9DqdjNzCHJwxgQFEpayjBOSIQR8QFqrivdnYWwo7.4aw7YOygpFTAYBGTvz6IbrUHV8cztcYN1MiTeeDx.2L1XjOvXbK79La1n4iMJ2PuPo3cjzdXjKM7xmBdUlF7x.RFIfzJAP5lgti3UT34p3FbI0qMAL6IgRfrHiWh2U.Bvka3R5Q2yCFLZC28gkKe+Rvet2Wzd.2RxD7RB9ABI8P9cuWwer3ZE+ohkFeo1sybM003IbbndYtrxS6MqMdW9.2mQ8teoSHNCniDDT+z1zBymM0JPqSHnf2fyjG1mFNNNnnRFd.TnYS4KBQH.Eo1SbsPOwwD0Eyfy35ImoBRqBIyBrIRBx3ivOXyMR+4jCg+z9iUe8QlOR9PmCQnutQMk3gWLfA.W8odRlR8MpQOAxnBBIVCWi52SJ5qk0sufqPrwpyILOKFh1UGNZvyaW8TlsrKjXXbGCDpKk0oqTM5LX09QFoFvA9AIoHzzGTelO0CrnSF.C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6y+Ku8u+s+o2.E173WMRvlwuQfSlP7TxSVfwU9wy39vtKmw8gciLtn2g4Cx3NsyQAeUNJG4feGwAy9uATyzAaI
-
@ulrik I'm using a Granulator the sounds are clicking at the beginning in different velocity's and the whole played notes go on the same velocity
-
-
@ulrik when I play it like that everything works for me to but when I use a Midi Keyboard the velocity adapts to the notes played. I play the first notes with a heavier attack and the following ones with less, the first ones become quiet
-
@meto396 Ok, I can see what is happening, your project is not polyphonic, have you tried to set the granulator in a polyphonic Script FX?