[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-109215":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":13,"contributorsCount":13,"subscribersCount":13,"size":13,"stars1d":13,"stars7d":15,"stars30d":16,"stars90d":13,"forks30d":13,"starsTrendScore":17,"compositeScore":18,"rankGlobal":10,"rankLanguage":10,"license":19,"archived":20,"fork":20,"defaultBranch":21,"hasWiki":22,"hasPages":20,"topics":23,"createdAt":10,"pushedAt":31,"updatedAt":32,"readmeContent":33,"aiSummary":34,"trendingCount":13,"starSnapshotCount":13,"syncStatus":35,"lastSyncTime":36,"discoverSource":37},109215,"RainGeneratorPy","AhmadHassan-BTed\u002FRainGeneratorPy","AhmadHassan-BTed","This repository will be used to develop a rain generator, actually it use white noises to simulate wind and have an integrated thunderstorm simulator.","",null,"Python",1617,0,1,15,21,6,57.6,"MIT License",false,"main",true,[24,25,26,27,28,29,30],"asmr","audio-generator","rain-generator","rain-maker","rainfall","thunderbolt","thunderstorm","2026-11-17 22:06:30","2026-11-23 17:53:14","# GenRainpy - Rain and Thunderstorm Simulator\n\n[![Python](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FPython-3.9%2B-blue?style=flat-square)](https:\u002F\u002Fwww.python.org\u002F)\n[![pygame](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fpygame-2.1%2B-green?style=flat-square)](https:\u002F\u002Fwww.pygame.org\u002F)\n[![License: MIT](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FLicense-MIT-yellow.svg?style=flat-square)](LICENSE)\n\nA 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.\n\n---\n\n## Features\n\n- **Parallax Rainfall:** Multi-depth rain layers with independent velocities, lengths, opacities, and wind deflection angles.\n- **Particle Splashes & Ripples:** Water droplets eject upward on surface collision with expanding ground ripples.\n- **Fractal Branching Lightning:** Midpoint displacement generation producing branching lightning bolts, multi-phase sky illumination, and camera trauma shake.\n- **Procedural Sound Synthesis:**\n  - Real-time lowpass filtered rain ambiance.\n  - Granular droplet impact synthesis using decaying sinusoids.\n  - Modulated wind noise responsive to current wind velocity.\n  - Realistic thunder playback with optional distance delay (speed of sound physics).\n- **Interactive Controls & Audio Mixer:**\n  - Live volume sliders for Master, Thunder, Rain Ambiance, Droplet Patters, and Wind.\n  - Five weather presets: Drizzle, Steady Rain, Thunderstorm, Gale Storm, and Window Rain.\n  - Auto-hiding HUD for uncluttered ambient viewing.\n- **Resolution & Fullscreen Support:** Dynamic layout recalculation supporting window resizing and seamless fullscreen toggling.\n\n---\n\n## Installation\n\n1. Clone the repository:\n   ```bash\n   git clone https:\u002F\u002Fgithub.com\u002Fazuletto\u002Frain_generator.git\n   cd rain_generator\n   ```\n\n2. Install dependencies:\n   ```bash\n   pip install -r requirements.txt\n   ```\n\n3. (Optional) Install in editable mode:\n   ```bash\n   pip install -e .\n   ```\n\n---\n\n## Usage\n\nRun via the main launcher:\n```bash\npython thunderstorm_simulator.py\n```\n\nOr via module execution:\n```bash\npython -m rain_generator\n```\n\n### CLI Arguments\n\n```bash\npython -m rain_generator --preset thunderstorm --fullscreen\npython -m rain_generator --preset drizzle --mute -W 1280 -H 720\n```\n\nAvailable options:\n- `-p`, `--preset`: Weather preset (`drizzle`, `steady`, `thunderstorm`, `gale`, `cozy`)\n- `-i`, `--intensity`: Intensity level (`Low`, `Medium`, `High`, `Extreme`)\n- `-f`, `--fullscreen`: Launch in fullscreen mode\n- `-m`, `--mute`: Launch with audio muted\n- `-W`, `--width`: Window width in pixels (default: 1080)\n- `-H`, `--height`: Window height in pixels (default: 720)\n- `--fps`: Target framerate (default: 60)\n- `--no-shake`: Disable camera shake on lightning\n- `-d`, `--duration`: Audio export duration in seconds (default: 60)\n- `-o`, `--export`: Output filepath to generate and export audio directly without GUI\n\n### Audio Track Export\n\nGenerate an ambient audio file of any custom length (e.g. 2 minutes of thunderstorm audio):\n\n```bash\npython thunderstorm_simulator.py --duration 120 --export thunderstorm_2m.wav --preset thunderstorm\n```\n\nYou can also click the **Export Audio** button in the top HUD (or press `G`) while running the simulator to open the interactive generator dialog.\n\n---\n\n## Controls & Keybindings\n\n| Key | Action |\n| --- | --- |\n| `F` \u002F `F11` | Toggle Fullscreen mode |\n| `Space` | Pause \u002F Resume simulation |\n| `M` | Mute \u002F Unmute audio |\n| `G` | Open Audio Track Generator dialog |\n| `H` | Toggle HUD visibility |\n| `L` | Trigger manual lightning bolt and thunder |\n| `1` - `5` | Switch presets (1: Drizzle, 2: Steady, 3: Storm, 4: Gale, 5: Window) |\n| `S` \u002F `Tab` | Open Settings and Audio Mixer dialog |\n| `?` \u002F `\u002F` | Open Keybindings help dialog |\n| `Esc` | Close open dialog or exit simulation |\n\n---\n\n## Testing\n\nRun the test suite using pytest:\n```bash\npytest\n```\n\n---\n\n## License\n\nThis project is licensed under the MIT License. See [LICENSE](LICENSE) for details.\n","RainGeneratorPy 是一个基于 Python 的程序化雨声与雷暴环境模拟器，用于生成视觉与听觉协同的沉浸式自然音景。核心功能包括多层视差降雨渲染、粒子级水滴飞溅与涟漪物理、分形闪电建模（含光照变化与镜头震颤）、以及实时音频合成（雨声氛围、滴落颗粒音、风噪调制、符合声速延迟的雷声）。项目采用 Pygame、NumPy 和 SciPy 实现，支持交互式参数调节、五种天气预设及无 GUI 音频导出。适用于 ASMR 制作、专注\u002F助眠场景、环境音效开发及多媒体教学演示。",2,"2026-11-24 04:36:12","CREATED_QUERY"]