Remove unnecessary empty object assignments in Ableton builders
This commit is contained in:
@@ -80,7 +80,6 @@ function setLive10SampleReference(fileRef: any, sampleName: string) {
|
|||||||
fileRef.RelativePath = { RelativePathElement: pathElements };
|
fileRef.RelativePath = { RelativePathElement: pathElements };
|
||||||
fileRef.Name = { '@Value': sampleName };
|
fileRef.Name = { '@Value': sampleName };
|
||||||
fileRef.Type = { '@Value': 2 };
|
fileRef.Type = { '@Value': 2 };
|
||||||
fileRef.Data = {};
|
|
||||||
fileRef.RefersToFolder = { '@Value': 'false' };
|
fileRef.RefersToFolder = { '@Value': 'false' };
|
||||||
fileRef.SearchHint = {
|
fileRef.SearchHint = {
|
||||||
PathHint: { RelativePathElement: pathElements },
|
PathHint: { RelativePathElement: pathElements },
|
||||||
@@ -319,7 +318,6 @@ async function buildSimplerDevice(koTrack: AblTrack, abletonVersion: AbletonVers
|
|||||||
const sampleRef = device.Player.MultiSampleMap.SampleParts.MultiSamplePart.SampleRef;
|
const sampleRef = device.Player.MultiSampleMap.SampleParts.MultiSamplePart.SampleRef;
|
||||||
if (abletonVersion === '10') {
|
if (abletonVersion === '10') {
|
||||||
setLive10SampleReference(sampleRef.FileRef, koTrack.sampleName);
|
setLive10SampleReference(sampleRef.FileRef, koTrack.sampleName);
|
||||||
sampleRef.SourceContext = {};
|
|
||||||
} else {
|
} else {
|
||||||
sampleRef.FileRef.RelativePath['@Value'] = toNativePath(
|
sampleRef.FileRef.RelativePath['@Value'] = toNativePath(
|
||||||
`Samples/Imported/${koTrack.sampleName}`,
|
`Samples/Imported/${koTrack.sampleName}`,
|
||||||
|
|||||||
Reference in New Issue
Block a user