New Tool (2.8) / InstrMixer

(Cas) #5

Thanks, let me know if you think it’s useful or got any tips.


Yes, yes!

This is awesome, thanks…

Couple of bugs though… It doesn’t update the faders when you change instrument, if you select an instrument with less samples and then use the keys it throws up an error.
It also doesn’t work when you adjust the volume using the mouse which kinda defeats the point of having a GUI.

I also couldn’t get the mute/solo to work but that might be because I’m using a laptop keyboard.

Nice tool though and potentially very useful to my workflow. Cheers

(Cas) #7

Yeah, some points are also my first already on the list… also I’m thinking of more than 10 volume steps, and I can’t really think of a proper way on keyboard to make ‘small’ ‘medium’ or ‘big’ steps possible and/or logical… yet.
So yes it’s not going to react on instrument switch, at this point in time… more like, you compose an instrument out of some layers, then tweak it with this here tool. Or when you’re looping a part of the song and you can check out different vol/pan/tune configs of different samples.
But you’re right, proper reaction to instr switch is one of the top of the list.
Working with mouse - if the binding to stuff works really well like it could then this should be a no-brainer to fix (I don’t agree tho that it would defeat the point of having a GUI… Or does Renoise not need a pattern editor if it just had a piano roll? :P)
As to Mute/Solo: make sure the window is active (click on it to be sure, window border color/glow changes) and then press either 1 (one) or A (Ay!!) - Please let me know if this really does not work as expected.
And hey man if you think it’s really useful you can always buy me a beer ;)

(Cas) #8

Hey afta8,
Tool page has now got the new version :)
few updates:

  • Instrument change support (also NumPad+ and -)
  • Sample duplicate (D, or shift+D to duplicate without keyzones)
  • Sample delete (X)

Unfortunately, mouse usage for now is too annoying/complicated to make, that is, I can’t code it in a few minutes. So maybe for next version when I have a day off.

(kazakore) #9

I did manage to get a slider along with a valuebox working and updating each other once. Something about binding through a Document IIRC…

(Cas) #10

Exactly. I did not say it’s impossible, but as right now the sliders get built in a simple manner, constructively in a loop counting the samples from 1 to, I’m not sure is as easy to also make ObservableNumbers in the same loop. I already have a request posted about this (I mean come on, making an ObservableNumber document in the script just to bind the slider to the actual ‘Observable’, … too much for a week day, give me a break ;D)
Ehhm there might be something similar in Overtune dialog indeed… if that works it might be easier than I expected at first, thanks for the idea


Cas, thanks for updating, I opened an existing song, selected an instrument with 2 samples in it and opened the tool. I then got the following error:

‘/Users/Creative/Library/Preferences/Renoise/V2.8.0/Scripts/Tools/nl.jeweett.InstrMixer.xrnx/’ failed to execute in one of its key binding functions.

Please contact the author (Cas | for assistance…

std::logic_error: ‘ViewBuilder: invalid value for slider: ‘1.04’. value must be [0 - 1].’
stack traceback:
[C]: in function ‘slider’
main.lua:300: in function ‘make_sliders’
main.lua:324: in function ‘show_dialog’
main.lua:346: in function main.lua:342

Not had a chance to test the rest of it fully yet, but will do when I have more time…

Sure thing, I’d be happy to once it works properly :P

(Cas) #12

Hey, sorry about that, it was a known bug for some testing time, figured I left something out. Unlucky for you the wrong version uploaded to dropbox and tools page. Both are fixed now. Beware though, it’s still so that this tool does not support sample vol over 0dB… Has anybody got great ideas as to how to scale this value properly?

(Cas) #13

New version 1.03 on tools page has mouse support now, too. Hope it’s as stable as 1.0 was, please let me know if anything is not working like you expect (except for the >0dB samples, still pondering)
PS thanks for copying detailed error log! (Y)

(kazakore) #14

Pretty sure it’s 0-4 with 0 = -inf, 1 = 0db, 2 = +6dB and 4 = +12dB

IE it’s a log scale with 0dB at 1.

Although I might be remembering wrong…

(Cas) #15

That’s exactly spot on righteously correct man. Only thing is, usually when I layer stuff, I just Ctrl-P about every sample and then most of the time use values below 0dB… I guess I’ll build a proper function so one can just type ‘-12’ and press enter (another tool has something like that)
Maybe numeric entry would be cool for the other 3 numerical values as well? (pan, txpose, finetune) Values typed but prepended by u, j, m. Guess that would be cool.
Anyway, to be clear, to find these values was not difficult, but I had the arrow keys scaled to 0.1 up/down for volume which worked nicely with my instruments… I’ll see if I leave it at that (small changes, better precision) or set it to 0.2, 0.4, or whatever.

(kazakore) #16

Sorry I don’t know what Ctrl+P would be… (I’m guessing some paste function, although the basic is usually Ctrl+V, but Ctrl+P is Continuous Paste in Pattern Editor…)

Anyway going off topic now. Still not exactly sure what you want. Display and edit in dB and then convert into 0-4 range for the tool?

Vtool = 10 ^ (dB/20)

Where Vtool is the 0-4 volume value used in the tool and dB is the value as displayed in decibels.

Or for even-sized steps, rather than having each as 0.1, you could try and using 1/10th of current value or something similar for each button press change…

(Cas) #17

That’s an idea! But I think latest version it behaves quite cool and useful with the even steps.
Thanks anyway

Oh and Ctrl+P in sample editor is max out… like Power or sth is how I remember

(KMaki) #18

Have you seen the dB functions here? Not sure if they help but maybe?

(vV) #19

These converters are there for the convenience of converting fader/rotator values to dB values. be it these values are based on floats between 0 and 1, you can always multiple x10, x100 or x1000 to increase the factor.

(Cas) #20

Thanks for the heads up, I know of these functions but in this case they’d be handy especially for displaying the value in dB, and I’ll leave that to the renoise interface for now… So the setting in the sample.volume parameter is linear already, I just gotta get my own head around ehh, how logical a logarithm function is?
Thanks ;)
EDIT: Yes they will come in handy if I decide to build a number parser for exact volume… one day… :P

