NRTDRV MAN EN SYNTAX TONEDOUBLER

From MSX MUSIC WIKI
Jump to: navigation, search

Tone Doubler definition

@TD<num> {
@<inst>
Key, OP1-MUL, OP2-MUL, OP3-MUL, OP4-MUL,
     OP1-DT2, OP2-DT2, OP3-DT2, OP4-DT2, KeyShift
        :
Key, OP1-MUL, OP2-MUL, OP3-MUL, OP4-MUL,
     OP1-DT2, OP2-DT2, OP3-DT2, OP4-DT2, KeyShift
}

Tone Doubler is a macro and technology that developed by hex125. Tone Doubler enables to play 2 different note simultaneously (with half note step units) by multiple and detune

NRTDRV compiler supports Tone Doubler and its parameters are automatically decoded (internally convert to z commands equivalent)

20 parameters (key0-19) which have default parameters based on ALG=4, MUL=4, SR=0 and DT1=0. As far as you use these tones, re-definition is not needed but if you want set your own parameters, you should define with this syntax.

<num> is definition number(0-15). When load appropriate parameter, specify this number with @TD command in MML tracks.

Next, select source tone with @<inst>. Define destination tone in previous lines before this command. Actually, it only adds values of SR and DT1 to Tone Doubler's resister value. There is no effect other than this.

Then, set parameters as like lines below in a sequence. Describe parameters of each notes per one line with line feed.


key

Key to define (distance between two notes by half tones). Range is 0-24.

For example "c0d" and "e0f+" is "2", c0g" and "e0b" is "7".

OP1-MUL - OP4-MUL

MUL value of each operaters. Range is 0-15.

OP1-DT2 - OP4-DT2

DT2 vale of each operaters. rabge is 0-3

KeyShift

Quantitity of key shift when note sounds. Range is -12-12. (When it is set other then 0, shifted by half tone when note sounds.)

Default values are defined i @TD0-15 as default.

Tone number is undefined (SR=0, DT1=0)

   ;
   ;       (Multiple)       (Detune2)
   ;(Key)  OP1 OP2 OP3 OP4  OP1 OP2 OP3 OP4 (KeyShift)
       0,    4,  4,  4,  4,   0,  0,  0,  0,    0
       1,    3,  3,  4,  4,   1,  1,  0,  0,    0
       2,    4,  4,  5,  5,   1,  1,  0,  0,   -4
       3,    3,  3,  4,  4,   2,  2,  0,  0,    0
       4,    5,  5,  4,  4,   0,  0,  0,  0,    0
       5,    4,  4,  3,  3,   0,  0,  0,  0,    5
       6,    4,  4,  4,  4,   1,  1,  0,  0,    0
       7,    6,  6,  4,  4,   0,  0,  0,  0,    0
       8,    4,  4,  4,  4,   2,  2,  0,  0,    0
       9,    6,  6,  5,  5,   1,  1,  0,  0,   -4
      10,    5,  5,  4,  4,   1,  1,  0,  0,    0
      11,    6,  6,  5,  5,   2,  2,  0,  0,   -4
      12,    8,  8,  4,  4,   0,  0,  0,  0,    0
      13,    6,  6,  4,  4,   1,  1,  0,  0,    0
      14,    8,  8,  5,  5,   1,  1,  0,  0,   -4
      15,    6,  6,  4,  4,   2,  2,  0,  0,    0
      16,   10, 10,  4,  4,   0,  0,  0,  0,    0
      17,    8,  8,  3,  3,   0,  0,  0,  0,    5
      18,    8,  8,  4,  4,   1,  1,  0,  0,    0
      19,   12, 12,  4,  4,   0,  0,  0,  0,    0