From 30dc8f399a33740b0df67b2a5bfd2aadaa473410 Mon Sep 17 00:00:00 2001 From: Marcus Weseloh Date: Wed, 4 Oct 2017 21:40:15 +0200 Subject: [PATCH] Constant nodes now use '$' as first char. '#' is being treated as a comment by g_shell_parse_argv --- src/bindings/fluid_ladspa.c | 8 ++++---- src/bindings/fluid_ladspa.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/bindings/fluid_ladspa.c b/src/bindings/fluid_ladspa.c index b31af6bd..e142dfde 100644 --- a/src/bindings/fluid_ladspa.c +++ b/src/bindings/fluid_ladspa.c @@ -858,8 +858,8 @@ fluid_LADSPA_CreateNode(fluid_LADSPA_FxUnit_t* FxUnit, char * Name, int flags){ printf( "***Error026***\n" "The node name %s starts with a digit / minus sign!\n" "Please use a letter to start a node name.\n" - "A constant node is created by using `#' as first character,\n" - "for example #-2.5.\n", + "A constant node is created by using `$' as first character,\n" + "for example $-2.5.\n", Name); fluid_LADSPA_clear(FxUnit); return NULL; @@ -889,8 +889,8 @@ fluid_LADSPA_CreateNode(fluid_LADSPA_FxUnit_t* FxUnit, char * Name, int flags){ NewNode->OutCount=0; NewNode->flags=flags; - /* A nodename starting with "#" means that the node holds a constant value. */ - if (NewNode->Name[0] == '#'){ + /* A nodename starting with "$" means that the node holds a constant value. */ + if (NewNode->Name[0] == '$'){ assert(flags & fluid_LADSPA_node_is_control); /* Skip the first character => +1 */ NewNode->buf[0]=(LADSPA_Data)atof(NewNode->Name+1); diff --git a/src/bindings/fluid_ladspa.h b/src/bindings/fluid_ladspa.h index eb07ffe6..581c0bc4 100644 --- a/src/bindings/fluid_ladspa.h +++ b/src/bindings/fluid_ladspa.h @@ -122,7 +122,7 @@ typedef struct { /* List of Command lines * During the setup phase, each ladspa_add command creates one command sequence. For example: - * ./aw.so alienwah_stereo Input <- Master_L_Synth Output -> Master_R_Synth Parameter <- #42.0 + * ./aw.so alienwah_stereo Input <- Master_L_Synth Output -> Master_R_Synth Parameter <- $42.0 * Those lists are stored in LADSPA_Command_Sequence. * One command line results in one plugin => size MaxPlugins. */