ramp
Smooth out beginning and ending portions of the audio signal; Apply the cosine square envelope
Syntax
y = ramp ( x,dur_ramp )
y = x.ramp ( dur_ramp )
Inputs
| Argument | Type | Description | Unit |
|---|---|---|---|
x | audio | audio signal | millisecond |
dur_ramp | scalar | ramping duration (i.e., duration to smooth out) | - |
Outputs / Return Value
y:yis an audio signal with fade-in and fade-out.
Notes
- Ramping is applied only to the portions specified by
dur_ramp. Windowing functions, such as hann hamming or blackmand, apply the window for the whole duration.
Examples
tone(440,100).ramp(40)
See Also
Review Status
- Legacy parameter naming does not exactly match current engine metadata and should be reviewed manually.