tone

Parent Previous Next

tone

y = tone ( freq,duration,phase[=0] )

Generate a pure tone

arg

type

Description

Unit or Value scale

freq

SCAL or VCT

frequency


duration

SCAL

duration


phase

SCAL

initial phase (0 to 1)


Outputs

  • y is a pure tone.

Notes

  • If freq is a two-element vector, a tone glide is generated with beginning and ending frequencies, as specified.

Examples

  • tone(100, 50, .25) // 100-Hz, 50-ms tone with a starting phase of 90°

See Also

Created with the Personal Edition of HelpNDoc: Free help authoring tool