## Discrete Midi values Interpolation into Continuous Number Flow

Nov 09 2007 | 6:08 pm
Hi all, I'm trying to make an interpolator to obtain continuous float values out of a simple slider (0-127, or 0-16383; integers), that I control by mean of a midi knob. I tried many ways but still can't get the number flow smooth enough. (tables with curves, expr-essions, bpfunctions etc..) Can you tell me how to make a good interpolator to smooth midi discrete values? Thank you very much,
Carlo

• Nov 09 2007 | 8:21 pm
I assume you've tried the line object. I'm also assuming your knob has a resolution of 128. If this is the case, I'm not sure why you're not getting the results you want. Could you clarify on what exactly you're trying to do? Context may help us help you.
Joe
On 09/11/2007, Carlo Laurenzi wrote: > > Hi all, > I'm trying to make an interpolator to obtain continuous float values out > of a simple slider (0-127, or 0-16383; integers), that I control by mean of > a midi knob. > I tried many ways but still can't get the number flow smooth enough. > (tables with curves, expr-essions, bpfunctions etc..) > Can you tell me how to make a good interpolator to smooth midi discrete > values? > Thank you very much, > > Carlo > > >
• Nov 10 2007 | 1:02 am
I saw that there was a thread already on the forum, about what I'm trying to make: "Interpolating Midi values". There I found some answers. However, the real problem that causes the stepping sound of an oscillator whose frequency I modify with a slider of my BCF2000 Behringer midi mixer (using double resolution Control Changes, 14bits = 16384 values) is that the slider itself, especially when in double resolution mode, spits out non-consecutive integer values. I mean, when moving the slider, even very slowly, instead of having consecutive values, I have random jumps: 0 - 11 -16 - 19 - 25 - 32 etc.. How can I get continuous values, like it would happen with a linear ramp, out of my slider if its values aren't consecutive? I wonder if this is a common problem in midi controllers or is it just a BCF2000 problem.. Anyway, when using single precision (=7 bits), values ranging from 0 to 127, the values from a BCF slider are consecutive, so a bpfunction interpolates well and does the trick.. What to do if one want to use double resolution? (and get a continuous flow of consecutive numbers from 0 to 16383?) best,
Carlo
----- Original Message ----- From: ilikepie To: maxmsp@cycling74.com Sent: Friday, November 09, 2007 9:21 PM Subject: Re: [maxmsp] Discrete Midi values Interpolation into ContinuousNumber Flow
I assume you've tried the line object. I'm also assuming your knob has a resolution of 128. If this is the case, I'm not sure why you're not getting the results you want. Could you clarify on what exactly you're trying to do? Context may help us help you.
Joe
On 09/11/2007, Carlo Laurenzi wrote: Hi all, I'm trying to make an interpolator to obtain continuous float values out of a simple slider (0-127, or 0-16383; integers), that I control by mean of a midi knob. I tried many ways but still can't get the number flow smooth enough. (tables with curves, expr-essions, bpfunctions etc..) Can you tell me how to make a good interpolator to smooth midi discrete values? Thank you very much,
Carlo
• Nov 10 2007 | 2:59 pm
That's a strange problem. Are they truely random jumps? What's the range of the jumps? If it's a small range, maybe scaling it down with a (drum roll!) Scale object would round it to a more linear ramp. Have you modified the hardware at all? It sounds like there's a possibility the problem is with the hardware, if it's sending out the numbers, but not in the correct fashion. It could be that the potential divider sliders are really really shit. Have you checked any Behringer forums/documentation?
On 10/11/2007, Carlo Laurenzi wrote: > > I saw that there was a thread already on the forum, about what I'm trying > to make: "Interpolating Midi values". > There I found some answers. However, the real problem that causes the > stepping sound of an oscillator whose frequency I modify with a slider of my > BCF2000 Behringer midi mixer (using double resolution Control Changes, > 14bits = 16384 values) is that the slider itself, especially when in double > resolution mode, spits out non-consecutive integer values. I mean, > when moving the slider, even very slowly, instead of having consecutive > values, I have random jumps: 0 - 11 -16 - 19 - 25 - 32 etc.. > How can I get continuous values, like it would happen with a linear ramp, > out of my slider if its values aren't consecutive? I wonder if this is a > common problem in midi controllers or is it just a BCF2000 problem.. > Anyway, when using single precision (=7 bits), values ranging from 0 to > 127, the values from a BCF slider are consecutive, so a bpfunction > interpolates well and does the trick.. > What to do if one want to use double resolution? (and get a continuous > flow of consecutive numbers from 0 to 16383?) > best, > > Carlo > > > > ----- Original Message ----- > *From:* ilikepie > *Sent:* Friday, November 09, 2007 9:21 PM > *Subject:* Re: [maxmsp] Discrete Midi values Interpolation into > ContinuousNumber Flow > > I assume you've tried the line object. I'm also assuming your knob has a > resolution of 128. If this is the case, I'm not sure why you're not getting > the results you want. Could you clarify on what exactly you're trying to do? > Context may help us help you. > > Joe > > On 09/11/2007, Carlo Laurenzi wrote: > > > > Hi all, > > I'm trying to make an interpolator to obtain continuous float values out > > of a simple slider (0-127, or 0-16383; integers), that I control by mean of > > a midi knob. > > I tried many ways but still can't get the number flow smooth enough. > > (tables with curves, expr-essions, bpfunctions etc..) > > Can you tell me how to make a good interpolator to smooth midi discrete > > values? > > Thank you very much, > > > > Carlo > > > > > >
• Nov 10 2007 | 6:11 pm