|
From: Philipp M. <the...@go...> - 2019-08-17 19:49:56
|
Hey, Well, I think it's a decent fallback strategy and does its job in preventing a corrupt drumkit from getting loaded. When accessing a sample file to create a sound multiple other tasks have to be done as well, like checking its sample rate, length etc. All this happens way before and is independent of whether the instrument is actually muted or not and all those operations would cause fatal failures if the file had not been present. But, yes, it might be a better and less invasive approach to not delete but to comment the corresponding parts in the song or drumkit file. Could you open a issue at Github https://github.com/hydrogen-music/hydrogen/issues so we can keep track of it? Cheers, Phil On 8/15/19 8:42 PM, Stefano Carbonelli via Hydrogen-devel wrote: > Version: 1.0.0-beta1 (aug 14 2019) > Kernel: Linux 4.4.0-97-generic (i686) > Distribution: Ubuntu 16.04.3 LTS > > When opening an old file, program didn't find some instrument samples > - that was expected as samples had been converted to flac - > BUT instead of muting that instruments, it DELETED all layer > information .h2song file. > Example: > > > In new saved file: > ... > <instrumentComponent> > <component_id>0</component_id> > <gain>1</gain> > </instrumentComponent> > ... > > > old file was: > ... > <instrumentComponent> > <component_id>0</component_id> > <gain>1</gain> > <layer> > <filename>16282_ltibbits_splash_A_custom_10_high_vol.wav</filename> > <min>0.66</min> > <max>1</max> > <gain>1</gain> > <pitch>0</pitch> > </layer> > <layer> > <filename>16284_ltibbits_splash_A_custom_10_med_vol.wav</filename> > <min>0.33</min> > <max>0.66</max> > <gain>1.75</gain> > <pitch>0</pitch> > </layer> > <layer> > <filename>16283_ltibbits_splash_A_custom_10_low_vol.wav</filename> > <min>0</min> > <max>0.33</max> > <gain>4.25</gain> > <pitch>0</pitch> > </layer> > </instrumentComponent> > ... > > > > _______________________________________________ > Hydrogen-devel mailing list > Hyd...@li... > https://lists.sourceforge.net/lists/listinfo/hydrogen-devel |