跳到正文

正在自动登录…

← 返回项目列表

AhmadHassan-BTed/rain_generator

雨声模拟音频导出

这是一个用Python和Pygame构建的程序化雨和雷暴模拟器,提供多图层视差降雨、粒子飞溅、分形闪电和实时程序化音频合成,适合用于放松、环境音生成或视觉演示。

AI 中文解读 · 根据仓库描述与 README 生成 · 2026/11/3 18:56:48 · 查看原文

普通Python应用与服务Fork 仓库
累计 Stars
1,577
当前热度
7~30 天 · 小火
仓库创建时间
打开 GitHub ↗

选用指南

AI 根据 README 整理 · 2026/11/3 18:56:48

适用场景

适合需要生成雨声或雷暴环境音的场景,如放松、冥想或背景音效,也可用于视觉演示。

查看 README 依据
## Features - **Parallax Rainfall:** Multi-depth rain layers with independent velocities, lengths, opacities, and wind deflection angles. - **Particle Splashes & Ripples:** Water droplets eject upward on surface collision with expanding ground ripples. - **Fractal Branching Lightning:** Midpoint displacement generation producing branching lightning bolts, multi-phase sky illumination, and camera trauma shake. - **Procedural Sound Synthesis:** - Real-time lowpass filtered rain ambiance. - Granular droplet impact synthesis using decaying sinusoids.
- `-o`, `--export`: Output filepath to generate and export audio directly without GUI ### Audio Track Export Generate an ambient audio file of any custom length (e.g. 2 minutes of thunderstorm audio): ```bash python thunderstorm_simulator.py --duration 120 --export thunderstorm_2m.wav --preset thunderstorm ``` You can also click the **Export Audio** button in the top HUD (or press `G`) while running the simulator to open the interactive generator dialog. --- ## Controls & Keybindings | Key | Action | | --- | --- | | `F` / `F11` | Toggle Fullscreen mode |
使用方式

通过命令行运行主程序或模块,支持多种参数如预设、强度、全屏、静音、分辨率、帧率、音频导出等。

查看 README 依据
```bash git clone https://github.com/azuletto/rain_generator.git cd rain_generator ``` 2. Install dependencies: ```bash pip install -r requirements.txt ``` 3. (Optional) Install in editable mode: ```bash pip install -e . ``` --- ## Usage Run via the main launcher: ```bash python thunderstorm_simulator.py ``` Or via module execution: ```bash python -m rain_generator ``` ### CLI Arguments ```bash python -m rain_generator --preset thunderstorm --fullscreen python -m rain_generator --preset drizzle --mute -W 1280 -H 720 ``` Available options:
- `-p`, `--preset`: Weather preset (`drizzle`, `steady`, `thunderstorm`, `gale`, `cozy`) - `-i`, `--intensity`: Intensity level (`Low`, `Medium`, `High`, `Extreme`) - `-f`, `--fullscreen`: Launch in fullscreen mode - `-m`, `--mute`: Launch with audio muted - `-W`, `--width`: Window width in pixels (default: 1080) - `-H`, `--height`: Window height in pixels (default: 720) - `--fps`: Target framerate (default: 60) - `--no-shake`: Disable camera shake on lightning - `-d`, `--duration`: Audio export duration in seconds (default: 60)
部署要求

需要Python 3.9或更高版本,以及pygame 2.1或更高版本。

查看 README 依据
# GenRainpy - Rain and Thunderstorm Simulator [![Python](https://img.shields.io/badge/Python-3.9%2B-blue?style=flat-square)](https://www.python.org/) [![pygame](https://img.shields.io/badge/pygame-2.1%2B-green?style=flat-square)](https://www.pygame.org/) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg?style=flat-square)](LICENSE) A procedural rain and thunderstorm simulator built with Python, Pygame, NumPy, and SciPy. Features multi-layer parallax rainfall, particle splash physics, fractal branching lightning strikes, and real-time procedural audio synthesis. ---

README

正在加载 README…

收录信息

仓库创建时间
2026/10/27 15:07:03
首次达标收录
2026/11/3 18:51:51
统计更新时间
2026/11/3 20:31:30

按创建时长与累计 Stars 判断等级。首次达标收录后,即使未达当前门槛仍保留;累计 Stars 和仓库状态会定期更新。确认只有 README 及辅助文件的仓库会停止公开。

模型评估

普通加权总分 3.6 / 5

新颖度
3.5
实用价值
3.4
成熟度
4.7
实质含量
3.3

由 Jev 模型根据仓库描述与 README 评估,2026/11/3 18:51:51 生成。评分仅供参考,不是代码、安全或许可证审查;热度等级另按创建时长与累计 Stars 计算。

仓库信息

最近推送
2026/10/28 22:09:30
许可证标识
MIT
Fork 数
0
当前状态
未归档 · Fork 仓库

收录记录

按创建时长与累计 Stars 首次收录:小火
首次发现项目