Ritournelle & Sottine Plugin Piano & Violin MV

Official plugin video

A real playable piano and violin for RPG Maker MV, controlled with the mouse.

The player opens a small notebook with the melody to reproduce, the map goes blurred and zoomed in the background, and he has to replay the sequence note by note. While the instrument is open, the event is paused, it resumes by itself when closed.

You launch everything in one line in Event > Script:

PianoRS.start(3, 12) for a piano, melody 3, that turns switch 12 ON only if the player succeeds.

ViolonRS.start(5, 48) for a violin, melody 5, switch 48.

You can also launch it without a switch: PianoRS.start(3). The second number is optional, it’s what lets you place 50 different pianos on the map, each with its own reward, without them overlapping.

For melodies, you have 8 slots, 32 notes max per melody. You write Do, Re, Mi, Fa, Sol, La, Si, High Do in order. If you leave it empty, the plugin already has 8 melodies ready that get harder and harder, from 8 notes for the small scale up to 32 notes for the full Ode to Joy.

Each key has its own sound. You can set whatever sound you want from audio/se for each note, with pitch and volume, or leave it empty and the plugin handles it with the default sounds Equip1, Item1, Decision1 etc. transposed so each note sounds different.

Visually it’s clean: instrument front-facing in the center, notebook on top, already played notes get grayed out, expected note goes red underlined. Piano has 8 keys, when you click it sinks, small notes fly away and everything vibrates slightly. Violin is more alive, bow follows the mouse, you hold click and drag over the strings, string vibrates, a bit of rosin dust flies. You can also switch violin to simple click mode in parameters if you want.

Everything is replaceable. Piano body, keys, violin body, strings, finger marks, notebook, small notes, bow, you drop your own PNG in img/pictures/ and the plugin cleans it by itself, it crops tight, removes white background if needed, resizes properly without stretching, keeps size during anims. It never touches your original image and if something breaks it logs instead of crashing. For custom bow, provide it horizontal, heel left, tip right, you just set length and hair height.

There is a timer with bar inside the notebook. By default duration is calculated automatically: base time + time per note x number of notes, a bit longer on violin because it’s slower to play. You can also set exact duration per melody or turn timer off completely. If melody is more than 16 notes, notebook turns page by itself.

If player makes too many mistakes, 2 by default, or time runs out, failure sound, he gets ejected from event, switch stays OFF and he can retry. If he succeeds, small success sound, switch you set in command goes ON, and rest of your event runs, door opening, item given, variable, whatever you want.

I used the lockpicking plugin I had created as a basis to design this plugin.