NRTDRV MAN EN SYNTAX PSGENVELOPE

From MSX MUSIC WIKI
Jump to: navigation, search

PSG envelope definition

@E<inst>:SW,NF,AR,DR,SR,RR,SL,RL

Syntax is like above. Tone number is valid for the entire song, wherever it is defined.

<inst> is tone number or tone name. If you use tone name, enclose it by double quotations. Tine name is not case sensitive.

Note, both of tone name and tone number are common.

Each parameter means as follows.

SW:Switch tone/noise (0=unselected, 1=tone, 2=noise and 3=both)

NF:Noise frequency(0-31)

AR:Attack rate (0-31). 31 is the fastest.

DR:Decay rate (0-31). 31 is the fastest.

SR:Sustain rate (0-31). 31 is the fastest.

RR:Release rate (0-31). 31 is the fastest.

SL:Sustain level (0-15). 15 is minimum.

RL:Release level (0-15). 15 is minimum.

[sample]
@E123:2,6,31,4,1,31,2,15
;Set tone as number @E123 with
;disabled tone/enabled noise, noise frequency=6
;AR=31, DR=4, SR=1, SL=2, RR=31, RL=15

Defined envelope can be loaded by PSG tone editor (exclude RR/RL).

This function is realized by converting parameters into PSG tone defined track and R command like data inside of compiler. Because of that, envelope speed is changed due to tempo.