@@ -327,22 +327,6 @@ private Optional<String> createPreset (final List<IInstrumentSource> instrumentS
327327 paramsElement .setAttribute (entry .getKey (), entry .getValue ());
328328 paramsElement .setAttribute (Music1010Tag .ATTR_INTERPOLATION_QUALITY , this .settingsConfiguration .isInterpolationQualityHigh () ? "1" : "0" );
329329
330- // TODO Ask 1010music about these 3 parameters:
331-
332- // The following parameters (panning, gain and pitch) are only available on instrument
333- // level
334- // Panning: -100..100% -> -1000..1000
335- // final Optional<Double> globalPanning = multisampleSource.getGlobalPanning ();
336- // if (globalPanning.isPresent ())
337- // paramsElement.setAttribute (Music1010Tag.ATTR_PANNING, Integer.toString ((int)
338- // Math.clamp (globalPanning.get ().doubleValue () * 1000.0, -1000.0, 1000.0)));
339-
340- // -12..12dB -> -12000..12000
341- // gaindb="4300"
342- // -24..24 -> -24000..24000
343- // pitch="-19350"
344- // panpos="-352"
345-
346330 // Add amplitude envelope
347331 if (!groups .isEmpty ())
348332 {
@@ -448,6 +432,17 @@ private void createSample (final Document document, final String presetPath, fin
448432 final String filename = this .createSampleFilename (zone , 0 , ".wav" );
449433 paramsElement .setAttribute (Music1010Tag .ATTR_FILENAME , presetPath + filename );
450434
435+ // IMPROVE The following parameters (panning, gain and pitch) are only available on
436+ // instrument level (1010music needs to implement it on sample level first)
437+ // Panning: -100..100% -> -1000..1000
438+ // paramsElement.setAttribute (Music1010Tag.ATTR_PANNING, Integer.toString ((int) Math.clamp
439+ // (zone.getPanning () * 1000.0, -1000.0, 1000.0)));
440+ // -12..12dB -> -12000..12000
441+ // gaindb="4300"
442+ // -24..24 -> -24000..24000
443+ // pitch="-19350"
444+ // panpos="-352"
445+
451446 /////////////////////////////////////////////////////
452447 // Key & Velocity attributes
453448
0 commit comments