[beast: 4/24] TOOLS: use Rapicorn's printout()



commit ce3651b81ea1c42fdae1ecff52402a6f2cd3dfac
Author: Tim Janik <timj gnu org>
Date:   Tue Sep 22 21:41:02 2015 +0200

    TOOLS: use Rapicorn's printout()

 shell/bsescm.cc       |  112 ++++++------
 tools/bseloopfuncs.cc |    4 +-
 tools/bsewavetool.cc  |  502 ++++++++++++++++++++++++------------------------
 tools/cutvorbis.cc    |    2 +-
 tools/magictest.cc    |   16 +-
 5 files changed, 318 insertions(+), 318 deletions(-)
---
diff --git a/shell/bsescm.cc b/shell/bsescm.cc
index 67e8f6c..48133ef 100644
--- a/shell/bsescm.cc
+++ b/shell/bsescm.cc
@@ -265,19 +265,19 @@ shell_parse_args (int *argc_p, char **argv)
       else if (strcmp ("-v", argv[i]) == 0 ||
                strcmp ("--version", argv[i]) == 0)
         {
-          g_print ("BSESCM version %s (%s)\n", BST_VERSION, BST_VERSION_HINT);
-          g_print ("Libraries: ");
-          g_print ("GLib %u.%u.%u", glib_major_version, glib_minor_version, glib_micro_version);
-          g_print (", SFI %s", BST_VERSION);
-          g_print (", BSE %s", BST_VERSION);
-          g_print (", Guile %u.%u.%u", SCM_MAJOR_VERSION, SCM_MINOR_VERSION, SCM_MICRO_VERSION);
-          g_print ("\n");
-          g_print ("Compiled for: %s\n", BST_ARCH_NAME);
-          g_print ("BSESCM comes with ABSOLUTELY NO WARRANTY.\n");
-          g_print ("You may redistribute copies of BSESCM under the terms of\n");
-          g_print ("the GNU Lesser General Public License which can be found in\n");
-          g_print ("the BEAST source package. Sources, examples and contact\n");
-          g_print ("information are available at http://beast.testbit.eu/.\n";);
+          printout ("BSESCM version %s (%s)\n", BST_VERSION, BST_VERSION_HINT);
+          printout ("Libraries: ");
+          printout ("GLib %u.%u.%u", glib_major_version, glib_minor_version, glib_micro_version);
+          printout (", SFI %s", BST_VERSION);
+          printout (", BSE %s", BST_VERSION);
+          printout (", Guile %u.%u.%u", SCM_MAJOR_VERSION, SCM_MINOR_VERSION, SCM_MICRO_VERSION);
+          printout ("\n");
+          printout ("Compiled for: %s\n", BST_ARCH_NAME);
+          printout ("BSESCM comes with ABSOLUTELY NO WARRANTY.\n");
+          printout ("You may redistribute copies of BSESCM under the terms of\n");
+          printout ("the GNU Lesser General Public License which can be found in\n");
+          printout ("the BEAST source package. Sources, examples and contact\n");
+          printout ("information are available at http://beast.testbit.eu/.\n";);
           exit (0);
         }
     }
@@ -300,47 +300,47 @@ shell_parse_args (int *argc_p, char **argv)
 static void
 shell_print_usage (void)
 {
-  g_print ("Usage: bsescm [options] [files...]\n");
-  g_print ("Play BSE files and evaluate Scheme code, interactively or from a script.\n");
-  g_print ("  -h, --help              show this help message\n");
-  g_print ("  -v, --version           print version and exit\n");
-  g_print ("  -n NICELEVEL            run with priority NICELEVEL (for suid wrapper bsescm)\n");
-  g_print ("  -N                      disable renicing\n");
-  g_print ("  --bse-pipe INFD OUTFD   remote operation filedescriptors\n");
-  g_print ("  --bse-eval STRING       execute (eval-string STRING) and exit\n");
-  g_print ("  --bse-enable-register   allow registration of BSE procedures\n");
-  g_print ("  --bse-no-load           prevent automated plugin and script registration\n");
-  g_print ("  --bse-no-play           prevent detection of BSE file command line arguments\n");
-  g_print ("  --bse-latency=USECONDS  specify synthesis latency in milliseconds\n");
-  g_print ("  --bse-mixing-freq=FREQ  specify synthesis mixing frequency in Hz \n");
-  g_print ("  --bse-control-freq=FREQ specify control frequency in Hz\n");
-  g_print ("  --bse-pcm-driver DRIVERCONF\n");
-  g_print ("  -p DRIVERCONF           try to use the PCM driver DRIVERCONF, multiple\n");
-  g_print ("                          options may be supplied to try a variety of\n");
-  g_print ("                          drivers, unless -p auto is given, only the\n");
-  g_print ("                          drivers listed by -p options are used; each\n");
-  g_print ("                          DRIVERCONF consists of a driver name and an\n");
-  g_print ("                          optional comma seperated list of arguments,\n");
-  g_print ("                          e.g.: -p oss=/dev/dsp2,rw\n");
-  g_print ("  --bse-midi-driver DRIVERCONF\n");
-  g_print ("  -m DRIVERCONF           try to use the MIDI driver DRIVERCONF, multiple\n");
-  g_print ("                          options may be specified similarly to the\n");
-  g_print ("                          option handling for --bse-pcm-driver\n");
-  g_print ("  --bse-driver-list       list available PCM and MIDI drivers\n");
-  g_print ("Guile Options:\n");
-  g_print ("  -s SCRIPT               load Scheme source code from FILE, and exit\n");
-  g_print ("  -c EXPR                 evalute Scheme expression EXPR, and exit\n");
-  g_print ("  --                      stop scanning arguments; run interactively\n");
-  g_print ("The above switches stop argument processing, and pass all\n");
-  g_print ("remaining arguments as the value of (command-line).\n");
-  g_print ("  -l FILE                 load Scheme source code from FILE\n");
-  g_print ("  -e FUNCTION             after reading script, apply FUNCTION to\n");
-  g_print ("                          command line arguments\n");
-  g_print ("  -ds                     do -s script at this point\n");
-  g_print ("  --debug                 start with debugging evaluator and backtraces\n");
-  g_print ("  -q                      inhibit loading of user init file\n");
-  g_print ("  --emacs                 enable Emacs protocol (experimental)\n");
-  g_print ("  --use-srfi=LS           load SRFI modules for the SRFIs in LS,\n");
-  g_print ("                          which is a list of numbers like \"2,13,14\"\n");
-  g_print ("  \\                       read arguments from following script lines\n");
+  printout ("Usage: bsescm [options] [files...]\n");
+  printout ("Play BSE files and evaluate Scheme code, interactively or from a script.\n");
+  printout ("  -h, --help              show this help message\n");
+  printout ("  -v, --version           print version and exit\n");
+  printout ("  -n NICELEVEL            run with priority NICELEVEL (for suid wrapper bsescm)\n");
+  printout ("  -N                      disable renicing\n");
+  printout ("  --bse-pipe INFD OUTFD   remote operation filedescriptors\n");
+  printout ("  --bse-eval STRING       execute (eval-string STRING) and exit\n");
+  printout ("  --bse-enable-register   allow registration of BSE procedures\n");
+  printout ("  --bse-no-load           prevent automated plugin and script registration\n");
+  printout ("  --bse-no-play           prevent detection of BSE file command line arguments\n");
+  printout ("  --bse-latency=USECONDS  specify synthesis latency in milliseconds\n");
+  printout ("  --bse-mixing-freq=FREQ  specify synthesis mixing frequency in Hz \n");
+  printout ("  --bse-control-freq=FREQ specify control frequency in Hz\n");
+  printout ("  --bse-pcm-driver DRIVERCONF\n");
+  printout ("  -p DRIVERCONF           try to use the PCM driver DRIVERCONF, multiple\n");
+  printout ("                          options may be supplied to try a variety of\n");
+  printout ("                          drivers, unless -p auto is given, only the\n");
+  printout ("                          drivers listed by -p options are used; each\n");
+  printout ("                          DRIVERCONF consists of a driver name and an\n");
+  printout ("                          optional comma seperated list of arguments,\n");
+  printout ("                          e.g.: -p oss=/dev/dsp2,rw\n");
+  printout ("  --bse-midi-driver DRIVERCONF\n");
+  printout ("  -m DRIVERCONF           try to use the MIDI driver DRIVERCONF, multiple\n");
+  printout ("                          options may be specified similarly to the\n");
+  printout ("                          option handling for --bse-pcm-driver\n");
+  printout ("  --bse-driver-list       list available PCM and MIDI drivers\n");
+  printout ("Guile Options:\n");
+  printout ("  -s SCRIPT               load Scheme source code from FILE, and exit\n");
+  printout ("  -c EXPR                 evalute Scheme expression EXPR, and exit\n");
+  printout ("  --                      stop scanning arguments; run interactively\n");
+  printout ("The above switches stop argument processing, and pass all\n");
+  printout ("remaining arguments as the value of (command-line).\n");
+  printout ("  -l FILE                 load Scheme source code from FILE\n");
+  printout ("  -e FUNCTION             after reading script, apply FUNCTION to\n");
+  printout ("                          command line arguments\n");
+  printout ("  -ds                     do -s script at this point\n");
+  printout ("  --debug                 start with debugging evaluator and backtraces\n");
+  printout ("  -q                      inhibit loading of user init file\n");
+  printout ("  --emacs                 enable Emacs protocol (experimental)\n");
+  printout ("  --use-srfi=LS           load SRFI modules for the SRFIs in LS,\n");
+  printout ("                          which is a list of numbers like \"2,13,14\"\n");
+  printout ("  \\                       read arguments from following script lines\n");
 }
