SAMPLE-FUN

[GENERIC-FUNCTION]


OMTristan
Function Reference
ARGUMENTS:
  - fun [default = (quote +)]
  - xmin [default = 1]
  - xmax [default = 10]
  - step [default = 1]

Description:

Returns the list of values of <fun> from <xmin> to <xmax> with <step>.
For example:
(pw::sample-fun 'sin 0 1 6.3)
will return
? PW->(0.0 0.8414709848078965 0.9092974268256817 0.1411200080598672
-0.7568024953079282 -0.9589242746631385 -0.27941549819892586)
and
(pw::sample-fun (pw::make-num-fun '(f(x)= x + 1)) 0 1 10)
will return
? OM->(1 2 3 4 5 6 7 8 9 10 11)



Auto doc generation by OpenMusic 7.0 © 2022 IRCAM