< Back to IRCAM Forum

Simple, unique interpolation?

Hello, OM-users, I’m sorry for my poor memory, but is there a function in OM where, given a bpf and an absolute x-val (usually not contained in the previously defined x-vals) returns the corresponding y-value by interpolation? “Interpolate”, actually, samples a curve and returns several values.
Thank you in advance.

Marco

There is the function om::number-interpolation

Sounds like you are maybe looking for bpf-sample?

I think om::number-interpolation is the function you are lookinf for …

I think om::number-interpolation is the function you are looking for …

Thank you for your quick reply. I noticed number-interpolation, but it does not really work if the value is not within the given realm (if the 3rd argument is negative, it freezes). Bpf-sample gives a set of values. I will write a simple function that does this, no problem! Just did not want to do the work again…
Marco

Dear Marco,
maybe the OM built-in function that comes closer to your purpose is x-transfer. Let me know if it works.
Best,
Francesco Vitale