Files
tldr/pages.zh/common/timidity.md

24 lines
691 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# timidity
> 播放和转换 MIDI 文件。
> 更多信息:<https://timidity.sourceforge.net>。
- 播放 MIDI 文件:
`timidity {{path/to/file.mid}}`
- 循环播放 MIDI 文件:
`timidity --loop {{path/to/file.mid}}`
- 以特定调性播放 MIDI 文件0 = C 大调/A 小调,-1 = F 大调/D 小调,+1 = G 大调/E 小调,等等):
`timidity --force-keysig={{-flats|+sharps}} {{path/to/file.mid}}`
- 将 MIDI 文件转换为 PCMWAV音频
`timidity --output-mode={{w}} --output-file={{path/to/file.wav}} {{path/to/file.mid}}`
- 将 MIDI 文件转换为 FLAC 音频:
`timidity --output-mode={{F}} --output-file={{path/to/file.flac}} {{path/to/file.mid}}`