Program idea: Drag and Drop converter

Discuss running non-Linux applications and plugins on Linux, for example via wine

Moderators: MattKingUSA, khz

Post Reply
tavasti
Established Member
Posts: 2047
Joined: Tue Feb 16, 2016 6:56 am
Location: Kangasala, Finland
Has thanked: 369 times
Been thanked: 208 times
Contact:

Program idea: Drag and Drop converter

Post by tavasti »

There is some windows VST plugins/stand alone programs for making drum beats / chord progressions which provide drag and drop for those midi sequences. MT Power Drum Kit is common example of such tool, and that is available for free: https://www.powerdrumkit.com/

Problem is that drag and drop is something which is not recognised by ardour/mixbus. I started to think, would it be possible to create simple program which could receive such DnD, and offer same stuff as linux midi drag and drop? DnD midi file from thunar/some other file manager works ok.

Is there anything like that available already, or suggestions for some example code? First step would be creating program that can receive those DnD's in, and then checking what it needs to be converted to suitable format.

Linux veteran & Novice musician

Latest track: https://www.youtube.com/watch?v=ycVrgGtrBmM

User avatar
milkii
Established Member
Posts: 477
Joined: Tue Jan 05, 2016 9:08 am
Location: Edinburgh
Has thanked: 92 times
Been thanked: 91 times
Contact:

Re: Program idea: Drag and Drop converter

Post by milkii »

In the LV2 host library realm, suli got d'n'd support at the start of this year

they/them ta / libreav.org / wiki.thingsandstuff.org/Audio and related pages / gh

tavasti
Established Member
Posts: 2047
Joined: Tue Feb 16, 2016 6:56 am
Location: Kangasala, Finland
Has thanked: 369 times
Been thanked: 208 times
Contact:

Re: Program idea: Drag and Drop converter

Post by tavasti »

milk wrote: Sat Jun 06, 2020 3:23 pm In the LV2 host library realm, suli got d'n'd support at the start of this year
Sorry my stupidity, but now I can't understand how this relates to my problem?

Linux veteran & Novice musician

Latest track: https://www.youtube.com/watch?v=ycVrgGtrBmM

User avatar
lilith
Established Member
Posts: 1698
Joined: Fri May 27, 2016 11:41 pm
Location: bLACK fOREST
Has thanked: 117 times
Been thanked: 57 times
Contact:

Re: Program idea: Drag and Drop converter

Post by lilith »

Did you try Reaper? Drag and Drop is working there from Thunar or even from Sononym. But Reaper also has a very good media browser with playback options, etc.
Kott
Established Member
Posts: 818
Joined: Thu Mar 21, 2013 12:55 am
Location: Vladivostok
Has thanked: 65 times
Been thanked: 122 times

Re: Program idea: Drag and Drop converter

Post by Kott »

I think tavasti talks about wine DnD implementation, which is not compatible with native hosts.
User avatar
milkii
Established Member
Posts: 477
Joined: Tue Jan 05, 2016 9:08 am
Location: Edinburgh
Has thanked: 92 times
Been thanked: 91 times
Contact:

Re: Program idea: Drag and Drop converter

Post by milkii »

I can't understand how this relates to my problem?
I realise now, given what Kott said, that you really need to define the problem better so it is not ambiguous :)

they/them ta / libreav.org / wiki.thingsandstuff.org/Audio and related pages / gh

tavasti
Established Member
Posts: 2047
Joined: Tue Feb 16, 2016 6:56 am
Location: Kangasala, Finland
Has thanked: 369 times
Been thanked: 208 times
Contact:

Re: Program idea: Drag and Drop converter

Post by tavasti »

Kott wrote: Sun Jun 07, 2020 11:18 am I think tavasti talks about wine DnD implementation, which is not compatible with native hosts.
Yeah, indeed :-)

Linux veteran & Novice musician

Latest track: https://www.youtube.com/watch?v=ycVrgGtrBmM

tavasti
Established Member
Posts: 2047
Joined: Tue Feb 16, 2016 6:56 am
Location: Kangasala, Finland
Has thanked: 369 times
Been thanked: 208 times
Contact:

Re: Program idea: Drag and Drop converter

Post by tavasti »

tavasti wrote: Sat Jun 06, 2020 1:40 pm There is some windows VST plugins/stand alone programs for making drum beats / chord progressions which provide drag and drop for those midi sequences. MT Power Drum Kit is common example of such tool, and that is available for free: https://www.powerdrumkit.com/

Problem is that drag and drop is something which is not recognised by ardour/mixbus. I started to think, would it be possible to create simple program which could receive such DnD, and offer same stuff as linux midi drag and drop? DnD midi file from thunar/some other file manager works ok.

Is there anything like that available already, or suggestions for some example code? First step would be creating program that can receive those DnD's in, and then checking what it needs to be converted to suitable format.
@milk, so if this was unclear, I try bit more:

I load MT Power Drum Kit ('for linux', it is windows VST still https://www.powerdrumkit.com/download76187.php) and use it wint LinVST in Linux Mixbus. When trying to drag'n'drop midi from that plugin to mixbus midi track, it is not accepted.

So what I am asking, would it be possible to write program that could receive that dnd from that windows plugin, and provide dnd in such format that I can drag it to my linux Mixbus.

Linux veteran & Novice musician

Latest track: https://www.youtube.com/watch?v=ycVrgGtrBmM

tavasti
Established Member
Posts: 2047
Joined: Tue Feb 16, 2016 6:56 am
Location: Kangasala, Finland
Has thanked: 369 times
Been thanked: 208 times
Contact:

Re: Program idea: Drag and Drop converter

Post by tavasti »

Testing, when running windows Reaper with wine, drag'n'drop from windows plugins works.

So it would be possible to dnd stuff from windows plugin to reaper, and export midi to file, and then import that to mixbus. Possible but not optimal workflow.
Last edited by tavasti on Mon Jun 08, 2020 6:35 am, edited 1 time in total.

Linux veteran & Novice musician

Latest track: https://www.youtube.com/watch?v=ycVrgGtrBmM

tavasti
Established Member
Posts: 2047
Joined: Tue Feb 16, 2016 6:56 am
Location: Kangasala, Finland
Has thanked: 369 times
Been thanked: 208 times
Contact:

Re: Program idea: Drag and Drop converter

Post by tavasti »

Tried this: https://www.tutorialspoint.com/pyqt/pyq ... d_drop.htm

Drop from thunar prints out <PyQt4.QtGui.QDragEnterEvent object at 0x7f541a226e10> and can be dropped. Drop from windows plugin shows that this object can't be dropped here. So I think it is impossible to create converter with PyQT4.

Linux veteran & Novice musician

Latest track: https://www.youtube.com/watch?v=ycVrgGtrBmM

Kott
Established Member
Posts: 818
Joined: Thu Mar 21, 2013 12:55 am
Location: Vladivostok
Has thanked: 65 times
Been thanked: 122 times

Re: Program idea: Drag and Drop converter

Post by Kott »

I guess it should be implemented in wine services, thus it will expose Windows DND to XDND.
Post Reply