({{, (RefLink[SampledSoundFunction, paclet:ref/SampledSoundFunction])[f,n,r]
is a sound primitive that represents a sound whose amplitude sampled r times a second is generated by applying the function f to successive integers from 1 to n. }})

OpenersNotesSection(Spacer1)Details

(RefLink[SampledSoundFunction, paclet:ref/SampledSoundFunction])[{(Subscript[f, 1]),(Subscript[f, 2]),…},n,r] yields sound on several channels.

(RefLink[SampledSoundFunction, paclet:ref/SampledSoundFunction]) is generated by (RefLink[Play, paclet:ref/Play]).

(RefLink[SampledSoundFunction, paclet:ref/SampledSoundFunction]) primitives appear inside (RefLink[Sound, paclet:ref/Sound]) objects.

OpenersPrimaryExamplesSection(Spacer1)Examples  (3)

OpenersExampleSection0(Spacer1)Basic Examples  (2)

Generate a sound by sampling a function at 4000 integer values:

Sound[SampledSoundFunction[Sin[0.125#]&,4000,8000]]

Use a sampling rate of 20 kHz:

Sound[SampledSoundFunction[Sin[0.125#]&,4000,20000]]

OpenersExampleSection1(Spacer1)Properties & Relations  (1)

(RefLink[Play, paclet:ref/Play]) generates a (RefLink[SampledSoundFunction, paclet:ref/SampledSoundFunction]) that uses a (RefLink[CompiledFunction, paclet:ref/CompiledFunction]):

Play[Sin[1000t],{t,0,1}]

OutputForm[%]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[Play, paclet:ref/Play])  ▪  (RefLink[SampledSoundList, paclet:ref/SampledSoundList])  ▪  (RefLink[Audio, paclet:ref/Audio])  ▪  (RefLink[AudioGenerator, paclet:ref/AudioGenerator])  ▪  (RefLink[SoundNote, paclet:ref/SoundNote])  ▪  (RefLink[Sound, paclet:ref/Sound])  ▪  (RefLink[EmitSound, paclet:ref/EmitSound])}})}})

({{DocumentationFooterIconsRelatedTutorial.png, ({{Tutorials}, {▪(RefLinkPlain[Sound, paclet:tutorial/Sound])}, {▪(RefLinkPlain[The Representation of Sound, paclet:tutorial/TheRepresentationOfSound])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Sound and Sonification, paclet:guide/SoundAndSonification])}})}})