diff --git a/tools/bseloopfuncs.cc b/tools/bseloopfuncs.cc
index bd198d0..164165e 100644
--- a/tools/bseloopfuncs.cc
+++ b/tools/bseloopfuncs.cc
@@ -511,7 +511,7 @@ gsl_data_find_loop2 (GslDataHandle     *dhandle,
       ep = sp + minll;
       {
         gdouble score = score_headloop (dhandle, sp, ep - sp, config->block_length / 2, G_MAXDOUBLE);
-        g_print ("%zu %.17g\n", size_t (sp - block), score);
+        printout ("%zu %.17g\n", size_t (sp - block), score);
         continue;
         if (score <= config->score)
           {
@@ -540,7 +540,7 @@ gsl_data_find_loop2 (GslDataHandle     *dhandle,
       for (ep = sp + minll; ep < cstart; ep++)
         {
           gdouble score = score_headloop (dhandle, sp, ep - sp, config->block_length / 2, config->score);
-          g_print ("%zu %.17g\n", size_t (ep - sp), score);
+          printout ("%zu %.17g\n", size_t (ep - sp), score);
           continue;
           if (score <= config->score)
             {
diff --git a/tools/bsewavetool.cc b/tools/bsewavetool.cc
index 47cc678..b2516a5 100644
--- a/tools/bsewavetool.cc
+++ b/tools/bsewavetool.cc
@@ -48,7 +48,7 @@ Command::Command (const char *command_name) :
 void
 Command::blurb (bool bshort)
 {
-  g_print ("\n");
+  printout ("\n");
   if (bshort)
     return;
 }
@@ -198,13 +198,13 @@ main (int   argc,
 static void
 wavetool_print_version (void)
 {
-  g_print ("bsewavetool version %s (%s)\n", BST_VERSION, BST_VERSION_HINT);
-  g_print ("Refer to beast --version for more version information.\n");
-  g_print ("bsewavetool comes with ABSOLUTELY NO WARRANTY.\n");
-  g_print ("You may redistribute copies of bsewavetool under the terms\n");
-  g_print ("of the GNU Lesser General Public License which can be found in\n");
-  g_print ("the BEAST source package. Sources, examples and contact\n");
-  g_print ("information are available at http://beast.testbit.eu/.\n";);
+  printout ("bsewavetool version %s (%s)\n", BST_VERSION, BST_VERSION_HINT);
+  printout ("Refer to beast --version for more version information.\n");
+  printout ("bsewavetool comes with ABSOLUTELY NO WARRANTY.\n");
+  printout ("You may redistribute copies of bsewavetool under the terms\n");
+  printout ("of the GNU Lesser General Public License which can be found in\n");
+  printout ("the BEAST source package. Sources, examples and contact\n");
+  printout ("information are available at http://beast.testbit.eu/.\n";);
 }
 
 static void
@@ -218,20 +218,20 @@ wavetool_print_blurb (bool bshort)
    * The only exceptions are -o, -h and -v, which are global but short options,
    * since these are common practice.
    */
-  g_print ("Usage: bsewavetool [tool-options] command <file.bsewave> {command-arguments}\n");
-  g_print ("Tool options:\n");
-  g_print ("  -o <output.bsewave>   name of the destination file (default: <file.bsewave>)\n");
-  g_print ("  --silent              suppress extra processing information\n");
-  g_print ("  --skip-errors         skip errors (may overwrite bsewave files after load\n");
-  g_print ("                        errors occoured for part of its contents)\n");
-  g_print ("  -h, --help            show elaborated help message with command documentation\n");
-  g_print ("  -v, --version         print version information\n");
+  printout ("Usage: bsewavetool [tool-options] command <file.bsewave> {command-arguments}\n");
+  printout ("Tool options:\n");
+  printout ("  -o <output.bsewave>   name of the destination file (default: <file.bsewave>)\n");
+  printout ("  --silent              suppress extra processing information\n");
+  printout ("  --skip-errors         skip errors (may overwrite bsewave files after load\n");
+  printout ("                        errors occoured for part of its contents)\n");
+  printout ("  -h, --help            show elaborated help message with command documentation\n");
+  printout ("  -v, --version         print version information\n");
   /*       "**********1*********2*********3*********4*********5*********6*********7*********" */
-  g_print ("Commands:\n");
+  printout ("Commands:\n");
   for (list<Command*>::iterator it = Command::registry.begin(); it != Command::registry.end(); it++)
     {
       Command *cmd = *it;
-      g_print ("  %s ", cmd->name.c_str());
+      printout ("  %s ", cmd->name.c_str());
       cmd->blurb (bshort);
     }
 }
@@ -616,14 +616,14 @@ public:
   void
   blurb (bool bshort)
   {
-    g_print ("\n");
+    printout ("\n");
     if (bshort)
       return;
-    g_print ("    Store the input bsewave as output bsewave. If both file names are the same,\n");
-    g_print ("    the bsewave file is simply rewritten. Allthough no explicit modifications\n");
-    g_print ("    are performed on the bsewave, externally referenced sample files will be\n");
-    g_print ("    inlined, chunks may be reordered, and other changes related to the bsewave\n");
-    g_print ("    storage process may occour.\n");
+    printout ("    Store the input bsewave as output bsewave. If both file names are the same,\n");
+    printout ("    the bsewave file is simply rewritten. Allthough no explicit modifications\n");
+    printout ("    are performed on the bsewave, externally referenced sample files will be\n");
+    printout ("    inlined, chunks may be reordered, and other changes related to the bsewave\n");
+    printout ("    storage process may occour.\n");
     /*       "**********1*********2*********3*********4*********5*********6*********7*********" */
   }
 } cmd_store ("store");
@@ -638,13 +638,13 @@ public:
   void
   blurb (bool bshort)
   {
-    g_print ("<n_channels> [options]\n");
+    printout ("<n_channels> [options]\n");
     if (bshort)
       return;
-    g_print ("    Create an empty bsewave file, <n_channels>=1 (mono) and <n_channels>=2\n");
-    g_print ("    (stereo) are currently supported. Options:\n");
-    g_print ("    -N <wave-name>      name of the wave stored inside of <output.bsewave>\n");
-    g_print ("    -f                  force creation even if the file exists already\n");
+    printout ("    Create an empty bsewave file, <n_channels>=1 (mono) and <n_channels>=2\n");
+    printout ("    (stereo) are currently supported. Options:\n");
+    printout ("    -N <wave-name>      name of the wave stored inside of <output.bsewave>\n");
+    printout ("    -f                  force creation even if the file exists already\n");
     /*       "**********1*********2*********3*********4*********5*********6*********7*********" */
   }
   string wave_name;
@@ -715,12 +715,12 @@ public:
   void
   blurb (bool bshort)
   {
-    g_print ("[options]\n");
+    printout ("[options]\n");
     if (bshort)
       return;
-    g_print ("    Compress all chunks with the Vorbis audio codec and store the wave data\n");
-    g_print ("    as Ogg/Vorbis streams inside the bsewave file. Options:\n");
-    g_print ("    -q <n>              use quality level <n>, refer to oggenc(1) for details\n");
+    printout ("    Compress all chunks with the Vorbis audio codec and store the wave data\n");
+    printout ("    as Ogg/Vorbis streams inside the bsewave file. Options:\n");
+    printout ("    -q <n>              use quality level <n>, refer to oggenc(1) for details\n");
     /*       "**********1*********2*********3*********4*********5*********6*********7*********" */
   }
   guint
@@ -923,7 +923,7 @@ public:
   void
   blurb (bool bshort)
   {
-    g_print ("[options] {-m=midi-note|-f=osc-freq} <sample-file> ...\n");
+    printout ("[options] {-m=midi-note|-f=osc-freq} <sample-file> ...\n");
     if (!bshort && !load_raw)
       blurb_auto();
     else if (!bshort && load_raw)
@@ -932,22 +932,22 @@ public:
   void
   blurb_auto ()
   {
-    g_print ("    Add a new chunk containing <sample-file> to the wave file. For each chunk,\n");
-    g_print ("    a unique oscillator frequency must be given to determine what note the\n");
-    g_print ("    chunk is to be played back for. Multi oscillator frequency + sample-file\n");
-    g_print ("    option combinations may be given on the command line to add multiple wave\n");
-    g_print ("    chunks. The -f and -m options can be omitted for a sample file, if the\n");
-    g_print ("    oscillator frequency can be determined through auto extract options.\n");
-    g_print ("    Options:\n");
-    g_print ("    -f <osc-freq>       oscillator frequency for the next chunk\n");
-    g_print ("    -m <midi-note>      alternative way to specify oscillator frequency\n");
-    g_print ("    --auto-extract-midi-note <nth>\n");
-    g_print ("                        automatically retrieve the midi note by extracting the\n");
-    g_print ("                        <nth> number from the base name of <sample-file>\n");
-    g_print ("    --auto-extract-osc-freq <nth>\n");
-    g_print ("                        automatically retrieve the oscillator frequency by\n");
-    g_print ("                        extracting the <nth> number from the base name\n");
-    g_print ("                        of <sample-file>\n");
+    printout ("    Add a new chunk containing <sample-file> to the wave file. For each chunk,\n");
+    printout ("    a unique oscillator frequency must be given to determine what note the\n");
+    printout ("    chunk is to be played back for. Multi oscillator frequency + sample-file\n");
+    printout ("    option combinations may be given on the command line to add multiple wave\n");
+    printout ("    chunks. The -f and -m options can be omitted for a sample file, if the\n");
+    printout ("    oscillator frequency can be determined through auto extract options.\n");
+    printout ("    Options:\n");
+    printout ("    -f <osc-freq>       oscillator frequency for the next chunk\n");
+    printout ("    -m <midi-note>      alternative way to specify oscillator frequency\n");
+    printout ("    --auto-extract-midi-note <nth>\n");
+    printout ("                        automatically retrieve the midi note by extracting the\n");
+    printout ("                        <nth> number from the base name of <sample-file>\n");
+    printout ("    --auto-extract-osc-freq <nth>\n");
+    printout ("                        automatically retrieve the oscillator frequency by\n");
+    printout ("                        extracting the <nth> number from the base name\n");
+    printout ("                        of <sample-file>\n");
     /*       "**********1*********2*********3*********4*********5*********6*********7*********" */
   }
   guint
@@ -1008,15 +1008,15 @@ public:
   void
   blurb_raw ()
   {
-    g_print ("    Add a new chunk just like with \"add-chunk\", but load raw sample data.\n");
-    g_print ("    Additional raw sample format options are supported.\n");
-    g_print ("    Raw sample format options:\n");
-    g_print ("    -R <mix-freq>       mixing frequency for the next chunk [44100]\n");
-    g_print ("    -F <format>         raw sample format, supported formats are:\n");
-    g_print ("                        alaw, ulaw, float, signed-8, signed-12, signed-16,\n");
-    g_print ("                        unsigned-8, unsigned-12, unsigned-16 [signed-16]\n");
-    g_print ("    -B <byte-order>     raw sample byte order, supported types:\n");
-    g_print ("                        little-endian, big-endian [little-endian]\n");
+    printout ("    Add a new chunk just like with \"add-chunk\", but load raw sample data.\n");
+    printout ("    Additional raw sample format options are supported.\n");
+    printout ("    Raw sample format options:\n");
+    printout ("    -R <mix-freq>       mixing frequency for the next chunk [44100]\n");
+    printout ("    -F <format>         raw sample format, supported formats are:\n");
+    printout ("                        alaw, ulaw, float, signed-8, signed-12, signed-16,\n");
+    printout ("                        unsigned-8, unsigned-12, unsigned-16 [signed-16]\n");
+    printout ("    -B <byte-order>     raw sample byte order, supported types:\n");
+    printout ("                        little-endian, big-endian [little-endian]\n");
     /*       "**********1*********2*********3*********4*********5*********6*********7*********" */
   }
   static gdouble
@@ -1175,15 +1175,15 @@ public:
   void
   blurb (bool bshort)
   {
-    g_print ("{-m=midi-note|-f=osc-freq|--chunk-key=key|--all-chunks}\n");
+    printout ("{-m=midi-note|-f=osc-freq|--chunk-key=key|--all-chunks}\n");
     if (bshort)
       return;
-    g_print ("    Removes one or more chunks from the bsewave file.\n");
-    g_print ("    Options:\n");
-    g_print ("    -f <osc-freq>       oscillator frequency to select a wave chunk\n");
-    g_print ("    -m <midi-note>      alternative way to specify oscillator frequency\n");
-    g_print ("    --chunk-key <key>   select wave chunk using chunk key from list-chunks\n");
-    g_print ("    --all-chunks        delete all chunks\n");
+    printout ("    Removes one or more chunks from the bsewave file.\n");
+    printout ("    Options:\n");
+    printout ("    -f <osc-freq>       oscillator frequency to select a wave chunk\n");
+    printout ("    -m <midi-note>      alternative way to specify oscillator frequency\n");
+    printout ("    --chunk-key <key>   select wave chunk using chunk key from list-chunks\n");
+    printout ("    --all-chunks        delete all chunks\n");
     /*       "**********1*********2*********3*********4*********5*********6*********7*********" */
   }
   guint
@@ -1237,20 +1237,20 @@ public:
   void
   blurb (bool bshort)
   {
-    g_print ("{-m=midi-note|-f=osc-freq|--chunk-key=key|--all-chunks|--wave} key=[value] ...\n");
+    printout ("{-m=midi-note|-f=osc-freq|--chunk-key=key|--all-chunks|--wave} key=[value] ...\n");
     if (bshort)
       return;
-    g_print ("    Add, change or remove an XInfo string of a bsewave file.\n");
-    g_print ("    Omission of [value] deletes the XInfo associated with the key.\n");
-    g_print ("    Key and value pairs may be specified multiple times, optionally preceeded\n");
-    g_print ("    by location options to control what portion of a bsewave file (the wave,\n");
-    g_print ("    individual wave chunks or all wave chunks) should be affected.\n");
-    g_print ("    Options:\n");
-    g_print ("    -f <osc-freq>       oscillator frequency to select a wave chunk\n");
-    g_print ("    -m <midi-note>      alternative way to specify oscillator frequency\n");
-    g_print ("    --chunk-key <key>   select wave chunk using chunk key from list-chunks\n");
-    g_print ("    --all-chunks        apply XInfo modification to all chunks\n");
-    g_print ("    --wave              apply XInfo modifications to the wave itself\n");
+    printout ("    Add, change or remove an XInfo string of a bsewave file.\n");
+    printout ("    Omission of [value] deletes the XInfo associated with the key.\n");
+    printout ("    Key and value pairs may be specified multiple times, optionally preceeded\n");
+    printout ("    by location options to control what portion of a bsewave file (the wave,\n");
+    printout ("    individual wave chunks or all wave chunks) should be affected.\n");
+    printout ("    Options:\n");
+    printout ("    -f <osc-freq>       oscillator frequency to select a wave chunk\n");
+    printout ("    -m <midi-note>      alternative way to specify oscillator frequency\n");
+    printout ("    --chunk-key <key>   select wave chunk using chunk key from list-chunks\n");
+    printout ("    --all-chunks        apply XInfo modification to all chunks\n");
+    printout ("    --wave              apply XInfo modifications to the wave itself\n");
     /*       "**********1*********2*********3*********4*********5*********6*********7*********" */
   }
   guint
@@ -1418,49 +1418,49 @@ public:
   void
   blurb (bool bshort)
   {
-    g_print ("{-m=midi-note|-f=osc-freq|--chunk-key=key|--all-chunks|--wave} [options]\n");
+    printout ("{-m=midi-note|-f=osc-freq|--chunk-key=key|--all-chunks|--wave} [options]\n");
     if (bshort)
       return;
-    g_print ("    Print information about the chunks of a bsewave file.\n");
-    g_print ("    Options:\n");
-    g_print ("    -f <osc-freq>       oscillator frequency to select a wave chunk\n");
-    g_print ("    -m <midi-note>      alternative way to specify oscillator frequency\n");
-    g_print ("    --all-chunks        show information for all chunks (default)\n");
-    g_print ("    --chunk-key <key>   select wave chunk using chunk key from list-chunks\n");
-    g_print ("    --wave              show information for the wave\n");
-    g_print ("    --pretty=medium     use human readable format (default)\n");
-    g_print ("    --pretty=full       use human readable format with all details\n");
-    g_print ("    --script <field1>,<field2>,<field3>,...,<fieldN>\n");
-    g_print ("                        use script readable line based space separated output\n");
-    g_print ("    Valid wave or chunk fields:\n");
-    g_print ("      channels          number of channels\n");
-    g_print ("      label             user interface label\n");
-    g_print ("      blurb             associated comment\n");
-    g_print ("    Valid wave fields:\n");
-    g_print ("      authors           authors who participated in creating the wave file\n");
-    g_print ("      license           license specifying redistribution and other legal terms\n");
-    g_print ("      play-type         set of required play back facilities for a wave\n");
-    g_print ("    Valid chunk fields:\n");
-    g_print ("      osc-freq          frequency of the chunk\n");
-    g_print ("      mix-freq          sampling rate of the chunk\n");
-    g_print ("      midi-note         midi note of a chunk\n");
-    g_print ("      length            length of the chunk in sample frames\n");
-    g_print ("      volume            volume at which the chunk is to be played\n");
-    g_print ("      format            storage format used to save the chunk data\n");
-    g_print ("      loop-type         whether the chunk is to be looped\n");
-    g_print ("      loop-start        offset in sample frames for the start of the loop\n");
-    g_print ("      loop-end          offset in sample frames for the end of the loop\n");
-    g_print ("      loop-count        maximum limit for how often the loop should be repeated\n");
-    g_print ("    Chunk fields that can be computed for the signal:\n");
-    g_print ("      +avg-energy-raw   average signal energy (dB) of the raw data of the chunk\n");
-    g_print ("      +avg-energy       average signal energy (dB) using volume xinfo\n");
-    g_print ("    The script output consists of one line per chunk. The individual fields\n");
-    g_print ("    of a line are separated by a single space. Special characters are escaped,\n");
-    g_print ("    such as spaces, tabs, newlines and backslashes. So each line of script\n");
-    g_print ("    parsable output can be parsed using the read(P) shell command.\n");
-    g_print ("    Optional fields will printed as a single (escaped) space.\n");
-    g_print ("    The human readable output formats (--pretty) may vary in future versions\n");
-    g_print ("    and are not recommended as script input.\n");
+    printout ("    Print information about the chunks of a bsewave file.\n");
+    printout ("    Options:\n");
+    printout ("    -f <osc-freq>       oscillator frequency to select a wave chunk\n");
+    printout ("    -m <midi-note>      alternative way to specify oscillator frequency\n");
+    printout ("    --all-chunks        show information for all chunks (default)\n");
+    printout ("    --chunk-key <key>   select wave chunk using chunk key from list-chunks\n");
+    printout ("    --wave              show information for the wave\n");
+    printout ("    --pretty=medium     use human readable format (default)\n");
+    printout ("    --pretty=full       use human readable format with all details\n");
+    printout ("    --script <field1>,<field2>,<field3>,...,<fieldN>\n");
+    printout ("                        use script readable line based space separated output\n");
+    printout ("    Valid wave or chunk fields:\n");
+    printout ("      channels          number of channels\n");
+    printout ("      label             user interface label\n");
+    printout ("      blurb             associated comment\n");
+    printout ("    Valid wave fields:\n");
+    printout ("      authors           authors who participated in creating the wave file\n");
+    printout ("      license           license specifying redistribution and other legal terms\n");
+    printout ("      play-type         set of required play back facilities for a wave\n");
+    printout ("    Valid chunk fields:\n");
+    printout ("      osc-freq          frequency of the chunk\n");
+    printout ("      mix-freq          sampling rate of the chunk\n");
+    printout ("      midi-note         midi note of a chunk\n");
+    printout ("      length            length of the chunk in sample frames\n");
+    printout ("      volume            volume at which the chunk is to be played\n");
+    printout ("      format            storage format used to save the chunk data\n");
+    printout ("      loop-type         whether the chunk is to be looped\n");
+    printout ("      loop-start        offset in sample frames for the start of the loop\n");
+    printout ("      loop-end          offset in sample frames for the end of the loop\n");
+    printout ("      loop-count        maximum limit for how often the loop should be repeated\n");
+    printout ("    Chunk fields that can be computed for the signal:\n");
+    printout ("      +avg-energy-raw   average signal energy (dB) of the raw data of the chunk\n");
+    printout ("      +avg-energy       average signal energy (dB) using volume xinfo\n");
+    printout ("    The script output consists of one line per chunk. The individual fields\n");
+    printout ("    of a line are separated by a single space. Special characters are escaped,\n");
+    printout ("    such as spaces, tabs, newlines and backslashes. So each line of script\n");
+    printout ("    parsable output can be parsed using the read(P) shell command.\n");
+    printout ("    Optional fields will printed as a single (escaped) space.\n");
+    printout ("    The human readable output formats (--pretty) may vary in future versions\n");
+    printout ("    and are not recommended as script input.\n");
     /*       "**********1*********2*********3*********4*********5*********6*********7*********" */
   }
   static vector<String>
@@ -1582,8 +1582,8 @@ public:
     while (*s)
       {
         if (*s == ' ' || *s == '\t' || *s == '\n' || *s == '\\')  /* shell IFS and backslash */
-          g_print ("\\");
-        g_print ("%c", *s++);
+          printout ("\\");
+        printout ("%c", *s++);
       }
   }
   void
@@ -1597,7 +1597,7 @@ public:
                       const char  *what)
   {
     if (bse_xinfos_get_value (xinfos, what))
-      g_print ("%lld", bse_xinfos_get_num (xinfos, what));
+      printout ("%lld", bse_xinfos_get_num (xinfos, what));
     else
       script_output_escaped (NULL);
   }
@@ -1612,10 +1612,10 @@ public:
         for (vector<string>::const_iterator fi = m_fields.begin(); fi != m_fields.end(); fi++)
           {
             if (fi != m_fields.begin()) // not first field
-              g_print (" ");
+              printout (" ");
 
             if (*fi == "channels")
-              g_print ("%d", wave->n_channels);
+              printout ("%d", wave->n_channels);
             else if (*fi == "label")
               script_output_escaped (wave->name.c_str());
             else if (*fi == "blurb")
@@ -1632,27 +1632,27 @@ public:
                 exit (1);
               }
           }
-        g_print ("\n");
+        printout ("\n");
       }
     else if (m_output_format != SCRIPT)
       {
-        g_print ("\n");
-        g_print ("Wave\n");
+        printout ("\n");
+        printout ("Wave\n");
 
         if (wave->name != "")
-          g_print ("  Label                  %s\n", wave->name.c_str());
+          printout ("  Label                  %s\n", wave->name.c_str());
         const char *blurb = bse_xinfos_get_value (wave->wave_xinfos, "blurb");
         if (blurb)
-          g_print ("  Comment                %s\n", blurb);
+          printout ("  Comment                %s\n", blurb);
         const char *authors = bse_xinfos_get_value (wave->wave_xinfos, "authors");
         if (authors)
-          g_print ("  Authors                %s\n", authors);
+          printout ("  Authors                %s\n", authors);
         const char *license = bse_xinfos_get_value (wave->wave_xinfos, "license");
         if (license)
-          g_print ("  License                %s\n", license);
+          printout ("  License                %s\n", license);
 
-        g_print ("  Channels         %7d\n", wave->n_channels);
-        g_print ("\n");
+        printout ("  Channels         %7d\n", wave->n_channels);
+        printout ("\n");
       }
 
     /* get the wave into storage order */
@@ -1668,22 +1668,22 @@ public:
               for (vector<string>::const_iterator fi = m_fields.begin(); fi != m_fields.end(); fi++)
                 {
                   if (fi != m_fields.begin()) // not first field
-                    g_print (" ");
+                    printout (" ");
 
                   if (*fi == "channels")
-                    g_print ("%d", wave->n_channels);
+                    printout ("%d", wave->n_channels);
                   else if (*fi == "length")
-                    g_print ("%lld", dhandle_n_frames (dhandle));
+                    printout ("%lld", dhandle_n_frames (dhandle));
                   else if (*fi == "osc-freq")
-                    g_print ("%.3f", gsl_data_handle_osc_freq (dhandle));
+                    printout ("%.3f", gsl_data_handle_osc_freq (dhandle));
                   else if (*fi == "mix-freq")
-                    g_print ("%.3f", gsl_data_handle_mix_freq (dhandle));
+                    printout ("%.3f", gsl_data_handle_mix_freq (dhandle));
                   else if (*fi == "chunk-key")
-                    g_print ("%s", WaveChunkKey (gsl_data_handle_osc_freq (dhandle)).as_string().c_str());
+                    printout ("%s", WaveChunkKey (gsl_data_handle_osc_freq (dhandle)).as_string().c_str());
                   else if (*fi == "volume")
-                    g_print ("%.3f", gsl_data_handle_volume (dhandle));
+                    printout ("%.3f", gsl_data_handle_volume (dhandle));
                   else if (*fi == "format")
-                    g_print ("%s", dhandle_storage_format (dhandle).c_str());
+                    printout ("%s", dhandle_storage_format (dhandle).c_str());
                   else if (*fi == "label")
                     script_output_xstr (dhandle->setup.xinfos, "label");
                   else if (*fi == "blurb")
@@ -1699,69 +1699,69 @@ public:
                   else if (*fi == "midi-note")
                     script_output_xnum (dhandle->setup.xinfos, "midi-note");
                   else if (*fi == "+avg-energy-raw")
-                    g_print ("%.3f", feature_avg_energy (dhandle, 1.0));
+                    printout ("%.3f", feature_avg_energy (dhandle, 1.0));
                   else if (*fi == "+avg-energy")
-                    g_print ("%.3f", feature_avg_energy (dhandle, gsl_data_handle_volume (dhandle)));
+                    printout ("%.3f", feature_avg_energy (dhandle, gsl_data_handle_volume (dhandle)));
                   else
                     {
                       sfi_error ("info command: invalid field for --script format: %s", fi->c_str());
                       exit (1);
                     }
                 }
-              g_print ("\n");
+              printout ("\n");
             }
           else  // MEDIUM or FULL output
             {
-              g_print ("Chunk '%s'\n", WaveChunkKey (gsl_data_handle_osc_freq 
(dhandle)).as_string().c_str());
+              printout ("Chunk '%s'\n", WaveChunkKey (gsl_data_handle_osc_freq 
(dhandle)).as_string().c_str());
               const char *label = bse_xinfos_get_value (dhandle->setup.xinfos, "label");
               if (label)
-                g_print ("  Label                  %s\n", label);
+                printout ("  Label                  %s\n", label);
               const char *blurb = bse_xinfos_get_value (dhandle->setup.xinfos, "blurb");
               if (blurb)
-                g_print ("  Comment                %s\n", blurb);
+                printout ("  Comment                %s\n", blurb);
 
-              g_print ("  Osc Freq   %13.2f Hz\n", gsl_data_handle_osc_freq (dhandle));
-              g_print ("  Mix Freq   %13.2f Hz\n", gsl_data_handle_mix_freq (dhandle));
+              printout ("  Osc Freq   %13.2f Hz\n", gsl_data_handle_osc_freq (dhandle));
+              printout ("  Mix Freq   %13.2f Hz\n", gsl_data_handle_mix_freq (dhandle));
               if (bse_xinfos_get_value (dhandle->setup.xinfos, "midi-note"))
                 {
                   int note = bse_xinfos_get_num (dhandle->setup.xinfos, "midi-note");
                   char *note_str = bse_note_to_string (note);
-                  g_print ("  MIDI Note        %7d     (%s)\n", note, note_str);
+                  printout ("  MIDI Note        %7d     (%s)\n", note, note_str);
                   g_free (note_str);
                 }
               if (m_output_format == FULL)
                 {
-                  g_print ("  Sample Frames %10lld     (%.2f s)\n",
+                  printout ("  Sample Frames %10lld     (%.2f s)\n",
                            dhandle_n_frames (dhandle),
                            dhandle_n_frames (dhandle) / gsl_data_handle_mix_freq (dhandle));
                   if (bse_xinfos_get_value (dhandle->setup.xinfos, "volume"))
                     {
                       const double volume = gsl_data_handle_volume (dhandle);
                       const double volume_db = bse_db_from_factor (volume, -200);
-                      g_print ("  Volume           %7.2f%%    (%.2f dB)\n", gsl_data_handle_volume (dhandle) 
* 100, volume_db);
+                      printout ("  Volume           %7.2f%%    (%.2f dB)\n", gsl_data_handle_volume 
(dhandle) * 100, volume_db);
                     }
-                  g_print ("  Stored as       %s data\n", dhandle_storage_format (dhandle).c_str());
-                  g_print ("  Avg Energy %+13.2f dB", feature_avg_energy (dhandle, gsl_data_handle_volume 
(dhandle)));
+                  printout ("  Stored as       %s data\n", dhandle_storage_format (dhandle).c_str());
+                  printout ("  Avg Energy %+13.2f dB", feature_avg_energy (dhandle, gsl_data_handle_volume 
(dhandle)));
                   if (bse_xinfos_get_value (dhandle->setup.xinfos, "volume"))
-                    g_print ("  (%.2f dB before volume adjustment)",
+                    printout ("  (%.2f dB before volume adjustment)",
                              feature_avg_energy (dhandle, 1.0));
-                  g_print ("\n");
+                  printout ("\n");
                 }
               const char *loop_type = bse_xinfos_get_value (dhandle->setup.xinfos, "loop-type");
               if (loop_type && m_output_format == FULL)
                 {
-                  g_print ("  Loop type %14s", loop_type);
+                  printout ("  Loop type %14s", loop_type);
                   if (strcmp (loop_type, "none") != 0)
                     {
                       SfiNum loop_start = bse_xinfos_get_num (dhandle->setup.xinfos, "loop-start");
                       SfiNum loop_end = bse_xinfos_get_num (dhandle->setup.xinfos, "loop-end");
-                      g_print ("     (start: %lld, end: %lld, ", loop_start, loop_end);
+                      printout ("     (start: %lld, end: %lld, ", loop_start, loop_end);
 
                       SfiNum loop_count = bse_xinfos_get_num (dhandle->setup.xinfos, "loop-count");
                       if (!loop_count)
-                        g_print ("forever)\n");
+                        printout ("forever)\n");
                       else
-                        g_print ("count: %lld)\n", loop_count);
+                        printout ("count: %lld)\n", loop_count);
                     }
                 }
             }
@@ -1790,35 +1790,35 @@ public:
   void
   blurb (bool bshort)
   {
-    g_print ("{-m=midi-note|-f=osc-freq|--chunk-key=key|--all-chunks} [options]\n");
+    printout ("{-m=midi-note|-f=osc-freq|--chunk-key=key|--all-chunks} [options]\n");
     if (bshort)
       return;
-    g_print ("    Clip head and or tail of a wave chunk and produce fade-in ramps at the\n");
-    g_print ("    beginning. Wave chunks which are clipped to an essential 0-length will\n");
-    g_print ("    automatically be deleted.\n");
-    g_print ("    Options:\n");
-    g_print ("    -f <osc-freq>       oscillator frequency to select a wave chunk\n");
-    g_print ("    -m <midi-note>      alternative way to specify oscillator frequency\n");
-    g_print ("    --chunk-key <key>   select wave chunk using chunk key from list-chunks\n");
-    g_print ("    --all-chunks        try to clip all chunks\n");
+    printout ("    Clip head and or tail of a wave chunk and produce fade-in ramps at the\n");
+    printout ("    beginning. Wave chunks which are clipped to an essential 0-length will\n");
+    printout ("    automatically be deleted.\n");
+    printout ("    Options:\n");
+    printout ("    -f <osc-freq>       oscillator frequency to select a wave chunk\n");
+    printout ("    -m <midi-note>      alternative way to specify oscillator frequency\n");
+    printout ("    --chunk-key <key>   select wave chunk using chunk key from list-chunks\n");
+    printout ("    --all-chunks        try to clip all chunks\n");
 #if 0
-    g_print ("    --config=\"s h t f p r\"\n");
-    g_print ("                        clipping configuration, consisting of space-seperated\n");
-    g_print ("                        configuration values:\n");
-    g_print ("                        s) minimum signal threshold [%u]\n", guint (threshold * 32767));
-    g_print ("                        h) silence samples to verify at head [%u]\n", head_samples);
-    g_print ("                        t) silence samples to verify at tail [%u]\n", tail_samples);
-    g_print ("                        f) samples to fade-in before signal starts [%u]\n", fade_samples);
-    g_print ("                        p) padding samples after signal ends [%u]\n", pad_samples);
-    g_print ("                        r) silence samples required at tail for clipping [%u]\n", 
tail_silence);
+    printout ("    --config=\"s h t f p r\"\n");
+    printout ("                        clipping configuration, consisting of space-seperated\n");
+    printout ("                        configuration values:\n");
+    printout ("                        s) minimum signal threshold [%u]\n", guint (threshold * 32767));
+    printout ("                        h) silence samples to verify at head [%u]\n", head_samples);
+    printout ("                        t) silence samples to verify at tail [%u]\n", tail_samples);
+    printout ("                        f) samples to fade-in before signal starts [%u]\n", fade_samples);
+    printout ("                        p) padding samples after signal ends [%u]\n", pad_samples);
+    printout ("                        r) silence samples required at tail for clipping [%u]\n", 
tail_silence);
 #endif
-    g_print ("    -s=<threshold>      set the minimum signal threshold (0..32767) [%u]\n", guint (threshold 
* 32767));
-    g_print ("    -h=<head-samples>   number of silence samples to verify at head [%u]\n", head_samples);
-    g_print ("    -t=<tail-samples>   number of silence samples to verify at tail [%u]\n", tail_samples);
-    g_print ("    -f=<fade-samples>   number of samples to fade-in before signal starts [%u]\n", 
fade_samples);
-    g_print ("    -p=<pad-samples>    number of padding samples after signal ends [%u]\n", pad_samples);
-    g_print ("    -r=<tail-silence>   number of silence samples required at tail to allow\n");
-    g_print ("                        tail clipping [%u]\n", tail_silence);
+    printout ("    -s=<threshold>      set the minimum signal threshold (0..32767) [%u]\n", guint (threshold 
* 32767));
+    printout ("    -h=<head-samples>   number of silence samples to verify at head [%u]\n", head_samples);
+    printout ("    -t=<tail-samples>   number of silence samples to verify at tail [%u]\n", tail_samples);
+    printout ("    -f=<fade-samples>   number of samples to fade-in before signal starts [%u]\n", 
fade_samples);
+    printout ("    -p=<pad-samples>    number of padding samples after signal ends [%u]\n", pad_samples);
+    printout ("    -r=<tail-silence>   number of silence samples required at tail to allow\n");
+    printout ("                        tail clipping [%u]\n", tail_silence);
     /*       "**********1*********2*********3*********4*********5*********6*********7*********" */
   }
   guint
@@ -1925,17 +1925,17 @@ public:
   void
   blurb (bool bshort)
   {
-    g_print ("{-m=midi-note|-f=osc-freq|--chunk-key=key|--all-chunks} [options]\n");
+    printout ("{-m=midi-note|-f=osc-freq|--chunk-key=key|--all-chunks} [options]\n");
     if (bshort)
       return;
-    g_print ("    Normalize wave chunk. This is used to extend (or compress) the signal\n");
-    g_print ("    range to optimally fit the available unclipped dynamic range.\n");
-    g_print ("    Options:\n");
-    g_print ("    -f <osc-freq>       oscillator frequency to select a wave chunk\n");
-    g_print ("    -m <midi-note>      alternative way to specify oscillator frequency\n");
-    g_print ("    --chunk-key <key>   select wave chunk using chunk key from list-chunks\n");
-    g_print ("    --all-chunks        try to normalize all chunks\n");
-    g_print ("    --volume-xinfo      keep original sample data, only set volume xinfo\n");
+    printout ("    Normalize wave chunk. This is used to extend (or compress) the signal\n");
+    printout ("    range to optimally fit the available unclipped dynamic range.\n");
+    printout ("    Options:\n");
+    printout ("    -f <osc-freq>       oscillator frequency to select a wave chunk\n");
+    printout ("    -m <midi-note>      alternative way to specify oscillator frequency\n");
+    printout ("    --chunk-key <key>   select wave chunk using chunk key from list-chunks\n");
+    printout ("    --all-chunks        try to normalize all chunks\n");
+    printout ("    --volume-xinfo      keep original sample data, only set volume xinfo\n");
     /*       "**********1*********2*********3*********4*********5*********6*********7*********" */
   }
   guint
@@ -2005,20 +2005,20 @@ public:
   void
   blurb (bool bshort)
   {
-    g_print ("{-m=midi-note|-f=osc-freq|--all-chunks} [options]\n");
+    printout ("{-m=midi-note|-f=osc-freq|--all-chunks} [options]\n");
     if (bshort)
       return;
-    g_print ("    Find suitable loop points.\n");
+    printout ("    Find suitable loop points.\n");
     /* bsewavetool loop <file.bsewave> [-a loop-algorithm] ...
      *         don't loop chunks with loop-type=unloopable xinfos
      *         automatically add xinfos with looping errors.
      *         allow ogg/vorbis package cutting at end-loop point
      */
-    g_print ("    Options:\n");
-    g_print ("    -f <osc-freq>       oscillator frequency to select a wave chunk\n");
-    g_print ("    -m <midi-note>      alternative way to specify oscillator frequency\n");
-    g_print ("    --chunk-key <key>   select wave chunk using chunk key from list-chunks\n");
-    g_print ("    --all-chunks        try to loop all chunks\n");
+    printout ("    Options:\n");
+    printout ("    -f <osc-freq>       oscillator frequency to select a wave chunk\n");
+    printout ("    -m <midi-note>      alternative way to specify oscillator frequency\n");
+    printout ("    --chunk-key <key>   select wave chunk using chunk key from list-chunks\n");
+    printout ("    --all-chunks        try to loop all chunks\n");
     /*       "**********1*********2*********3*********4*********5*********6*********7*********" */
   }
   guint
@@ -2100,10 +2100,10 @@ public:
   void
   blurb (bool bshort)
   {
-    g_print ("{-s=max_total_size|-e=max_chunk_error|-g=gal_iterations} [options]\n");
+    printout ("{-s=max_total_size|-e=max_chunk_error|-g=gal_iterations} [options]\n");
     if (bshort)
       return;
-    g_print (
+    printout (
 "    Thin out bsewave file by omitting some chunks. It currently only is useful\n"
 "    if the input wave contains one chunk per midi note, and these notes were looped,\n"
 "    so that xinfos[\"loop-score\"] of each chunk contains a loop error that can\n"
@@ -2138,10 +2138,10 @@ public:
 "    (which can be increased using the -g option), there is no guarantee that\n"
 "    the resulting chunk set fulfills all conditions; the optimizer will only try\n"
 "    to produce the best possible result.\n");
-    g_print ("    Options:\n");
-    g_print ("    -s <max-total-size>     restrict the resulting bsewave file to a max size\n");
-    g_print ("    -e <max-chunk-error>    ensure that no chunk exceeds this error margin\n");
-    g_print ("    -g <gal-iterations>     iterations for genetic algorithm optimizer [5000]\n");
+    printout ("    Options:\n");
+    printout ("    -s <max-total-size>     restrict the resulting bsewave file to a max size\n");
+    printout ("    -e <max-chunk-error>    ensure that no chunk exceeds this error margin\n");
+    printout ("    -g <gal-iterations>     iterations for genetic algorithm optimizer [5000]\n");
     /*       "**********1*********2*********3*********4*********5*********6*********7*********" */
   }
   guint
@@ -2475,12 +2475,12 @@ public:
   void
   blurb (bool bshort)
   {
-    g_print ("[options]\n");
+    printout ("[options]\n");
     if (bshort)
       return;
-    g_print ("    Apply %s filter to wave data\n", name.c_str());
-    g_print ("    --cutoff-freq <f>   filter cutoff frequency in Hz\n");
-    g_print ("    --order <o>         filter order [%u]\n", m_order);
+    printout ("    Apply %s filter to wave data\n", name.c_str());
+    printout ("    --cutoff-freq <f>   filter cutoff frequency in Hz\n");
+    printout ("    --order <o>         filter order [%u]\n", m_order);
     /*       "**********1*********2*********3*********4*********5*********6*********7*********" */
   }
   guint
@@ -2608,17 +2608,17 @@ public:
   void
   blurb (bool bshort)
   {
-    g_print ("[options]\n");
+    printout ("[options]\n");
     if (bshort)
       return;
-    g_print ("    Resample wave data to twice the sampling frequency.\n");
-    g_print ("    --precision <bits>      set resampler precision bits [%d]\n", m_precision_bits);
-    g_print ("                            supported precisions: 1, 8, 12, 16, 20, 24\n");
-    g_print ("                            1 is a special value for linear interpolation\n");
-    g_print ("    -f <osc-freq>           oscillator frequency to select a wave chunk\n");
-    g_print ("    -m <midi-note>          alternative way to specify oscillator frequency\n");
-    g_print ("    --chunk-key <key>       select wave chunk using chunk key from list-chunks\n");
-    g_print ("    --all-chunks            upsample all chunks\n");
+    printout ("    Resample wave data to twice the sampling frequency.\n");
+    printout ("    --precision <bits>      set resampler precision bits [%d]\n", m_precision_bits);
+    printout ("                            supported precisions: 1, 8, 12, 16, 20, 24\n");
+    printout ("                            1 is a special value for linear interpolation\n");
+    printout ("    -f <osc-freq>           oscillator frequency to select a wave chunk\n");
+    printout ("    -m <midi-note>          alternative way to specify oscillator frequency\n");
+    printout ("    --chunk-key <key>       select wave chunk using chunk key from list-chunks\n");
+    printout ("    --all-chunks            upsample all chunks\n");
     /*       "**********1*********2*********3*********4*********5*********6*********7*********" */
   }
   guint
@@ -2684,17 +2684,17 @@ public:
   void
   blurb (bool bshort)
   {
-    g_print ("[options]\n");
+    printout ("[options]\n");
     if (bshort)
       return;
-    g_print ("    Resample wave data to half the sampling frequency.\n");
-    g_print ("    --precision <bits>      set resampler precision bits [%d]\n", m_precision_bits);
-    g_print ("                            supported precisions: 1, 8, 12, 16, 20, 24\n");
-    g_print ("                            1 is a special value for linear interpolation\n");
-    g_print ("    -f <osc-freq>           oscillator frequency to select a wave chunk\n");
-    g_print ("    -m <midi-note>          alternative way to specify oscillator frequency\n");
-    g_print ("    --chunk-key <key>       select wave chunk using chunk key from list-chunks\n");
-    g_print ("    --all-chunks            downsample all chunks\n");
+    printout ("    Resample wave data to half the sampling frequency.\n");
+    printout ("    --precision <bits>      set resampler precision bits [%d]\n", m_precision_bits);
+    printout ("                            supported precisions: 1, 8, 12, 16, 20, 24\n");
+    printout ("                            1 is a special value for linear interpolation\n");
+    printout ("    -f <osc-freq>           oscillator frequency to select a wave chunk\n");
+    printout ("    -m <midi-note>          alternative way to specify oscillator frequency\n");
+    printout ("    --chunk-key <key>       select wave chunk using chunk key from list-chunks\n");
+    printout ("    --all-chunks            downsample all chunks\n");
      /*       "**********1*********2*********3*********4*********5*********6*********7*********" */
   }
   guint
@@ -2759,20 +2759,20 @@ public:
   void
   blurb (bool bshort)
   {
-    g_print ("{-m=midi-note|-f=osc-freq|--chunk-key=key|--all-chunks|-x=filename} [options]\n");
+    printout ("{-m=midi-note|-f=osc-freq|--chunk-key=key|--all-chunks|-x=filename} [options]\n");
     if (bshort)
       return;
-    g_print ("    Export chunks from bsewave as WAV file.\n");
-    g_print ("    Options:\n");
-    g_print ("    -x <filename>       set export filename (supports %%N %%F and %%C, see below)\n");
-    g_print ("    -f <osc-freq>       oscillator frequency to select a wave chunk\n");
-    g_print ("    -m <midi-note>      alternative way to specify oscillator frequency\n");
-    g_print ("    --chunk-key <key>   select wave chunk using chunk key from list-chunks\n");
-    g_print ("    --all-chunks        try to export all chunks\n");
-    g_print ("    The export filename can contain the following extra information:\n");
-    g_print ("      %%F  -  the frequency of the chunk\n");
-    g_print ("      %%N  -  the midi note of the chunk\n");
-    g_print ("      %%C  -  cent detuning of the midi note\n");
+    printout ("    Export chunks from bsewave as WAV file.\n");
+    printout ("    Options:\n");
+    printout ("    -x <filename>       set export filename (supports %%N %%F and %%C, see below)\n");
+    printout ("    -f <osc-freq>       oscillator frequency to select a wave chunk\n");
+    printout ("    -m <midi-note>      alternative way to specify oscillator frequency\n");
+    printout ("    --chunk-key <key>   select wave chunk using chunk key from list-chunks\n");
+    printout ("    --all-chunks        try to export all chunks\n");
+    printout ("    The export filename can contain the following extra information:\n");
+    printout ("      %%F  -  the frequency of the chunk\n");
+    printout ("      %%N  -  the midi note of the chunk\n");
+    printout ("      %%C  -  cent detuning of the midi note\n");
     /*       "**********1*********2*********3*********4*********5*********6*********7*********" */
   }
   guint
@@ -2943,17 +2943,17 @@ public:
   void
   blurb (bool bshort)
   {
-    g_print ("[options]\n");
+    printout ("[options]\n");
     if (bshort)
       return;
-    g_print ("    Prints a list of chunk keys of the chunks contained in the bsewave file.\n");
-    g_print ("    A chunk key for a given chunk identifies the chunk uniquely and stays valid\n");
-    g_print ("    if other chunks are inserted and deleted.\n");
-    g_print ("    This bash script shows the length of all chunks (like info --all-chunks):\n");
-    g_print ("      for key in `bsewavetool list-chunks foo.bsewave`\n");
-    g_print ("      do\n");
-    g_print ("        bsewavetool info foo.bsewave --chunk-key $key --script length\n");
-    g_print ("      done\n");
+    printout ("    Prints a list of chunk keys of the chunks contained in the bsewave file.\n");
+    printout ("    A chunk key for a given chunk identifies the chunk uniquely and stays valid\n");
+    printout ("    if other chunks are inserted and deleted.\n");
+    printout ("    This bash script shows the length of all chunks (like info --all-chunks):\n");
+    printout ("      for key in `bsewavetool list-chunks foo.bsewave`\n");
+    printout ("      do\n");
+    printout ("        bsewavetool info foo.bsewave --chunk-key $key --script length\n");
+    printout ("      done\n");
     /*       "**********1*********2*********3*********4*********5*********6*********7*********" */
   }
   guint
@@ -2972,7 +2972,7 @@ public:
         WaveChunk     *chunk = &*it;
         WaveChunkKey   chunk_key (gsl_data_handle_osc_freq (chunk->dhandle));
 
-        g_print ("%s\n", chunk_key.as_string().c_str());
+        printout ("%s\n", chunk_key.as_string().c_str());
       }
     return true;
   }
diff --git a/tools/cutvorbis.cc b/tools/cutvorbis.cc
index 6f44398..956eed3 100644
--- a/tools/cutvorbis.cc
+++ b/tools/cutvorbis.cc
@@ -140,7 +140,7 @@ main (int   argc,
       g_printerr ("Error: failed to flush \"%s\": %s\n", ofile, g_strerror (errno));
       exit (1);
     }
-  g_print ("done\n");
+  printout ("done\n");
 
   return 0;
 }
diff --git a/tools/magictest.cc b/tools/magictest.cc
index 7d5b79b..9e679ec 100644
--- a/tools/magictest.cc
+++ b/tools/magictest.cc
@@ -67,33 +67,33 @@ main (gint   argc,
          guint l = strlen (argv[i]);
          gchar *pad;
 
-         g_print ("%s:", argv[i]);
+         printout ("%s:", argv[i]);
          pad = g_strnfill (MAX (40, l) - l, ' ');
-         g_print ("%s", pad);
+         printout ("%s", pad);
          g_free (pad);
          if (!magic && !loader)
-           g_print (" no magic/loader found");
+           printout (" no magic/loader found");
          else
            {
              if (magic)
-               g_print (" MAGIC: %s", (char*) magic->data);
+               printout (" MAGIC: %s", (char*) magic->data);
              if (loader)
                 {
                   if (test_open)
                     {
                       BseWaveFileInfo *wfi;
                       Bse::ErrorType error = Bse::ERROR_NONE;
-                      g_print ("\n  LOADER: %s\n", loader->name);
+                      printout ("\n  LOADER: %s\n", loader->name);
                       wfi = bse_wave_file_info_load (argv[i], &error);
                       if (wfi)
                         bse_wave_file_info_unref (wfi);
-                      g_print ("  ERROR: %s", bse_error_blurb (error));
+                      printout ("  ERROR: %s", bse_error_blurb (error));
                     }
                   else
-                    g_print (" LOADER: %s", loader->name);
+                    printout (" LOADER: %s", loader->name);
                 }
            }
-         g_print ("\n");
+         printout ("\n");
        }
     }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]