Skip to content

Commit

Permalink
version 1.13
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaw02 committed Jan 19, 2014
1 parent 3284a29 commit 9dbf517
Show file tree
Hide file tree
Showing 79 changed files with 419 additions and 185 deletions.
Binary file modified bin/nsc.exe
Binary file not shown.
Binary file modified bin/nsd.bin
Binary file not shown.
Binary file modified bin/nsd_all.bin
Binary file not shown.
Binary file modified bin/nsd_all2.bin
Binary file not shown.
Binary file modified bin/nsd_fds.bin
Binary file not shown.
Binary file modified bin/nsd_hfe4.bin
Binary file not shown.
Binary file modified bin/nsd_hfx4.bin
Binary file not shown.
Binary file modified bin/nsd_mmc5.bin
Binary file not shown.
Binary file modified bin/nsd_n163.bin
Binary file not shown.
Binary file modified bin/nsd_oall.bin
Binary file not shown.
Binary file modified bin/nsd_opll.bin
Binary file not shown.
Binary file modified bin/nsd_s5b.bin
Binary file not shown.
Binary file modified bin/nsd_vrc6.bin
Binary file not shown.
Binary file modified bin/nsd_vrc7.bin
Binary file not shown.
Binary file modified doc/nsdl.chm
Binary file not shown.
4 changes: 2 additions & 2 deletions doc/readme.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
+-----------------------------------------------------------------------------
| �^�C�g�� | NES Sound Driver Library
|�t�@�C����| NSDL112.ZIP
|�t�@�C����| NSDL113.ZIP
| �J�e�S�� | Sound Driver for NES
| ����@�� | NES (Nintendo Entertainment System)
|�O��\�t�g| cc65 (Complete cross development package for 65(C)02 systems.)
Expand Down Expand Up @@ -28,4 +28,4 @@ This is developed as object library, and user application can control it.
�Emixi http://mixi.jp/show_profile.pl?id=16558
========================================================================

����̃t�@�C���́yNSDL112.ZIP�z�ł��B
����̃t�@�C���́yNSDL113.ZIP�z�ł��B
6 changes: 3 additions & 3 deletions include/nsd.inc
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@
;****************************************************************
;* Define for nsd.lib *
;****************************************************************

;=======================================================================
; General Define
;-----------------------------------------------------------------------
Expand Down Expand Up @@ -323,7 +322,7 @@
.Endstruct

