sforkowany z mirror/rnsutils
1
0
Forkuj 0

Fix finetuning convertion

master
Olivier Jolly 2016-01-29 15:31:12 +01:00
rodzic 9bcbffc7cb
commit d4a66bbf79
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -55,8 +55,8 @@ class Sf2ToXrni(object):
# sample tuning # sample tuning
renoise_sample.Transpose = sf2_bag.tuning or default_sample.Transpose renoise_sample.Transpose = sf2_bag.tuning or default_sample.Transpose
renoise_sample.FineTune = (sf2_bag.fine_tuning and (int(128 * sf2_bag.fine_tuning) / 100.)) or ( renoise_sample.Finetune = (sf2_bag.fine_tuning and (int(128 * sf2_bag.fine_tuning) / 100.)) or (
sf2_bag.sample and int(128 * (sf2_bag.sample.pitch_correction) / 100.)) or default_sample.FineTune sf2_bag.sample and int(128 * (sf2_bag.sample.pitch_correction) / 100.)) or default_sample.Finetune
# volume envelope # volume envelope
renoise_modulation_set.Devices.SampleAhdsrModulationDevice.Attack.Value = self.to_renoise_time( renoise_modulation_set.Devices.SampleAhdsrModulationDevice.Attack.Value = self.to_renoise_time(
@ -116,7 +116,7 @@ class Sf2ToXrni(object):
renoise_global_sample.Panning = 0.5 renoise_global_sample.Panning = 0.5
renoise_global_sample.Transpose = 0 renoise_global_sample.Transpose = 0
renoise_global_sample.FineTune = 0 renoise_global_sample.Finetune = 0
renoise_global_sample.Mapping.BaseNote = 60 renoise_global_sample.Mapping.BaseNote = 60
renoise_global_sample.Mapping.NoteStart, renoise_global_sample.Mapping.NoteEnd = (0, 119) renoise_global_sample.Mapping.NoteStart, renoise_global_sample.Mapping.NoteEnd = (0, 119)