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
Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details
If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.
If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.
MIDI Input
MIDI Input
- Attachments
-
- Midi Input.zip
- (766.57 KiB) Downloaded 531 times
Re: MIDI Input
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
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
Re: MIDI Input
Nice and useful plugin. Thanks a lot for development! Great idea.
Re: MIDI Input
Hi
I've corrected __init__.py (plugin attached).
Now it initialises properly.
--
Radek
I've corrected __init__.py (plugin attached).
Now it initialises properly.
--
Radek
- Attachments
-
- MidiInput_160801.zip
- (767.54 KiB) Downloaded 267 times
Re: MIDI Input
The selected attachment does not exist anymore.