Skip to content

Commit 1b9ff08

Browse files
committed
fix example [skip ci]
1 parent b265f87 commit 1b9ff08

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

diffsptk/modules/chroma.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,12 @@ def forward(self, x: torch.Tensor) -> torch.Tensor:
8787
--------
8888
>>> sr = 16000
8989
>>> x = diffsptk.sin(500, period=sr/440)
90-
>>> stft = diffsptk.STFT(frame_length=512, frame_period=512, fft_length=512)
91-
>>> chroma = diffsptk.ChromaFilterBankAnalysis(12, 512, sr)
90+
>>> stft = diffsptk.STFT(
91+
... frame_length=512, frame_period=512, fft_length=512, window="hanning"
92+
... )
93+
>>> chroma = diffsptk.ChromaFilterBankAnalysis(
94+
... fft_length=512, n_channel=12, sample_rate=sr
95+
... )
9296
>>> y = chroma(stft(x))
9397
>>> y
9498
tensor([[0.1146, 0.0574, 0.0457, 0.0468, 0.0519, 0.0789, 0.1736, 0.4285, 0.7416,

0 commit comments

Comments
 (0)