Garry's Mod

Garry's Mod

74 arvostelua
MIDI Playable Piano
   
Palkinto
Lisää suosikkeihin
Lisätty suosikkeihin
Poista suosikeista
Content Type: Addon
Addon Type: Entity
Addon Tags: Fun
Tiedostokoko
Julkaistu
Päivitetty
27.830 MB
20.11.2021 klo 6.57
3.6.2022 klo 15.35
8 muutosilmoitusta ( näytä )

Tilaa ladataksesi
MIDI Playable Piano

Kuvaus
This is a modified version of the Playable Piano addon (which is made by MacDGuy). It can be used safely alongside the original one.
Changes compared to original:
- Enhanced sound processing: note sound is stopped when a key is released.
- MIDI input support. This requires the GMCL MIDI[github.com] binary LUA module to be installed. See the Installation[github.com] section of the GMCL MIDI README file.

MIDI Input
If GMCL MIDI module is installed correctly, you should see the following messages in the Garry's Mod developer console:
Piano MIDI: GMCL MIDI module detected! Piano MIDI: GMCL MIDI module initialised. Use console commands midi_devices and midi_debug [0|1] to use.
To select MIDI device to use as input for the piano, execute the following command in the developer console:
midi_devices

Usage
Make sure you spawn the entity and not just the prop, otherwise you won't be able to play or hear anything!
You can adjust the velocity value for a MIDI key press that produces the highest volume sound by changing value of the
midi_vel_clamp
console variable. This is useful if you wish to get higher volume sounds out of gentle key presses.

Scripts
The source code of the LUA script library that drives this addon is available at GitHub[github.com].



A bunch of kudos go to Mr. xDShot and his friend for performing the initial testing of this addon.
If you like this creation, please, support the author of the original Playable Piano addon!
21 kommenttia
oneinfiniteloop  [tekijä] 12.11.2024 klo 15.00 
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.10.2024 klo 5.30 
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.4.2023 klo 3.54 
baller
The Mingus (Mingunator) 4.2.2023 klo 11.49 
nevermind, it's in fun+games
The Mingus (Mingunator) 4.2.2023 klo 11.47 
im trying to use this, but it just isn't anywhere in my spawn menu
oneinfiniteloop  [tekijä] 18.12.2022 klo 11.45 
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  [tekijä] 18.12.2022 klo 11.21 
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.11.2022 klo 3.41 
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.9.2022 klo 16.41 
Just going to confirm, this lets me use a midi file, and play it on a PC keyboard?
oneinfiniteloop  [tekijä] 3.9.2022 klo 16.32 
If you're using Windows, try this: https://www.tobias-erichsen.de/software/loopmidi.html