Changeset 8212692


Ignore:
Timestamp:
Jan 9, 2010, 3:49:40 PM (14 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
Children:
066433d
Parents:
4c01c0f (diff), f650860 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

pull from master

Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • examples/Makefile.am

    r4c01c0f r8212692  
    1111
    1212noinst_PROGRAMS = \
     13        aubiopitch
    1314        aubioquiet
    1415
     
    2021aubionotes_SOURCES = aubionotes.c $(COMMON_SOURCE_FILES)
    2122aubiotrack_SOURCES = aubiotrack.c $(COMMON_SOURCE_FILES)
     23aubiopitch_SOURCES = aubiopitch.c $(COMMON_SOURCE_FILES)
    2224aubioquiet_SOURCES = aubioquiet.c $(COMMON_SOURCE_FILES)
    2325aubiomfcc_SOURCES = aubiomfcc.c $(COMMON_SOURCE_FILES)
     
    2628aubionotes_LDADD = @SNDFILE_LIBS@ @JACK_LIBS@
    2729aubiotrack_LDADD = @SNDFILE_LIBS@ @JACK_LIBS@
     30aubiopitch_LDADD = @SNDFILE_LIBS@ @JACK_LIBS@
    2831aubioquiet_LDADD = @SNDFILE_LIBS@ @JACK_LIBS@
    2932aubiomfcc_LDADD = @SNDFILE_LIBS@ @JACK_LIBS@
  • examples/utils.c

    r4c01c0f r8212692  
    207207  parse_args (argc, argv);
    208208
    209   woodblock = new_fvec (overlap_size);
     209  if (!usejack) {
     210    debug ("Opening files ...\n");
     211    file = new_aubio_sndfile_ro (input_filename);
     212    if (file == NULL) {
     213      outmsg ("Could not open input file %s.\n", input_filename);
     214      exit (1);
     215    }
     216    if (verbose)
     217      aubio_sndfile_info (file);
     218    samplerate = aubio_sndfile_samplerate (file);
     219    if (output_filename != NULL)
     220      fileout = new_aubio_sndfile_wo (file, output_filename);
     221  }
     222#ifdef HAVE_LASH
     223  else {
     224    aubio_lash_client = lash_init (lash_args, argv[0],
     225        LASH_Config_Data_Set | LASH_Terminal, LASH_PROTOCOL (2, 0));
     226    if (!aubio_lash_client) {
     227      fprintf (stderr, "%s: could not initialise lash\n", __FUNCTION__);
     228    }
     229    /* tell the lash server our client id */
     230    if (lash_enabled (aubio_lash_client)) {
     231      lash_event_t *event =
     232          (lash_event_t *) lash_event_new_with_type (LASH_Client_Name);
     233      lash_event_set_string (event, "aubio");
     234      lash_send_event (aubio_lash_client, event);
     235      pthread_create (&lash_thread, NULL, lash_thread_main, NULL);
     236    }
     237  }
     238#endif /* HAVE_LASH */
     239
     240  woodblock = new_fvec (overlap_size, channels);
    210241  if (output_filename || usejack) {
    211242    /* dummy assignement to keep egcs happy */
     
    220251  if (onsetfile) {
    221252    /* read the output sound once */
    222     aubio_sndfile_read_mono (onsetfile, overlap_size, woodblock);
    223   }
    224 
    225   if (!usejack) {
    226     debug ("Opening files ...\n");
    227     file = new_aubio_sndfile_ro (input_filename);
    228     if (file == NULL) {
    229       outmsg ("Could not open input file %s.\n", input_filename);
    230       exit (1);
    231     }
    232     if (verbose)
    233       aubio_sndfile_info (file);
    234     samplerate = aubio_sndfile_samplerate (file);
    235     if (output_filename != NULL)
    236       fileout = new_aubio_sndfile_wo (file, output_filename);
    237   }
    238 #ifdef HAVE_LASH
    239   else {
    240     aubio_lash_client = lash_init (lash_args, argv[0],
    241         LASH_Config_Data_Set | LASH_Terminal, LASH_PROTOCOL (2, 0));
    242     if (!aubio_lash_client) {
    243       fprintf (stderr, "%s: could not initialise lash\n", __FUNCTION__);
    244     }
    245     /* tell the lash server our client id */
    246     if (lash_enabled (aubio_lash_client)) {
    247       lash_event_t *event =
    248           (lash_event_t *) lash_event_new_with_type (LASH_Client_Name);
    249       lash_event_set_string (event, "aubio");
    250       lash_send_event (aubio_lash_client, event);
    251       pthread_create (&lash_thread, NULL, lash_thread_main, NULL);
    252     }
    253   }
    254 #endif /* HAVE_LASH */
    255 
    256   uint_t i;
    257   ibuf = new_fvec (overlap_size);
    258   obuf = new_fvec (overlap_size);
     253    aubio_sndfile_read (onsetfile, overlap_size, woodblock);
     254  }
     255
     256  ibuf = new_fvec (overlap_size, channels);
     257  obuf = new_fvec (overlap_size, channels);
    259258
    260259}
  • src/spectral/specdesc.c

    r4c01c0f r8212692  
    274274      onset_type = aubio_onset_default;
    275275  else {
    276       AUBIO_ERR("unknown spectral descriptor type %s.\n", onset_mode);
     276      AUBIO_ERR("unknown spectral descriptor type %s, using default.\n", onset_mode);
    277277      onset_type = aubio_onset_default;
    278278  }
Note: See TracChangeset for help on using the changeset viewer.