tone
Generate a pure tone
Syntax
y = tone ( freq,duration,phase[=0] )
Inputs
| Argument | Type | Description | Unit |
|---|---|---|---|
freq | scalar or vector | frequency | Hz |
duration | scalar | duration | millisecond |
phase | scalar | initial phase (0 to 1) | .5 for 180; 1 for 360 |
Outputs / Return Value
y:yis a pure tone.
Notes
- If
freqis 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
Review Status
- Legacy parameter naming does not exactly match current engine metadata and should be reviewed manually.