SMP_ADSR.i

Summary
SMP_ADSR.i
Macros
ADSR_set_attack_msSet ADSR attack value in milliseconds.
ADSR_set_decay_msSet ADSR decay value in milliseconds.
ADSR_set_sustain_ratioSet ADSR sustain ratio.
ADSR_set_release_msSet ADSR release value in milliseconds.
ADSR_setSet ADSR.
ADSR_onTurn on ADSR mode.

Macros

ADSR_set_attack_ms

Set ADSR attack value in milliseconds.

Parameters

:in:    voice_no   Value (uint8)       constant
:in:    time_ms    Value (uint16)      constant

ADSR_set_decay_ms

Set ADSR decay value in milliseconds.

Parameters

:in:    voice_no   Value (uint8)       constant
:in:    time_ms    Value (uint16)      constant

ADSR_set_sustain_ratio

Set ADSR sustain ratio.

Parameters

:in:    voice_no   Value (uint8)       constant
:in:    eighths    Value (uint8)       constant

ADSR_set_release_ms

Set ADSR release value in milliseconds.

Parameters

:in:    voice_no   Value (uint8)       constant
:in:    time_ms    Value (uint16)      constant

ADSR_set

Set ADSR.

Parameters

:in:    voice_no       Value (uint8)       constant
:in:    attack_ms      Value (uint16)      constant
:in:    decay_ms       Value (uint16)      constant
:in:    sustain_ratio  Value (uint8)       constant
:in:    attack_ms      Value (uint16)      constant

ADSR_on

Turn on ADSR mode.

Parameters

:in:    voice_no       Value (uint8)       constant