Massive instrument model - is messing with my mind.....
-
@Lindon well it would seem Dave is right and
Sampler.setMultiGroupIndex(var groupIndex, bool enabled)
isnt working, if it was all this would just go away...
HiseSnippet 1541.3oc6X01aaaCDVxNJnwqqnsnCneXePnnEvAyv0Nu0MjML2D6zl03XCorrATLDvHQESTIRAJJ25UTr+R6mv.1ul8s8OX6njrkjiyK1y0qCq9CB5NdG0Cui74N5tblENHfwUTW4nA9XE0apYNfJ5saODgpreSE0ao0FEHvb8XU6LvGEDfsUTUK9LoB0UVRI52e9s6fbQTKbpJEkiYDK7ADOhHUa2Fuf35tGxFeDwKi0azXeKFcWlKKDvSQsZJ9HqWgNCeHRZVAME0kaYSDLto.IvAJpKsCydfYO1qow1eLIfbpKVJTWwDlnX06wbskHV9txt8Ht1cGttCTTT05lFEJFGEtmVahMYj9znwsiFPO0irwC0B4gWwbvq9EAuI.I0LPZoXHcGMSKNwWjNhDOeh19TH43ffvdVnDaqh5uqsKCLfJp5gdEdONHLxgxaUqVEc3wpaWpTImPpkfvn5L5gLAtCs7pkdaoUJ8tR5iOjiyDGS9k3LWWLehCKS17KywxzPuSw7J58Qtg3QFBQf7g0kudgUq3EdFCYz8oDQGebhb59h5SHInjD4f2998ahDHYdIQGXmOlKHR3n1D2G1jGmkVQqIN3UBlOrM+boPXyCyNzEIxuiRdLJY.HdjKMJyUz.hXP1iYiuMaoKNdTahmBl3p8ZB26n0kHr5MY7VXB3EhZuuwaxg1OUqkiC1RjB1kz16GuzSnycnbiKfE8lQmCAILu97fC0+ZygpV7+TblScF4eJ+ogwyQTafzZR7mE9CUM8R5O9w5ABDWne5.cj6qQCBzEgbJgdFvdoK5g0cH7.gNmqCyEXhajRF7fGnybbpVsZIcHw.1zGwkC1g1ghCz+F8WVuxF+z1iOpiS7vubsJqWYyJaIsHqMlHOe.y0gIHZmV0yvhnvPjT4GLb7GrZjiCEqhBRds7pUwTDDYMXgTaC1oDZYGja.v6peAkBFMIAXQ6PWA4YbVn+9Ta7aJOZEUQvAt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tDUOV.QIHA.2MVchKV2MGFyCTjC8DWP8NUDpX7tMobbzAIt4M3cYbnXWPMKAx+dar0Ds.ThhrtbgDZnOs7JI12YarsC92H79pwxgGfV8ii5QkuvqwiNpFPQeO5PMm7uGI2fToVgsIngJjj21CCWCPfqnRTNx.vS3f0N0lsdM5Kjj.evg0g4PBn888.xETzCivOlKdbnItAQJINhPzGAJmbYmkwWL.TQFlt6U9axf1ffiBjzHNeD1xW3mrKroc45nqYNSCLOGZrmhGK9tCaDCkaDRW6.+TMhg0GpQL9bbrByLIvX1wXrMSmK2fqy3QJZL9MnU0gF5oFSMc8jlBtvumfyRUj9TPIYcwr6jXelFzSUJ7EFSo7vcNE7.7tzTR+vNOGKdPkneBVRewseL9YFu9dqX3Rz4vj67wAWabuoI0Olf4H3tdLChlCYBK6aFss8D3yObg2kdPhnzfy0WJWxoHs+3Oo6Je1Lo67KrfSlQ9e86UV2BmPrLIJTRtahkSZDiEqvTcKrkVar4sCfnjyAOcOFyL5tAwqKoWGO7M2MZw+heFwzVu1bDS6wL+jbF8oNRwabh6dpqmcuHJncyi9YaxZ0TulXaL3pWd6iCu9FGmza00Tr7xpXkkUwpKqh0VVEqurJt0xp3itYE0us3ogJQ+36F3CtZ0HZbDSy32ZEcMw3+.rT4alD
I lied, it's two additional lines of code, with one of the being the GlobalRoutingManager reference.
Here's my ultra flexible continuous per event modulation snippet
https://forum.hise.audio/topic/10635/snippet-per-event-modulation-from-ui-with-global-storageIf you read the thread you can follow the entire history of that how or why that came to be in HISE.
For continuous modulation of volume per event, you can make it simpler as you don't need a network to just control the volume, the modulator itself will do:
- create EventData Envelope (it's important that it's an envelope)
- now you get two options. In both cases you'll be calling setEventData from the control callbacks, as well as the initial call for each event right after it's played with playNote
- publicize your eventIds by making the array a
global
instead ofreg
, then write into them from your interface script using tables or whatever - link your Dynamics slider to another one in your realtime script, then use that slider's value to deduce your correct volume using tables or whatever
- publicize your eventIds by making the array a
-
@aaronventure said in Massive instrument model - is messing with my mind.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pX7tMobbzAIt4M3cYbnXWPMKAx+dar0Ds.ThhrtbgDZnOs7JI12YarsC92H79pwxgGfV8ii5QkuvqwiNpFPQeO5PMm7uGI2fToVgsIngJjj21CCWCPfqnRTNx.vS3f0N0lsdM5Kjj.evg0g4PBn888.xETzCivOlKdbnItAQJINhPzGAJmbYmkwWL.TQFlt6U9axf1ffiBjzHNeD1xW3mrKroc45nqYNSCLOGZrmhGK9tCaDCkaDRW6.+TMhg0GpQL9bbrByLIvX1wXrMSmK2fqy3QJZL9MnU0gF5oFSMc8jlBtvumfyRUj9TPIYcwr6jXelFzSUJ7EFSo7vcNE7.7tzTR+vNOGKdPkneBVRewseL9YFu9dqX3Rz4vj67wAWabuoI0Olf4H3tdLChlCYBK6aFss8D3yObg2kdPhnzfy0WJWxoHs+3Oo6Je1Lo67KrfSlQ9e86UV2BmPrLIJTRtahkSZDiEqvTcKrkVar4sCfnjyAOcOFyL5tAwqKoWGO7M2MZw+heFwzVu1bDS6wL+jbF8oNRwabh6dpqmcuHJncyi9YaxZ0TulXaL3pWd6iCu9FGmza00Tr7xpXkkUwpKqh0VVEqurJt0xp3itYE0us3ogJQ+36F3CtZ0HZbDSy32ZEcMw3+.rT4alD
Thanks - so I loaded this and first thing that became clear is I lose any ability to let the end user draw the velocity curve they want.
-
@Lindon said in Massive instrument model - is messing with my mind.....:
yeah I understand - but its a work around Im not keen on pushing at the customer....
Workaround? Nope, it's just using a modulator, global mods are great, should be standard practice. I use them whenever I can. They reduce resource usage and make it easier to manage lots of modulators in larger projects.
-
@Lindon said in Massive instrument model - is messing with my mind.....:
Thanks - so I loaded this and first thing that became clear is I lose any ability to let the end user draw the velocity curve they want.
No, you don't. You'll still create a table in the UI, except you can create a global array of its data for each of 127 velocity values, and have the modulator pull from that. You can also just create a Script Modulator instead of the Event Data modulator, use the Event Data node inside and modify its output using a table, which you can then link to an external slot (and access it that way from your UI).
-
@aaronventure all of this in an additional two lines of code....
-
@Lindon here's a snippet
HiseSnippet 1824.3o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S54INidxuzQ7F2t3MpBjCOHfFr6z7rQ8i11uW8rVgrC1QHNsMwjo9MZeWS7sRl6+MuUxjaMEtaO9e0u30sP0i7KiMlR76Fa4fqxAMIoCJfdf7f3L+jtAhRZDHd7xIANdPq.lA+M7IdxRCZbBlrTxjuUNi1Deo3HeaqY5v84MT.4laRkr.pldLdLuXbaV.6He+ra0HKr7rtvUl0Et5rtv0l0Et9rtvMl0Edmyeg5WmJtphN1.pp0nhMasq805LgIN+C.YPvG9
- check the interface
- check the network
- play a note and tweak the table while holding a note
This is so stupidly simple and you don't have to keep track of modulator names or references or anything like that, it scales indefinitely with your samper count, just load the network as Script Envelope Modulator and it's done. So when you're working on another library from the same dev, you're not wasting hours rearranging everything and clearing references because the sampler count is different.
-
@aaronventure said in Massive instrument model - is messing with my mind.....:
HiseSnippet 1824.3oc4X0uaaUCE+dSm2Zy1PLXnAB9C+GfTJTxZR+ZSUn010zsHVZh1szAZZpx8dcZr5M1Q95jtLDR7HvqBu.HdD3QfGAdCfisu2j6cIKMMZe.hDo13iO19246icCovmFEIjNt4OneGpi60Pd84pV2uEgwcptqi66gpQhTTI1RZm9cHQQz.GW24dflf6BWxw74ut2NjPB2mNjjiygBlO8Qr1L0PpM15aYgg6QBnGvZmh6U2ppufeeQnnKfm4PK6zg3eJ4D59DMa4PNOjD0xw8KQqb2lkCVkt1pqu5wqsdvZqrZ4lAzM1vesf0Wa8MB.pkt6Jarhi6kqDvTBomhnnQvltiHnuWKwYb6AbHKhcbHUOnjiGbxVxN2uEKLnQhxIxwwE0XnpZNqp5lnZr.1.5CUYuuYB7vUjVo4laRPpzE.RtofzkrP5FHOeIqiZ3LZ7bUTUNXAaR.aSZnX40w82Q2W.LvUEaSNktmDFLXAEVe4kWBC+YwMa1k6qXBNVv2Wnn04EVL+Oleg7+Td7KOUylicN8wHEggT4XmV6NHmzBKv619XpbIbORXW5.FAwOqN8xSmN02J0oXTvqxYp5cnwi2SDFn0U5eOpEvIVsosEwHDfhxXItdrk3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IZJ2bVNnfWBmSC2tsNcuVEjCN4GRhNfvB0r40EpX.sEw8.lMMV5N2gTYjYiuBZ4hvWHpbeiS9k2i3CXneCh9NN2.oygANgP0B+ANiSD6oMr12rXhrqO0jdUQZaGn8Z21bGsbHPCmJmmMZQOBr94z.4ZnpQGpm0mD5bn8Fkfzq2SM6yEKR1tSLUSNR2wvQRJz0rzIin9oHos5XwQYbTYZba2EQTbFFBefoTeTbddN02ZwM1C80HQHRP.z+qDNXE0byxqfrB6Pp17pIi.Npw3G9xWwtF44uDsk2xSQ63wdQlzadmROypaxD5YdDEuPgpJOf9bmQ193r0iP24hiK.CWHbMORG0BQESOnR4aX0vY7FxiZC+unl9nFeK+mi4NWFycFCkaJEx7ytBAxy8JUHIdHSs9X6tJAHx16rmV4bEjx73HYTOWypdryLpBJYMWnHBc1rP5yS54INidxuzQ7F2t3MpBjCOHfFr6z7rQ8i11uW8rVgrC1QHNsMwjo9MZeWS7sRl6+MuUxjaMEtaO9e0u30sP0i7KiMlR76Fa4fqxAMIoCJfdf7f3L+jtAhRZDHd7xIANdPq.lA+M7IdxRCZbBlrTxjuUNi1Deo3HeaqY5v84MT.4laRkr.pldLdLuXbaV.6He+ra0HKr7rtvUl0Et5rtv0l0Et9rtvMl0Edmyeg5WmJtphN1.pp0nhMasq805LgIN+C.YPvG9
Ok yes, interesting. But I think what you did there was achieve the same (but less flexible) thing that Dave achieved with a Global Velocity modulator - so if I have to go this "VelocityStacking" route to get RRs in a XFade environment I guess I'll take Dave's route for now, but actually what I'd really like is to have the existing call fixed.
-
@Lindon Ok I will come clean with at least one of my objections :
There will be a number of articulations - and the user will be able to load any articulation into any sampler. Not all articulations have RRs and not all RRs are the same number.
So in the stacking approach I have code that handles this, but it will be different depending on the number of RRs... so I'm going to have to know for a given articulation the number RRs and thus the layout of the sample maps, and implement custom code for each config..
Thinking about it I have to do some thing different but similar even if the call gets fixed I think.
-
@Lindon said in Massive instrument model - is messing with my mind.....:
not all RRs are the same number.
Duplicate zones so that they all have the same number.
-
@d-healey 80% have no rrs, 15% have 3, 5% have 5 - in the current layouts I have seen - so that would mean doing more complicated sample maps for 80% of articulations that don't need them. -- and Im asking the customer to do the maps.....so anything that makes that job simpler is good...
-
@Lindon said in Massive instrument model - is messing with my mind.....:
and Im asking the customer to do the maps
Yeah that will make things more tricky. Maybe use another sampler for the 80% that don't have RRs and use duplicates for the ones that have 3 to make them have 5.
Another solution is to use a dedicated part of the velocity range for your 3 different RR counts. Or you could do a mix of these things.
-
@Lindon said in Massive instrument model - is messing with my mind.....:
Ok yes, interesting. But I think what you did there was achieve the same (but less flexible) thing that Dave achieved with a Global Velocity modulator
Not at all, this is entirely continuous (unless you flip the Static parameter in the eventData node), whereas the velocity modulator is executed only at note start: instead of it being a table, you can add a parameter fo the network that'll be used for all events, and then use the eventData to instead branch between different tables, so now you have an XFade modulator for multiple dynamic layers. The benefit being that this concept is valid for all modulators: pitch, pan, whatever, and the sky is the limit as to what you can do with the signal per-event.
Even if you don't go with this option for your volume XFade, it's good to be aware of it because it's very simple and very powerful.
HiseSnippet 2182.3oc4Y0saiiaEVxIL+3c5ftSmhsEaufWTf5zMvqsiyOCBJl7mSFicchmwYxVzEKBXjniIhDogDsS7tn.8h9Hzmi9Jzh9DzGgsuA8ldc6gjR1RwJNNtY5rCpCPf3gGRdNemeoTy.gCMLTDXYm+zAcoV1OA0Z.W1Y+NDF2p9AV1OE0fDJoAXCo8FzkDFRcsrsm6HEA6km2R+6e9x8HdDtCcDIKqyDLG5Wx7YxQTatyWv77Nj3ROk4mf6p6T2Qv2W3I5AxybnRVcINWQtjdLQwVNj0qHgcrr+0n0dQ6JtUoqWcipWr9FtquV0Jscoatoy5tar9Fa5BTK+h01bMK6Ep4xjhfVRhjFBa5dB2As5HtlaNfyXgrK7npAksZAmrgr09cXdtMiAmPKKaTyQP0bFn54nFLW1P5ifrerdB7nUjDzryMIQp7CPjrSHRyaDoOF0xIf0UNZFk77Qn5bvB1l.1ljhhgWK6+JZeAv.W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yoxp9fJ4GW+6Va6R6LcYZuSQcQSGAC+RAO90IN61eYmrkX3FcI5G3taOvTUL69C2SHtxmnuWx6z2xvD+FDy8+MeChI+hXZvtA+C5ujzmfNIzoBVaJwuerkCeEox.0WX.A23uEjKzI9tugwW6MZbo3rjsfK9VJNSWzjkG9ZBfIKGO4+SNCehSf37nqOnhcWRSAzatNe+xnFpw3zemWymIk4xN2wI8VM1BqLqKbsYcgUm0Et9rtvMl0Et4rtvst+Ep9pOQkRTwFPwfl0LUTsMeELcXh0+A+MlitC
-
@d-healey Im beginning to think I should push hard for them to use our Infinite Round Robin Engine - which manipulates every new note (pitch eq attack and delay) and removes the entire idea of round robins as separate wav files....then I just use XFades....
-
@aaronventure okay...interesting again....but lets say i wanted to apply it to the volume of two(or more) different groups in a sampler(so essentially XFade), how would I do that?
-
@Lindon Sampler.enableRoundRobin(false) to disable the groups acting as RR, and beyond that the groups are just different lists of samples within a map, navigated in 2D by noteNum x Velocity.
Sampler.setActiveGroupForEventId(int eventId, int activeGroupIndex) lets you pick the group that the target event will play. In a previous line you played the note and targeted the sample using noteNum x Velocity.
After this, as per my last snippet, put the dynamic layer number into the eventData and tweak the modulator.
You can of course do all the volume math right here in the code and set the volume directly to the modulator like the snippet before that. You or the user defining their curves is just about you reading the table and using the Skew that they set the table to to get the final curve, which is just output = Math.pow(input, skew).
Some side musing: the event data obliterates the need for the conventional sample map layout of velocity x noteNum. For very complex projects like ours, a simpler sample map paradigm could be added to HISE as an alternative: you'll just load in the samples, choose the token for the map and the map will assign it an int, making the sample map itself just a list of samples with a single int value. You'd come up with a scheme to set the numbers, like `noteNum + 128 x layer + 10000 * rr, use it while exporting the files as well as in the code to pick the correct sample. The rest is just setting the correct eventData value in the following line to do what you want. Because the current sample map layout exists only to let you do a WYSIWYG velocity to volume mapping, and is a very backward way of working for anything with a bit more complexity.
-
@Lindon We must have both been doing something wrong. I just tried the
setMultiGroupIndex
again and it works, perhaps I forgot to disable round robin before... -
@d-healey I sure didnt forget to disable RRs and it fails for me - can you send a snippet?
-
HiseSnippet 1187.3ocyW0saaaCElJNLHwMsXsnXq2L.ghcQxPQfsicRFJFlSbRZCVchgUVQ2UELTz1DQhTfhJaYC6cZOB8QZuAaGJIaSoXj539ypuvPmygGwOd9N+P0SIor3XoB4T87qiXHm0wdWKzi5LhvEnSND47.bWRrlobyTcv0Qj3XlOxwoxKLJbVaYT5u+4mNfDPDT1TUHzqkbJ6U7Ptdp1ds+YdPvwDe147PqU2r8IToniLPl.3oBtFJhPujLjcJwrrkvnWRhGgb9dre8l0GrGkryd0a1fRar2tM9gcoLxfArcp2Z2l6Mn4.BsVCjyJG4y0RkmlnYwvK8.o+0dij+lHaCdMOleQ.yHTG4A6blZTmQ7.+diCNwHjCt2zPUkrP0iwc497I5mFx9pTCtS8vNn4rzsAo52AH4XAokyfzCwdTEORO0hAO2Ceh.XPHjvJ.kr0hV5qcvcjvJD5sBIWxNVABS7XicpU6Ytvea97pUA9IV6dEQ45QBiBXp5t+naZByVCY5bca7zwFeJ3y3m2hIHv4puLQ32WdAWrw.RPLaymOHQP0bovUJNUpYmI1Xyp+Y00p9WUcKaZvfYZy.dkLvr0yxrIKScaNtgHI7Bl5YvAKHgMYgPTsHUsx7QUzrXo0BkhSDb8YQrb4ikA9FJv77MIVTNY.O8KmbHQSLbctNXcQLklafiygrqfpqLleM7gr3K0xHn95FoEPBozOIfnKlkZpeyM.wiBoFF5WDy0WaWeeGRcqcqotyKDeHtGWSGMaLtzLvHDo9Tfw7B96iOB5vP0SA3x3ieyhVcO+a+2ls8OB6oULRHWLLunJECUwiKw9XzbNZtaN2SwBjDeO9eXsr209fDHFoJp8uamtU6GBE+E1qbj2mEwHZfls7Y0186+BkLIprWOocZRw4JX3.DJrOimIXPrVaeF6njwwCfiS56J11TuD0PSrZpl9rqXp3h5NMID3agfE.NicpXpJiYF9kS6RzJ9uau5zco14jTNFlXkJWujbiRxaWRtYI4Vkj2oj7tSkyBncIQlLiuAOhDB89X9GlDPMcA6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