Skip to content

Commit ba335d1

Browse files
committed
version 1.27
1 parent 1a73c14 commit ba335d1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+472
-1227
lines changed

bin/nsc.exe

0 Bytes
Binary file not shown.

bin/nsd.bin

15 Bytes
Binary file not shown.

bin/nsd_all.bin

0 Bytes
Binary file not shown.

bin/nsd_all2.bin

0 Bytes
Binary file not shown.

bin/nsd_fds.bin

15 Bytes
Binary file not shown.

bin/nsd_hfe4.bin

0 Bytes
Binary file not shown.

bin/nsd_hfx4.bin

0 Bytes
Binary file not shown.

bin/nsd_mmc5.bin

15 Bytes
Binary file not shown.

bin/nsd_n163.bin

15 Bytes
Binary file not shown.

bin/nsd_oall.bin

0 Bytes
Binary file not shown.

bin/nsd_opll.bin

15 Bytes
Binary file not shown.

bin/nsd_s5b.bin

15 Bytes
Binary file not shown.

bin/nsd_se.bin

52 Bytes
Binary file not shown.

bin/nsd_vrc6.bin

15 Bytes
Binary file not shown.

bin/nsd_vrc7.bin

15 Bytes
Binary file not shown.

doc/licence.txt

Lines changed: 8 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,6 @@
1-
========================================================================
2-
NES Sound Driver & Library (NSD.Lib)
3-
4-
Copyright (c) 2012 S.W., All rights reserved.
5-
URL : http://shaw.la.coocan.jp/
6-
========================================================================
7-
8-
�{�\�t�g�E�F�A�́A�Q�����a�r�c���C�Z���X�i�C���a�r�c���C�Z���X�j�ƂȂ�܂��B
9-
�ȉ��̃��C�Z���X�𕶂͉p�ꂪ���������ƂȂ�܂��B���{��̏𕶂͎Q�l�����Ƃ��Ă��ǂ݉������B
101

2+
NES Sound Driver & Library (NSD.Lib)
113

12-
13-
========================================================================
14-
���C�Z���X��
15-
------------------------------------------------------------------------
16-
17-
�s�p���i���������j�t
18-
----------------------------------------
194
Copyright (c) 2012 S.W.
205
All rights reserved.
216

@@ -43,8 +28,14 @@
4328
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
4429

4530

46-
�s�a���i�Q�l�����j�t
31+
32+
33+
34+
�s�a���i���Q�l�����ł��B�����ł͏�p���ƂȂ�܂��j�t
4735
----------------------------------------
36+
37+
�@�@�@�@NES Sound Driver & Library (NSD.Lib)
38+
4839
�@�@Copyright (c) 2012 S.W.
4940
�@�@All rights reserved.
5041

@@ -116,6 +107,3 @@
116107
�E���X
117108

118109

119-
120-
121-

doc/nsdl.chm

682 Bytes
Binary file not shown.

doc/readme.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ This is developed as object library, and user application can control it.
2525
���A����
2626
�EE-mail sha_w@nifty.com
2727
�EURL http://shaw.la.coocan.jp/
28-
Emixi http://mixi.jp/show_profile.pl?id=16558
28+
Etwitter https://twitter.com/sha_w_
2929
========================================================================
3030

3131
����̃t�@�C���́yNSDL127.ZIP�z�ł��B

include/nsddef.inc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -477,9 +477,10 @@ PSG_Envelope_Form = $0D
477477
.endscope
478478
479479
.scope nsd_mode
480-
voiceR = $F0
481-
voice = $08
482-
gatemode = $03
480+
voiceR = $F0 ;1111 0000 Release Volume
481+
voice = $08 ;0000 1000
482+
RetSE = $04 ;0000 0100 Key On (Ch.3)
483+
gatemode = $03 ;0000 0011 Gate mode
483484
.endscope
484485
485486

lib/NSD.lib

353 Bytes
Binary file not shown.

lib/NSD_ALL.lib

238 Bytes
Binary file not shown.

lib/NSD_ALL2.lib

235 Bytes
Binary file not shown.

lib/NSD_FDS.lib

339 Bytes
Binary file not shown.

lib/NSD_HFE4.lib

239 Bytes
Binary file not shown.

lib/NSD_HFX4.lib

142 Bytes
Binary file not shown.

lib/NSD_MMC5.lib

333 Bytes
Binary file not shown.

lib/NSD_N163.lib

284 Bytes
Binary file not shown.

lib/NSD_OALL.lib

209 Bytes
Binary file not shown.

lib/NSD_OPLL.lib

274 Bytes
Binary file not shown.

lib/NSD_SE.lib

758 Bytes
Binary file not shown.

lib/NSD_VRC6.lib

326 Bytes
Binary file not shown.

lib/NSD_VRC7.lib

300 Bytes
Binary file not shown.

lib/NSD_s5b.lib

322 Bytes
Binary file not shown.

sample/sw/Rest_Mode.mml

Lines changed: 169 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,169 @@
1+
2+
#title "Rest mode test sample"
3+
4+
#Code "../../bin/nsd.bin"
5+
6+
#bgm 6
7+
8+
#timebase 48
9+
10+
#QMax 100
11+
12+
#QReverse
13+
14+
E(16){15 D2 14 D1 13 D1 12 D1 11 D1 10 D1 9 D1 8 D1 7 D1 L 6 D5 5 D5 R 5 4 3 2 1 5 6 D2 5 D2 4 D2 3 D2 2 D2 L 1}
15+
E(17){15 15 14 14 13 D2 12 D2 11 D1 10 D1 9 D1 8 D1 L 7 R 4 3 2 1 L 5 6 5 5 4 4 3 2 1 4 4 3 3 2 2 1}
16+
E(18){15 12 9 7 5 4 3 2 1 8 6 5 4 3 2 2 1 1 5 4 3 3 2 2 1 1 1 L 3 2 2 2 1 1 1 1}
17+
18+
19+
20+
21+
22+
/*
23+
------------+--------------------------------------------------------------
24+
Command | ���URL
25+
------------+--------------------------------------------------------------
26+
Rm, R@, Rv | http://shaw.la.coocan.jp/nsdl/doc/mml_release.html �Q�[�g�^�C���̏���
27+
r, w | http://shaw.la.coocan.jp/nsdl/doc/mml_rest.html �x���i�{���̏����͗Վ��L���Łj
28+
K{} | http://shaw.la.coocan.jp/nsdl/doc/mml_KeySignature.html �����ŗՎ��L����t����R�}���h
29+
------------+--------------------------------------------------------------
30+
*/
31+
32+
33+
34+
//----------+--------------------------------------------------------------
35+
// Command | ���URL
36+
//----------+--------------------------------------------------------------
37+
// http://shaw.la.coocan.jp/nsdl/doc/mml.html
38+
#rest 0 // r �R�}���h�i�x��r�j�̃f�t�H���g�̏������@�i���ʁ��O�j
39+
//----------+--------------------------------------------------------------
40+
bgm(0)
41+
{
42+
t120 l4 o4 Ev17
43+
@0
44+
45+
Rm0 //�Q�[�g�^�C���̏��� �F���ʁ��O
46+
47+
q75 cdef | edcr | efga | gfer
48+
crcr | crcr | l8 ccddeeff | erdr c2
49+
}
50+
51+
52+
53+
//----------+--------------------------------------------------------------
54+
// Command | ���URL
55+
//----------+--------------------------------------------------------------
56+
// http://shaw.la.coocan.jp/nsdl/doc/mml.html
57+
#rest 1 // r �R�}���h�i�x��r�j�̃f�t�H���g�̏������@�iRv, R@�R�}���h�l�j
58+
//----------+--------------------------------------------------------------
59+
bgm(1)
60+
{
61+
t120 l4 o4 Ev17
62+
@0
63+
64+
Rm1 Rv3 R@2 //�Q�[�g�^�C���̏��� �F���ʁ��R�A���F���Q�i�����[�X�G���x���[�v�����j
65+
66+
q75 cdef | edcr | efga | gfer
67+
crcr | crcr | l8 ccddeeff | erdr c2
68+
}
69+
70+
71+
72+
//----------+--------------------------------------------------------------
73+
// Command | ���URL
74+
//----------+--------------------------------------------------------------
75+
// http://shaw.la.coocan.jp/nsdl/doc/mml.html
76+
#rest 2 // r �R�}���h�i�x��r�j�̃f�t�H���g�̏������@�i�����[�X�G���x���[�v��K�p�j�i�f�t�H���g�j
77+
//----------+--------------------------------------------------------------
78+
bgm(2)
79+
{
80+
t120 l4 o4 Ev17
81+
@0
82+
83+
Rm2 //�Q�[�g�^�C���̏��� �F�����[�X�G���x���[�v��K�p�i�f�t�H���g�j
84+
85+
q75 cdef | edcr | efga | gfer
86+
crcr | crcr | l8 ccddeeff | erdr c2
87+
}
88+
89+
90+
91+
//----------+--------------------------------------------------------------
92+
// Command | ���URL
93+
//----------+--------------------------------------------------------------
94+
// http://shaw.la.coocan.jp/nsdl/doc/mml.html
95+
#rest 3 // r �R�}���h�i�x��r�j�̃f�t�H���g�̏������@�iRm�R�}���h�̃��[�h�ɏ]���j
96+
//----------+--------------------------------------------------------------
97+
/*
98+
���̋x���̃��[�h�R�́A�x�����̋������A
99+
Rm�R�}���h�ihttp://shaw.la.coocan.jp/nsdl/doc/mml_release.html�j
100+
�̐ݒ�l�ɏ]�����[�h�ł��B
101+
102+
��ǂ��Œlj������������[�h�ł����ARm�R�}���h�ŁA
103+
�w�Q�[�g�^�C���x�y�сw�x���x�̗����̋�����ݒ�ł���̂ŁA
104+
���̃��[�h���֗����Ǝv���܂��B
105+
*/
106+
bgm(3)
107+
{
108+
t120 l4 o4 Ev17
109+
@0
110+
111+
Rm1 Rv3 R@2 //�Q�[�g�^�C���̏��� �F���ʁ��R�A���F���Q�i�����[�X�G���x���[�v�����j
112+
113+
q75 cdef | edcr | efga | gfer
114+
115+
Rm2 //�Q�[�g�^�C���̏��� �F�����[�X�G���x���[�v��K�p
116+
117+
crcr | crcr | l8 ccddeeff | erdr c2
118+
}
119+
120+
121+
122+
//----------+--------------------------------------------------------------
123+
// Command | ���URL
124+
//----------+--------------------------------------------------------------
125+
// http://shaw.la.coocan.jp/nsdl/doc/mml.html
126+
#rest 0 // r �R�}���h�i�x��r�j�̃f�t�H���g�̏������@�i���ʁ��O�j
127+
//----------+--------------------------------------------------------------
128+
/*
129+
�w�Q�[�g�^�C���x�̋����ƁA�w�x���x�̋�����ʁX�̃��[�h�ɐݒ肷����ʂł��B
130+
�w�Q�[�g�^�C���x���̓����[�X�G���x���[�v�ɏ]���A
131+
�w�x���x���́A���ʂ��O�ɂ��܂��B
132+
*/
133+
bgm(4)
134+
{
135+
t120 l4 o4 Ev17
136+
@0
137+
138+
Rm2 //�Q�[�g�^�C���̏��� �F�����[�X�G���x���[�v��K�p
139+
140+
q75 cdef | edcr | efga | gfer
141+
crcr | crcr | l8 ccddeeff | erdr c2
142+
}
143+
144+
145+
146+
//----------+--------------------------------------------------------------
147+
// Command | ���URL
148+
//----------+--------------------------------------------------------------
149+
// http://shaw.la.coocan.jp/nsdl/doc/mml.html
150+
#rest 1 // r �R�}���h�i�x��r�j�̃f�t�H���g�̏������@�iRv, R@�R�}���h�l�j
151+
#wait 0 // w �R�}���h�i�x��w�j�̃f�t�H���g�̏������@�i���ʁ��O�j
152+
//----------+--------------------------------------------------------------
153+
/*
154+
Rm�R�}���h��A�x���̃��[�h�́A�ȉ��̂悤�ɁA�����[�X�p�^�[������`����Ă��Ȃ�
155+
���ʃG���x���[�v��p����ꍇ�ɂ����Ă��A�^���I�Ɏc�������邽�߂̋@�\�Ƃ���
156+
�������܂����B
157+
�Q�[�����̑g�ݍ��ݎ��ɂ����āA�ȃf�[�^�̃T�C�Y�ߖ��}�邱�Ƃ��”\�ł��B
158+
*/
159+
bgm(5)
160+
{
161+
t120 l4 o4 Ev18 //�����[�X�p�^�[������`����Ă��Ȃ����ʃG���x���[�v
162+
@0
163+
164+
Rm1 Rv2 R@0 //�Q�[�g�^�C���̏��� �F���ʁ��Q�A���F���O�i�����[�X�G���x���[�v�����j
165+
166+
q75 cdef | edcr | efga | gfer
167+
cwcw | cwcw | l8 ccddeeff | ewdw c2
168+
}
169+

sample/sw/Rest_Mode.nsf

4.49 KB
Binary file not shown.

src/help/licence.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,9 @@ <h4>English</h4>
146146
<div class='block'>
147147
<h3>連絡先(Contact)</h3>
148148
<p>
149-
e-mail:<a href='mailto:sha_w@nifty.com'>sha_w@nifty.com</a> (※@に続き、"spa."の4文字を追加したアドレスはスパムフィルターを入れて無いため、届きやすいです。)<br>
150-
URL :<a href='http://shaw.la.coocan.jp'>S.W. Homepage</a><br>
151-
mixi <a href='http://mixi.jp/show_profile.pl?id=16558'>id=16558</a><br>
149+
e-mail <a href='mailto:sha_w@nifty.com'>sha_w@nifty.com</a> (※@に続き、"spa."の4文字を追加したアドレスはスパムフィルターを入れて無いため、届きやすいです。)<br>
150+
URL <a href='http://shaw.la.coocan.jp'>S.W. Homepage</a><br>
151+
twitter<a href='https://twitter.com/sha_w_'>S.W.</a><br>
152152
</p>
153153
</div>
154154

src/help/mml_patch.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ <h4>define</h4>
8080
</dl>
8181
<var>octave</var>:オクターブ
8282
</td></tr>
83+
<tr><td>$<var>name</var> </td><td>マクロ<var>name</var>を呼び出します。 </td></tr>
84+
<tr><td>$$<var>name</var> </td><td>ローカルマクロ<var>name</var>を定義します。 </td></tr>
8385
</table>
8486

8587
<p>

src/help/nsc_option.html

Lines changed: 40 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,16 @@
4040
<dt>-a</dt><dd>Compile to assembly langage. (*.s) </dd>
4141
<dt>-n</dt><dd>Compile to NSF music format. (*.nsf) </dd>
4242
<dt>-e</dt><dd>Error/Warning messages out the Stadard error (stderr).</dd>
43-
<dt>-t</dt><dd>Disable tick counting.</dd>
43+
<dt>-od<var>switch</var></dt><dd>Optimize of Delta-PCM.</dd>
44+
<dt>-oo<var>switch</var></dt><dd>Optimize of object.</dd>
45+
<!-- <dt>-os<var>switch</var></dt><dd>Optimize of sequence.</dd> -->
4446
<dt>-s</dt><dd>Enable outout the search pass result.</dd>
4547
<dt>-l<var>filename</var></dt><dd>Set the filename of the rom code for NSF.</dd>
4648
<dt>-fa<var>filename</var></dt><dd>Set the filename of the output assembly langage file.</dd>
4749
<dt>-fn<var>filename</var></dt><dd>Set the filename of the output NSF music format.</dd>
4850
<dt>-c<var>dir</var></dt><dd>Set the search pass of the rom code for NSF. (*.bin)</dd>
4951
<dt>-p<var>dir</var></dt><dd>Set the search pass of the delta-pcm file. (*.dmc)</dd>
5052
<dt>-i<var>dir</var></dt><dd>Set the search pass of the include file.</dd>
51-
<dt>-o</dt><dd>Optimize.</dd>
5253
<dt>-h</dt><dd>Print the this help.</dd>
5354
</dl>
5455
</div>
@@ -82,12 +83,46 @@ <h4>-e</h4>
8283
デフォルトでは標準出力に返しますが、ファイルに関するエラーのみは、標準エラー出力固定となります。<br>
8384
</p>
8485

85-
<h4>-t</h4>
86+
<h4>-od<var>switch</var></h4>
8687
<p>
87-
Tick数のカウントを無効化します。<br>
88-
指定しない場合は、Lコマンドまでのtick数及び、トータルのTick数をカウントします。<br>
88+
バンク構成の最適化のスイッチです。<br>
89+
<var>switch</var>にて<var>+</var>を指定した場合、バンク構成を最適化します。<br>
90+
<var>switch</var>にて<var>-</var>を指定した場合、バンク構成を最適化しません(デフォルト)。<br>
91+
</p>
92+
<p>
93+
NSFファイルにビルドする際に、バンク構成を最適化しファイルサイズを小さくします。<br>
94+
⊿PCMを用いるMMLをコンパイルする場合に、効果が得られる場合があります。<br>
95+
但し、バンクが不連続に配置されたnsfに非対応の実機再生環境では、⊿PCMの再生が正常に行われない場合があります。<br>
96+
(現状、TNS-HFC3にて確認しています)。<br>
97+
</p>
98+
<p>
99+
このオプションスイッチでは、未使用のメモリ空間のバンクは作らず、必要なバンクだけを作成します。<br>
100+
これは、⊿PCMを使用する際に発生します。<br>
101+
たとえば、シーケンスデータが$9FFF番地で終わり⊿PCMが$C000番地から配置される場合$A000~$BFFFのメモリ領域は不要となります。<br>
102+
その領域をnsfファイル化せず、$8000~$9FFF, $C000~を領域のみをnsfファイル化して、ファイルサイズを小さくするためのオプションです。<br>
103+
Version 0.10β~0.17βでのデフォルトの動作です。<br>
104+
</p>
105+
<p>
106+
また、⊿PCMでバンクに対応した.binを使用時において、このオプションスイッチを指定しない場合は、
107+
NSFのバンク数が最低8バンク(NSFヘッダーを除き32kByte)になるように調整します。<br>
108+
このオプションスイッチを指定する場合は、8バンク(NSFヘッダーを除き32kByte)以下のNSFも作成可能ですが、
109+
バンクが不連続に配置されたnsfに非対応の実機再生環境では、正常に再生できない可能性があります。<br>
89110
</p>
90111

112+
<h4>-oo<var>switch</var></h4>
113+
<p>
114+
未使用のサブルーチン、エンベロープ等を削除するスイッチです。<br>
115+
<var>switch</var>にて<var>+</var>を指定した場合、未使用のサブルーチン、エンベロープをコンパイルしません(デフォルト)。<br>
116+
<var>switch</var>にて<var>-</var>を指定した場合、未使用であっても削除しないでコンパイルします。<br>
117+
</p>
118+
119+
<!--
120+
<h4>-os<var>switch</var></h4>
121+
<p>
122+
シーケンスを最適化するかのスイッチです。<strong></strong><br>
123+
</p>
124+
-->
125+
91126
<h4>-s</h4>
92127
<p>
93128
検索パスの検索結果を出力します。<br>
@@ -155,27 +190,6 @@ <h4>-i<var>dir</var></h4>
155190
<li>このオプションで指定されたディレクトリ</li>
156191
</ol>
157192

158-
<h4>-o</h4>
159-
<p>
160-
NSFファイルにビルドする際に、バンク構成を最適化しファイルサイズを小さくします。<br>
161-
⊿PCMを用いるMMLをコンパイルする場合に、効果が得られる場合があります。<br>
162-
但し、バンクが不連続に配置されたnsfに非対応の実機再生環境では、⊿PCMの再生が正常に行われない場合があります。<br>
163-
(現状、TNS-HFC3にて確認しています)。<br>
164-
</p>
165-
<p>
166-
このオプションスイッチでは、未使用のメモリ空間のバンクは作らず、必要なバンクだけを作成します。<br>
167-
これは、⊿PCMを使用する際に発生します。<br>
168-
たとえば、シーケンスデータが$9FFF番地で終わり⊿PCMが$C000番地から配置される場合$A000~$BFFFのメモリ領域は不要となります。<br>
169-
その領域をnsfファイル化せず、$8000~$9FFF, $C000~を領域のみをnsfファイル化して、ファイルサイズを小さくするためのオプションです。<br>
170-
Version 0.10β~0.17βでのデフォルトの動作です。<br>
171-
</p>
172-
<p>
173-
また、⊿PCMでバンクに対応した.binを使用時において、このオプションスイッチを指定しない場合は、
174-
NSFのバンク数が最低8バンク(NSFヘッダーを除き32kByte)になるように調整します。<br>
175-
このオプションスイッチを指定する場合は、8バンク(NSFヘッダーを除き32kByte)以下のNSFも作成可能ですが、
176-
バンクが不連続に配置されたnsfに非対応の実機再生環境では、正常に再生できない可能性があります。<br>
177-
</p>
178-
179193
<h4>-h</h4>
180194
<p>
181195
簡易ヘルプを表示します。<br>

src/help/nsdl.chm

682 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)