? Spectra Audio
Spectra Audio 是一款高性能、实时的音频分析与 3D 可视化引擎,专为下一代 Minecraft 服务器设计。它在高保真音频处理与 Minecraft 世界之间架起桥梁,允许服务器管理员创建沉浸式的音乐体验、现场音乐会和节奏环境,而无需任何客户端模组。
通过利用专用的 FFT(快速傅里叶变换) 引擎和自定义的 OpenAL 播放系统,Spectra 分析你音频中的每一个节拍、频率和跳跃,并将它们转化为令人惊叹的方块和粒子动画。
? 视频展示
? 主要特性
- 实时音频分析: 高性能频率跟踪(低音、军鼓和踩镲检测),具有可自定义的攻击/衰减平滑度,以实现流畅的动画效果。
- 动态资源包托管: 内置 HTTP 服务器,自动编译并向玩家提供资源包。导入新的
.ogg 文件,玩家即可即时接收——无需重启服务器。
- 3D 世界空间可视化器: 强大的“预设”系统,允许你创建复杂的形状(龙卷风、螺旋线、圆环、波浪),使其对特定频段产生反应。
- 智能渲染模式:
- 静态: 非常适合舞台和固定结构。
- 以玩家为中心: 跟随玩家移动或在使用鞘翅飞行时保持可视化的可视化器。
- 基于 Web 的控制台: 内置 Web 界面,用于监控音频频谱、追踪“连击数”并远程控制系统音量。
- 异步引擎: 音频处理与分析从主服务器线程中分离出来,确保高强度音乐不会影响你的 TPS。
?️ 工作原理
- 导入: 将
.ogg 文件放入导入文件夹,并使用 /spectra import。插件负责文件的哈希计算、打包和托管。
- 处理: 引擎解码音频并运行实时 FFT 分析器以提取“响应信号”。
- 可视化:
VisualizerManager 获取这些信号,并根据你选择的预设更新世界中的方块和粒子。
? 兼容性与要求
Spectra Audio 旨在突破现代服务器环境的极限:
- 软件: 完全兼容 Folia。
- Minecraft 版本: 支持 Minecraft 26.1.2。
- Java 版本: Java 25。
? 命令与用法
| 命令 |
描述 |
/spectra import <file.ogg> <id> |
注册新的音频文件并更新资源包。 |
/spectra removesound <id> |
删除声音,更新包,或在包为空时卸载它。 |
/spectra play <id> |
开始为拥有活跃视觉效果的所有玩家播放音频。 |
/spectra stop |
停止当前音频并终止所有活跃的可视化器。 |
/spectra sync <duration> |
调整你正在播放的歌曲的时间同步。 |
| `/spectra visuals create <preset> [id] |
在你所在的位置启动一个响应的 3D 可视化器。 |
/spectra visuals stop [id] |
停止特定的可视化器,如果未提供 ID,则停止所有。 |
/spectra reload |
热重载配置、阈值和包状态。 |
⚙️ 安装说明
请确保你在 config.yml 中定义的端口(默认情况下,资源包服务器为 8080,Web 可视化器为 8081)在你的主机防火墙上是开放的,以允许玩家连接。
Spectra Audio 将你的服务器变成一个鲜活跳动的音乐可视化器。无论你是举办数字音乐节还是增强大厅氛围,Spectra 都提供了让你的世界随之起舞的工具。
? Spectra Audio
Spectra Audio is a high-performance, real-time audio analysis and 3D visualization engine designed for the next generation of Minecraft servers. It bridges the gap between high-fidelity audio processing and the Minecraft world, allowing server owners to create immersive musical experiences, live concerts, and rhythmic environments without requiring any client-side mods.
By utilizing a dedicated FFT (Fast Fourier Transform) engine and a custom OpenAL playback system, Spectra analyzes every beat, frequency, and jump in your audio to translate them into stunning block and particle animations.
? Video Showcase
? Key Features
- Real-Time Audio Analysis: High-performance frequency tracking (Bass, Snare, and Hat detection) with customizable attack/decay smoothing for fluid animations.
- Dynamic Resource Pack Hosting: Built-in HTTP server that automatically compiles and serves a Resource Pack to players. Import a new
.ogg file, and players receive it instantly—no server restarts required.
- 3D World-Space Visualizers: A robust "Preset" system allowing you to create complex shapes (Tornados, Helixes, Rings, Waves) that react to specific frequency bands.
- Intelligent Rendering Modes:
- Static: Perfect for stages and fixed structures.
- Player-Centric: Visualizers that follow players while walking or flying with Elytras.
- Web-Based Dashboard: A built-in web interface to monitor the audio spectrum, track "Hit Streaks," and control engine volume remotely.
- Asynchronous Engine: The audio processing and analysis are decoupled from the main server thread, ensuring that high-intensity music does not impact your TPS.
?️ How it Works
- Import: Drop an
.ogg file into the import folder and use /spectra import. The plugin handles the hashing, packaging, and hosting of the file.
- Process: The engine decodes the audio and runs a real-time FFT analyzer to extract "Reactive Signals."
- Visualize: The
VisualizerManager takes these signals and updates blocks and particles in the world based on your chosen preset.
? Compatibility & Requirements
Spectra Audio is built to push the boundaries of modern server environments:
- Software: Fully compatible with Folia.
- Minecraft Version: Supports Minecraft 26.1.2 .
- Java Version: Java 25.
? Commands & Usage
| Command |
Description |
/spectra import <file.ogg> <id> |
Registers a new audio file and updates the resource pack. |
/spectra removesound <id> |
Deletes a sound, updates the pack, or unloads it if empty. |
/spectra play <id> |
Starts audio playback for all players with active visuals. |
/spectra stop |
Stops the current audio and terminates all active visualizers. |
/spectra sync <duration> |
Adjust the timing of the song you are on. |
/spectra visuals create <preset> [id] |
Launches a reactive 3D visualizer at your location. |
/spectra visuals stop [id] |
Stops a specific visualizer or all if no ID is provided. |
/spectra reload |
Hot-reloads configuration, thresholds, and pack state. |
⚙️ Installation Note
Ensure the ports defined in your config.yml (default 8080 for the pack server and 8081 for the web visualizer) are open on your host's firewall to allow player connections.
Spectra Audio turns your server into a living, breathing music visualizer. Whether you are hosting a digital festival or enhancing a lobby, Spectra provides the tools to make your world dance.
评论 0
登录后参与评分
还没有评论,来抢沙发吧