Hi,
Could you confirm if my Pure Data implementation of this mathematical function (see below) is correct? Please check out. See the attachment also.
Best,
L (t, c) = Lmin + [Lmax – Lmin] * [ 1 – cosϕ (t, c)] / 2
ϕ (t, c) = 2π [(c-1) * tmax + t-1] / [tmax * cmax]
Legend:
t = any integer from 1 to 12
c = any integer from 1 to 10
tmax = 12
cmax = 10
Lmin = 22
Lmax = 56
2π = 6.28319
Pure Data:
c t
| |
ϕ = [expr 6.28319 * ($f1 – 1) * (12 + $f2 -1) / (12 * 10)]
|
|
|
L = [expr 22 + 56 -22 * (1 – cos ($f1)) / 2]