• Welcome to Touhou Wiki!
  • Registering is temporarily disabled. Check in our Discord server to request an account and for assistance of any kind.

User:Mami/Music Dev/Mdrv2/Md2cmd

From Touhou Wiki
Jump to navigation Jump to search

Mdrv2 System MMLマニュアル Ver.1.0
for X1/turbo,MZ-2500,PC-88/98,X68000
94/01/17 v.3.4F by Regulus

Mdrv2 System MML Manual Ver.1.0
for X1/turbo,MZ-2500,PC-88/98,X68000
94/01/17 v.3.4F by Regulus

トライデントシステムマニュアル Ver.1.2

for X1/turbo,MZ-2500,PC-88/98,X68000
90/06/10 by Regulus
92/01/17 by Regulus

for PC-9801 series & PC-88VA series
93/04/11 by Regulus

Trident Systems Manual Ver.1.2

for X1/turbo,MZ-2500,PC-88/98,X68000
90/06/10 by Regulus
92/01/17 by Regulus

for PC-9801 series & PC-88VA series
93/04/11 by Regulus

1 システムの内容 1 System Contents
1.1 システムの動作環境

本システムは、PC-9801シリーズのMS-DOS上またはPC-88VAシリーズで動作します。

98で対応するFM音源はPC-9801-26K相当品 *1(内蔵含む)か、スピークボード *2、音美ちゃん *3、PC-9801-86相当品 *4(9821内蔵含む)で演奏可能です。

8VAでは、内蔵サウンドボード *5または、サウンドボード2 *6(内蔵含む)で演奏可能です。

サウンドボード2/スピークボード使用時には FM*6+SSG*3+RHYTHM*6+PCM、音美ちゃん使用時には、FM*12+SSG*3+RHYTHM*6+PCM、98DO+または、PC-9801-86ではFM*6+SSG*3+RHYTHM*6、その他の音源では FM*3+SSG*3 で演奏可能です。

  • 1 以後、OPNと呼びます。
  • 2 以後、OPNAと呼びます。
  • 3 以後、OPNA+OPN2と呼びます。
  • 4 以後、OPNA-PCMと呼びます。
  • 5 以後、OPNと呼びます。
  • 6 以後、OPNAと呼びます。
1.1 System Requirements

This system, PC-9801 series with MS-DOS, works with the PC-88VA series.

98 FM sound corresponding equivalent PC-9801-26K *1 (including internal), or speak boards *2, chan beautiful sound *3, PC-9801-86 or equivalent *4 (including built-in 9821) can be played on is.

In 8VA, built-in sound board *5 or sound board 2 *6 (including internal) can be played.

When using a sound board 2 / Speak board FM 6x + SSG 3x + RHYTHM 6x + PCM, when using the chan beautiful sound, FM 12x + SSG 3x + RHYTHM 6x + PCM, or 98DO +, PC-9801-86 FM 6x + SSG 3x + RHYTHM 6x in, with the other instruments can be played on FM 3x + SSG 3x.

*1 known as the OPN.
*2 known as the OPNA.
*3, the OPNA + OPN2.
*4, the OPNA and PCM.
*5 known as the OPN.
*6, the OPNA.

1.2 システムの構成、特長

本システムは、曲の作成にMMLを採用しています。ユーザーはMMLをエディタで記述し、それをコンパイルしたものをドライバーで演奏させます。

ミュージックコンパイラを"mcomp"と呼び、ミュージックドライバーを"mdrv2"と呼びます。この環境をトライデントシステムと呼んでいます。

また、MDRV2はバックグラウンド演奏が可能で、DOS環境下で他のアプリケーション実行下でも演奏可能です。サウンドBIOSは使用しないのEMSとの共存も可能です。

トライデントシステムが動作する全ての機種においてソースレベルではフルコンパチ維持し、オブジェクトレベルでもほぼ同程度まで再現可能です。(オブジェクトレベルでは一部、各音源の特性により完全には再現できません)

MDRV2ではエフェクトモードを内蔵し、エフェクト音を演奏中に割り込みでならすことが可能です。(ゲームなどの他のアプリケーションから制御可能)

姉妹ドライバーのSPCMDを常駐させることによりSSGをPCMチャンネルとして使用できます。(例 OPNで、FM3+PCM3の演奏が可能)

