HI,

this seems super obvious, but I can't figure it out.

I am trying to plot a curve on an array with certain points.

when x = 0, y = 38.89

when x = 6, y = 41.2

when x = 11, y = 43.65

I'm calling this array pitches1

in a message box i'm putting this

;pitches1 0 38.89 6 41.2 11 43.65

i also tried this

;pitches1 0 38.89, 6 41.2, 11 43.65

when using [tabread pitches1] and i input a 0 I get 38.89, a 1 outputs 6, a outputs 41.2, a 3 outputs 11, 4 outputs 43.65. Not the desired outcome.

what i want is 0 outputs 38.89, 6 outputs 41.2 and 11 outputs 43.65. and if I input a number like 3 it will be on the curve between 38.89 and 41.2. Does this make sense? So I want to plot a curve along several given points, but I don't want to input every value of x, only certain ones like 0, 6 and 11, and I want Pd to figure out the in between values.

Is this possible? And how would I format a message box to achieve this?

thank you!