笔记 Notes

这里记录形状、运动和声音怎样从数学关系变成可以运行的代码。图片和代码都来自项目本身。 These notes follow form, motion, and sound from mathematical relationships into working code. The images and excerpts come from the projects themselves.

Sine waves, harmonics, and beat markers drawn over one sampling grid.
2026 · 08
从公式到一首歌:用代码和数学合成音乐From Formula to Song: Making Music with Code and Mathematics
From Formula to Song: Making Music with Code and Mathematics
声音在文件里只是一列数字。音高来自周期,音色来自谐波,起伏来自时间。把这些关系分层写进代码,一首歌就可以从零生成。 In a file, sound is only a column of numbers. Pitch comes from periodicity, timbre from harmonics, and phrasing from time. Layer those relationships in code and a complete piece can be generated from nothing.
At dusk, a dark green four-car train crosses flooded rails with warm windows reflected in the water.
2026 · 08
海上列车:用 Three.js 写一片安静的海Sea Train: Writing a Quiet Ocean in Three.js
Sea Train: Writing a Quiet Ocean in Three.js
这个场景只有几样东西:水、列车、电线和夕阳。画面能不能成立,取决于镜头、反射和时间之间的关系。 This scene contains only water, a train, wires, and a setting sun. Whether the image holds together depends on the relationships between lens, reflection, and time.
A procedural red steel road bicycle in Three.js, photographed from the drive side.
2026 · 08
用 Three.js 造一辆自行车:先算几何,再画模型Building a Bicycle in Three.js: Geometry Before Meshes
Building a Bicycle in Three.js: Geometry Before Meshes
自行车看上去是车架、轮组和传动,底下其实是一组互相约束的点。先把这些关系算清楚,再让 Three.js 负责画出来。 A bicycle looks like a frame, wheels, and a drivetrain. Underneath, it is a set of points constrained by one another. Solve those relationships first, then let Three.js draw the result.

RSS ↗

文章 writing 文章 / writing from mathematical relationships to working code