Making our own spectrogram

Amos Wenger · 2025年9月15日

AI 摘要 AI 生成,可能有误

作者此前曾制作过响度计,如今又创建了一个频谱图可视化工具。本文讲解了如何从声波中提取频率,并描述了该应用是如何由不同的 Rust crate 组装而成的,包括它如何处理音频线程和图形线程,以及如何绘制频谱图。

A couple months ago I made a loudness meter and went way too in-depth into how humans have measured loudness over time.

Today we’re looking at a spectrogram visualization I made, which is a lot more entertaining!

We’re going to talk about how to extract frequencies from sound waves, but also how my spectrogram app is assembled from different Rust crates, how it handles audio and graphics threads, how it draws the spectrogram etc.

继续阅读全文

为了尊重作者,这里只展示开头几段。你可以去原文阅读,或者在 HorizonReader 里读:划线做笔记、让 AI 帮忙。

更多来自 fasterthanli.me

2025 Recap: so many projects

AI 摘要The author is recapping the many projects they worked on in 2025 as a way to clear their head. The first project they discuss is called facet, which they started in March of that year, noting that although only ten months have passed, it feels like an eternity.

Introducing arborium, a tree-sitter distribution

AI 摘要The author describes a discussion with the docs.rs team about why code samples are displayed in an unappealing way, prompting them to open a GitHub issue to understand the underlying reasons. Despite walking away from that discussion discouraged, they decided to ignore the existing constraints and tackle the problem from three different angles. This effort resulted in arborium, a tree-sitter distribution.

Does Dioxus spark joy?

AI 摘要The article is an adaptation of a talk given at a Rust Paris Meetup in which the speaker sets out to answer whether Dioxus, a Rust UI framework, sparks joy. The piece opens playfully, noting that Dioxus's name is 'legally not inspired by any Pokémon,' even though its author conceded in a Hacker News comment that the Pokémon Deoxys is 'awesome'.

Engineering a Rust optimization quiz

AI 摘要The author describes several online Rust quizzes, particularly the 'Unfair Rust Quiz,' which lives up to its name and is best tackled with a knowledgeable friend. For a live episode of the Self-Directed Research podcast recorded on the main stage of EuroRust 2025, the author decided to create something special: a Rust optimization quiz.

crates.io phishing attempt

AI 摘要Following a recent npm supply chain attack, a phishing campaign has targeted maintainers of crates.io, the main public repository for Rust packages. The phishing email directs recipients to a fake GitHub login page, and the issue is being discussed on GitHub after several maintainers received it. The crates.io team has acknowledged the attack and stated they would look into possible countermeasures.