じ☆ve冰风 发表于 2026-7-29 15:30:28

♪♫ It's A Self-Playing Piano! (Pianola) ♪♫

ozu_Pianola.js 1.3
by ozubon

Introduction
This silly plugin attempts to create procedural music based on music theory.

The pianola creates a song for itself, with varying length, scale, key, chords and fullness. When it's done playing its song it will make a new one. And a new one. Forever.

Maybe use it for the piano player at the inn, for ambient adventure music or a haunted piano?

It's entirely a sound plugin but why not show it off with a piano dance:


https://www.youtube.com/embed/UcBpR9HnDXI


How to use
To make a pianola you need a parallel event.

Step 1: Add a Wait to the event, this adjusts the tempo of the pianola.
The Wait defines how long a quarter note should be.
So Wait set to 30 roughly translates to 120 bpm (allegro moderato), a very popular tempo.

The longer the Wait the slower the music. If you're unsure, set Wait to 30.
Without a Wait it will be a confused, cloudy and loud ooze of sound.

Step 2: Use script call and enter pianola()
That's it! The event will now play the piano!

Bonus: You can define a max volume, for example 50, like this: pianola(50)





How to install
Move the included audio files to your audio/se folder.
Put ozu_Pianola.js in your plugins folder and load it in the plugin manager as usual!


Terms of use
Credit me
data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7
Deed - Attribution-ShareAlike 4.0 International - Creative Commons



https://creativecommons.org/wp-content/themes/vocabulary-theme/vocabulary/favicon/favicon.ico                                        creativecommons.org                               



Free to use even commercially. If you want to publish an edit or include it in a plugin pack you must distribute it with the same terms of use.


Plugin
https://github.com/ozubon/tidbits/raw/master/ozu_Pianola.zip

Credit
ozubon​



本贴来自国际rpgmaker官方论坛作者:ozubon处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/its-a-self-playing-piano-pianola.120116/
页: [1]
查看完整版本: ♪♫ It's A Self-Playing Piano! (Pianola) ♪♫