git-moss / ConvertWithMoss

Converts multisamples from a source format (WAV, multisample, KMP, wavestate, NKI, SFZ, SoundFont 2) to a different destination format.
https://www.mossgrabers.de/Software/ConvertWithMoss/ConvertWithMoss.html
GNU Lesser General Public License v3.0
190 stars 13 forks source link

[Feature Request] MPC Keygroup: Concatenate samples into one big file #10

Closed Loadus closed 2 years ago

Loadus commented 2 years ago

Creating MPC Keygroups generates the .xpm file and a huge stack of separate sample files which clutter the folder (and make browsing for instruments slower on the standalone boxes). I suggest concatenating all the instrument samples into one huge sample file and just marking the sample frame position into the instrument file.

git-moss commented 2 years ago

Interesting but not sure if I will ever tackle this. Do you have a specification of the file format?

Loadus commented 2 years ago

On my own scripts I just create a WAV file and combine all the data from the short samples into the big one. Relatively straightforward. : )

git-moss commented 2 years ago

If all the samples have the same resolution and bit rate :-) Again: do you have a spec of the necessaty fields?

Loadus commented 2 years ago

Yes, concatenation would fail with error if one or more files would be in different format (very rare case, but possible).

I don't have any specs to give, I usually take the Wave file format from the first sample and just clump the data in there. In the MPC file, I add the accumulated frame amount (the sum of already concatenated Wave file frames) to <SliceStart></SliceStart> and <SliceEnd></SliceEnd> and <SliceLoop></SliceLoop>

You can grab an example file (and sample) from here >> https://drive.google.com/file/d/1MTrrb8KQVZ8XNPI5xl6E-rCwtRanu5eP/view?usp=sharing

spurkopf commented 2 years ago

Sorry if I meddle here. I don't know if that would work for drum instruments. - but ConvertWith Moss offers MPC keygroups that mostly need loop points, and I assume MPC only supports one loop per .wav.

git-moss commented 2 years ago

Will close this until there will be a publicly available documentation available.

Loadus commented 2 years ago

Sorry if I meddle here. I don't know if that would work for drum instruments. - but ConvertWith Moss offers MPC keygroups that mostly need loop points, and I assume MPC only supports one loop per .wav.

MPC programs support loop per slice, I have done this on my own export scripts. Very easy to do.