All examples for TRCMATH
#	Muting
#
#	Mute times can be controlled by trace header parameters.
#	below, we implement a trapezoidal mute:
@		trace amplitudes are preserved at time t_on1,
#		ramp off to zero at t_off1,
#		stay zeroed out to t_off2,
#		and ramp up to the original amplitudes at t_on2

*call	hdrmath
set	t_on1	float			# set values for the parameters, if desired
.1	abs		offset		# ... and so on, set t_off1, t_off2, etc.
					# or use constants or job parameters

*call	trcmath
mute				t_on1	t_off1	t_off2	t_on2