.Struct NSD_voice
voice .byte ;`@R' command value (upper 4bit)
voice .byte ;`@R' command value (upper 4bit) ;※廃止
voice_set .byte ;deveice setting value
.Endstruct
Expand Down Expand Up @@ -421,6 +420,7 @@
.endscope
.scope nsd_mode
voiceR = $F0
voice = $08
gatemode = $03
.endscope
Expand Down Expand Up @@ -455,7 +455,7 @@
.define __repeat_ctr nsd_work + NSD_work::Repeat + NSD_Repeat::count1
.define __repeat_ctr2 nsd_work + NSD_work::Repeat + NSD_Repeat::count2
.define __volume nsd_work + NSD_work::Volume + NSD_volume::volume
.define __voice nsd_work + NSD_work::Voice + NSD_voice::voice
;.define __voice nsd_work + NSD_work::Voice + NSD_voice::voice
.define __voice_set nsd_work + NSD_work::Voice + NSD_voice::voice_set
.define __frequency nsd_work + NSD_work::Frequency
.define __subroutine nsd_work + NSD_work::SubRoutine
Expand Down
Binary file modified lib/NSD.lib
Binary file not shown.
Binary file modified lib/NSD_ALL.lib
Binary file not shown.
Binary file modified lib/NSD_ALL2.lib
Binary file not shown.
Binary file modified lib/NSD_FDS.lib
Binary file not shown.
Binary file modified lib/NSD_HFE4.lib
Binary file not shown.
Binary file modified lib/NSD_HFX4.lib
Binary file not shown.
Binary file modified lib/NSD_MMC5.lib
Binary file not shown.
Binary file modified lib/NSD_N163.lib
Binary file not shown.
Binary file modified lib/NSD_OALL.lib
Binary file not shown.
Binary file modified lib/NSD_OPLL.lib
Binary file not shown.
Binary file modified lib/NSD_VRC6.lib
Binary file not shown.
Binary file modified lib/NSD_VRC7.lib
Binary file not shown.
Binary file modified lib/NSD_s5b.lib
Binary file not shown.
Binary file modified sample/sw/Bach_BWV578.nsf
Binary file not shown.
Binary file modified sample/sw/Mozart_Kv618.nsf
Binary file not shown.
4 changes: 2 additions & 2 deletions src/help/format_music.html
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,9 @@
<tr><td>0x70-0x7F </td><td> </td><td>Volume of release (op-code lower 4bit is value) </td></tr>
<tr><td>0x80-0xFF </td><td>(n1) (n2) </td><td>Note and Rest <br>
op-code bit 7 = `H' <br>
op-code bit 6 = flag of Gate Time (n2 [tick]) <br>
op-code bit 6 = flag of Thai & Slur <br>
op-code bit 5 = flag of Length (n1 [tick]) <br>
op-code bit 4 = flag of Thai & Slur <br>
op-code bit 4 = flag of Gate Time (n2 [tick]) <br>
op-code bit 3-0 = note <br>
0x00 : C <br>
0x01 : Cis / Des <br>
Expand Down
13 changes: 11 additions & 2 deletions src/help/mml_echo.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@ <h2>MML reference: Echo</h2>
<div class='block'>
<h3>定義(Define)</h3>
<code><pre>
EC<var>delay</var>,<var>volume</var>
EC<var>delay</var>,<var>volume</var><span style="color:blue;">(</span>,<var>length</var><span style="color:blue;">)</span>
EC*
EC-
</pre></code>
</div>

Expand All @@ -38,6 +39,7 @@ <h2>MML reference: Echo</h2>

<p>
引数の替わりに`*'を指定することで、疑似エコーを無効化できます。(Default: Disable)<br>
また、`-'を指定することで、疑似エコーのバッファをリセットできます。
</p>

<h4>delay</h4>
Expand All @@ -53,6 +55,13 @@ <h4>volume</h4>
0 ~ 15 … 指定の音量で発音(Key on)し直します。<br>
</p>

<h4>length</h4>
<p>
疑似エコーで鳴らす音符の音長、もしくはモードを指定します。<br>
-1 … 休符が疑似エコーに置き換わります(パラメータ省略時のデフォルトです)。<br>
1 ~ … 前の音符の音長を指定分だけ減らし、指定の音長の疑似エコーに置き換えます。r ,w コマンドは休符になります。<br>
</p>


</div>
<!-- ──────────────── -->
Expand All @@ -74,7 +83,7 @@ <h4>volume</h4>
<div class='block'>
<h3>注意(Notes)</h3>
<p>
リピートと相対音量、相対移調、相対オクターブを組み合わせた場合、正常に疑似エコーのシーケンスを作成できません。<br>
リピートと相対音量、相対移調を組み合わせた場合、正常に疑似エコーのシーケンスを作成できません。<br>
疑似エコーが有効になっている時は、それらのコマンドを組み合わせて使わないで下さい。<br>
</p>
<p>
Expand Down
12 changes: 10 additions & 2 deletions src/help/mml_length.html
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,17 @@ <h4>Length</h4>
</p>
<p>
無限ループやリピートで戻った際も適用されますので、注意してください。<br>
但し、音長を省略して付点のみを記述した音符・休符に関しては、無限ループやリピート前のlコマンドの値に付点がつきます。<br>
lコマンドは音源ドライバー側の機能、付点はMMLコンパイラ側の機能です。<br>
</p>
<p>
lコマンドは音源ドライバー側の機能、付点はMMLコンパイラ側の機能である事にご注意ください。<br>
</p>
<ul>
<li>リピートや、ダルセーニョ後は、l コマンドの指定をお勧めします。<br>
音長を省略して付点のみを記述した音符・休符に関しては、ダルセーニョやリピート前のlコマンドの値に付点がつきます。</li>
<li>サブルーチン先でl コマンドを指定する場合、戻った後にもl コマンドの指定をお勧めします。<br>
サブルーチン先は呼び出し元のデフォルト音長検知できず、また、戻った後もサブルーチン先でデフォルト音長を変えた場合、
コンパイラでそれを検知することはできず、呼び出し前ののlコマンドの値に付点がつきます。</li>
</ul>
</div>

<!-- ──────────────── -->
Expand Down
2 changes: 1 addition & 1 deletion src/help/mml_octave.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ <h2>MML reference: Octave</h2>

<h4>octave</h4>
<p>
オクターブです。2~9の範囲(o4=中央)で指定してください。(Default: <var>octave</var> = 4)<br>
オクターブです。1~8の範囲(o4=中央)で指定してください。(Default: <var>octave</var> = 4)<br>
</p>


Expand Down
Binary file modified src/help/nsdl.chm
Binary file not shown.
15 changes: 15 additions & 0 deletions src/help/revision.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,21 @@
</p>
<table>
<tr><th>ヴァージョン</th><th>内容</th><th>改定日</th></tr>
<tr><td>1.13</td>
<td>●音源ドライバー本体<br>
・nsd_all.bin, nsd_all2.bin, nsd_oall.bin, nsd_hfe4.bin, nsd_hfx4.binにて、
Version 1.12におけるシーケンス64kByte化の副作用として、音量エンベロープが効かなくなることがあるバグ及び、
ΔPCMのIRQが使えなくなっていたバグをFix。<br>
・ノートコマンドのオペコードのビット位置を最適化のためを変更しました。<br>
・オクターブコマンドで指定できるオクターブを2~9から1~8へ変更しました。<br>
●MMLコンパイラ<br>
・疑似エコーのバッファをリセットするコマンドを実装した。<br>
・EC(疑似エコー)コマンドにオプションで第三パラメータを追加し、
休符を書かないでも疑似エコーをできるようにした。<br>
・音符及び休符にて、lコマンドと音長が同じ場合は、1Byte短いオペコードを出力するようにした。<br>
・音量、ゲートタイムの指定値が前回と同じ場合は、コンパイルしないようにした(リピート、ダルセーニョ後は除外)。<br>
</td>
<td>2014年 1月19日</td></tr>
<tr><td>1.12</td>
<td>●音源ドライバー本体<br>
・Sunsoft 5Bにて、sコマンド使用時にプチノイズが入る場合があるバグを修正。<br>
Expand Down
8 changes: 5 additions & 3 deletions src/help/variable.html
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,9 @@ <h4>nsd_work</h4>
<td>チャンネル毎のフラグ</td></tr>
<tr><td>Flag[<var>n</var>].gatemode</td>
<td>__gatemode</td>
<td>ゲートモード(Rmコマンドの設定値)</td></tr>
<td>.... ..rr : ゲートモード(Rmコマンドの設定値)<br>
.... e... : 音色エンベロープのスイッチ<br>
vvvv .... : リリース時の音色(R@コマンドの数値)</td></tr>
<tr><td>Length[<var>n</var>].length</td>
<td>__length</td>
<td>音長省略時の音長(lコマンドの設定値)</td></tr>
Expand Down Expand Up @@ -270,10 +272,10 @@ <h4>nsd_work</h4>
TR5(⊿PCM)はAPU ch2のsweepレジスタの現在値として使用。 </td></tr>
<tr><td>Voice[<var>n</var>].voice</td>
<td>__voice</td>
<td>音色(R@コマンドの数値)</td></tr>
<td>音色(R@コマンドの数値) <strong>※移動のため廃止</strong></td></tr>
<tr><td>Voice[<var>n</var>].voice_set</td>
<td>__voice_set</td>
<td>現在発音している音色(音色エンベロープ適用後)</td></tr>
<td>現在発音している音色(音色エンベロープ適用後)<strong>※移動し廃止予定</strong></td></tr>
<tr><td>Env_F_Now[<var>n</var>].Frequency</td>
<td>__env_freq_now</td>
<td>音程エンベロープの現在値</td></tr>
Expand Down
3 changes: 3 additions & 0 deletions src/nsc/MMLfile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -743,6 +743,9 @@ int MMLfile::readLength(unsigned int DefaultLength){
iDot = iLength;
//付点
while((cData = cRead()) == '.'){
if(iLength == -1){
Err(L"音長の記述なしに付点を使う場合は、前もってl コマンドを記述して下さい。");
}
iMod = (iDot & 0x01);
iDot >>= 1;
if(iMod != 0){
Expand Down
4 changes: 2 additions & 2 deletions src/nsc/MusicEvent.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@
#define nsd_Release_Volume 0x70
#define nsd_Note 0x80

#define nsd_Note_Slur 0x10
#define nsd_Note_Slur 0x40
#define nsd_Note_Length 0x20
#define nsd_Note_Gate 0x40
#define nsd_Note_Gate 0x10

/****************************************************************/
/* */
Expand Down
Loading

0 comments on commit 9dbf517

Please sign in to comment.