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.Name = { '@Value': sampleName };
|
||||
fileRef.Type = { '@Value': 2 };
|
||||
fileRef.Data = {};
|
||||
fileRef.RefersToFolder = { '@Value': 'false' };
|
||||
fileRef.SearchHint = {
|
||||
PathHint: { RelativePathElement: pathElements },
|
||||
@@ -319,7 +318,6 @@ async function buildSimplerDevice(koTrack: AblTrack, abletonVersion: AbletonVers
|
||||
const sampleRef = device.Player.MultiSampleMap.SampleParts.MultiSamplePart.SampleRef;
|
||||
if (abletonVersion === '10') {
|
||||
setLive10SampleReference(sampleRef.FileRef, koTrack.sampleName);
|
||||
sampleRef.SourceContext = {};
|
||||
} else {
|
||||
sampleRef.FileRef.RelativePath['@Value'] = toNativePath(
|
||||
`Samples/Imported/${koTrack.sampleName}`,
|
||||
|
||||
Reference in New Issue
Block a user