|
17 | 17 | #include <dspxmodelORM/Phoneme.h> |
18 | 18 | #include <dspxmodelORM/PhonemeSequence.h> |
19 | 19 | #include <dspxmodelORM/SingingClip.h> |
20 | | -#include <dspxmodelORM/Sources.h> |
21 | 20 | #include <synth/SynthesisPiece.h> |
22 | 21 | #include <synth/internal/SynthesisProjectInput.h> |
23 | | -#include <synth/internal/private/ParameterExpressionUtils_p.h> |
24 | 22 |
|
25 | 23 | namespace Synth::Internal::DocumentWriter { |
26 | 24 |
|
@@ -54,20 +52,12 @@ namespace Synth::Internal::DocumentWriter { |
54 | 52 | if (!modelParameter || it->values.isEmpty() || it->sampleRate <= 0.0) { |
55 | 53 | continue; |
56 | 54 | } |
57 | | - const auto configuration = ProjectInput::parameterConfiguration(clip->sources()->category(), it.key()); |
58 | 55 | QList<QVariant> values; |
59 | 56 | for (int index = firstIndex; index < lastIndex; ++index) { |
60 | 57 | const int tick = index * dspx::FreeValueDataArray::step(); |
61 | 58 | const double offset = ProjectInput::tickSeconds(timeline, clip->start() + tick) - pieceStartSeconds; |
62 | 59 | const int sample = std::clamp(static_cast<int>(std::round(offset * it->sampleRate)), 0, static_cast<int>(it->values.size()) - 1); |
63 | | - double value = it->values.at(sample); |
64 | | - if (!configuration.id().isEmpty()) { |
65 | | - double denormalized{}; |
66 | | - if (ParameterExpressionUtils::evaluate(configuration.denormalizationExpression(), value, &denormalized)) { |
67 | | - value = denormalized; |
68 | | - } |
69 | | - } |
70 | | - values.append(static_cast<int>(std::round(value))); |
| 60 | + values.append(static_cast<int>(std::round(it->values.at(sample)))); |
71 | 61 | } |
72 | 62 | auto original = modelParameter->original(); |
73 | 63 | if (original->size() < firstIndex) { |
|
0 commit comments