whd module

class whd.Whd(whdfile: str = '')

ベースクラス: object

whdはwaveファイルのヘッダのみのファイルです。
wavtoolで生成したwhdとdatを結合するとwaveファイルになります。
_nchannels

チャンネル数。モノラルなら1、ステレオなら2

Type

int

_samplewidth

サンプルサイズ。8bitなら1、16bitなら2

Type

int

_framerate

サンプリングレート。44100など

Type

int

_getnframes

フレーム数。

Type

int

addframes(delta: int)

_nframesをdelta分だけ増加させる。

パラメータ

delta (int) -- 増加させるフレーム数

property framerate: int
property nchannels: int
property nframes: int
property samplewidth: int
write(output: str)

whdファイルをoutput.whdというファイル名保存する。

パラメータ

output (whdファイルのパス。) -- 不足するディレクトリは自動で作成する。