1.2 System Configuration, Features

This system employs the MML to create a song. Guest editor is written in MML, lets play it in the compiled driver.

A music compiler "mcomp" called, the music driver "mdrv2" and called. We call this environment the Trident system.

Also, MDRV2 can play in the background, you can play at the other applications run under DOS. Sound can also coexist with the BIOS not using EMS.

At the source level in all models to operate Trident system maintains full compatibility, almost the same extent as it can be duplicated at the object level. (Some at the object level, fully able to reproduce the characteristics of each sound source)

Built-In Effect Mode MDRV2, an interrupt can be played while playing a sound effect. (Can be controlled from other applications such as games).

PCM channels can be used as the SSG by allowing the driver SPCMD sisters reside. (In cases of OPN, can play FM3 + PCM3)

1.3 現在トライデントシステムが動作している環境

PC-9801(OPN)
:Magical-DOS98 (MDRV2(20a))

PC-9801(OPN/OPNA/OPNA-PCM/OPNA+OPN2)
:MS-DOS (MDRV2(34E)/MCOMP(34A)/PLOAD)

PC-88VA(OPN/OPNA/OPNA+OPN2)
:PC-ENIGNE(MSE) (MDRV2(34E)/MCOMP(34A)/PLOAD)

PC-8801(OPN/OPNA)
:Magical-DOS88 (MDRV2(34c)/MCOMP(33c)/PLOAD)

PC-8801(OPN/OPNA)
:C-DOS (MDRV2(34c)/MCOMP(33d)/PLOAD)

PC-8801(OPN/OPNA)
:DISK-BASIC (MDRV2(33e)/MCOMP(33a))

X1turbo(OPM)
:X-DOS (MDRV2(33e)/MCOMP(33c))

X1turbo(OPM)
:C-DOS (MDRV2(34c)/MCOMP(33d))

X1turbo(OPM)
:S-OS (MDRV2(20a))

MZ-2500(OPN)
:DISK-BASIC (MDRV2(20a)/MCOMP(20a))

X68000 (OPM)
:HUMAN(現在制作中)(MDRV2(34c)/MCOMP(33d)/PLOAD)

FM-TOWNS
:(非公開) (MDRV2(34E))

MSX(OPLL)
:MSX-BASIC(非公開) (MDRV2(34b))

1.3 Trident Environmental Systems is now running

PC-9801(OPN)

  • Magical-DOS98 (MDRV2(20a))

PC-9801(OPN/OPNA/OPNA-PCM/OPNA+OPN2)

  • MS-DOS (MDRV2(34E)/MCOMP(34A)/PLOAD)

PC-88VA(OPN/OPNA/OPNA+OPN2)

  • PC-ENIGNE(MSE) (MDRV2(34E)/MCOMP(34A)/PLOAD)

PC-8801(OPN/OPNA)

  • Magical-DOS88 (MDRV2(34c)/MCOMP(33c)/PLOAD)

PC-8801(OPN/OPNA)

  • C-DOS (MDRV2(34c)/MCOMP(33d)/PLOAD)

PC-8801(OPN/OPNA)

  • DISK-BASIC (MDRV2(33e)/MCOMP(33a))

X1turbo(OPM)

  • X-DOS (MDRV2(33e)/MCOMP(33c))

X1turbo(OPM)

  • C-DOS (MDRV2(34c)/MCOMP(33d))

X1turbo(OPM)

  • S-OS (MDRV2(20a))

MZ-2500(OPN)

  • DISK-BASIC (MDRV2(20a)/MCOMP(20a))

X68000 (OPM)

  • HUMAN(現在制作中)(MDRV2(34c)/MCOMP(33d)/PLOAD)

FM-TOWNS

  • (非公開) (MDRV2(34E))

MSX(OPLL)

  • MSX-BASIC(非公開) (MDRV2(34b))

2 トライデントシステムの各コマンドの説明 2 Description of the Trident system commands
2.1 ミュージックドライバーMDRV2 v3.4E以降

mcompでコンパイルされたオブジェクトを演奏する為のドライーバーです。はじめに、これを常駐させないと演奏させることができません。

FM音源のポートアドレスは自動スキャンします。FM音源を認識しない場合は各音源のマニュアルを参照し、ボードの設定を確認して下さい。

