kuma4649 / mml2vgm

GNU General Public License v3.0
105 stars 10 forks source link

How to define a more precise frequency for ADPCM-B? #104

Closed denjhang closed 3 years ago

denjhang commented 3 years ago

For example, I need the sound between o6g and o6g+, that is, the sound between semitones. Is it possible to directly define the frequency to?

kuma4649 commented 3 years ago

opnb?

denjhang commented 3 years ago

OPNB

denjhang commented 3 years ago

OPNA's ADPCM is also needed, because for PCM sampling, I need to have precise frequency settings to make the pitch accurate.

kuma4649 commented 3 years ago

yコマンドでもダメですか?

denjhang commented 3 years ago

So which y command should I use? yn1, n2 are right, but I don't know what should be filled in n1 and n2. What is the register number of ADPCM-B?

kuma4649 commented 3 years ago

「YM2610 application manual」で検索するとそこらへんの情報は見つかります... アドレスはPort0の$10~$1Fのようですね...

kuma4649 commented 3 years ago

或いはデチューンコマンドで音程をずらしてみるとか。

denjhang commented 3 years ago

The detuning command EXn can only be used for FM channels.

denjhang commented 3 years ago

△N = ( f ÷ 55.5 KHz ) × 65536

19 | Delta-N lower 8 bits | Delta-N (LSB) 1A | Delta-N upper 8 bits | Delta-N (MSB)

denjhang commented 3 years ago

'T19 T1 p3 @3 y$19,$6a y$1A,$cb This only defines the frequency as 44100hz, but there is no sound. How should I excite the note?

kuma4649 commented 3 years ago

デチューンコマンドはDです。

kuma4649 commented 3 years ago

発音するためのシーケンスもマニュアルに載ってますけど... yコマンドで済ますのはちょっと現実的じゃないかな...orz

denjhang commented 3 years ago

'@ P 1,"..\wav2\snow\snow-left-18500.wav",18500,100,YM2610B,0 '@ P 2,"..\wav2\snow\snow-right-18500.wav",18500,100,YM2610B,0 '@ P 3,"..\wav2\snow-44100.wav",,100,YM2610B,1

'T13 T0 p2 @2 c c 'T14 T0 p1 @1 c c 'T19 T1 @3 v30 o6D-1296 f+ f+

denjhang commented 3 years ago

ok