(eyesee) #21

had it a few days. using it on a mac, seems to be working ok.

as mentioned it doesn’t follow the sampler instrument changes but
I can just close it and hit the F key I have it assigned to.

when you roll over the faders you get a distinct color change.
that distinct change would be nice for the surrounding boxes when receiving notes
or when you play a note yourself. the obvious contrast would help with quick identification.

the only thing I find myself wanting is clearer symbols for the NNA and a global switch and selector
that turns all NNA settings in all zones to any newly selected NNA setting choice.

apart from that though, this is extremely useful. you can very quickly shape sample response.
much easier than adding volume/velocity events in the pattern Editor.

Love it.

(Cas) #22

what I said in the other topic, I guess you already read it, but anyway:
if you use the ticker for “Auto-Select Played” sample, then you can select samples/keymaps by MIDI action. For pc keyboard notes that does not work yet since renoise xrnx does not work (understandably) with passed-back keys from dialog key handler.
I will think about the idea of a ‘global switch’ for NNA or maybe different ways of operation… Know please that there is also a much simpler tool out, by me, that can work side by side with this one, called Slice Master, which makes a shortcut available to copy all sample settings from 1st sample to others. Thanks to your ideas I now have some improvement ideas on it, maybe a option dialog like KMaki’s EditStepTweak with defaults and stuff…
As to the more recognizable symbols for NNA, you’re totally right, and I’ve been searching too, so next version will have slight improvements in that department.

Thanks for the appreciation!

(Cas) #23

So v1.1 is now up on the tools page, as suggested by eyesee there is now a “apply to all mode” activated by Z but NB! it is not functioning perfectly like I want / would expect yet. The other thing is that it’s got a pretty good lookin legend now so you and I can instantly recognize what’s what, especially useful with the 3 identical looking sliders for pan & pitch. Yeahh :)
Oh and it’s also got slightly different symbols for NNA: one with a X symbol in ‘superscript’ indicating cut off (stop immediately), one with a Z symbol indicating note-off (aka release phase), and one much alike the loop symbol indicating continuous mode (note won’t be cut in any way by a next note only by a note off or end-of-envelope)

(KMaki) #24

Checking this out now - nice! :walkman:

Some suggestions for improvement:

-On my keyboard, the first “column” of shortcuts are working (I/O, K/L…). The second is not. I suspect it’s my ‘swedish layout’ where the second column shortcuts read as: “P/Å, Ö/Ä”. This area of the keyboard is probably very different on several countries… Solutions for fix could include user-definable keys?, preset layouts?, a completely new scheme where one would keep within the area of the keyboard where it’s probable that keys will be the same across different layouts?.. don’t know.

-I know it’s a very special case, but I have some multisampled drums, that have so many samples on one instrument that the InstruMix-window just does not fit in my widescreen monitor. :D I counted a little over 70 samples on a specific snare. Don’t know if there’s a simple fix for this… Maybe paging? Maybe rows?

-I’d like a visual feedback on changing the selected sample. I know that the sample list updates, of course. Maybe the name of the selected sample on the GUI? Maybe just some visual clue as to what sample/slider column is currently selected?