# Pure Data

**Pure Data**（Pd）是一个免费、开源的视觉化编程环境，用于实时音乐、音频和多媒体创作。在其中，程序（称为补丁）通过在画布上用连线连接对象来构建。它由米勒·帕克特（Miller Puckette）创造，帕克特是一位作曲家，也是加州大学圣迭戈分校的教授，他从1996年前后开始，将他早先在IRCAM开发的程序Max重写为一个开源项目<sup>[1](https://spectrum.ieee.org/miller-puckette-the-man-behind-the-max-and-pd-languages-and-a-lot-of-crazy-music)</sup>。帕克特在1996年的一篇论文《Pure Data：另一个集成计算机音乐环境》中描述了该系统，并在1997年国际计算机音乐大会上再次介绍了它<sup>[2](https://msp.ucsd.edu/publications.html)</sup>。

| 关键事实 | 详情 |
|---|---|
| 创造者 | 米勒·帕克特，他从1996年前后开始将他在IRCAM构建的Max重写为开源项目，由此启动了Pd<sup>[1](https://spectrum.ieee.org/miller-puckette-the-man-behind-the-max-and-pd-languages-and-a-lot-of-crazy-music)</sup> |
| 首次发表 | 《Pure Data：另一个集成计算机音乐环境》（1996年，立川，第37-41页）；《Pure Data》，ICMC 1997，第224-227页<sup>[2](https://msp.ucsd.edu/publications.html)</sup> |
| 费用与许可 | 免费且开源，与商业化的Max/MSP形成对比（后者约399美元永久授权或每月9.99美元）<sup>[3](https://ttlab.hopto.org/blog/culture/2026-05-16-live-coding-music-visuals-2026-sonic-pi-tidal-strudel-hydra-touchdesigner-supercollider-deep-dive?lang=en)</sup> |
| 音频引擎 | Pd自有的DSP引擎；默认块大小为64个采样，可通过[block~]和[switch~]按窗口调整<sup>[4](https://github.com/pure-data/pure-data/blob/master/doc/5.reference/block~-help.pd)</sup> |
| 嵌入 | libpd将Pd打包为可嵌入的音频合成库，提供C++、C#、Java、Objective-C和Python的封装<sup>[5](https://github.com/libpd/libpd)</sup> |
| 当前稳定版本 | 0.57-0版<sup>[6](https://msp.ucsd.edu/software.html)</sup> |
| 典型用途 | 现场音乐演出、声音艺术、装置，以及树莓派等板卡上的嵌入式音频<sup>[3](https://ttlab.hopto.org/blog/culture/2026-05-16-live-coding-music-visuals-2026-sonic-pi-tidal-strudel-hydra-touchdesigner-supercollider-deep-dive?lang=en)</sup> |

## 补丁如何工作

Pd补丁是一个数据流程序。画布上的对象处理传入的消息——消息可以是数字、符号、列表或音频信号——并将结果发送给其他对象或扬声器等输出设备。通过传递消息来组合对象，这一基本原理同时构成了Max和Pd的基础；帕克特说过，他改变了他认为Max中不好的地方，使Pd更快、更轻、更稳定<sup>[1](https://spectrum.ieee.org/miller-puckette-the-man-behind-the-max-and-pd-languages-and-a-lot-of-crazy-music)</sup>。

控制消息和音频信号的处理方式不同。在DSP节拍期间，消息绝不会传递给对象；这些节拍是原子的，因此在一次消息级联中发送给不同对象的参数变化会同时生效<sup>[7](https://forum.puredata.info/topic/12390/pd-s-scheduler-timing-control-rate-audio-rate-block-size-sub-sample-accuracy)</sup>。音频计算以块为单位进行：Pd的默认块大小为64个采样，[block~]和[switch~]对象为补丁窗口设置块大小、重叠、上/下采样比率和DSP计算偏移量，每个窗口最多只能有一个这样的对象<sup>[4](https://github.com/pure-data/pure-data/blob/master/doc/5.reference/block~-help.pd)</sup>。[inlet~]和[outlet~]对象在父补丁与子补丁之间重新分块信号，但只能进行二的幂次调整<sup>[4](https://github.com/pure-data/pure-data/blob/master/doc/5.reference/block~-help.pd)</sup>。

在默认的轮询调度器下，消息系统和DSP直接在音频回调中运行，因此延迟受块大小和延迟设置的影响<sup>[8](https://forum.pdpatchrepo.info/search/tool-understanding-code-works)</sup>。

## 与Max、SuperCollider和Csound的关系

Pd属于一类可打补丁的环境。Max由帕克特在IRCAM开发，后来由Cycling '74商业化；Pd是它的开源亲戚，两者共享足够多的概念，知识乃至某些补丁可以在两者之间迁移，尽管它们并非真正兼容<sup>[9](https://msp.ucsd.edu/techniques/v0.06/book-html/node12.html)</sup>。Max/MSP是付费的，通过Max for Live与[Ableton Live](https://www.edgepedia.org/zh/ableton-live)集成，并通过Jitter增加视频和3D功能，而Pd是免费且开放的<sup>[3](https://ttlab.hopto.org/blog/culture/2026-05-16-live-coding-music-visuals-2026-sonic-pi-tidal-strudel-hydra-touchdesigner-supercollider-deep-dive?lang=en)</sup>。

与基于文本的系统相比，权衡因任务而异。Csound是一种基于文本的语言，比Pd更适合批处理，并且能更好地处理复调，而Pd拥有更发达的实时控制结构<sup>[9](https://msp.ucsd.edu/techniques/v0.06/book-html/node12.html)</sup>。[SuperCollider](https://www.edgepedia.org/zh/supercollider)同样面向文本、为实时使用而设计，提供强大的语言构造，其音频原语在其优化的处理器家族上被描述为效率约为Pd或Csound的两倍<sup>[9](https://msp.ucsd.edu/techniques/v0.06/book-html/node12.html)</sup>。大体而言，SuperCollider以编写代码的方式用于算法作曲和现场编程，而Max和Pd以搭建视觉补丁的方式用于交互式、硬件集成工作<sup>[3](https://ttlab.hopto.org/blog/culture/2026-05-16-live-coding-music-visuals-2026-sonic-pi-tidal-strudel-hydra-touchdesigner-supercollider-deep-dive?lang=en)</sup>。

## 扩展Pd：外部对象与库

Pd刻意保持轻量和可移植，大多数用户会安装外部对象——即扩展其能力的第三方对象。知名的外部库包括Ceammc、Cyclone、ELSE、FFTease、Flucoma、IEMlib、Pmpd、TimbreID和Zexy；vstplugin~外部对象可在Pd内运行VST插件<sup>[10](https://msp.ucsd.edu/Pd_documentation/4.externals.htm)</sup>。外部对象有两种形式：编译后的二进制文件，必须与Pd应用程序的操作系统、CPU架构和数值精度相匹配；以及抽象，即作为对象加载的普通Pd补丁<sup>[10](https://msp.ucsd.edu/Pd_documentation/4.externals.htm)</sup>。

自0.47-0版起，Pd Vanilla已包含自己的外部对象管理器deken，它从“查找外部对象”菜单项搜索并安装库<sup>[10](https://msp.ucsd.edu/Pd_documentation/4.externals.htm)</sup>。当前加载外部对象的最佳实践是使用[declare]对象，并可用[cyclone/comb~]这样的斜杠声明来区分来自不同库的同名对象<sup>[10](https://msp.ucsd.edu/Pd_documentation/4.externals.htm)</sup>。

图形也以同样的方式扩展。GEM库提供基于OpenGL的图形，Ofelia允许在Pd内使用openFrameworks和Lua，用于视听艺术和游戏等多媒体应用<sup>[10](https://msp.ucsd.edu/Pd_documentation/4.externals.htm)</sup>。

## 嵌入与分支

**libpd**将Pd转变为可嵌入的音频合成库。它封装了米勒·帕克特的官方Pd源码，暴露API用于与客户端代码交换bang、浮点数、符号、列表和类型化消息，并提供C++、C#、Java、Objective-C和Python的粘合层，还有适用于iOS和Android的配套仓库<sup>[5](https://github.com/libpd/libpd)</sup><sup> • </sup><sup>[11](https://github-wiki-see.page/m/libpd/libpd/wiki/libpd)</sup>。这种设计将音频开发与应用开发分离，并将Pd从桌面带入移动和嵌入式环境<sup>[12](https://api.pageplace.de/preview/DT0400.9781449331405_A24027675/preview-9781449331405_A24027675.pdf)</sup>。

由于Pd是开源的，它有一些被称为“风味”的分支。帕克特的官方发行版称为Pd Vanilla。一个重要的历史风味是Pd-extended，它捆绑了大量外部对象，已于2014年停止维护；许多旧教程基于它。PlugData分支修改了图形界面，可以将Pd作为插件在任何DAW中运行<sup>[13](https://msp.ucsd.edu/Pd_documentation/1.introduction.htm)</sup>。

## 社区与文档

Pd附带一个详尽的文档树：HTML手册、用于控制和音频的教程补丁、数据结构、5.reference文件夹中每个对象的帮助补丁，以及用于编写外部对象的示例C代码<sup>[13](https://msp.ucsd.edu/Pd_documentation/1.introduction.htm)</sup>。音频示例同时作为帕克特2007年出版的《电子音乐的理论与技巧》一书的配套材料<sup>[2](https://msp.ucsd.edu/publications.html)</sup>。社区维护的网站puredata.info汇集下载资源、邮件列表和补丁交流平台，而Pd邮件列表是报告安装问题和程序错误的主要渠道<sup>[6](https://msp.ucsd.edu/software.html)</sup><sup> • </sup><sup>[13](https://msp.ucsd.edu/Pd_documentation/1.introduction.htm)</sup>。

Pd仍然是学术界、声音艺术和装置艺术中的标准工具，并且在[树莓派](https://www.edgepedia.org/zh/raspberry-pi)和嵌入式板卡上运行良好<sup>[3](https://ttlab.hopto.org/blog/culture/2026-05-16-live-coding-music-visuals-2026-sonic-pi-tidal-strudel-hydra-touchdesigner-supercollider-deep-dive?lang=en)</sup>。帕克特本人仍活跃于社区，并且越来越多地亲自用该软件演出——据利默里克大学数字媒体与艺术研究中心研究员克里·哈根（Kerry Hagan）所说，Pd最初起草时她是帕克特的研究生<sup>[1](https://spectrum.ieee.org/miller-puckette-the-man-behind-the-max-and-pd-languages-and-a-lot-of-crazy-music)</sup>。

## References

1. [Miller Puckette: The Man Behind the Max and Pd Languages (and a Lot of Crazy Music), IEEE Spectrum](https://spectrum.ieee.org/miller-puckette-the-man-behind-the-max-and-pd-languages-and-a-lot-of-crazy-music)
2. [Research publications by Miller Puckette, UCSD](https://msp.ucsd.edu/publications.html)
3. [Live Coding Music & Visuals in 2026, TT Lab Blog](https://ttlab.hopto.org/blog/culture/2026-05-16-live-coding-music-visuals-2026-sonic-pi-tidal-strudel-hydra-touchdesigner-supercollider-deep-dive?lang=en)
4. [block~-help.pd, pure-data repository, GitHub](https://github.com/pure-data/pure-data/blob/master/doc/5.reference/block~-help.pd)
5. [libpd: Pure Data embeddable audio synthesis library, GitHub](https://github.com/libpd/libpd)
6. [Software by Miller Puckette, UCSD](https://msp.ucsd.edu/software.html)
7. [PD's scheduler, timing, control-rate, audio-rate, block-size, PURE DATA forum](https://forum.puredata.info/topic/12390/pd-s-scheduler-timing-control-rate-audio-rate-block-size-sub-sample-accuracy)
8. [PURE DATA forum, scheduler and latency discussion](https://forum.pdpatchrepo.info/search/tool-understanding-code-works)
9. [About the Software Examples, Miller Puckette, Theory and Techniques of Electronic Music](https://msp.ucsd.edu/techniques/v0.06/book-html/node12.html)
10. [Pd Manual, Chapter 4: Externals](https://msp.ucsd.edu/Pd_documentation/4.externals.htm)
11. [libpd wiki: Embedding Pure Data as a DSP library](https://github-wiki-see.page/m/libpd/libpd/wiki/libpd)
12. [Making Musical Apps (book preview, O'Reilly)](https://api.pageplace.de/preview/DT0400.9781449331405_A24027675/preview-9781449331405_A24027675.pdf)
13. [Pd Manual, Chapter 1: Introduction](https://msp.ucsd.edu/Pd_documentation/1.introduction.htm)

---
*Initially written Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 软件与编程 › Programming languages › Individual programming languages

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/pure-data

English original: https://www.edgepedia.org/pure-data
