Page 1 of 1

Suggestion for tools to use programming GUI + MIDI?

Posted: Thu Mar 21, 2019 9:19 am
by tavasti
Hi!

I was considering if I should try programming Midi drum pattern browser plugin or actually, stand alone program. Now searching suitable tools for it. What would be needeed:

- GUI, should have also support for drag'n'drop source, so that midi could be dragged from app to DAW
- Midi, so that there is libs for opening midi files & manipulating them in memory (change tempo)
- Midi connection, so that program can send midi to daw.

I can program python, perl, C/C++, bash, and most likely many more languages would work ok for me.

Sure making proper plugin would be great, but I don't think I have time & energy for that, but quick hack should be doable.

Re: Suggestion for tools to use programming GUI + MIDI?

Posted: Thu Mar 21, 2019 12:25 pm
by rghvdberg
Qt/Qml
or PyQT perhaps
I kinda started a simple sample file browser once with pyqt. Never got around to actually finish it.
https://github.com/rghvdberg/simple_sample_browser

Re: Suggestion for tools to use programming GUI + MIDI?

Posted: Thu Mar 21, 2019 1:00 pm
by tavasti
On irc wxPython was suggested.

Re: Suggestion for tools to use programming GUI + MIDI?

Posted: Thu Mar 21, 2019 1:36 pm
by SpotlightKid
You might one check Patroneo for some inspiration regarding the GUI, PyQT usage and sequencing. The program does not import or export MIDI, though, AFAIK.

Re: Suggestion for tools to use programming GUI + MIDI?

Posted: Thu Mar 21, 2019 8:23 pm
by tavasti
Comparing PyQT and wxPython:
https://opensource.com/article/17/4/pyq ... s-wxpython

Simple text editor is shorter in wxPython, and both implement drag & drop, so wxPython will be my choise. And in addition, I have programmed wxWidget code with C++ (loooong time ago).

Have to look midi libs, will it be https://github.com/vishnubob/python-midi or https://github.com/olemb/mido/

And then there is sending midi over jack midi.

Re: Suggestion for tools to use programming GUI + MIDI?

Posted: Fri Mar 22, 2019 12:29 pm
by Linuxmusician01
From a Linux user that cannot program if his life depended on it: please use C! The only applications that I could compile on Linux and that run stable are C applications. I think that programming in Python Ruby and what have you not is more pleasant for most programmers, but from a users perspective I hope that those languages die out like Latin and Sanskrit.

Sorry or the rant, but this has been bugging me for ages. I don't understand why somebody would want to program an application that's buggy and doesn't work anymore after a few years.

Re: Suggestion for tools to use programming GUI + MIDI?

Posted: Sat Mar 23, 2019 4:12 pm
by jonetsu
Linuxmusician01 wrote:From a Linux user that cannot program if his life depended on it: please use C! The only applications that I could compile on Linux and that run stable are C applications. I think that programming in Python Ruby and what have you not is more pleasant for most programmers, but from a users perspective I hope that those languages die out like Latin and Sanskrit.

Sorry or the rant, but this has been bugging me for ages. I don't understand why somebody would want to program an application that's buggy and doesn't work anymore after a few years.
People are still using C and not C++ ?

In any case, a C/C++ app can be made obsolete like any other.

Re: Suggestion for tools to use programming GUI + MIDI?

Posted: Sat Mar 23, 2019 6:16 pm
by Basslint
Linuxmusician01 wrote:From a Linux user that cannot program if his life depended on it: please use C! The only applications that I could compile on Linux and that run stable are C applications. I think that programming in Python Ruby and what have you not is more pleasant for most programmers, but from a users perspective I hope that those languages die out like Latin and Sanskrit.

Sorry or the rant, but this has been bugging me for ages. I don't understand why somebody would want to program an application that's buggy and doesn't work anymore after a few years.
Maybe you had a bad experience with some badly written programs :(

Python and Ruby in their current standard implementations are unsuitable for audio programming for a number of reasons (including the way they manage memory and their general performance) but using C does not make programs automatically better: if anything, if the coder is not skilled in low level programming (i.e. memory management, again :lol:) it's very likely that the program will have serious issues, such as segmentation faults.

Re: Suggestion for tools to use programming GUI + MIDI?

Posted: Sun Mar 24, 2019 9:48 am
by tramp
Development in python is nice for quick prototyping, or to write some development tools. But, for release a application it's a bad choice in my opinion as well. The ongoing development in python modules gives a shit on backward compatibility. Python development is really, really fast, so that only virtual envs could ensure that your prototype or the tool you've written still work next month the same way as last month.
And it could bite you really hard, when you realize that numpy comes now to a completely different result on a plain, simple math operationon with arrays then in the last release. :o
This may render your work useless really fast.