Marble Music Ball

Rafeh3D in Presets


## Quick start (1 minute)


1. **Install:** in Blender open **Edit › Preferences › Get Extensions**, click the small arrow at the top right, choose **Install from Disk…** and select `marble_music-0.12.0.zip` (or drag the zip into Blender). Make sure **Marble Music** is enabled.

2. **Open the panel:** in the 3D Viewport press **N** and click the **Marble** tab.

3. **Pick the format:** **Vertical** (1080×1920) or **Horizontal** (1920×1080), **24** or **30 fps**.

4. Click **Generate** and choose your song.

5. When the panel says **Done!**, press **Play**. The marble run, its camera and the song are already in your scene.


Nothing else to install: no Python packages, no FFmpeg. The add-on only uses what comes with Blender.


---


## What happens when you click Generate


The progress bar shows four steps. Blender stays usable the whole time, and you can cancel with the **Cancel** button or **Esc**.


1. **Read the song.** Blender decodes the file itself. The whole song is used and becomes a seamless loop.

2. **Find the notes.** Every attack in the sound becomes a candidate note. Noise, echoes and sound that is still ringing are discarded. The pitch of each note sets the colour of its bar, and high metallic sounds are marked as bells.

3. **Solve the path.** Note by note, the add-on finds the piece and position that bring the marble to the next note at exactly the right time, with real gravity (9.81 m/s²) and natural bounces, and without touching the pieces already placed. It keeps solving until the end of the song joins the start with no seam.

4. **Build the scene.** The pieces, the animated marble, a camera that follows it and the song go into a new collection, `Marble_<song>`. An automatic check looks for collisions and for bounces without a note.


## The pieces


| Piece | When it is used |

|---|---|

| **Bar** | A regular note. The marble hits the middle of a bar that sticks out of the wall. |

| **Corridor / zigzag ladder** | Fast runs of notes. The marble crosses from side to side between bars. |

| **Ramp** | A pause. The marble rolls into a curved ramp and leaves slowly for the next note. |

| **Straight rail / long rail** | Long pauses. The marble rolls along a long rail, almost straight or wavy. |

| **Hanging tubes** | Bell sounds, when **Tubes (bells)** is on. The marble strikes a tube hanging on threads, and the tube swings away. |


## The panel


| Control | What it does |

|---|---|

| **Vertical / Horizontal** | Output size: 1080×1920 (Shorts, Reels, TikTok) or 1920×1080 (YouTube). |

| **24 / 30 fps** | Frame rate of the animation. |

| **Tubes (bells)** | Plays bell and chime notes on hanging tubes. |

| **Detect quiet notes** | Keeps quiet repeats of a note that would otherwise be dropped as an echo. |

| **Remove notes** | Frame numbers of bars that have no note in the music. |

| **Generate** | Lets you pick a song and builds the animation. While it runs it becomes **Cancel**. |

| **Progress / status** | The current step. At the end it shows **Done!** and the number of notes. |

| **Songs in this file** | Every song generated in this .blend. Click one to show it, or use the trash icon to delete it (optionally with its stored files). |


## Options in detail


**Tubes (bells).** Turn this on when the song has bells or chimes: high, metallic, ringing sounds. Bells that are close together share a short rail, with one tube per note. A long run of bells gets a long wavy rail full of tubes. An echo of the same strike counts as one note. If a group of bells has no physical room for tubes, the add-on tries a single tube, and if that still does not fit, it plays those notes on bars.


**Detect quiet notes.** Turn this on if you hear a note that has no bar, usually a fast or quiet repeat of the same note. Leave it off for songs with a strong echo effect.


**Remove notes.** If you see a bar where the music has no note, type its frame number from the timeline, for example `438` (or several: `438 702`), and generate the same song again. The frame snaps to the nearest bar, up to 4 frames away. The list belongs to that song only.


---


## Several songs in one file


Every song you generate stays in the .blend, in its own collection. When you click a song in **Songs in this file**, only its animation is visible and only its sound plays. Its camera becomes active, and the end frame, frame rate and resolution switch to that song.


