MIDI Input

Do you have questions about writing plugins or scripts in Python? Meet the coders here.
Post Reply
leinad
Posts: 2
Joined: Sun Nov 14, 2010 12:38 pm

MIDI Input

Post by leinad » Sun Nov 14, 2010 2:23 pm

Hi,

I was using a simple Python script to use my Korg nanoPAD to issue commands with the foot (mouse clicks, next news item, and so on), and now moved it over to EG.

It's a relatively big download (766 KB) because it has got a slightly modified version of pygame included.

I'd love to get some feedback.

Greetings,
Daniel
MidiInput.png
Attachments
Midi Input.zip
(766.57 KiB) Downloaded 475 times

mrechtien
Posts: 1
Joined: Thu Mar 03, 2011 10:19 am

Re: MIDI Input

Post by mrechtien » Thu Mar 03, 2011 11:04 am

Hi Daniel,

your plugin is exactly what I was looking for!

I just unpacked the archive into plugins/MidiInput/ and did a "dry-test" by adding the Plugin in EG.
The plugin threw an exception during initialization saying "RuntimeError: pygame.midi not initialised."
(Actually no midi device was connected to the computer...)

The complete stacktrace is:
Traceback (most recent call last):
File "EventGhost.pyw", line 31, in <module>
File "X:\Programs\EventGhost\eg\__init__.py", line 109, in Main
eg.Tasklet(eg.app.MainLoop)().run()
File "X:\Programs\EventGhost\eg\Classes\TaskletDialog.py", line 41, in ProcessingTask
self.Configure(*args, **kwargs)
File "X:\Programs\EventGhost\eg\Classes\ConfigDialog.py", line 126, in Configure
self.item.Configure(*args)
File "X:\Programs\EventGhost\eg\Classes\ActionItem.py", line 107, in Configure
return self.executable.Configure(*args)
File "X:\Programs\EventGhost\plugins\MidiInput\__init__.py", line 106, in Configure
devices = get_devices()
File "X:\Programs\EventGhost\plugins\MidiInput\__init__.py", line 17, in get_devices
for i in range( pygame.midi.get_count() ):
File "X:\Programs\EventGhost\plugins\MidiInput\pygame\midi.py", line 107, in get_count
_check_init()
File "X:\Programs\EventGhost\plugins\MidiInput\pygame\midi.py", line 98, in _check_init
raise RuntimeError("pygame.midi not initialised.")
RuntimeError: pygame.midi not initialised.
Traceback (most recent call last):
File "X:\Programs\EventGhost\eg\Classes\MainFrame\__init__.py", line 344, in FuncWrapper
func()
File "X:\Programs\EventGhost\eg\Utils.py", line 176, in Wrapper
eg.Tasklet(func)(*args, **kwargs).run()
TaskletExit


Do you have any idea what went wrong?

Thanks in advance!

Best regards,
Markus

biukboard
Posts: 2
Joined: Thu Dec 12, 2013 6:53 pm

Re: MIDI Input

Post by biukboard » Sat Feb 15, 2014 3:14 pm

Nice and useful plugin. Thanks a lot for development! Great idea.

ubu_pl
Posts: 1
Joined: Mon Aug 01, 2016 7:49 pm

Re: MIDI Input

Post by ubu_pl » Mon Aug 01, 2016 8:00 pm

Hi

I've corrected __init__.py (plugin attached).
Now it initialises properly.

--
Radek
Attachments
MidiInput_160801.zip
(767.54 KiB) Downloaded 214 times

bazis
Posts: 1
Joined: Fri Jun 14, 2019 11:59 am

Re: MIDI Input

Post by bazis » Fri Jun 14, 2019 12:01 pm

The selected attachment does not exist anymore.

Post Reply