230 |
eMSDecode(_("Decode Mid/Side Recordings")), |
eMSDecode(_("Decode Mid/Side Recordings")), |
231 |
eSampleStartOffset(_("Sample start offset"), 0, 2000), |
eSampleStartOffset(_("Sample start offset"), 0, 2000), |
232 |
eUnityNote(_("Unity note")), |
eUnityNote(_("Unity note")), |
233 |
|
eSampleGroup(_("Sample Group")), |
234 |
eSampleFormatInfo(_("Sample Format")), |
eSampleFormatInfo(_("Sample Format")), |
235 |
eSampleID("Sample ID"), |
eSampleID("Sample ID"), |
236 |
|
eChecksum("Wave Data CRC-32"), |
237 |
eFineTune(_("Fine tune"), -49, 50), |
eFineTune(_("Fine tune"), -49, 50), |
238 |
eGain(_("Gain"), -96, 0, 2, -655360), |
eGain(_("Gain"), -96, 0, 2, -655360), |
239 |
eGainPlus6(_("Gain +6dB"), eGain, 6 * -655360), |
eGainPlus6(_("Gain +6dB"), eGain, 6 * -655360), |
469 |
wSample->set_tooltip_text(_("Drag & drop a sample here")); |
wSample->set_tooltip_text(_("Drag & drop a sample here")); |
470 |
#endif |
#endif |
471 |
addProp(eUnityNote); |
addProp(eUnityNote); |
472 |
|
addProp(eSampleGroup); |
473 |
addProp(eSampleFormatInfo); |
addProp(eSampleFormatInfo); |
474 |
addProp(eSampleID); |
addProp(eSampleID); |
475 |
|
addProp(eChecksum); |
476 |
addRightHandSide(buttonSelectSample); |
addRightHandSide(buttonSelectSample); |
477 |
addHeader(_("Optional Settings")); |
addHeader(_("Optional Settings")); |
478 |
addProp(eSampleStartOffset); |
addProp(eSampleStartOffset); |
1025 |
eMSDecode.set_value(d->MSDecode); |
eMSDecode.set_value(d->MSDecode); |
1026 |
eSampleStartOffset.set_value(d->SampleStartOffset); |
eSampleStartOffset.set_value(d->SampleStartOffset); |
1027 |
eUnityNote.set_value(d->UnityNote); |
eUnityNote.set_value(d->UnityNote); |
1028 |
|
// show sample group name |
1029 |
|
{ |
1030 |
|
Glib::ustring s = "---"; |
1031 |
|
if (d->pSample && d->pSample->GetGroup()) |
1032 |
|
s = d->pSample->GetGroup()->Name; |
1033 |
|
eSampleGroup.text.set_text(s); |
1034 |
|
} |
1035 |
// assemble sample format info string |
// assemble sample format info string |
1036 |
{ |
{ |
1037 |
Glib::ustring s; |
Glib::ustring s; |
1063 |
} |
} |
1064 |
eSampleID.text.set_text(s); |
eSampleID.text.set_text(s); |
1065 |
} |
} |
1066 |
|
// generate raw wave form data CRC-32 checksum string |
1067 |
|
{ |
1068 |
|
Glib::ustring s = "---"; |
1069 |
|
if (d->pSample) { |
1070 |
|
char buf[64] = {}; |
1071 |
|
snprintf(buf, sizeof(buf), "%x", d->pSample->GetWaveDataCRC32Checksum()); |
1072 |
|
s = buf; |
1073 |
|
} |
1074 |
|
eChecksum.text.set_text(s); |
1075 |
|
} |
1076 |
buttonSelectSample.set_sensitive(d && d->pSample); |
buttonSelectSample.set_sensitive(d && d->pSample); |
1077 |
eFineTune.set_value(d->FineTune); |
eFineTune.set_value(d->FineTune); |
1078 |
eGain.set_value(d->Gain); |
eGain.set_value(d->Gain); |