Page 1 of 1

copy/import parts from other project?

Posted: Sat Oct 29, 2011 3:04 pm
by prokophapala
Hi,
is it possible somehow to copy parts of song from other project?
I mean, I want to make one project which is like "library" of cool loops or melodies and than copy+paste these loops or melodies from this library to other projects.
An other think is that sometimes I have a song in several diferent versions, one version has a good begining, other part has a good end, so I want to combine them in the final version. I realy don't want to re-draw it note-by-note.

I tried open 2 instances of LMMS and use from one project Ctrl-C and Ctrl-V to the other. This seems not to work.
I was also looking for some import/export fatures. But it can be exported just to WAV, not MIDI.
Also it look like there is nothing like Project > Merge or Edit>Copy from

Re: copy/import parts from other project?

Posted: Sat Oct 29, 2011 4:07 pm
by prokophapala
OK, I found 2 solutions to do this

1) if you want just copy short pattern, you can just
- Open project 1
- right-click + Copy
- Open project 2
- write a emply patern
- Right click + Paste
... it's not very convenient or quick, but it's fine for copying just few short pieces

2) if you want copy big part of project (like several tracks or last-half of entire song ) you can do it this way
- Save project as *.mpt (This is kind of houman readable XML)
- Open *.mpt in text editor and copy xml description of the whole track... for example

Code: Select all

<track muted="0" type="0" name="Boom.ds">
..
..
</track>
- Save it as *.xml
- go in LMMS and open this *.xml
I'm not sure why it's not possible to open *.mpt directly, but nevermind, the fact that you can save and load your project in XML format is very convinient.
It would be easy to make some scripts in python or so, to work-arround some feratures which are not implemented in LMMS

I hope this can be helpfull for somebody who have simlirad problem as I.

If you know however some more convenient way how to exchange misical data between difernet projects please write it here,
thanks

Re: copy/import parts from other project?

Posted: Sun Jul 03, 2016 12:07 am
by John Malpas
How did you get LMMS to read the XML file?

I followed your steps. I have the .mpt files from
two projects, and can add a track from one to the other
via text. Then I save the result as an XML file, but
I don't know how to get LMMS to read it.

I sure wish there was an easier way to move tracks
between projects.

Re: copy/import parts from other project?

Posted: Sun Jul 03, 2016 2:13 am
by grejppi
prokophapala wrote:I'm not sure why it's not possible to open *.mpt directly
That is because mpt is the extension for a special case of project files, namely templates, which are not meant to be opened directly. The standard extension for uncompressed projects is mmp, which LMMS can read and write just fine.

Re: copy/import parts from other project?

Posted: Sun Jul 03, 2016 12:31 pm
by musikbear
prokophapala wrote:Hi
Welcome to the forum prokophapala! First, For you, all important links:
http://lmms.io/forum/viewtopic.php?f=1&t=4740
And a few rules for posting and using the right sub-forum :)

-And this goes out to you too John Malpas
Also you are welcome to our forum :)
is it possible somehow to copy parts of song from other project?
Yes and even simpler that the ones already discussed :)
We will work with 2 projects
1) Donor, That is the project that has the elements that we like to copy to the other project
2) Recipient That is the project that we want to paste elements in

We need a pc that can manage to open both Donor and Recipient
Here is a tip, in that respect:
LMMS uses almost NO resources if the project isent replayed!
So loading 2 or even more projects, but NOT playing any at all, that is most often not a problem, but it depends on which instruments, and especially VSTs that is used !

When both projects are open, arrange the 2 project-windows with song-editor opened and easy access to both -A wide screen is a benefit.

In Donor:
Hold Ctrl place and press left-mouse on the move-track-area Grip Handle.
That is the left-most 'rubberish' part of the track-button
Image
https://lmms.io/wiki/index.php?title=Song_Editor

Hold Ctrl and left-mouse, and drag the whole track into Recipient
Release mouse.

You will now not only have a exact copy of the Donor-preset, but also all notes in that track, inserted into Recipient.
Save Recipient, Close Donor.
You can do this as many times you like, and you can even drag tracks to B&B-editor. Here you need to press and hold Ctrl+Sh.

Better add all this to wiki now :p