
Paints the area between the two selected Sounds.
The following script paints the area enclosed between a sine tone of 5 Hz and the straight line y = x/2.
s1 = Create Sound from formula: "sine", "Mono", 0, 1, 10000, ~ 1/2 * sin(2*pi*5*x)"
s2 = Create Sound from formula: "line", "Mono", 0, 1, 10000, ~ x / 2
plusObject (s1)
Paint enclosed: "Grey", 0, 0, 1, 1, ~ yes
© djmw, August 29, 2017