@@ -635,7 +635,7 @@ int fluid_mod_check_sources(const fluid_mod_t *mod, char *name)
635
635
static const char invalid_cc_src [] =
636
636
"Invalid modulator, using CC source %s.src%d=%d" ;
637
637
static const char src1_is_none [] =
638
- "Modulator with source 1 none %s.src1=%d" ;
638
+ "Modulator with source 1 set to none %s.src1=%d" ;
639
639
640
640
/* checks valid non cc sources */
641
641
if (!fluid_mod_check_non_cc_source (mod , 1 )) /* check src1 */
@@ -649,12 +649,9 @@ int fluid_mod_check_sources(const fluid_mod_t *mod, char *name)
649
649
}
650
650
651
651
/*
652
- When src1 is non CC source FLUID_MOD_NONE, the modulator is valid but
653
- the output of this modulator will be forced to 0 at synthesis time.
654
- Also this modulator cannot be used to overwrite a default modulator (as
655
- there is no default modulator with src1 source equal to FLUID_MOD_NONE).
656
- Consequently it is useful to return FALSE to indicate this modulator
657
- being useless. It will be removed later with others invalid modulators.
652
+ When src1 is non CC source FLUID_MOD_NONE, the modulator is valid, yet it's pretty unusal
653
+ which is why it deserves a warning. However, it's totally legal. A use-case could be a
654
+ constant modulator that is meant to apply some offset to a generator.
658
655
*/
659
656
if (fluid_mod_is_src1_none (mod ))
660
657
{
@@ -663,7 +660,7 @@ int fluid_mod_check_sources(const fluid_mod_t *mod, char *name)
663
660
FLUID_LOG (FLUID_WARN , src1_is_none , name , mod -> src1 );
664
661
}
665
662
666
- return FALSE ;
663
+ return TRUE ;
667
664
}
668
665
669
666
if (!fluid_mod_check_non_cc_source (mod , 0 )) /* check src2 */
0 commit comments