FM音源のアクセスウエイト数は自動計算します。倍速CPUを使用していて動作が不安定な場合はウエイト数を直接指定して下さい。

2.1 DRV2 v3.4E or higher Music driver

Driver for playing the object is compiled with mcomp. First, you can not not be played with this resident.

Port address auto scan FM sound. If you do not recognize the FM sound source documentation of each, please check the configuration of the board.

Views will automatically calculate the weight of FM synthesis. If unstable operation is using the CPU speed, please wait directly specify the number.

2.1.1 使用方法
A>MDRV98 [Option]	(98)
A>MDRVVA [Option]	(VA)
2.1.1 How to Use
A>MDRV98 [Option]	(98)
A>MDRVVA [Option]	(VA)
2.1.2 各オプション

-R..........常駐を解除します。

-Pn.........FM音源の使用Portをn88hに指定する。

-Mn.........演奏データのサイズの確保を指定します。
nKバイトで指定します。(デフォルトは16Kバイトです)
最大48Kバイトまで指定できます。

-Wn.........FM音源をアクセスする際のウエイト指定
"loop $"を使用してウエイトします。
速度の早い機種で動作が不安定な場合は大き目の値を設定してみてください。

-W^n........FM音源をアクセスする際のウエイト指定
"out 5fh,al"を使用してウエイトします。
速度の早い機種で動作が不安定な場合は大き目の値を設定してみてください。

-Z..........常駐ステータスを表示します。

2.1.2 Each option

-R
Remove the resident.

-Pn
Specify the use of sound n88h the Port FM.

-Mn
Specifies the size of the data to ensure performance.
specified in the nK bytes. (The default is 16K bytes ゙ test).
Can be up to 48K bytes.

-Wn
Weights given to access the FM sound
"loop $" to wait to use.
If the model is unstable for large values ​​of speed and fast Please try to set.

-W^n
Weights given to access the FM sound
"out 5fh, al" using the weights.
If the model is unstable for large values ​​of speed and fast Please try to set.

-Z
Displays the status of resident.

2.2 ミュージックコンパイラ MCOMP v.3.4A以降

ミュージックソースをmdrv2で演奏できるオブジェクトにコンパイルする、プログラムです。ミュージックソースの他にエフェクト音ソースもコンパイルできます。

ミュージックソースの拡張子は".MD2"、エフェクト音ソースの拡張子は".ME2"とし、コンパイル後はそれぞれ、".MDT"、".MDE"となります。

ミュージックソースの扱えるサイズは48Kバイトまでです。

また、作成されるオブジェクトサイズも48Kバイトまでとなります。

具体的なMMLの記述方法は"MD2MML.DOC"を参照して下さい。

注1) VAで使用する場合はMSEが必要です。

2) 3.3dでコンパイルすると、MDRV2(V.3.4C)以降のドライバーでないと演奏できません。

3) 3.4aでコンパイルすると、MDRV2(V.3.4E)以降のドライバーでないと演奏できません。

4) トラックを規定以上(13トラック)記述する場合は"#Nn"コマンドをMML上に記述する必要があります。

2.2 Since the compiler MCOMP v.3.4A Music

Compiled into an object can play the music mdrv2 source program. You can also compile the source sound effects in addition to the music source.

Extension of the music source ". MD2", extension of the source sound effect ". ME2" and after each compilation, ". MDT", ". MDE" will.

Size may be up to 48K bytes of music sources.

You will also be the object size to 48K bytes to be created.

The exact method of MML description Md2mll Please see.

1) If the VA is required to use MSE.

2) to compile 3.3d, MDRV2 (V.3.4C) can not play with later drivers.

3) If you compile with 3.4a, MDRV2 (V.3.4E) can not play with later drivers.

4) The above provisions the track (13 tracks) if you write "# Nn" should be written on the MML commands.

2.2.1 使用方法
A>mcomp [Option] [d:]filename[.MD2]
A>mcomp -E [Option] [d:]filename[.ME2]

エディタなどでソースを書いてファイルにしておきます。そのファイルをこのコマンドで演奏可能なオブジェクトへとコンパイルします。

エラーが発見された場合には、ソースの行番号が表示されます。その場合にはエディタなどで表示された行番号のところをもういちどチェックしてみてください。

エラーがなければ、ソースファイルと同じドライブに拡張子が"MDT"となったオブジェクトファイルが生成されます。

