### Discrete Midi values Interpolation into Continuous Number Flow

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

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

>

> 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

>

>

>

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

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

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

>

> 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

> >

> > 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

> >

> >

>

>

Well, they are random jumps in the sense that, when you move up the slider, since your hand can’t mantain a constant speed, you will always see different ranges between a value and the successive one. As you increase the speed of your hand, the range of the jumps between two successive values gets wider..

I now think, assuming that my Behringer unit isn’t broken, that is a hadware problem: the BCF2000 midi mixer really sucks. In double precision mode it’s unusable!

I wasn’t able to find any forum or dedicated website (although I remberer there was one..) to ask about this issue.

I could ask directly to behringer. But since I saw the same behaviour on another unit, I think asking them about this thing it’s not a great idea..

Anyone out there has some experience about this BCF matter?

best,

Carlo

—– Original Message —–

From: ilikepie

To: maxmsp@cycling74.com

Sent: Saturday, November 10, 2007 3:59 PM

Subject: Re: [maxmsp] Discrete Midi values Interpolation into ContinuousNumberFlow

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

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

Carlo Laurenzi schrieb:

> What to do if one want to use double resolution? (and get a continuous

> flow of consecutive numbers from 0 to 16383?)

> best,

The BFC Sliders are not double precision, I think its 10-bit (as opposed

to 14-bit) I made an abstraction which would translate any 14-bit Midi

into a float between 0. and 128. Then you can just replace the normal

ctlin with the higher precision ctl.in and do all calculations as float…

I posted a version not too long ago on this list… (for the same kind

of request…)

Stefan

–

Stefan Tiedje————x——-

–_____———–|————–

–(_|_ —-|—–|—–()——-

— _|_)—-|—–()————–

———-()——–www.ccmix.com

Forums > MaxMSP