#include "utils.h"
#define PROG_HAS_ONSET 1
#define PROG_HAS_OUTPUT 1
#define PROG_HAS_SILENCE 1
#define PROG_HAS_JACK 1
#include "parse_args.h"
{
  if ( !usejack && ! sink_uri ) return;
  if ( is_onset ) {
    
    if (usejack) send_noteon(miditap_note, miditap_velo);
  } else {
  }
  if (mix_input) {
  } else {
  }
}
void process_print (void)
{
  if ( is_onset ) {
    outmsg ("\n");
  }
}
int main(int argc, char **argv) {
  int ret = 0;
  examples_common_init(argc,argv);
  if (o == NULL) { ret = 1; goto beach; }
  if (onset_threshold != 0.)
  if (silence_threshold != -90.)
  if (onset_minioi != 0.)
  verbmsg ("using source: %s at %dHz\n", source_uri, samplerate);
  verbmsg ("onset method: %s, ", onset_method);
  verbmsg ("buffer_size: %d, ", buffer_size);
  verbmsg ("hop_size: %d, ", hop_size);
  
  examples_common_process(process_block, process_print);
  
  if (usejack) {
    send_noteon (miditap_note, 0);
  }
beach:
  examples_common_del();
  return ret;
}