# SoundFont

SoundFont是一种用于采样合成（sample-based synthesis）的文件格式，由E-mu Systems和Creative Technology开发，它将录制的乐器音色与合成器从MIDI数据播放这些音色所需的参数打包在一起。支持SoundFont的合成器读取文件中的音频采样和发声数据，将MIDI音符事件渲染为音频，因此同一个MIDI文件加载不同的SoundFont就会发出不同的声音。

| 关键事实 | 详情 |
|---|---|
| 格式类型 | 基于采样的合成格式，封装于RIFF容器中，由Creative Labs和E-mu Systems发布<sup>[1](https://github.com/JefroB/Multisample-format-docs/blob/main/sf2.md)</sup> |
| 推出时间 | 随Creative Sound Blaster AWE32（1994年）推出，使用EMU8000合成引擎；1.0版文件使用.sbk扩展名<sup>[2](https://picture.iczhiku.com/resource/paper/WHiwuWaOWaLEocbN.pdf)</sup><sup> • </sup><sup>[3](https://github.com/mrbumpy409/AWE32-midi-conversions)</sup> |
| 当前版本 | SoundFont 2.04，规范修订历史中标注日期为2002年9月10日，新增24位采样支持<sup>[4](https://www.synthfont.com/sfspec24.pdf)</sup> |
| 文件结构 | 三个顶层LIST块：INFO（元数据）、sdta（采样数据）和pdta（预设、乐器与采样头信息）<sup>[1](https://github.com/JefroB/Multisample-format-docs/blob/main/sf2.md)</sup> |
| 采样数据 | 16位有符号PCM，单声道，小端序，存放于smpl子块中；2.04版新增可选的sm24块，用于存放24位采样的低8位<sup>[1](https://github.com/JefroB/Multisample-format-docs/blob/main/sf2.md)</sup><sup> • </sup><sup>[5](https://www.file-extension.info/format/sf2)</sup> |
| 预设寻址 | 通过MIDI bank和program编号选择乐器；一个bank包含128个预设<sup>[6](https://www.synthfont.com/Introduction.pdf)</sup> |
| 常用播放器 | FluidSynth、TiMidity++、SynthFont、MuseScore，以及众多DAW和硬件合成器<sup>[1](https://github.com/JefroB/Multisample-format-docs/blob/main/sf2.md)</sup><sup> • </sup><sup>[7](https://timidity.sourceforge.net/install.html)</sup> |

## 历史

该格式起源于E-mu Systems，该公司于1993年开始着手为采样乐器建立一套统一通用的可下载音色标准。SoundFont文件格式随Creative Technology的Sound Blaster AWE32产品一同推出，使用EMU8000合成引擎，此后E-mu和Creative对该标准进行了逐步改进<sup>[2](https://picture.iczhiku.com/resource/paper/WHiwuWaOWaLEocbN.pdf)</sup>。AWE32是1994年发布的一款ISA声卡，作为SoundFont标准的首发载体而为人所知<sup>[3](https://github.com/mrbumpy409/AWE32-midi-conversions)</sup><sup> • </sup><sup>[8](https://www.tomshardware.com/pc-components/sound-cards/legendary-sound-blaster-isa-sound-card-gets-a-driver-update-30-years-later-patch-squashes-first-bug-report-after-25-years)</sup>。

**SoundFont 1.0**与AWE32硬件紧密绑定，包括所有AWE系列卡上都有的1 MB采样ROM。1.0版文件使用.sbk扩展名，通常加载到bank 1中，bank 0则存放[General MIDI](https://www.edgepedia.org/zh/general-midi) SoundFont。在互联网上分享AWE32作品变得相当普遍，以至于自定义播放器会自动检测与MIDI文件同名的SoundFont并加载它<sup>[3](https://github.com/mrbumpy409/AWE32-midi-conversions)</sup>。

**SoundFont 2.0**于1998年随Sound Blaster Live!一同面世，带来了.sf2文件类型。AWE32经过更新以兼容SoundFont 2.0，两块卡都能加载1.0（.sbk）和2.0（.sf2）文件<sup>[3](https://github.com/mrbumpy409/AWE32-midi-conversions)</sup>。2.01技术规范于1996年12月印制，描述了RIFF文件结构、发生器（generator）与调制器（modulator）模型以及错误处理机制，这些至今仍是该格式的定义性内容<sup>[4](https://www.synthfont.com/sfspec24.pdf)</sup>。修订版2.04在规范修订历史中标注日期为2002年9月10日，新增了对24位采样的支持<sup>[4](https://www.synthfont.com/sfspec24.pdf)</sup>。

## 文件结构与合成模型

SoundFont 2文件是一个RIFF（Resource Interchange File Format，资源交换文件格式）容器，形式类型为sfbk。它包含三个LIST块：INFO块，含有必需和可选的元数据子块，如bank名称（INAM）和目标声音引擎（isng，例如"EMU8000"）；sdta块，含有数字音频采样；以及pdta块，含有九个子块，分别存放预设、乐器和采样头信息<sup>[4](https://www.synthfont.com/sfspec24.pdf)</sup><sup> • </sup><sup>[9](https://mrtenz.github.io/soundfont2/getting-started/soundfont2-structure.html)</sup>。RIFF结构中的冗余长度信息让读取器能够检测数据丢失；损坏的文件被称为"结构不健全"（structurally unsound），通常应予以拒绝<sup>[4](https://www.synthfont.com/sfspec24.pdf)</sup>。

合成模型源自EMU8000波表合成芯片。采样被组织为乐器，每个乐器是一组区域（zone），将采样映射到MIDI键位和力度范围。每个区域带有发生器——即包络的起音、衰减、延音、释音时间，低通滤波器截止频率与谐振，音高调音，衰减量，以及LFO延迟与频率等参数——还带有调制器，将MIDI控制器（如音符触发力度、弯音轮和连续控制器）路由到这些参数上<sup>[4](https://www.synthfont.com/sfspec24.pdf)</sup><sup> • </sup><sup>[5](https://www.file-extension.info/format/sf2)</sup>。例如，一架钢琴乐器可能在整个键盘上每三个音就有一个独立采样，并有轻柔、中等和重击等多个力度层<sup>[5](https://www.file-extension.info/format/sf2)</sup>。

预设在层级上位于乐器之上，通过MIDI bank选择（bank-select）和音色切换（program-change）消息来选择。一个bank包含128个预设，根据软件不同编号为0至127或1至128<sup>[6](https://www.synthfont.com/Introduction.pdf)</sup>。SoundFont与MIDI交互来产生声音，General MIDI（GM）SoundFont按照GM音色映射表来编排其预设——这是MIDI program编号到乐器音色的标准映射，有助于同一文件在不同设备上一致回放<sup>[10](https://midi.org/general-midi)</sup>。

## 用SoundFont播放MIDI

SoundFont合成器在加载SoundFont之前无法发声。FluidSynth是一款基于SoundFont 2规范的实时软件MIDI合成器，可加载.sf2或.sf3文件，将MIDI输入或MIDI文件渲染为音频；最简单的调用方式是在命令行中传入一个SoundFont和一个MIDI文件<sup>[11](https://www.fluidsynth.org/wiki/UserManual/)</sup>。TiMidity++同样使用GUS音色库、SoundFont或两者兼用作为回放的音色数据<sup>[7](https://timidity.sourceforge.net/install.html)</sup>。

FluidSynth将已加载的SoundFont视为一个栈，每个新加载的文件放在栈顶。按bank和program编号选择预设时，从栈顶开始搜索，因此如果两个SoundFont含有相同bank和program编号的预设，最近加载的那个生效。可以对每个SoundFont应用bank偏移量以保持预设编号唯一，API函数可按标识符加载、卸载和重新加载SoundFont<sup>[12](https://www.fluidsynth.org/wiki/usage/loading-soundfonts/)</sup>。

**MuseScore**自带一个SoundFont作为默认回放音色：2.2及以后版本安装MuseScore_General.sf3，这是一套General MIDI音色，包含128种以上乐器、音效和鼓组；MuseScore 2.0–2.1则附带FluidR3Mono_GM.sf3，MuseScore 1附带TimGM6mb.sf2。用户可以安装额外的.sf2和.sf3文件，MuseScore还对SFZ格式有一定支持<sup>[13](https://musescore.org/en/handbook/2/soundfonts-and-sfz-files)</sup>。

## SF3及相关格式

SF3是MuseScore创建的一种压缩SoundFont变体：采样数据用Ogg Vorbis压缩，压缩文件的主版本号为3。该格式是非标准的，据sftools文档所述，仅MuseScore可用。MuseScore的sf3convert工具将FluidR3 SoundFont从148 MB压缩到了20 MB<sup>[14](https://github.com/musescore/sftools/blob/master/README.md)</sup>。

SFZ格式走的是另一条路线：它是一种基于文本的文件格式，只定义乐器行为，不包含采样内容，而SoundFont将采样和采样行为定义一并打包在一个二进制文件中<sup>[15](https://sfzlab.github.io/sfz-website/documentation/getting-started/what_is_sfz/)</sup>。分发的SoundFont文件下载时常以.zip、.sfArk和.tar.gz等格式压缩，使用前必须解压<sup>[13](https://musescore.org/en/handbook/2/soundfonts-and-sfz-files)</sup>。

## 遗产

AWE32系列在发布很久之后仍受支持：2025年，Linux声音子系统长期维护者岩井隆（Takashi Iwai）提交的一个Linux内核拉取请求为Linux 6.16-rc3中的AWE32带来了一批小修复，包括一个DMA问题的变通方案，其部分起因是该卡首发25年后提交的一份错误报告<sup>[8](https://www.tomshardware.com/pc-components/sound-cards/legendary-sound-blaster-isa-sound-card-gets-a-driver-update-30-years-later-patch-squashes-first-bug-report-after-25-years)</sup>。1990年代的SoundFont文件在现代软件合成器中仍可播放，社区项目持续发布针对SoundFont 2.01和2.04播放器的规范符合性测试<sup>[16](https://github.com/mrbumpy409/SoundFont-Spec-Test)</sup>。

## References

1. [sf2.md, Multisample-format-docs (JefroB), GitHub](https://github.com/JefroB/Multisample-format-docs/blob/main/sf2.md)
2. [SoundFont Technical Specification (E-mu Systems background paper)](https://picture.iczhiku.com/resource/paper/WHiwuWaOWaLEocbN.pdf)
3. [AWE32-midi-conversions, GitHub (mrbumpy409)](https://github.com/mrbumpy409/AWE32-midi-conversions)
4. [SoundFont Technical Specification 2.04 (SynthFont mirror)](https://www.synthfont.com/sfspec24.pdf)
5. [SF2 File Format, File-Extension.info](https://www.file-extension.info/format/sf2)
6. [SynthFont Introduction (PDF)](https://www.synthfont.com/Introduction.pdf)
7. [TiMidity++ INSTALL](https://timidity.sourceforge.net/install.html)
8. [Legendary Sound Blaster ISA sound card gets a driver update 30 years later, Tom's Hardware](https://www.tomshardware.com/pc-components/sound-cards/legendary-sound-blaster-isa-sound-card-gets-a-driver-update-30-years-later-patch-squashes-first-bug-report-after-25-years)
9. [SoundFont2 Structure, soundfont2 documentation](https://mrtenz.github.io/soundfont2/getting-started/soundfont2-structure.html)
10. [General MIDI, MIDI Association](https://midi.org/general-midi)
11. [FluidSynth User Manual](https://www.fluidsynth.org/wiki/UserManual/)
12. [Loading and managing SoundFonts, FluidSynth Wiki](https://www.fluidsynth.org/wiki/usage/loading-soundfonts/)
13. [SoundFonts and SFZ files, MuseScore Handbook](https://musescore.org/en/handbook/2/soundfonts-and-sfz-files)
14. [sftools README, MuseScore GitHub](https://github.com/musescore/sftools/blob/master/README.md)
15. [What is SFZ?, sfzlab](https://sfzlab.github.io/sfz-website/documentation/getting-started/what_is_sfz/)
16. [SoundFont-Spec-Test, GitHub (mrbumpy409)](https://github.com/mrbumpy409/SoundFont-Spec-Test)

---
*Initially written Sep 17, 2026 · Reviewed: Oct 15, 2026 · Edited: Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 计算机硬件 › Boards, peripherals & form factors › Peripherals & expansion hardware › Sound cards and computer audio hardware

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/soundfont

English original: https://www.edgepedia.org/soundfont
