Skip to content

Instantly share code, notes, and snippets.

@drojf
Last active September 25, 2016 17:44
Show Gist options
  • Save drojf/a28f8bf8834f0088ac23b9691bfaa190 to your computer and use it in GitHub Desktop.
Save drojf/a28f8bf8834f0088ac23b9691bfaa190 to your computer and use it in GitHub Desktop.

edit3

Just so it's recorded somewhere, to use chvol, you must call it AFTER the dwave or dwaveloop command, not before!


edit2: things are not as simple as described below. the chvol command appears to have no effect on the channel volumes in this version of the game :S. Also, channels 1-15 and 49 have their volumes set at various times during the game by the script ??? which suggest it does work ??? I dunno.

It's probably easier to fix this one by simply making special audio files for when multiple voices play, since it only happens 9 times in the script. Alternatively you could use my voice player thing (which doesn't currently support multiple voices).

Maybe I'm just doing something wrong with my script but if anyone can get chvol working let me know.


edit: There is a command called chvol (see UncleMion) which sets the volume for a particular channel. I'm guessing channel 0 is the 'voice' channel, which we set the volume for, but we didn't set the rest of the channels to lower volume. I was going to say to just set channels 0-7 to 20%, but it turns out randomly that ch 49 is used twice in the script. Safer to just set every possible channel (0-49) to a default volume (or to do a proper search through the script to check which dwave commands are used).

DOESNT APPEAR TO WORK

chvol 1,20
chvol 2,20
....
chvol 48,20
chvol 49,20

DOESNT APPEAR TO WORK

@DoctorDiablo commented about multiple voices earlier 07th-mod/umineko-question#1 (comment) , for reference.

It appears there are about 10 instances where channel 0 is not used in the script (@DoctorDiablo would probably know about this better than me).

