-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* New: Added option to create a dsbundle as output format. * New: Added option to combine all detected multi-sample sources into one library or bundle. * Korg KMP * New: Proper support for stereo files. Turns out these workstations cannot play back real stereo files, therefore, a stereo file needs to be split into 2 KMP files. * New: Additionally, a KSC file is created to ease loading of stereo files. * New: Added 2 options to increase the volume. * New: Added option to split source groups into individual KMPs. * New: Increased sample rate limit to 48kHz (was 44.1kHz). * New: Improved creating unique folder names for KMP files. * Fixed: Zones needed to be ordered by their upper key-limit otherwise the file did not work and could even crash the workstation. * Fixed: Reverse playback state was not read correctly. * Fixed: Prevent several characters in file names which could crash the workstation. * MPC Keygroups * New: Added option to create up to 8 layers which is now supported with MPC Firmware 3.4. * SFZ * New: Added support for reading SFZ files which reference other SFZ files with #include statements. * New: Added option to (not) log unsupported SFZ opcodes. This is off by default since the warnings confused many users. * Soundfont 2 * New: Added options to add the filename and the preset number to the resulting destination file names.
- Loading branch information
Showing
51 changed files
with
1,266 additions
and
318 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
maven-local-repository/de/mossgrabers/uitools/1.5.0/uitools-1.5.0.jar.md5
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
maven-local-repository/de/mossgrabers/uitools/1.5.0/uitools-1.5.0.jar.sha1
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
maven-local-repository/de/mossgrabers/uitools/1.5.0/uitools-1.5.0.pom.md5
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
maven-local-repository/de/mossgrabers/uitools/1.5.0/uitools-1.5.0.pom.sha1
This file was deleted.
Oops, something went wrong.
Binary file renamed
BIN
+59.9 KB
...ssgrabers/uitools/1.5.0/uitools-1.5.0.jar → ...ssgrabers/uitools/1.5.1/uitools-1.5.1.jar
Binary file not shown.
1 change: 1 addition & 0 deletions
1
maven-local-repository/de/mossgrabers/uitools/1.5.1/uitools-1.5.1.jar.md5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
09477063a6de1ac0b1c789b64824ab0d |
1 change: 1 addition & 0 deletions
1
maven-local-repository/de/mossgrabers/uitools/1.5.1/uitools-1.5.1.jar.sha1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
f01aca241efc98a3d0334a205cebdbcfab4b1e78 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
maven-local-repository/de/mossgrabers/uitools/1.5.1/uitools-1.5.1.pom.md5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ed0bda4c5d97e01ed70c367e2dc59563 |
1 change: 1 addition & 0 deletions
1
maven-local-repository/de/mossgrabers/uitools/1.5.1/uitools-1.5.1.pom.sha1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
26612119e929ed2152b630b3402c70150884dc7b |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
maven-local-repository/de/mossgrabers/uitools/maven-metadata.xml.md5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
85a866c60b2d8c7010c69b79c74db380 | ||
9a1d20d6c1b747ea116c03b0fc0f9a97 |
2 changes: 1 addition & 1 deletion
2
maven-local-repository/de/mossgrabers/uitools/maven-metadata.xml.sha1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
cb7b0d543b2816fe806449cb5206e7980a714e45 | ||
015ae3e403453609eb19be94e9724088bca26c38 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
77 changes: 77 additions & 0 deletions
77
src/main/java/de/mossgrabers/convertwithmoss/core/ZoneChannels.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
// Written by Jürgen Moßgraber - mossgrabers.de | ||
// (c) 2019-2024 | ||
// Licensed under LGPLv3 - http://www.gnu.org/licenses/lgpl-3.0.txt | ||
|
||
package de.mossgrabers.convertwithmoss.core; | ||
|
||
import java.io.IOException; | ||
import java.util.List; | ||
|
||
import de.mossgrabers.convertwithmoss.core.model.IGroup; | ||
import de.mossgrabers.convertwithmoss.core.model.ISampleZone; | ||
|
||
|
||
/** | ||
* Enumeration for different channel configurations of zones. | ||
* | ||
* @author Jürgen Moßgraber | ||
*/ | ||
public enum ZoneChannels | ||
{ | ||
/** All zones reference mono samples. */ | ||
MONO, | ||
/** All zones reference stereo samples. */ | ||
STEREO, | ||
/** All zones reference mono samples which are either hard panned left or right. */ | ||
SPLIT_STEREO, | ||
/** Mixed mono and stereo samples. */ | ||
MIXED; | ||
|
||
|
||
/** | ||
* Checks for the channel setup across all zones of the given groups. | ||
* | ||
* @param groups The groups to check | ||
* @return The channel configuration | ||
* @throws IOException Could not detect the number of channels | ||
*/ | ||
public static ZoneChannels detectChannelConfiguration (final List<IGroup> groups) throws IOException | ||
{ | ||
Boolean stereo = null; | ||
Boolean splitMono = null; | ||
|
||
for (final IGroup group: groups) | ||
for (final ISampleZone sampleZone: group.getSampleZones ()) | ||
{ | ||
final boolean isStereo = sampleZone.getSampleData ().getAudioMetadata ().getChannels () == 2; | ||
if (stereo == null) | ||
{ | ||
// First iteration, store if mono or stereo | ||
stereo = Boolean.valueOf (isStereo); | ||
// If it is already stereo, it cannot be split stereo | ||
if (isStereo && splitMono == null) | ||
splitMono = Boolean.FALSE; | ||
continue; | ||
} | ||
|
||
// Mixed mono/stereo | ||
if (stereo.booleanValue () != isStereo) | ||
return ZoneChannels.MIXED; | ||
|
||
if (isStereo) | ||
continue; | ||
|
||
// Check for split stereo which needs to be hard panned left or right | ||
if (splitMono == null || splitMono.booleanValue ()) | ||
{ | ||
final double panorama = sampleZone.getPanorama (); | ||
splitMono = Boolean.valueOf (panorama <= -1 || panorama >= 1); | ||
} | ||
} | ||
|
||
if (stereo != null && stereo.booleanValue ()) | ||
return ZoneChannels.STEREO; | ||
|
||
return splitMono != null && splitMono.booleanValue () ? ZoneChannels.SPLIT_STEREO : ZoneChannels.MONO; | ||
} | ||
} |
Oops, something went wrong.