Group Admins

  • Profile picture of Karim
  • Profile picture of Jean

OpenMusic

Public Group active 3 hours, 44 minutes ago

User group for OpenMusic and computer-aided composition. Visit the Forum for discussions.

Simple, unique interpolation?

Author 4 Subscribed Users |
Profile photo of marco
marco

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

December 6, 2017 at 16:19 #24580
Profile photo of lanza
lanza

There is the function om::number-interpolation

December 6, 2017 at 16:51 #24581
Profile photo of ctrapani
ctrapani

Sounds like you are maybe looking for bpf-sample?

December 6, 2017 at 16:58 #24582
Profile photo of lanza
lanza

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

December 6, 2017 at 17:01 #24583
Profile photo of lanza
lanza

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

December 6, 2017 at 17:01 #24584
Profile photo of marco
marco

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

December 6, 2017 at 17:02 #24585
Profile photo of Francesco Vitale
Francesco Vitale

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

December 6, 2017 at 19:46 #24586

You must be logged in to reply to this topic.

Log in now