Line 55732: langen:dwave 0, but_1e255:dwave 1, mar_1e165:^""Uu-uu-uu-uu-!!!""^@
Line 60534: langen:dwave 0, but_1e352:dwave 1, jes_1e197:^^!s0^"""Whaaaaaat, mackerel?!?!"""^/
Line 60678: langen:dwave 0, but_1e355:dwave 1, mar_1e220:^"""Wahahahahaha!!!"""^\
Line 60711: langen:dwave 0, but_1e356:dwave 1, mar_1e221:^"""Wahahahahahaha!!!"""^\
Line 69630: langen:dwave 0, kan_1e86:dwave 49, sha_1e173:^^!sd^""Yes, certainly, Genji-sama.""^\
Line 86378: langen:delay 1800:dwave 0, bea_1e11:dwave 49, mar_1e927:^"*cackle*cackle*cackle*, *cackle*cackle*, ^/
Line 122389: langen:dwave 0, sha_2e792:dwave 1, goh_2e310:dwave 2, gen_2e183:^"""Yes sir!"""^/
Line 130422: langen:dwave 0, rg1_3e3:dwave 1dwave 1, rg2_3e3:dwave 2, rg3_3e3:dwave 3, rg4_3e3:dwave 4, rg1_5e3:dwave 5, rg6_3e3:dwave 6, rg7_3e3:^"""""""Eeep!!"""""""^/
Line 181069: langen:dwave 0, wal_3e616:dwave 1, ron_3e649:^^!s0^"Beatrice...!!" "M-Milady...!!"^/
Line 187497: langen:dwave 0, mar_4e205:dwave 1, sak_4e32:^"Uu-!" 『Uryu-!』^@
	Line 85056: chvol 49,5 ;Maria's song volume
	Line 310278:   chvol 10,%Me_v_Ch0
	Line 310279:   chvol 11,%Me_v_Ch1
	Line 310280:   chvol 12,%Me_v_Ch2
	Line 310281:   chvol 13,%Me_v_Ch3
	Line 310282:   chvol 14,%Me_v_Ch4
	Line 310283:   chvol 15,%Me_v_Ch5
	Line 310941:   chvol %Me_Play_Channel,%Set_vol     ;音量反映
	Line 311010:   chvol %Se_Play_Channel,%Set_vol     ;音量反映
	Line 311036:   chvol %Me_Play_Channel,%Set_vol     ;音量反映
	Line 311113:   chvol 1,default_vol
	Line 311114:   chvol 2,default_vol
	Line 311115:   chvol 3,default_vol
	Line 311116:   chvol 10,default_vol
	Line 311117:   chvol 11,default_vol
	Line 311118:   chvol 12,default_vol
	Line 311119:   chvol 13,default_vol
	Line 311120:   chvol 14,default_vol
	Line 311121:   chvol 15,default_vol
	Line 311150:   chvol 10,default_vol
	Line 311159:   chvol 11,default_vol
	Line 311168:   chvol 12,default_vol
	Line 311177:   chvol 13,default_vol
	Line 311186:   chvol 14,default_vol
	Line 311193:   chvol 15,default_vol
	Line 311198:   chvol 1,default_vol
	Line 311205:   chvol 2,default_vol
	Line 311212:   chvol 3,default_vol
	Line 311259:   chvol 1,default_vol
	Line 311260:   chvol 2,default_vol
	Line 311261:   chvol 3,default_vol
	Line 311262:   chvol 10,default_vol
	Line 311263:   chvol 11,default_vol
	Line 311264:   chvol 12,default_vol
	Line 311265:   chvol 13,default_vol
	Line 311266:   chvol 14,default_vol
	Line 311267:   chvol 15,default_vol
	Line 311309:   chvol 10,default_vol
	Line 311310:   chvol 11,default_vol
	Line 311311:   chvol 12,default_vol
	Line 311312:   chvol 13,default_vol
	Line 311313:   chvol 14,default_vol
	Line 311314:   chvol 15,default_vol
	Line 311315:   chvol 16,default_vol
	Line 311334:   chvol 1,100
	Line 311335:   chvol 2,100
	Line 311336:   chvol 3,100
	Line 311403:    chvol %Me_Play_Channel,%Set_vol     ;音量反映
	Line 311528: 	chvol 10,%Me_v_Ch0     ;音量反映
	Line 311529: 	chvol 11,%Me_v_Ch1     ;音量反映
	Line 311530: 	chvol 12,%Me_v_Ch2     ;音量反映
	Line 311531: 	chvol 13,%Me_v_Ch3     ;音量反映
	Line 311532: 	chvol 14,%Me_v_Ch4     ;音量反映
	Line 311533: 	chvol 15,%Me_v_Ch5     ;音量反映
	Line 311584: 	   chvol 10,%Me_v_Ch0     ;音量反映
	Line 311585: 	   chvol 11,%Me_v_Ch1     ;音量反映
	Line 311586: 	   chvol 12,%Me_v_Ch2     ;音量反映
	Line 311587: 	   chvol 13,%Me_v_Ch3     ;音量反映
	Line 311588: 	   chvol 14,%Me_v_Ch4     ;音量反映
	Line 311589: 	   chvol 15,%Me_v_Ch5     ;音量反映
	Line 311645: 	chvol %Free1,%%Free3     ;音量反映
	Line 311684:      chvol 11,%Me_v_ch1     ;音量反映
	Line 311685:      chvol 12,%Me_v_ch2     ;音量反映
	Line 311686:      chvol 13,%Me_v_ch3     ;音量反映
	Line 311687:      chvol 14,%Me_v_ch4     ;音量反映
	Line 311688:      chvol 15,%Me_v_ch5     ;音量反映
	Line 311721:      chvol 11,%Me_v_ch1     ;音量反映
	Line 311722:      chvol 12,%Me_v_ch2     ;音量反映
	Line 311723:      chvol 13,%Me_v_ch3     ;音量反映
	Line 311724:      chvol 14,%Me_v_ch4     ;音量反映
	Line 311725:      chvol 15,%Me_v_ch5     ;音量反映
	Line 311869:   if %Fede_Me1vflg = 1 chvol 11,%Free12     ;音量反映
	Line 311870:   if %Fede_Me2vflg = 1 chvol 12,%Free13      ;音量反映
	Line 311871:   if %Fede_Me3vflg = 1 chvol 13,%Free14      ;音量反映
	Line 311872:   if %Fede_Me4vflg = 1 chvol 14,%Free15      ;音量反映
	Line 311873:   if %Fede_Me5vflg = 1 chvol 15,%Free16      ;音量反映
	Line 311882:   if %Fede_Me1vflg = 1 chvol 11,%Fede_Me1v : mov %Me_v_Ch1,%Fede_Me1v     ;音量反映
	Line 311883:   if %Fede_Me2vflg = 1 chvol 12,%Fede_Me2v : mov %Me_v_Ch2,%Fede_Me2v      ;音量反映
	Line 311884:   if %Fede_Me3vflg = 1 chvol 13,%Fede_Me3v : mov %Me_v_Ch3,%Fede_Me3v      ;音量反映
	Line 311885:   if %Fede_Me4vflg = 1 chvol 14,%Fede_Me4v : mov %Me_v_Ch4,%Fede_Me4v      ;音量反映
	Line 311886:   if %Fede_Me5vflg = 1 chvol 15,%Fede_Me5v : mov %Me_v_Ch5,%Fede_Me5v      ;音量反映
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment