This is documentation for Mathematica 3, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)
 Documentation / Mathematica / Built-in Functions / Graphics and Sound / Sound Primitives  /
SampledSoundFunction

  • SampledSoundFunction[ f , n , r ] is a sound primitive, which represents a sound whose amplitude sampled r times a second is generated by applying the function f to successive integers from 1 to n.
  • SampledSoundFunction[ , , ... , n , r ] yields sound on several channels.
  • SampledSoundFunction is generated by Play.
  • SampledSoundFunction primitives can appear inside Sound, Graphics and Graphics3D objects.
  • See the Mathematica book: Section 2.9.18.

    Further Examples

    The Sound object produced by Play contains a SampledSoundFunction primitive that uses a compiled function to generate amplitude samples for the sound.

    Evaluate the cell to see the graphic and hear the sound.

    In[1]:=