Garry's Mod

Garry's Mod

MIDI Player
37 Comments
Jcw87  [author] 24 Mar, 2023 @ 1:36pm 
CLuaRainBob 23 Mar, 2023 @ 1:31am 
github?
Jcw87  [author] 21 May, 2021 @ 9:41pm 
Technically, it does, but if the server didn't install it, you have to jump through a few hoops.


1. The server needs to enable sv_allowcslua.
2. Even with client-side Lua allowed, autorun scripts are not executed. You will have to run the loader yourself with lua_openscript_cl.
3. Due to bugs that existed in gmod's built-in VGUI controls at the time, I had to bundle my own versions of those controls with the bugs fixed. These files are normally executed by gmod automatically, except of course when you are trying to run client-side code that the server did not send you. You need to run these files too.
4. The spawnmenu initializes itself before you have a chance to enter anything into your console, so you will have to issue a spawnmenu_reload command.
GamePlayer9678 17 May, 2021 @ 9:23am 
So the MIDI player doesn't work in multiplayer servers apparently
GamePlayer9678 16 May, 2021 @ 10:35am 
i found out the problem don't worry about it
GamePlayer9678 16 May, 2021 @ 10:26am 
[MIDI Player] lua/midiplayer/player.lua:84: attempt to index global 'stream' (a nil value)
1. LoadMidiFromFile - lua/midiplayer/player.lua:84
2. OnDoubleClick - lua/midiplayer/ui.lua:72
3. DoDoubleClick - lua/vgui/dfilebrowser_midi.lua:183
4. OnClickLine - lua/vgui/dlistview.lua:410
5. unknown - lua/vgui/dlistview_line.lua:81
A little help please?
Strix Miramontes 27 Apr, 2020 @ 11:50am 
nice >:]
Souper 5 Apr, 2020 @ 8:34pm 
Feel free to make the HTML5 implementation, since Chromium's soon replacing Awesomium (if it hasn't already done so).
VMan_2002 13 Aug, 2019 @ 10:53pm 
GMod can use Chromium. Right click in library -> Properties -> Click Betas tab -> Choose "chromium -" from the drop-down box. Please make a version using chromium
fggfhfgdhjgdsf 24 Jun, 2019 @ 8:32am 
who's been drawing dicks
Beelzebub 27 Dec, 2018 @ 3:12am 
Thank you I got it working now :)
Jcw87  [author] 26 Dec, 2018 @ 7:03pm 
@Nate 'midiplayer\stream.lua' is absolutely included in the addon, so your download must be corrupted in some way. Make sure you delete the workshop file from your addons folder, as well as from steam's workshop downloads.

For this specific addon, that would be in 'steamapps\workshop\content\4000\935799359'
Beelzebub 18 Dec, 2018 @ 5:58am 
Whenever I try to use the midi player nothing happens and I get this lua error in the console

[MIDI Player] lua/midiplayer/soundfont.lua:310: attempt to index global 'stream' (a nil value)
1. LoadSF - lua/midiplayer/soundfont.lua:310
2. LoadMidi - lua/midiplayer/player.lua:71
3. onsuccess - lua/midiplayer/player.lua:98
4. unknown - lua/includes/modules/http.lua:29

also this

Couldn't include file 'midiplayer\stream.lua' (File not found) (@lua/autorun/midiplay_loader.lua (line 1))

[MIDI Player] lua/midiplayer/player.lua:84: attempt to index global 'stream' (a nil value)
1. LoadMidiFromFile - lua/midiplayer/player.lua:84
2. OnDoubleClick - lua/midiplayer/ui.lua:72
3. DoDoubleClick - lua/vgui/dfilebrowser_midi.lua:183
4. OnClickLine - lua/vgui/dlistview.lua:410
5. unknown - lua/vgui/dlistview_line.lua:81

What do?

