Massive instrument model - is messing with my mind.....
-
@Lindon said in Massive instrument model - is messing with my mind.....:
I set up a CC Modulator (assigned to CC1 - the mod wheel) and using a table, the table starts high and ends low -- how do I attach this so it ONLY applies to RR groups 1-5???
Once you enable group xf mode for the sampler you can click this button to see the tables for all groups. Each group gets its own table.
Then you add your CC modulator to the sampler's Group Fade chain.
-
@d-healey nope still making no sense to me.....
Heres a sampler with 3 rrs in it....and Group XF turned on....
when I click on your button I get this:
What are these tables doing? Are they setting the volume amount for each group?
so if I wanted to fade 1 and 2 into 3 I would do this?
Whats the Group Cross fade modulator doing? Moving thru these tables Ive set up?
-
@Lindon Did you not watch my video or did I just explain it badly?
@Lindon said in Massive instrument model - is messing with my mind.....:
Whats the Group Cross fade modulator doing? Moving thru these tables Ive set up?
Yes
@Lindon said in Massive instrument model - is messing with my mind.....:
so if I wanted to fade 1 and 2 into 3 I would do this?
Yes
-
@d-healey Ok well where the f***k did my round robins all go then?
Gone for good in this model no?
-
@Lindon said in Massive instrument model - is messing with my mind.....:
Ok well where the f***k did my round robins all go then?
Gone for good in this model no?
Groups are just groups, ignore the fact that they are labelled as rr groups. They are just one of the methods for organising samples - like note range or velocity.
If you're using the groups for xfading then you lose HISE's automatic round robin facility - but you probably weren't using that anyway, you were probably managing the RR yourself via scripting, so you can carry on with that when using xfades, nothing changes except you have more groups to manage per RR.
-
@d-healey said in Massive instrument model - is messing with my mind.....:
but you probably weren't using that anyway,
But I was using it!
So now I must use scripting to turn on specific groups right?
So a note arrives and I point it at RR1 and RR6 using:
Sampler.setMultiGroupIndex(var groupIndex, bool enabled)
EXCEPT!!!! this is what the documentation says:
This function can be used to enabled multiple groups at once. By default, only one RR group is active at the same time - as long as the Group XF property is disabled, then it will play all groups.
-- which confuses the bejesus out of me.... will it work or wont it with Group XF on?
-
@Lindon said in Massive instrument model - is messing with my mind.....:
-- which confuses the bejesus out of me.... will it work or wont it with Group XF on?
Oh I wasn't aware of this. I just tested it and no, as soon as group xf is enabled all groups play! So that kills this idea - go with velocity.
But it would be a nice option to be able to control the active groups even when group xf is enabled... @Christoph-Hart
-
@Christoph-Hart said in Massive instrument model - is messing with my mind.....:
@Lindon Use RRGroup for the Xfades and encode RRs & dynamics into the velocity data slot. You probably don't have 127 velocity layers, so you can pack that information into one number.
So if you have eg. 4 dynamic layers and 8 RRs distribute them so that the first RR group goes from velocity layer 0 - 15 (0-3, 4-7, 8-11, 12-15) etc.
Then do the "decoding" in the script.
Well I just re-read the spec. and yes (of course) they want velocity to be used to control the volume (in all cases) - as well as optionally set the dynamic layer cross over, so this stacking RRs in the velocity layers wont work will it. I programmatically change the velocity to use the correct RR sounds, and the overall volume of the sampler is changed e.g.
HiseSnippet 1170.3oc6X0saaaCElJNLKwKqnsnEX2L.cwtHAnnvNMMc.8h5XGmhfVmHXkErcU.iDsMQjHEnnRW1vdm1E6AnOR8MX6PIYKJGkTWC2zre7EF9bHOje77G+ncjBOZbrPhrV63KinHq0wtWxUi5Lhv3nC1CYcObORrhJsyT09xHRbL0GYYU60ZEVqsLJ8yGdUaR.g6QKTgPmHXdz2xBYpBsNsdCKHXehO8XVnwr2t0AdBdGQfHAvSMbCTDw6bxP5gD8zVBirVoqOSIjtJhhFirVtsv+R2Qh2wyl+IrX1YATsPSjKrPYp2WD3qQr92nNiXA9NiO2wHjE1ovKTKyK7HbOlOah9Buw8SGvtvBS+g0RkgWsRvq40AuJfjkAjVNCRO.65IYQphQz34qwGvgfy.B31MgR1bQVuG2Q.SfqdZH4b59RPXhAarSiFOwF9ZyWNHg6oXBtsfenPQOhuwl0+s5qU+2qaO8PCFT4X5sQJBBnxJGVGok2jgavSBOiJeh8EjfD5jIBG+x9zUlMepW1o1XhB9Abl5nHZtbQRQyJh.nb2F7qe7f8HJhNnjqClWDUpXZ3XsG8BHCOKDsFdOZ74JQDjiek3Gj4H7SBHpxoS5Zn7A.+QoXnNPwiYpKMqwlNGa4q2eznxRfJOsyHbe.1go7FUMdWpB7BdsO23Muh8avcGLf5oJ.6x38+oar7bgCkUulVnqmVDBRTYyEQCznYtApUs+Q0v7VMY9yZs2r6M++ZuEBT9tLn7PrqRRIgL9PWRXDbcTJdpiyktkq+bjz.Aw2k8qFS68sZm.9KYYs+QqzsZ2PQBuzdki79zHJQAgeCaVsU+9uVJRhl1pO7pzjkik.AJvUXNvQbJ32UlmwNRQb7.33jtVwlC4jHGp8UEZ5SufJiKq6vjPH1y4z.vXrkk9VyXpNVy75QTR1uXN6zcowwjz3MvpKUt4TxaMk7ylRd6oje9Tx6Lk7KJjybn8HQYzaeyOeZaZPfCivEWgtwWMak3vh4PfiuwLayFNYixzTtciwTm3+SwnQ64J58txWfdueBWMLyDWWG2uuMjy3qKQqh45ehsuFVo8fUAdUvSiopSfxKOnq2FM2ZyWdGjsJdQwV8emLT+DRrVx4JOU89XWlt.qK+BHM.znw6CgS3.RRfZr1xc76I3hnQBNyqbOMnG0vgTo44nxC2tJEzRsPyiZ0mFPIwFMk+9VuEX5QjkaUeU+xB80gUF69VbFbs04y12odkQNU453wUvo.9wSDsmbbZ9wQKbWSd2cynGbMkp70T6Q8XmQCJGXfq3y2yz0HsRJ8+ZXQEtVHD7p8edBd2jq6d4z6rgcWpti+H50woDRr07G+RA09hDEvKbL2LLPfyEHs5QMowsj9RlL4FZYMfbob+Tg+B9jOXywb9zC1b7fHuwKEb1x+cVwUMJWWok9tk.fMYfYJcLPMVCInB7VAk2F6QHwSJN0Ki5f1erZpFvSvS+mMWC2SKa2DkRmvzcDBD3N0yq7RcEC2ZdM7YyqgaOuF9740vclWCew7Z3O7wMTyud2DkHLqgMB0yoaVRtU2II40P+MfKihjO
So at this point I cant see a way forward without dumping RRs altogether -or being able to control active groups when XFade is enabled.
-
@Lindon you can still use velocity to control volume and also assign it to group xf. I'll check out your snippet shortly when I'm at my PC.
-
@d-healey said in Massive instrument model - is messing with my mind.....:
@Lindon you can still use velocity to control volume and also assign it to group xf. I'll check out your snippet shortly when I'm at my PC.
yeah --- but...... thats not all Im trying to do here - I'm modifying the velocity so I can trigger the correct "stacked" RR wav file, so for a single note I would have 5 wav files so using Christophs model these would be on velocity 1-24, 25-50,50-75,75-100, 100-127
To get the correct one to play my on note will need to modify the inbound velocity to fit in one of these ranges - and as soon as I modify the velocity in a script then the volume control using velocity fails.
-
I think this is very easy to specify.
I have this set of files:
StdGuitar_60_RR1.wav
StdGuitar_60_RR2.wav
StdGuitar_60_RR3.wav
StdGuitar_60_RR4.wav
StdGuitar_60_RR5.wavand this set of files:
DistGuitar_60_RR1.wav
DistGuitar_60_RR2.wav
DistGuitar_60_RR3.wav
DistGuitar_60_RR4.wav
DistGuitar_60_RR5.wavThese are all mapped to the same note(Middle C) - each set mapped into 5 RR groups - I wish to cross fade between these two sets of 5 RRs, in a single Sampler. Oh and each one is a multi-mic sample set, but Im ignoring that at the moment.
As far as I can see I can either cross fade between these OR use them as round robins - but not both.
Yet the documentation says this(for setMultiGroupIndex):
"However there are a few legitimate edge cases where you need multiple, but not all groups enabled - the most common one might be if you want to implement round robin behaviour in combination with Group XF samples."
-
@d-healey said in Massive instrument model - is messing with my mind.....:
@Lindon said in Massive instrument model - is messing with my mind.....:
-- which confuses the bejesus out of me.... will it work or wont it with Group XF on?
Oh I wasn't aware of this. I just tested it and no, as soon as group xf is enabled all groups play!
Did you use setMultiGroupIndex in your experiment or not? Because if not then yes they all will play...
https://docs.hise.dev/scripting/scripting-api/sampler/index.html#setmultigroupindex
-
@Lindon said in Massive instrument model - is messing with my mind.....:
as soon as I modify the velocity in a script then the volume control using velocity fails.
Use a global velocity mod instead. This will pick up the incoming velocity before you modify it.
@Lindon said in Massive instrument model - is messing with my mind.....:
I wish to cross fade between these two sets of 5 RRs,
Place each set in a different group, using velocity to separate the RRs.
@Lindon said in Massive instrument model - is messing with my mind.....:
Oh and each one is a multi-mic sample set, but Im ignoring that at the moment.
Makes no real difference, we can treat them as a single sample once they are merged in HISE.
@Lindon said in Massive instrument model - is messing with my mind.....:
Did you use setMultiGroupIndex in your experiment or not? Because if not then yes they all will play...
Yeah I tested with that too
@Lindon said in Massive instrument model - is messing with my mind.....:
"However there are a few legitimate edge cases where you need multiple, but not all groups enabled - the most common one might be if you want to implement round robin behaviour in combination with Group XF samples."
Looks like Christoph intended for this behaviour but forgot to implement it then. But still this is way more complicated than using the velocity separation method because you're going to be dealing with crossfade tables across a massive amount of groups instead of just two.
-
@Lindon said in Massive instrument model - is messing with my mind.....:
and as soon as I modify the velocity in a script then the volume control using velocity fails.
You can still save the event velocity in the script. You then use eventData and the event data node in the voice start script modulator (or the event data modulator itself if you don't need anything extra) for the samoler's gain modulation, and for each event where you're playing the artificial note, just send the correct gain using eventData to the desired slot, which will be picked up, per-event, by the eventData modulator, removing the need to have the samples spread out to use the velocity linearly as a gain control.
This turns velocity into a simple y axis value for mapping the samples, letting you have 127x128 samples per group.
-
@aaronventure Or use a global velocity mod
-
@aaronventure said in Massive instrument model - is messing with my mind.....:
You can still save the event velocity in the script. You then use eventData and the event data node in the voice start script modulator (or the event data modulator itself if you don't need anything extra) for the samoler's gain modulation, and for each event where you're playing the artificial note, just send the correct gain using eventData to the desired slot, which will be picked up, per-event, by the eventData modulator, removing the need to have the samples spread out to use the velocity linearly as a gain control.
This turns velocity into a simple y axis value for mapping the samples, letting you have 127x128 samples per group.
wow this looks like the most complicated way to get per-note velocity modulation ever...
-
@d-healey also true, but here you can do any kind of math to get your volume value, even use data from the interface script without first passing it to the real time script (if using globals), so creating volume curves per-articulation in the UI becomes possible without worrying where the modulator is, what it's called or how many of them are there.
-
@d-healey said in Massive instrument model - is messing with my mind.....:
@aaronventure Or use a global velocity mod
and this one isnt per-note - is it?
-
@Lindon how is it complicated?
Its just a different modulator (it's already built in, just use it instead of the velocity modulator) and one additional method call right under your playNote call.
The gain expression can be as complicated or as simple as you need it to be.
The idea is that you don't need specific modulator names or counts in the script. You just target a slot index for eventData, and in the modulator you set the slot that it'll read from. Then for every event, it'll check if there's a value stored for the event's id and apply it. It's ridiculously simple and scalable.
-
@Lindon Yes, I use a global velocity mod in all my instruments. Another advantage is you get one overall velocity curve you can control, plus an additional table at each of the destinations.