Przejdź do treści
Biblioteka skilli
Inne · Konwersja i formaty

rfxgen

/rfxgen

Generuje efekty dźwiękowe w stylu retro, takie jak moneta, laser czy wybuch, i konwertuje parametry .rfx do plików WAV lub nagłówków C.

Repozytorium
jeo-skills ↗
Licencja
MIT
Ostatnia zmiana repozytorium
13.11.2026

Ocena i bezpieczeństwo

95/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena10 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
6
Skrypty
2
Komentarze HTML
0
Adresy URL w SKILL.md
3
Przestarzałość

Brak sygnałów. Repozytorium zmienione 13.11.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co sprawdzić przed instalacją
  • 2 skrypty w paczce. Przejrzyj je przed instalacją, bo Claude może je uruchomić.

Skrypty: scripts/generate.sh, scripts/setup.sh

Co robi i kiedy

Generuje efekty dźwiękowe w stylu retro, takie jak moneta, laser czy wybuch, i konwertuje parametry .rfx do plików WAV lub nagłówków C.

Oryginalny opis (EN)

Generate, convert, preview, and integrate retro game sound effects with raysan5/rfxgen. Use when a user needs coin, laser, explosion, power-up, hit, jump, or blip SFX; wants `.rfx` parameters converted to WAV/raw/C headers; needs batch CLI generation; or must build and troubleshoot rFXGen. Triggers on: rFXGen, rfxgen, sfxr, chiptune SFX, .rfx, procedural game sound, or sound preset.

Jak działa

  1. When to use this skill
  2. Instructions
  3. Examples
  4. Best practices
  5. References
Sekcje z nagłówków SKILL.md, w oryginale · 100 linii, 514 słów
Podgląd SKILL.md
---
name: rfxgen
description: >
  Generate, convert, preview, and integrate retro game sound effects with
  raysan5/rfxgen. Use when a user needs coin, laser, explosion, power-up, hit,
  jump, or blip SFX; wants `.rfx` parameters converted to WAV/raw/C headers;
  needs batch CLI generation; or must build and troubleshoot rFXGen. Triggers on:
  rFXGen, rfxgen, sfxr, chiptune SFX, .rfx, procedural game sound, or sound preset.
allowed-tools: Bash Read Write Edit Glob Grep
compatibility: rFXGen desktop binary, or CMake 3.11+ and a desktop C toolchain for source builds
metadata:
  tags: game-development, audio, sound-effects, procedural-audio, raylib, cli
  version: "1.0.0"
  source: https://github.com/raysan5/rfxgen
---

# rFXGen

## When to use this skill

- Generate compact retro/chiptune sound effects from named presets.
- Tune and save `.rfx` parameter files in the desktop UI.
- Convert `.rfx` into `.wav`, `.qoa`, `.raw`, or C header data.
- Batch sound generation or diagnose an rFXGen source build.

Route coding-agent notification packs to `game-sounds`. Route runtime event architecture and engine playback integration to an engine-specific audio skill after assets are generated.

## Instructions

### Step 1: Define the asset contract

Capture the gameplay event, preset family, output format, sample rate, sample size, channel count, duration/style constraints, loop behavior, naming, and runtime target. Start with one representative sound before generating a full kit.

Supported upstream generation presets at the inspected revision are:

```text
coin laser explosion powerup hit jump blip
```

Supported format values are sample rates `22050|44100`, sample sizes `8|16|32`, and channels `1|2`.

### Step 2: Prefer an existing binary or online tool

```bash
bash .agent-skills/rfxgen/scripts/setup.sh --check
```

Use the official WebAssembly tool for quick interactive design when local installation is unnecessary. Build from source only when a reproducible CLI or code change is required.

```bash
bash .agent-skills/rfxgen/scripts/setup.sh --clone
bash .agent-skills/rfxgen/scripts/setup.sh --build
```

The upstream CMake project fetches raylib when it is not already available, so a build may require network access and platform development libraries.

### Step 3: Generate through the validated wrapper

```bash
bash .agent-skills/rfxgen/scripts/generate.sh \
  --preset explosion --output assets/sfx/explosion.wav \
  --format 44100,16,1
```

The wrapper validates preset, extension, and format before invoking `rfxgen`. Set `RFXGEN_BIN` when the binary is not on `PATH`.

### Step 4: Convert or export deliberately

The native CLI accepts `.rfx` and supported audio input with `--input`, and output in `.wav`, `.qoa`, `.raw`, or `.h`. Keep `.rfx` alongside exported audio when future tuning matters. Use `.h` only when embedding bytes is appropriate for the target build; otherwise prefer an external asset pipeline.

### Step 5: Integrate as an event-driven kit

Name assets by abstract game event, not by implementation callsite. Keep loudness and frequency ranges distinct enough for rapid recognition. Test common overlap cases, repeated triggers, pause/resume, and low-volume playback.

### Step 6: Verify observable output

For every generated asset:

- confirm the file exists and is non-empty;
- inspect sample rate, bit depth, and channels with `ffprobe` or equivalent;
- audition on target hardware;
- confirm no clipping and no unintended long tail;
- verify the game event triggers the right semantic sound;
- preserve attribution/license information when distributing source or modified rFXGen code.

## Examples

### Generate a mono jump sound

```bash
bash .agent-skills/rfxgen/scripts/generate.sh \
  --preset jump --output jump.wav --format 22050,16,1
```

### Convert tuned parameters

```bash
rfxgen --input tuned-hit.rfx --output tuned-hit.wav --format 44100,16,1
```

## Best practices

1. Design one sound per semantic gameplay event.
2. Preserve `.rfx` sources for iteration.
3. Use mono unless stereo carries intentional information.
4. Audition repeated and overlapping playback, not just isolated files.
5. Pin source builds and retain the zlib license notice.

## References

- `references/cli-and-build.md` — CLI matrix, build notes, and verification checklist.
- `references/upstream.md` — inspected revision and license.
- [rFXGen](https://github.com/raysan5/rfxgen)
- [Official WebAssembly tool](https://raylibtech.itch.io/rfxgen)
Pliki w paczce (6)
  • SKILL.md 4 KB
  • evals/evals.json 1 KB
  • references/cli-and-build.md 1 KB
  • references/upstream.md 1 KB
  • scripts/generate.sh 2 KB
  • scripts/setup.sh 1 KB

Wersje

W bazie nie ma innych skilli o nazwie rfxgen.

Migawka bazy z 13.11.2026 · wersja paczki f2ed463c8e60 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100game-sfx
    Projektuje i renderuje efekty dźwiękowe do gier jako pliki WAV, z syntezatora lub nagrań CC0, i sprawdza istniejące dźwięki.
  • 100sound
    Generuje za darmo na lokalnym komputerze efekty dźwiękowe i muzykę do gier, mierzy głośność i wiąże dźwięki z grą.
  • 100plinkfx
    Projektuje, renderuje i mierzy dźwięki efektów do gier jako kod, z kontrolą głośności i wyjściem WAV lub OGG.
  • 100designing-retro-arcade-sound-kits
    Projektuje i waliduje oparte na zdarzeniach zestawy dźwięków w stylu retro arcade (efekty i jingle), w których kod gry wysyła abstrakcyjne zdarzenia, a warstwa syntezatora je odtwarza.
  • 95retro-music
    Komponuje, aranżuje i renderuje oryginalną muzykę w stylu ośmiobitowym i szesnastobitowym do gier, z partyturą w JSON i eksportem WAV.
  • 100game-audio
    Tworzy muzykę i efekty dźwiękowe proceduralnie w przeglądarce przez Web Audio API, bez zewnętrznych zależności.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.