source: examples/midiparse.c @ 5a61c29

feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5pitchshiftsamplertimestretchyinfft+
Last change on this file since 5a61c29 was b49daf6, checked in by Paul Brossier <piem@altern.org>, 19 years ago

started enabling ladcca support

ladcca still need works, not sure how to avoid the extern client

  • Property mode set to 100644
File size: 1.2 KB
Line 
1/*
2   copyright (c) 2003 paul brossier
3
4   this program is free software; you can redistribute it and/or modify
5   it under the terms of the gnu general public license as published by
6   the free software foundation; either version 2 of the license, or
7   (at your option) any later version.
8
9   this program is distributed in the hope that it will be useful,
10   but without any warranty; without even the implied warranty of
11   merchantability or fitness for a particular purpose.  see the
12   gnu general public license for more details.
13
14   you should have received a copy of the gnu general public license
15   along with this program; if not, write to the free software
16   foundation, inc., 675 mass ave, cambridge, ma 02139, usa.
17
18*/
19
20#include "aubio.h"
21#include <unistd.h>
22
23/* not supported yet */
24#ifdef LADCCA_SUPPORT
25#include <ladcca/ladcca.h>
26cca_client_t * aubio_cca_client;
27#endif /* LADCCA_SUPPORT */
28
29int main(int argc, char ** argv) {
30#if ALSA_SUPPORT
31        aubio_midi_player_t * mplay = new_aubio_midi_player();
32        argc--;
33        aubio_midi_player_add(mplay,argv[argc]);
34        while(aubio_midi_player_play_offline(mplay) == 0)
35                pause();
36        aubio_midi_player_stop(mplay);
37        del_aubio_midi_player(mplay);
38#endif
39        return 0;
40} 
41
Note: See TracBrowser for help on using the repository browser.