Awesome! Thanks for your clarification. I will round the numbers to an integer and apply the tuning until the patch is made ready. Cheers, Ebad On Tuesday, October 6, 2020, 01:29:22 PM GMT+2, Christian Schoenebeck <schoeneb...@linuxsampler.org> wrote: On Dienstag, 6. Oktober 2020 11:46:06 CEST joo bian via Linuxsampler-devel wrote: > Hi everyone, > I am trying to understand how to apply a different universal tuning in Linux > Sampler, apart from International A 440. Is there a way to do that in Linux > Sampler?
Well, there is already a bunch of options for altering tuning, both on patch/ preset level, as well on part/channel level. For the latter aspect there is already implemented e.g. MIDI RPN 2 (channel coarse tuning in semi tones), Roland GS scale tuning SysEx (cents per note of an octave). However what you are talking about is master tune. I have an unfinished patch for that. It's yet missing a binding to some MIDI command. MIDI RPN 1 (channel fine tuning) would be a reasonable candidate. > In the SFZ engine, I can add "tune" OPCODE to change the global > tuning. The question here is that does the "tune" OPCODE take a real number > in LS or only an integer? If it only takes an integer, I should round the > real number to get a higher precision... Thank you for your help, > Cheers, > Ebad I just looked at it: it's converted to an integer by the current SFZ engine implementation. No idea whether that's complying wiith the official tune opcode or not. Until a hard coded (e.g. RPN 1) implementation makes into the sampler, you might consider another alternative: adding a NKSP script with a RPN handler to your sound(s) which would simply call the NKSP built-in function change_tune(). That's like 3 lines of NKSP code. http://doc.linuxsampler.org/sfz/script_opcode/ http://doc.linuxsampler.org/Instrument_Scripts/NKSP_Language/#rpn__nrpn_events http://doc.linuxsampler.org/Instrument_Scripts/NKSP_Language/Reference/change_tune_function/ CU Christian
_______________________________________________ Linuxsampler-devel mailing list Linuxsampler-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxsampler-devel