Create a new ADSR envelope object.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(ADSR_envelope), | intent(inout) | :: | self | |||
real(kind=wp), | intent(in) | :: | A | |||
real(kind=wp), | intent(in) | :: | D | |||
real(kind=wp), | intent(in) | :: | S | |||
real(kind=wp), | intent(in) | :: | R |
subroutine ADSR_new(self, A, D, S, R) class(ADSR_envelope), intent(inout) :: self real(wp), intent(in) :: A, D, S, R self%attack = A self%decay = D self%sustain = S self%release = R end subroutine ADSR_new