2.2.1 How to use
A>mcomp [Option] [d:]filename[.MD2]
A>mcomp -E [Option] [d:]filename[.ME2]

You have to write the source file in an editor. Compile to object file that can be played with this command.

If the error is discovered, the source line number is displayed. In that case, please try to check again at the line number displayed in an editor.

If no errors, the same drive as the source file extension "MDT" became the object file is generated.

2.2.2 各オプション

-N..........コンパイル後のファイルを出力しない。

-O..........旧MDTを作成する。

-E..........エフェクト音ソースをコンパイルする。

2.2.2 Options

-N
No output file after compilation.

-O
Create a former MDT.

-E
To compile the source sound effect.

2.3 ミュージックプレイヤー MDP v2.0d以降

MDRV2に演奏データを渡し、演奏を開始させたり、演奏を中断させるプログラムです。(mdrv2が常駐してないとMDP.EXEは動作できません。)

PCMファイルは曲に指定してある場合はそのPCMを読み込んでから演奏します。すでにPCMバッファにある場合は読みません。

PCMファイルは最初にカレントをサーチし、次に環境変数MD2PCMに定義されているパスをサーチします。

同様に、SPMファイルに対しても自動読み込みします。サーチの対象はPCMファイルと同じです。

環境変数の定義例

set MD2PCM=A:\USR\TEMP;B:\MDT\PCM

      ^^^^^^^^^^^^^^^^^^^^^^2ヶ所以上書けます

2.3 Since MDP v2.0d music player

Performance data to pass MDRV2, we can begin to play a program to interrupt the play. (MDP.EXE mdrv2 resides and can not work.)

PCM files if you have given to a song that plays after loading the PCM. If you have not read the PCM buffer already.

PCM files to search for current first, then search the path that is defined in MD2PCM environment variable.

Similarly, the SPM file for automatic loading. The search target is the same as PCM files.

Example definition of environment variables

set MD2PCM=A:\USR\TEMP;B:\MDT\PCM

      ^^^^^^^^^^^^^^^^^^^^^^Write two or more locations

2.3.1 使用方法
A>MDP [Option] [filename[.MDT]]		(98)
A>MDPVA [Option] [filename[.MDT]]	(VA)

PCMファイルの指定がない曲を演奏するときは、あらかじめPLOAD.EXEによりPCM-DATAをロードしておきます。

(mdrv2が常駐してないとPLOAD.EXEは動作できません。)

2.3.1 How to use
A>MDP [Option] [filename[.MDT]]		(98)
A>MDPVA [Option] [filename[.MDT]]	(VA)

When you play music files do not specify the PCM, PCM due to load and leave PLOAD.EXE pre-DATA.

(PLOAD.EXE mdrv2 resides and can not work.)

2.3.2 各オプション

-N........................メッセージを出力しない

-S........................演奏を終了する

-F........................フェードインをしながら演奏開始する

-E........................演奏を中断する

-P[oooxx...ooxo]..........指定トラック演奏

-R........................ Repeat On

-CFn...................... FM Volume offset [default= 8]

-CRn...................... Rythem Volume offset [default= 8]

-CPn...................... PCM Volume offset [default=42]

-O........................ PCM fileのチェックをしない

(1) -Pオプションの例

mdp -pooooxoxo

この場合、トラック1~4、6と、トラック8以降で演奏されます。

トラックは、演奏する曲の作られかたによって変わります。

(2) -Cオプション
これにより、FM/SSG/リズム/PCMの音量のバランスを調整できます。

(3) -Rオプション
無限に演奏しない曲を終了後、最初から演奏させる。

2.3.2 Options

-N Do not print messages

-S Quit playing

-F To start playing with a fade

-E Interrupting play

-P[oooxx...ooxo] Specified performance track

-R Repeat On

-CFn FM Volume offset [default= 8]

-CRn Rythem Volume offset [default= 8]

-CPn PCM Volume offset [default=42]

-O PCM fileのチェックをしない

(1) Examples of -P option
mdp -pooooxoxo

In this case, tracks 1 to 4, 6, 8 tracks will be played later.

Track is made ​​of a song depends on how you play.

(2) The -C option
This allows you to adjust the volume balance of the FM / SSG / rhythm / PCM.

(3) The -R option
After completion of the songs do not play indefinitely, to be played from the beginning.

