Garry's Mod

Garry's Mod

112 ratings
Auto Playable Piano
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Entity
Addon Tags: Fun
File Size
Posted
Updated
35.021 MB
6 Sep, 2024 @ 1:11am
1 Dec, 2024 @ 9:51am
5 Change Notes ( view )

Subscribe to download
Auto Playable Piano

In 1 collection by DeadDuck
Auto Playable Piano: Full
2 items
Description
Description
Modded version of Playable Piano, now with Auto-Play feature.
Forget about learning how to play songs, now piano can play by itself!

Map: https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=3325255822
This addon on Github: https://github.com/Dead0Duck/Autoplayable_Piano

Creadits
- MacDGuy: Author of original addons

How to add your own songs
On site https://piano.dead0duck.ru you can convert MIDI files to code for piano.
Once you got code, now you need to place it in right place.
In addons folder, you need create a new folder with any latinian name, as example "pianosong_rock", and inside of that folder create this folder structure: "lua/duck_piano/songs".
Inside of "songs" folder create a new folder with unique name(Your nickname as example) and now create a lua-file (also with unique name) inside of your folder.
Now we have something like this "lua/duck_piano/songs/deadduck/rock.lua". Place code from site in your lua file.

Known issues
- Unknown

ConCommands
duck_piano_reload - Reload songs list

For Devs
This addon adds only 1 hook:
Realm
Name
Description
Arg 1
Arg 2
Returns
Shared
duckPiano.CanAutoPlay
Can player use auto-play?
Player
Number - Song Id, you can retrive song name with duckInstruments.GetSongName()
Bool - If false then block access to auto-play

Note: If you wan't to use this piano as base for your's instrument, then look at sounds file names, instead of original addon there is all 88 piano keys. Example of file naming you can find here "sound\gmodtower\lobby\instruments\duckPiano".
Popular Discussions View All (4)
3
23 Nov, 2024 @ 2:51am
[EN] Suggestions
DeadDuck
2
1 May @ 8:28am
[RU] Предложения
DeadDuck
2
6 Oct, 2024 @ 9:50pm
[RU] Баги
DeadDuck
21 Comments
Kitsune Miku 26 Dec, 2024 @ 6:37am 
explanation on how to add songs worked perfectly, tysm!! it was so simple haha
Jesus is King! 16 Dec, 2024 @ 12:08pm 
Hey! Can you add snowy from undertale piano song? It would mean alot to me, thanks!
nixongame 15 Dec, 2024 @ 4:32am 
could you plz make a yt tutorial how to add own songs cuz my last brain cell cant understand shit from description
Bubblegum Steve 9 Dec, 2024 @ 2:12pm 
There should be a way to switch to an empty text box where you can either type or copy and paste as there are a lot of sheets online that are already for qwerty, and that would be much easier than do the code method
agentjay 8 Dec, 2024 @ 5:22pm 
GM's first official player piano.
Aaronkoski 29 Nov, 2024 @ 9:51pm 
can you put duet from omori please
alex.ramo06 28 Nov, 2024 @ 10:19am 
i love this but i learned long ago not to mess with code but i come before you humbled asking you
if you kindly add 2017PREY everything is going to be ok. thank you for your time
minos prime228 28 Nov, 2024 @ 9:14am 
WHAT THE
v2 28 Nov, 2024 @ 2:18am 
get v1 of the piano
DeadDuck  [author] 23 Nov, 2024 @ 2:50am 
Yep