Slider

Prone's icon

Hola
Es posible crear un slider de -70 a 6 dB pero que el output sea de 0-127?

Floating Point's icon

I'm not exactly sure what you mean, but you can use the scale object in to re-map output. You can also change a slider's output using the range and minimum attributes (in the information sidebar):

Max Patch
Copy patch and select New From Clipboard in Max.

Prone's icon

Muchísimas gracias por el ejemplo

Prone's icon

Hola de nuevo

Concretamente el tema es el slider que usan los micros de la librería de Orchestral Tools.
Me gustaría tener en mi patcher que coincidan con el de la librería para poderlos controlar desde Max.
He usado ahora el live.slider ya que tiene la opción de seleccionar deciBel
La configuración que he puesto es:
Range/Num -70 6
Modulation range 0 127
Initial Value -70
Unit Style deciBel

Pero....... no coinciden los deciBel de mi patcher con los que visualiza la librería.
Alguien me puede ayudar?
Gracias

Floating Point's icon

You will need to explain what the Orchestral Tools slider range is. I don't know anything about that software, but I assume it responds to MIDI 0-127?
I suggest you do some "reverse-engineering" and send the slider every value from 0-127 and see what decibel reading it displays. Then in Max you can crate a lookup table to remap values from the live.slider to MIDI.
I hope I am understanding your problem correctly.

Prone's icon

Lo entiendes perfectamente Floating y agradezco tu tiempo y ayuda.
La pregunta es: Cómo hago esto
Then in Max you can crate a lookup table to remap values from the live.slider to MIDI.
Por ejemplo (No es real):
MIDI Slider OT
127 6dB 6dB
126 3dB 4dB
125 1db 2db

Floating Point's icon

do you mean live.gain~ or live .slider?
live.gain~ has a pragmatic "natural" decibel output range as default, but with live.slider the output is an arbitrary, linear range of values:

Max Patch
Copy patch and select New From Clipboard in Max.


Prone's icon

live .slider

Floating Point's icon

this is how I would do it:

Max Patch
Copy patch and select New From Clipboard in Max.

but you may not get exact 1 to 1 correspondence with your slider in max and your OT slider, unless you carefully determine the length of the slider and its scaling and remapping parameters.
good luck!

btw I was wrong about live.slider having a linear range of values (if you select dB in the inspector)

Prone's icon

Thanks Floating
I have done "reverse-engineering" and copied the corresponding values:
127             5.9
126            5.8
125            5.7
124            5.6
123            5.4
122            5.3
121            5.2
120            5.0
119            4.9
118            4.8
117            4.7            
116            4.5
115            4.4
114            4.3
113            4.1
112            4.0
111            3.9
110            3.7
109            3.6
108            3.5
107            3.3
106            3.2
105            3.0
104            2.9
103            2.8
102            2.6
101            2.5
100            2.3
99            2.2
98            2.1
97            1.9
96            1.8
95            1.6
94            1.5
93            1.3
92            1.2
91            1.0
90            0.9
89            0.7
88            0.6
87            0.4
86            0.3
85            0.1
84            0.0
83            -0.3
82            -0.6
81            -0.9
80            -1.2
79            -1.5
78            -1.9
77            -2.2
76            -2.5
75            -2.9
74            -3.2
73            -3.6
72            -4.0
71            -4.3
70            -4.7
69            -5.1
68            -5.4
67            -5.8
66            -6.2
65            -6..6
64            -7.0
63            -7.4
62            -7.8
61            -8.3
60            -8.7
59            -9.1
58            -9.6
57            -10.0
56            -10.5
55            -10.9
54            -11.4
53            -11.9
52            -12.4
51            -12.9
50            -13.4
49            -13.9
48            -14.5
47            -15.0
46            -15.6
45            -16.2
44            -16.7
43            -17.3
42            -17.9
41            -18.6
40            -19.2
39            -19.9
38            -20.5
37            -21.2
36            -22.0
35            -22.7
34            -23.4
33            -24.2
32            -25.0
31            -25.8
30            -26.7
29            -27.6
28            -28.5
27            -29.4
26            -30.4
25            -31.4
24            -32.5
23            -33.6
22            -34.7
21            -35.9
20            -37.2
19            -38.5
18            -40.0
17            -41.4
16            -43.0
15            -44.7
14            -46.5
13            -48.4
12            -50.5
11            -52.7
10            -55.2
9            -58.0
8            -61.0
7            -64.5
6            -68.5
5            -73.2
4            -79.0
3            -86.5
2            -97.0
1            -115.0
0            muted