2.4 エフェクト音プレイヤー EFP v1.0以降

エフェクトファイルをMDRV2バッファに読み込んだりエフェクト音を出したりすることができます。

このEFPでMDRV2のもう一つの隠された機能を使うことが出来ます。

GAMEなどでとくに便利だと思います。ソースも添付しますので制御の参考にして下さい。

2.4 EFP v1.0 or later the effect sound player

You can read out the effect sound effect file into a buffer MDRV2.

You can use the hidden features in Another MDRV2 this EFP.

I think especially useful for GAME. Please reference the control and attach it to its source.

2.4.1 使用方法
A>EFP [[d:]EffectFileName[.MDE]] [Option]

*.ME2 ... エフェクト音ソース

*.MDE ... エフェクト音オブジェクト

2.4.1 How to use
A>EFP [[d:]EffectFileName[.MDE]] [Option]

*.ME2 Sound Effect sources

*.MDE Effect sound objects

2.4.2 各オプション

-? Help (This message.)

-Pn ... n = effect No.

-K ... effect key mode

ファイル名を指定したときはエフェクト音ファイルの読み込みを行なう。

-Pはn番のエフェクト音をならす。

-KはキーボードのA~Zに対応するエフェクト音をリアルタイムにならす。

2.4.2 Options

-?
Help (This message.)

-Pn
n = effect No.

-K
effect key mode

When you specify a file name of the file to read the effect sound.

Beep-P is the effect of the number n.

-K is a smooth real-time sound effects corresponding to A ~ Z on your keyboard.

3 MDRV2の外部コントロール

MDRV2では他のアプリケーションからMDRV2をコントロールする事が可能です。

コントロール方法はソフト割り込みの0F2Hを使います。ahに機能番号をいれ、INT 0F2hでMDRV2のファンクションを呼び出します。

ファンクションコールの説明は別ドキュメントの"MDRV2FN.DOC"を参照して下さい。

また、MDRV2の公開ワークエリアの説明は別ドキュメントの"MDRV2WK.DOC"を参照して下さい。

3 External control of MDRV2

It is possible to control from other applications in MDRV2.

Control method uses a software interrupt 0F2H. if the function number in the ah, call the function in MDRV2 INT 0F2h.

Another explanation of the function calls the document Mdrv2fn Please see.

Also, the description of the work area is the document published by MDRV2 Mdwork Please see.

3.1 MDRV2シンク

シンクworkを見ることで現在演奏中か、1周したかがわかります。

FFH......演奏終了

FEH......一周終わり(\コマンド使用時のみ)

00H......演奏中

その他...Zコマンドで指定した部分を演奏終了(これを使うとデモ用にも使えます。曲の進行に合わせて何かをする時)

2周以上をみるにはFEHになったとき00Hをワークに書く必要があります。

3.1 Sink MDRV2

I can see the currently playing in the sink work, tells you that one lap.

FFH Play ends

FEH Around the end (only when using \ command).

00H During the performance

... Other areas specified in the performance ending Z command (can also be used for demonstration and use it. When you do something to fit the song progresses)

To see more than two laps must be written to work when the 00H FEH.

4 転載に関して

MDRV2 Systemはフリーソフトウエア(著作権は放棄してません)です。使用に際しての一切の金品の受託は求めません(注)。利益をあげることが目的でない限り,本ソフトを再配布・転載することは自由です。

また、その場合は中身のファイルを改変・削除しないようにして下さい。システムの変更、バージョンアップの場合はフォローして下さい。

(注)同ソ、フリーソフトウエア等への組み込みは許可します。その場合はなるべく連絡して下さい。商用目的で使用する場合も連絡お願いします。

4 About rights

MDRV2 System is a free software (copyright Temasen abandoned) is. Trustee of any money in the use does not ask (note). Unless the goal is to make money, you can reprint and redistribute this software is free.

Also, if that, please do not delete the file contents change. Changes to the system, version, please follow up.

Note: Product same as free software incorporated into the permit. If so please contact as possible. Also please call if you use it for commercial purposes.

連絡先

XDS Network  06-843-3716 (300-14400/MNP5/LAPM/V.42bis) #1 Regulus

Contacts

XDS Network  06-843-3716 (300-14400/MNP5/LAPM/V.42bis) #1 Regulus