How to create monotone (periodic) sounds in Mathematica from function

Hello,
I’ve discovered the function Play in Mathematica. I would like to generate sounds from functions defined on an interval and prolonged periodically (as the “saw tooth”). How could I do that? (, I tried some recursion definition of the function, but Play overstacked.)

(The question is how to define a periodically prolonged function in Mathematica without heavy recursions? or at least how to define a repeating sample for Play?)

Thank you

I wish you a nice day

For the specific case of the “sawtooth”, there is an example in the documentation for Play/Scope. I hope that is what you seek.

This is not really what I am looking for, I would like to generate a general periodic function from a function given on an interval.

(i.e. create “copies” of the given interval)

One method is to use Mod to construct a periodic function:

f = Interpolation[{{0, 0}, {1, 1}, {2, 1}, {3, 0}}, 
  InterpolationOrder -> 1]

fperiodic[t_] := f[Mod[t, 3]]

Plot[fperiodic[t], {t, 0, 9}]