Garry's Mod

Garry's Mod

MIDI Playable Piano
21 Comments
oneinfiniteloop  [author] 12 Nov, 2024 @ 3:00pm 
You'll have to use sustain pedal if you have MIDI keyboard, or just use original Playable Piano addon if you use PC keyboard to play.
𝒱𝒾𝓁𝑜𝓈 6 Oct, 2024 @ 5:30am 
Hi, how to disable the option "- Enhanced sound processing: note sound is stopped when a key is released." Thanks
Because it cut very brutally the song sometimes.
mızradan 12 Apr, 2023 @ 3:54am 
baller
The Mingus (Mingunator) 4 Feb, 2023 @ 11:49am 
nevermind, it's in fun+games
The Mingus (Mingunator) 4 Feb, 2023 @ 11:47am 
im trying to use this, but it just isn't anywhere in my spawn menu
oneinfiniteloop  [author] 18 Dec, 2022 @ 11:45am 
If a file that corresponds to GMod branch in use is present and you're still getting the same error, try installing the Microsoft Visual C++ runtime libraries package (https://aka.ms/vs/17/release/vc_redist.x86.exe for default branch, https://aka.ms/vs/17/release/vc_redist.x64.exe for x86-64 branch).
oneinfiniteloop  [author] 18 Dec, 2022 @ 11:21am 
Apparently, there is a problem with your GMCL binary LUA module installation. If you're running Windows and you're using the default GMod branch, there should be a file called 'gmcl_midi_win32.dll' inside the garrysmod/lua/bin directory of your GMod installation directory. If you're using the x86_64 branch, there should be a file called 'gmcl_midi_win64.dll' in the same directory.
ahmed vengalbi 27 Nov, 2022 @ 3:41am 
Hi! I have a problem, I did everything as needed, but the console error "[MIDI Playable Piano] Couldn't include file 'includes\modules\midi.lua' - File not found (@lua/midi_interface/base.lua (line 150))
" Tell me if you know how to solve the problem. Thanks!
Cigarette 3 Sep, 2022 @ 4:41pm 
Just going to confirm, this lets me use a midi file, and play it on a PC keyboard?
oneinfiniteloop  [author] 3 Sep, 2022 @ 4:32pm 
If you're using Windows, try this: https://www.tobias-erichsen.de/software/loopmidi.html
Cigarette 2 Sep, 2022 @ 5:55pm 
I tried it allready and the one i had didnt work. If you got any tools that do this, i'm happy to use it
oneinfiniteloop  [author] 2 Sep, 2022 @ 2:01pm 
It would if your application can propagate key presses as DirectInput events to the game. otherwise I suggest you to use software which can emulate a MIDI input device, or one that can create MIDI loopback device (if you're using Linux, you most probably don't event need a separate software because you can just configure a MIDI loopback device using ALSA userspace tools).
Cigarette 16 Aug, 2022 @ 2:26pm 
I have a software, app, whatever you'd like to call it, that takes .midi files (The music, not the plug-n-play) and play the notes on the PC Keyboard. Will this work with this mod? I remember it didnt with the origional one.
oneinfiniteloop  [author] 21 Nov, 2021 @ 2:40pm 
Nice! Thanks a lot! :cozybethesda:
xdshot 21 Nov, 2021 @ 2:13pm 
https://youtu.be/HfKJS2iZ7G4

Video demo, I recored and played as client, then host played.
oneinfiniteloop  [author] 21 Nov, 2021 @ 2:03pm 
It's all right, I've tested MIDI input myself. I was worried that some clients might not hear all of the sounds played or they might be cut off in the middle.
xdshot 21 Nov, 2021 @ 2:00pm 
Keep in mind, I don't have midi device, i can't tell if it works
oneinfiniteloop  [author] 21 Nov, 2021 @ 1:54pm 
Thank you very much for testing this!
oneinfiniteloop  [author] 21 Nov, 2021 @ 1:53pm 
Yeah, this is most probably caused by the fade out effect (the SoundPatch.ChangeVolume call). I tried to minimise the chances by adding an artificail timeout which, when elapsed, prevents the fade out from being executed. Might try decreasing the NOTE_PLAY_TIME_MAX value in the cl_init.lua of the kbd_instrument_base entity.
xdshot 21 Nov, 2021 @ 1:44pm 
Overall, it works fine. Tested being connected to server. All keys were transmitting fine.
xdshot 21 Nov, 2021 @ 1:43pm 
Sometimes key is played on release