Show HN: ÆTHRA – 用代码创作音乐

2作者: CzaxTanmay6 天前
嗨 HN 我正在构建 ÆTHRA — 一种专门为创作音乐和情感音景而设计的编程语言。 ÆTHRA 并非专注于通用编程,而是一种纯粹的 DSL(领域特定语言),其代码直接代表音乐意图:节奏、情绪、和弦、进行、力度和乐器。 目标是让音乐创作感觉更像是在撰写故事或表达情感,而不是操控底层的音频 API。 关键理念: - 基于文本的音乐创作 - 和弦和进行作为一级概念 - 时间、节奏和结构由语言处理 - 专为氛围、电影、情感和极简音乐而设计 - 解释器用 C# (.NET) 编写 ÆTHRA 代码示例(简化): tempo 60 instrument guitar chord Am for 4 chord F for 4 chord C for 4 chord G for 4 这会生成一个缓慢、忧郁的进行,适合用于氛围或电影场景。 ÆTHRA 目前: - 生成 WAV 音频 - 支持音符、和弦、节奏、持续时间、力度 - 使用简单的解释器(无需外部 DAW 或 MIDI 工具) - 刻意保持极简和可读性 它**不是**: - 不是 DAW 的替代品 - 不是以 MIDI 为中心 我为什么创建它: 我想要一种以音乐为主要输出的语言——而不是事后才考虑的。一种介于代码、情感和声音设计之间的东西。 该项目是开源的,处于早期阶段(v0.8)。我主要在寻找: - 关于语言设计的反馈 - 值得添加的音乐功能的想法 - 对 PL 设计、音频或生成艺术感兴趣的人的想法 代码库:&lt;<a href="https:&#x2F;&#x2F;github.com&#x2F;TanmayCzax&#x2F;AETHRA" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;TanmayCzax&#x2F;AETHRA</a>&gt; 感谢阅读——很乐意回答问题或讨论想法。
查看原文
Hi HN<p>I’m building ÆTHRA — a programming language designed specifically for composing music and emotional soundscapes.<p>Instead of focusing on general-purpose programming, ÆTHRA is a pure DSL where code directly represents musical intent: tempo, mood, chords, progression, dynamics, and instruments.<p>The goal is to make music composition feel closer to writing a story or emotion, rather than manipulating low-level audio APIs.<p>Key ideas: - Text-based music composition - Chords and progressions as first-class concepts - Time, tempo, and structure handled by the language - Designed for ambient, cinematic, emotional, and minimal music - Interpreter written in C# (.NET)<p>Example ÆTHRA code (simplified):<p>tempo 60 instrument guitar<p>chord Am for 4 chord F for 4 chord C for 4 chord G for 4<p>This generates a slow, melancholic progression suitable for ambient or cinematic scenes.<p>ÆTHRA currently: - Generates WAV audio - Supports notes, chords, tempo, duration, velocity - Uses a simple interpreter (no external DAWs or MIDI tools) - Is intentionally minimal and readable<p>What it is NOT: - Not a DAW replacement - Not MIDI-focused<p>Why I made it: I wanted a language where music is the primary output — not an afterthought. Something between code, emotion, and sound design.<p>The project is open-source and early-stage (v0.8). I’m mainly looking for: - Feedback on the language design - Ideas for musical features worth adding - Thoughts from people into PL design, audio, or generative art<p>Repo: &lt;<a href="https:&#x2F;&#x2F;github.com&#x2F;TanmayCzax&#x2F;AETHRA" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;TanmayCzax&#x2F;AETHRA</a>&gt;<p>Thanks for reading — happy to answer questions or discuss ideas.