Generating the **same song with only the format changed** (vertical ↔ horizontal) reuses the solved path and takes a few seconds.


---


## Where the generated runs are stored


Each generation keeps its working files in the add-on's user folder, one sub-folder per song: a copy of the song (`source.wav`, `audio.wav`), the notes, the solved path and the scene (`scene.blend`), usually a few MB to a few tens of MB per song. By default the folder is `%APPDATA%\Blender Foundation\Blender\<version>\extensions\.user\user_default\marble_music\runs`.


**Edit › Preferences › Add-ons › Marble Music** shows the exact folder, how many runs it holds and how much space they take. From there you can choose another folder, **Open Runs Folder**, or **Delete All Stored Runs** (it asks first, and only deletes the add-on's own run folders). To delete one run's files, use the trash icon in **Songs in this file** and tick **Also delete its stored files**.


**Note:** the song you hear in a saved .blend is read from its run folder. If you delete a run's stored files, the animation stays in your .blend but its sound is lost, so only delete runs you no longer need.


---


## Rendering


The add-on builds the animation, and you render it like any Blender animation:


1. Select the song in **Songs in this file**.

2. Choose **Eevee** (fast) or **Cycles** (more realistic). Materials are simple and editable, so you can recolour the bars, the wall and the marble as you like.

3. In **Output Properties**, choose a video format **with audio**, for example FFmpeg video, MPEG-4 / H.264 with AAC audio.

4. Click **Render › Render Animation**.


The video is a perfect loop: the last frame leads straight into the first.


---


## How long it takes


These times were measured on a fast desktop PC with 24 threads. Laptops and CPUs with fewer cores take longer.


| Song | Length | Notes | Time |

|---|---|---|---|

| Short | 8 s | 23 | 17 s |

| Medium, with bells | 28 s | 86 | about 2 min |

| With long pauses | 33 s | 54 | 2 min |

| Long | 63 s | 147 | 1 min 10 s |


Songs with many long pauses or many bells take the longest.


---


## Troubleshooting


| Problem | Solution |

|---|---|

| A note you hear has no bar | Turn on **Detect quiet notes** and generate again. |

| A bar with no note | Put its frame in **Remove notes** and generate the same song again. |

| Bells played on bars | Turn on **Tubes (bells)**. Some bells may still go on bars if there is no room for a tube. |

| Status "Failed" | Try again with **Tubes** off. Songs with very long silences can fail; try a version of the song without them. |

| "Could not read the audio" | Convert the file to .wav or .mp3. |


## Known limits


- Notes less than about 1/20 s apart may become a single hit.

- In songs with a strong echo effect, some echoes may become bars. Use **Remove notes** for those.

- The marble may occasionally touch a rail by a centimetre or two.

- The add-on builds the animation. Rendering is done by Blender.


---


## Specifications


- **Blender:** 4.2 LTS or newer (tested with 4.2 LTS and 5.3)

- **Operating system:** Windows 64-bit (macOS and Linux are not supported yet)

- **Accepted files:** audio .mp3 .wav .flac .ogg .m4a .aac · video .mp4 .mov .mkv .webm (only the sound is used)

- **Output:** 1080×1920 or 1920×1080, 24 or 30 fps, the whole song as a seamless loop

- **Physics:** real gravity, scene in metres, bounces and rolling with energy loss

- **Dependencies:** none besides Blender

- **Included:** the add-on (.zip) and a complete PDF guide in English and Portuguese


## License and rights


The add-on is released under the GPL-3.0-or-later license, the same as Blender. You can use it in any project, including commercial videos, and the animations you create are yours. **You are responsible for having the rights to the music you use.**


**Support:** rafeh3d · [email protected]

$25

Have questions about this product?
Login to message

Details
Blender Extension Compatible Yes
Published 31 minutes ago
Blender Version 4.2 - 5.3
Extension Type Add-on
Render Engine Used Cycles, Eevee
License GPL