I have tried reinstalling.
chomik ******* 4 Nov, 2018 @ 1:18am 
idi
Jcw87  [author] 3 Nov, 2018 @ 1:05pm 
@linux_canadajeff Your download must be corrupted in some way, as that file definitely exists. Try to get steam to download it again. You may have to delete it from both GarrysMod\garrysmod\addons and steamapps\workshop\content\4000\935799359
1986Hz 2 Nov, 2018 @ 3:20am 
Couldn't include file 'midiplayer\stream.lua' (File not found) (@lua/autorun/midiplay_loader.lua (line 1))
chomik ******* 27 Oct, 2018 @ 1:44am 
ohh 🅱️lyat ;c
chomik ******* 27 Oct, 2018 @ 1:44am 
Umm... I know.. I just it for someone that don't knows it... I know it Midi Player...
Jcw87  [author] 26 Oct, 2018 @ 9:32pm 
@Doge_Avaken Ok, there's a few thing wrong with what you just said. Why would you think I don't know about the chromium development branch when I literally just told you about it? Did you not get the hint earlier that this addon has nothing to do with internet video playback, thus your question about working with youtube is completely nonsensical? It's not a video player just because it has "Player" in the title. The addon plays MIDI files using the sound playback options available to Lua and has nothing to do with the internet or internet browsers. The current available version of the addon works just fine on either branch, and is not the yet-to-be-released HTML5 version I mention in the description.
chomik ******* 26 Oct, 2018 @ 4:11am 
Jcw87, if you want to your mod work, you need to download the beta version of Gmod.

Library > Garry's Mod > Abilities (or how its on england) > Versions > Chromium - now, ignore the code and click "Check the Code" and you now have the Chromium version, that equals you now have WORKING media players.
chomik ******* 26 Oct, 2018 @ 4:09am 
Yeah i know, I now using Chromium version of Garry's Mod, now it working.
Jcw87  [author] 25 Oct, 2018 @ 7:01pm 
It's not that gmod is "blocking HTML5". It uses a REALLY old chromium browser that just doesn't support many HTML5 features. It did support flash, but my understanding is that youtube stopped supporting flash somewhat recently, thereby leaving addons such as Cinema with no recourse for video playback. There is a development version with a newer chromium, but some video formats don't work with it due to patent bullshit.
chomik ******* 25 Oct, 2018 @ 5:01am 
It's so sad they Garry's Mod blocking HTML5 now :C


chomik ******* 25 Oct, 2018 @ 5:01am 
penis :C
Jcw87  [author] 25 Oct, 2018 @ 1:54am 
@Doge_Avaken Youtube serves up videos in streaming formats that have the full information of the visuals and sounds and will look and sound the same no matter where you play them, where as MIDI is more like sheet music that must be played by a musician, and can sound different depending on who is performing it. So, I'm gonna say that it doesn't work with Youtube.
chomik ******* 24 Oct, 2018 @ 12:38pm 
do it works with utube
Alarm 29 Aug, 2018 @ 3:20am 
ТРК ЗИМНЯЯ ВИШНЯ НЕ ГОРИТ
MEESTER SoupCan 7 Aug, 2018 @ 5:22am 
hmm.. okay.
Jcw87  [author] 6 Aug, 2018 @ 9:32pm 
I assume the playable piano is some other addon? One of the goals of this addon was to make it easy for other addon developers to control midi playback and receive note events. I don't actually remember if I added support for hooking note events or not, but in any case, you should be asking the author of the piano addon to make use of the midi player.
MEESTER SoupCan 5 Aug, 2018 @ 12:59pm 
Do you think you could add the ability to play these songs on the Playable Piano and it's counterparts?
Jcw87  [author] 23 Feb, 2018 @ 6:12pm 
It actually already supports soundfonts, but it takes a bit of effort to prepare it. I've updated the addon description with instructions on how to do it. Just be aware that Source has some really dumb limitations on how it can play sounds, and many soundfonts will sound horrible as a result.
a cow that likes cookies 20 Feb, 2018 @ 8:22am 
do you think you'll be able to add soundfont support in the future?
cactuschips 7 Jan, 2018 @ 3:55pm 
ok.
Jcw87  [author] 7 Jan, 2018 @ 3:44pm 
Yes. Addons cannot read files outside of the garrysmod folder.
cactuschips 7 Jan, 2018 @ 2:53pm 
Do they have to be in the garrysmod folder?
Jcw87  [author] 11 Jun, 2017 @ 8:19pm 
I'm well aware of that development. It is because of that development that I created an HTML5 MIDI player. As mentioned in the known issues section about volume, this HTML5 version works much better. However, that is on the dev branch only right now. Until CEF is on the main branch, it won't be in this addon. It sounds absolutely awful in Awesomium, and I don't want to subject anyone to that.
11 Jun, 2017 @ 2:46pm 
@Jcw87 Well, well, well, say hello to CEF! I am sure you have read about it.. Or not? :)
Either way, CEF is now available in GMod:

http://gmod.facepunch.com/commits/2017/April/
https://facepunch.com/showthread.php?t=1560743&p=52116156&viewfull=1#post52116156

How about to improve MIDI Player?