Need a Ruby float array solution
Posted: Sat Dec 12, 2015 9:29 pm
Hi,
I'm trying to find a simple ruby solution that would replace the whole array values to my own value. For instance, if the array is:
0.5
0.7
0.6
0.4
I would like to replace the whole bunch of values with 0.1 to end up with:
0.1
0.1
0.1
0.1
Why is it needed? because while FS's multisample module extracts the sfz file's values correctly, it yet doesn't allow determining them with knobs, so I can't prevent fundamentals values like "release=29" to be streamed... moreover, for instance, if I would like to customize the each of the AHDSR array values with my one desired values (with knobs), I have no way to control the arrays correctly. Any suggestions?
I'm trying to find a simple ruby solution that would replace the whole array values to my own value. For instance, if the array is:
0.5
0.7
0.6
0.4
I would like to replace the whole bunch of values with 0.1 to end up with:
0.1
0.1
0.1
0.1
Why is it needed? because while FS's multisample module extracts the sfz file's values correctly, it yet doesn't allow determining them with knobs, so I can't prevent fundamentals values like "release=29" to be streamed... moreover, for instance, if I would like to customize the each of the AHDSR array values with my one desired values (with knobs), I have no way to control the arrays correctly. Any suggestions?