Sound ファイルについて
2018/03/20
sound.cfg
[Ground_rool] の flags について (滑走中の音)
MS の ESP SDK - SoundConfiguration Files に以下のように
記述されています。
For all sounds
0 = no flag
1 = disable sound
For ground sounds
By flagging a sound for a particular ground surface type,
you tell the simulation to play that sound when the aircraft comes
into contact with that surfaces type or types.
Ground sound flags include:
2の累乗 10進数
1 2^1 2 = concrete
2 2^2 4 = soft, bumpy ground (landable)
3 2^3 8 = water
4 2^4 16 = very bumpy grass & mud (crashable)
5 2^5 32 = asphalt
6 2^6 64 = short grass
7 2^7 128 = long grass
8 2^8 256 = hard turf
9 2^9 512 = snow
10 2^10 1024 = ice
11 2^11 2048 = urban
12 2^12 4096 = forest
13 2^13 8192 = dirt runway
14 2^14 16384 = coral runway
15 2^15 32768 = gravel runway
16 2^16 65536 = oil treated (tar&chip) runway
17 2^17 131072 = steel mats (steel mesh) temporary runway
上記の 2 4 8 16 ---- 131072 までが flags= に記述される数値です。
これらの一つ一つに .wav を設定するのはではなく、まとめて定義します。
各数値は10進法の数値です。これを 2 の累乗であらわすと右側の 2^n に
なります。この n は、2 進数の桁の位置をあらわします。つまり
以下の表になります。
17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 |
0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
ここで、各 flag をまとめて記述して、2 進数(バイナリー)を 10 進数に
変換して、flags= に記述します。
例)FSX セスナ C172 の場合
sound.cfg
・・・・・・・・・・・・・
[GROUND_ROLL]
filename=cnroll2
flags=125218
minimum_volume=6000
maximum_volume=9200
minimum_speed=3
maximum_speed=55
minimum_rate=0.80
maximum_rate=1.60
link=GROUND_ROLL2
・・・・・・・・・
125218(10進数)をバイナリー(2進数)に変換すると
1 1 1 1 0 1 0 0 1 0 0 1 0 0 0 1 0 になります。
この数値の上部に桁数を表示すると、
17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 |
1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 |
ビットが立っている桁数を前記の桁数に対応させると、以下になります。、
2 soft, bumpy ground (landable)
6 short grass
9 snow
12 forest
14 coral runway
15 gravel runway
16 oil treated (tar&chip) runway
17 steel mats (steel mesh) temporary runway
これらの着陸地のroll音を1つににまとめて
filename=cnroll2 の音にしたという意味でしょう。
自分で設定したい場合は、上記と逆のことをすれば良い。
つまり、2進数でビットを立てておいて、10進数に変換すれば良い。
水しぶき音 waterloop の設定
[GROUND_ROLL4]
filename=waterloop
flags=8
link=GROUND_ROLL5
CFS2 の場合 デフォールトでしぶき音がないので、
FSX の waterloop.wav を使用します。
CFS2 は 上記の設定をしないと、水音が出ません。
しかも、コクピットでは、音が聞こえるが、外部視点では聞こえません。
FSX ではこの不具合がない。
aircraft.cfg での sound 設定 (タッチダウン音)
[CONTACT_POINTS] section
point.0=1番目の項
Integer defining the type of contact point:
0 = None,
1 = Wheel,
2 = Scrape,
3 = Skid, (CFS2非対応?)
4 = Float,
5 = Water Rudder ( 〃 )
point.0=14番目の項
Sound Type
This integer value will map a point to a type of sound:
0 = Center Gear,
1 = Auxiliary Gear,
2 = Left Gear,
3 = Right Gear,
4 = Fuselage Scrape,
5 = Left Wing Scrape,
6 = Right Wing Scrape,
7 = Aux1 Scrape,
8 = Aux2 Scrape,
9 = Tail Scrape.
フロートの場合は、2 と 3 を前後に設定します。つまり 前の3、前の2
後ろの3、後ろの2のように。
例)赤トンボの場合(FSX)
[contact_points]
point.0= 4, 7.500, 3.711, -7.034, 2165, 0, 0.000, 0.000, 0.410, 2.504, 0.885, 0.000,
0.000, 3
point.1= 4, 7.500, -3.711, -7.034, 2165, 0, 0.000, 0.000, 0.410, 2.504, 0.885, 0.000,
0.000, 2
point.2= 4, -8.858, 3.711, -6.506, 2165, 0, 0.000, 0.000, 0.410, 2.504, 0.885, 0.000, 0.000, 3
point.3= 4, -8.858, -3.711, -6.506, 2165, 0, 0.000, 0.000, 0.410, 2.504, 0.885, 0.000,
4.000, 2
point.4= 2, 0.000, -20.082, 0.666, 1181, 0, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 5
point.5= 2, 0.000, 20.082, 0.666, 1181, 0, 0.000, 0.000, 0.000, 0.000,
0.000, 0.000, 0.000, 6
point.6= 2, -21.667, 0.000, 1.250, 1181, 0, 0.000, 0.000, 0.000, 0.000,
0.000, 0.000, 0.000, 9
point.7= 2, 11.916, 0.000, 0.000, 1181, 0, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 4
この設定が、sound.cfg の以下の設定に対応するのではと思う。(自信なし)
sound.cfg
[LEFT_TOUCHDOWN]
filename=cmtouch1, cmtouch2, cmtouch3
[RIGHT_TOUCHDOWN]
filename=cmtouch4, cmtouch5, cmtouch6
[CENTER_TOUCHDOWN]
filename=cmtouch7, cmtouch8