NRTDRV MAN EN SYNTAX OPMTABLE

From MSX MUSIC WIKI
Jump to: navigation, search

OPM table(software envelope definition)

Hardware envelope is basically used in FM sound chips. If you use composite envelopes which cannot express only with hardware envelope, tables of volumes, pan pot or detunes can be defined according to schemes below.

This functions is realized artificially by generating short notes and some commands in compiler. Much more you use this function, bigger music data will be.

Software LFO or glides cannot be processed normally. Every time volume is changed, process is reset. Express it with detune in tables.

Values equivalent to v command

@v<num>={ prm, prm, …, prm }

(Range of this value is defined with #VOLMAX, #VOLMIN and #V_STEP.

Values equivalent to V command

@V<num>={ prm, prm, …, prm } (Range of volume is 0-127)

Values in @v<num>or @V<num> are table number, range is 0 - 99.

Numbers in @v and @V commands are common. Load table with this value in OPM tracks.

<prm> are real parameters, such as volumes. If values are omitted and only commas existed, recognized as same volume as 1 count before.

Contents of <prm> is as follows.

<num>

Volume settings. It is processed per 1 counts by default.

#<num>

Count settings. Volume is processed per counts of this value after this definition appears.

D<num>

Detune settings. Values are equivalent to D command. It is not relative value.

P<num>

Pan pot settings. Value are equivalent to P command. 0 cannot be used.

L

Loop settings. Process returns to this point after table is processed till the end.

Detune and pan pot is processed with 0 count, so use volume settings together. These values are not revert to previous values after table is processed.

[example]
@v0 = 8,10,#2,11,12,13,,,#3,11,10
A @v0 c1
;Same as "A ( v8c#1 v10c#1 v11c#2 v12c#2 v13c#6 v11c#3 v10c#3 ) c1-#18"