Csound Csound-dev Csound-tekno Search About

[Csnd] Help request for my first steps with CSound C++ API audio analysis

Date2019-09-08 10:06
FromMarco Ippolito
Subject[Csnd] Help request for my first steps with CSound C++ API audio analysis
Hi all,

I just approached CSound library. My aim is to find ways to use CSound with C++ API for audio analysis like the one that can be grasped with LibROSA in python (https://librosa.github.io/librosa/index.html).
But I'm finding difficulties in trying to understand how to use CSound C++ API.
For example... how to load .flac files? How to resample the loaded .flac file with a sampling_rate?
Are there any examples of CSound C++ API usage?
Looking forward to your kind help.
Marco
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2019-09-08 12:31
FromFrancois PINOT
SubjectRe: [Csnd] Help request for my first steps with CSound C++ API audio analysis
As librosa is written in Python, why don't you use ctcsound wich is a Python wrapper to the Csound API?

François


Le dim. 8 sept. 2019 à 11:17, Marco Ippolito <ippolito.marco@gmail.com> a écrit :
Hi all,

I just approached CSound library. My aim is to find ways to use CSound with C++ API for audio analysis like the one that can be grasped with LibROSA in python (https://librosa.github.io/librosa/index.html).
But I'm finding difficulties in trying to understand how to use CSound C++ API.
For example... how to load .flac files? How to resample the loaded .flac file with a sampling_rate?
Are there any examples of CSound C++ API usage?
Looking forward to your kind help.
Marco
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2019-09-08 12:41
FromRory Walsh
SubjectRe: [Csnd] Help request for my first steps with CSound C++ API audio analysis
Or just use Csound to do the audio analysis? Why complicate things. That being said, I'm not familiar with libRosa. Perhaps it can do things Csound can't. 

On Sun 8 Sep 2019, 12:31 Francois PINOT, <fggpinot@gmail.com> wrote:
As librosa is written in Python, why don't you use ctcsound wich is a Python wrapper to the Csound API?

François


Le dim. 8 sept. 2019 à 11:17, Marco Ippolito <ippolito.marco@gmail.com> a écrit :
Hi all,

I just approached CSound library. My aim is to find ways to use CSound with C++ API for audio analysis like the one that can be grasped with LibROSA in python (https://librosa.github.io/librosa/index.html).
But I'm finding difficulties in trying to understand how to use CSound C++ API.
For example... how to load .flac files? How to resample the loaded .flac file with a sampling_rate?
Are there any examples of CSound C++ API usage?
Looking forward to your kind help.
Marco
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2019-09-08 15:10
FromOeyvind Brandtsegg
SubjectRe: [Csnd] Help request for my first steps with CSound C++ API audio analysis
Hi Marco,
If you want to analyse the sound in Csound, perhaps some of the routines from my feature-extractor-modulator code can be useful.
The audio analysis code is in the analyze_audio.inc file.
It will probably not give you what you need for a standard MIR system out of the box. It is more geared towards realtime analysis. 
Just thought I should mention, in case it is useful for you.

best
Oeyvind

søn. 8. sep. 2019 kl. 13:41 skrev Rory Walsh <rorywalsh@ear.ie>:
Or just use Csound to do the audio analysis? Why complicate things. That being said, I'm not familiar with libRosa. Perhaps it can do things Csound can't. 

On Sun 8 Sep 2019, 12:31 Francois PINOT, <fggpinot@gmail.com> wrote:
As librosa is written in Python, why don't you use ctcsound wich is a Python wrapper to the Csound API?

François


Le dim. 8 sept. 2019 à 11:17, Marco Ippolito <ippolito.marco@gmail.com> a écrit :
Hi all,

I just approached CSound library. My aim is to find ways to use CSound with C++ API for audio analysis like the one that can be grasped with LibROSA in python (https://librosa.github.io/librosa/index.html).
But I'm finding difficulties in trying to understand how to use CSound C++ API.
For example... how to load .flac files? How to resample the loaded .flac file with a sampling_rate?
Are there any examples of CSound C++ API usage?
Looking forward to your kind help.
Marco
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here