Csound Csound-dev Csound-tekno Search About

[Csnd] Using csound to isolate a sound

Date2010-10-25 17:56
FromAnthony Palomba
Subject[Csnd] Using csound to isolate a sound
I want to be able to extract a sound from a recording.
Lets say for example it is a guitar line. I was wondering
if you guys could suggest what would be the best strategy
to extract a target spectrum from its surrounding spectrum
using csound.




Thanks,
Anthony

Date2010-10-25 18:14
FromVictor Lazzarini
Subject[Csnd] Re: Using csound to isolate a sound
you can try pvsdemix.

Victor
On 25 Oct 2010, at 17:56, Anthony Palomba wrote:

> I want to be able to extract a sound from a recording.
> Lets say for example it is a guitar line. I was wondering
> if you guys could suggest what would be the best strategy
> to extract a target spectrum from its surrounding spectrum
> using csound.
>
>
>
>
> Thanks,
> Anthony



Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2010-10-26 13:42
Frompeiman khosravi
Subject[Csnd] Re: Re: Using csound to isolate a sound
I once extracted a single oboe note from a polyphonic orchestral mass, transposed it up by a semitone (the soloist had played the wrong note!) and added the transposed version to the orchestra. This was only one note but took a good part of an evening to extract it with audiosculpt. I did it all by hand, filtering the fundamental frequency and all the harmonics of the oboe note one by one by drawing in filters on top of the sonogram. I think to get a really convincing result with a longer part is near impossible or too time consuming. Might be quicker to record the whole thing from scratch!

Best,

Peiman

On 25 October 2010 18:14, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
you can try pvsdemix.

Victor

On 25 Oct 2010, at 17:56, Anthony Palomba wrote:

I want to be able to extract a sound from a recording.
Lets say for example it is a guitar line. I was wondering
if you guys could suggest what would be the best strategy
to extract a target spectrum from its surrounding spectrum
using csound.




Thanks,
Anthony



Send bugs reports to the Sourceforge bug tracker
          https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"



Date2010-10-26 14:45
FromAnthony Palomba
Subject[Csnd] Re: Re: Re: Using csound to isolate a sound
Well that might be fine for an oboe but some times the sound itself
might be impossible to reproduce.

I can certainly understand how trying to extract a passage of notes
would be a hard task.

Perhaps and improvement on your process might be to record an
"audio mask" track with the closest sound that you have. It would
match note for note, dynamics as well. You could then use that
to guide to do most of the work.

I am sure you would still have to tweak some of the higher partials.



-ap


On Tue, Oct 26, 2010 at 7:42 AM, peiman khosravi <peimankhosravi@gmail.com> wrote:
I once extracted a single oboe note from a polyphonic orchestral mass, transposed it up by a semitone (the soloist had played the wrong note!) and added the transposed version to the orchestra. This was only one note but took a good part of an evening to extract it with audiosculpt. I did it all by hand, filtering the fundamental frequency and all the harmonics of the oboe note one by one by drawing in filters on top of the sonogram. I think to get a really convincing result with a longer part is near impossible or too time consuming. Might be quicker to record the whole thing from scratch!

Best,

Peiman


On 25 October 2010 18:14, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
you can try pvsdemix.

Victor

On 25 Oct 2010, at 17:56, Anthony Palomba wrote:

I want to be able to extract a sound from a recording.
Lets say for example it is a guitar line. I was wondering
if you guys could suggest what would be the best strategy
to extract a target spectrum from its surrounding spectrum
using csound.




Thanks,
Anthony



Send bugs reports to the Sourceforge bug tracker
          https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"




Date2010-10-26 15:01
FromToby Chappell
Subject[Csnd] Re: Re: Re: Re: Using csound to isolate a sound
Or just use a tool designed for jobs like this, something like SPEAR
(http://www.klingbeil.com/spear/ )


-Toby


Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2010-10-26 15:04
Fromjpff@cs.bath.ac.uk
Subject[Csnd] Re: Re: Re: Re: Re: Using csound to isolate a sound
> Or just use a tool designed for jobs like this, something like SPEAR
> (http://www.klingbeil.com/spear/ )
>
>

As far as I know spear is a MAC-only program.  Anyone know of an
equivalent for other platforms, and espcially a FOSS program?

==JOhn ff



Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2010-10-26 15:08
FromAnthony Palomba
Subject[Csnd] Re: Re: Re: Re: Re: Re: Using csound to isolate a sound
SPEAR is definitely not a mac only program.
I use it on my PC all the time.




-ap



On Tue, Oct 26, 2010 at 9:04 AM, <jpff@cs.bath.ac.uk> wrote:
> Or just use a tool designed for jobs like this, something like SPEAR
> (http://www.klingbeil.com/spear/ )
>
>

As far as I know spear is a MAC-only program.  Anyone know of an
equivalent for other platforms, and espcially a FOSS program?

==JOhn ff



Send bugs reports to the Sourceforge bug tracker
           https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"



Date2010-10-26 15:10
FromAnthony Palomba
Subject[Csnd] Re: Re: Re: Re: Re: Using csound to isolate a sound
As I understand it SPEAR would give me an SDIF file
that amplitude trajectories of all the partials in a sound
recording.

Does SPEAR also do the masking part?



-ap



On Tue, Oct 26, 2010 at 9:01 AM, Toby Chappell <saturnin@fastmail.fm> wrote:
Or just use a tool designed for jobs like this, something like SPEAR
(http://www.klingbeil.com/spear/ )


-Toby


Send bugs reports to the Sourceforge bug tracker
           https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"



Date2010-10-26 17:18
Frompeiman khosravi
Subject[Csnd] Re: Re: Re: Re: Re: Re: Using csound to isolate a sound
With masking data you can definitely do the job in Csound. Just make user defined opcode to read and write the data to/from tables.

SPEAR is good for analysis and works fine with really sustained sounds but I don't think it would give a usable result for this purpose.

Peiman

On 26 October 2010 15:10, Anthony Palomba <apalomba@austin.rr.com> wrote:
As I understand it SPEAR would give me an SDIF file
that amplitude trajectories of all the partials in a sound
recording.

Does SPEAR also do the masking part?



-ap




On Tue, Oct 26, 2010 at 9:01 AM, Toby Chappell <saturnin@fastmail.fm> wrote:
Or just use a tool designed for jobs like this, something like SPEAR
(http://www.klingbeil.com/spear/ )


-Toby


Send bugs reports to the Sourceforge bug tracker
           https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"




Date2010-10-26 17:23
Frompeiman khosravi
Subject[Csnd] Re: Re: Re: Re: Re: Re: Using csound to isolate a sound
So basically just copy the fsig data window-by-window to a table and then subtract it from the original fsig stream. You can average the masking spectrum as well to get a smoother result.

P   

On 26 October 2010 17:18, peiman khosravi <peimankhosravi@gmail.com> wrote:
With masking data you can definitely do the job in Csound. Just make user defined opcode to read and write the data to/from tables.

SPEAR is good for analysis and works fine with really sustained sounds but I don't think it would give a usable result for this purpose.

Peiman


On 26 October 2010 15:10, Anthony Palomba <apalomba@austin.rr.com> wrote:
As I understand it SPEAR would give me an SDIF file
that amplitude trajectories of all the partials in a sound
recording.

Does SPEAR also do the masking part?



-ap




On Tue, Oct 26, 2010 at 9:01 AM, Toby Chappell <saturnin@fastmail.fm> wrote:
Or just use a tool designed for jobs like this, something like SPEAR
(http://www.klingbeil.com/spear/ )


-Toby


Send bugs reports to the Sourceforge bug tracker
           https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"





Date2010-10-26 17:24
FromAnthony Palomba
Subject[Csnd] Re: Re: Re: Re: Re: Re: Re: Using csound to isolate a sound
"Just make user defined opcode to read and write the data to/from tables"

So what would I be loading in the tables? The envelop of the partial? What would I
use to then remove all but that partial, some FFT opcode?



-ap


Alternately could I use ATS opcodes to do this?

On Tue, Oct 26, 2010 at 11:18 AM, peiman khosravi <peimankhosravi@gmail.com> wrote:
With masking data you can definitely do the job in Csound. Just make user defined opcode to read and write the data to/from tables.

SPEAR is good for analysis and works fine with really sustained sounds but I don't think it would give a usable result for this purpose.

Peiman


On 26 October 2010 15:10, Anthony Palomba <apalomba@austin.rr.com> wrote:
As I understand it SPEAR would give me an SDIF file
that amplitude trajectories of all the partials in a sound
recording.

Does SPEAR also do the masking part?



-ap




On Tue, Oct 26, 2010 at 9:01 AM, Toby Chappell <saturnin@fastmail.fm> wrote:
Or just use a tool designed for jobs like this, something like SPEAR
(http://www.klingbeil.com/spear/ )


-Toby


Send bugs reports to the Sourceforge bug tracker
           https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"





Date2010-10-26 21:54
Frompeiman khosravi
Subject[Csnd] Re: Re: Re: Re: Re: Re: Re: Re: Using csound to isolate a sound
What is your material exactly? Do you have a version of the recording without the sound that you want to isolate? How will you make the masking track if not?

You can make a sort of dynamic version of pvsmaska in which the masking table changes window by window, as long as you have a version of the sound without the material you want to isolate. Otherwise I don't know how you would make a masking signal.

To read/write to table you would use pvsftr and pvsftw. Unless your sound is harmonic and relatively stable partial tracking wont give you a good result in my experience.


Best,

Peiman

On 26 October 2010 17:24, Anthony Palomba <apalomba@austin.rr.com> wrote:
"Just make user defined opcode to read and write the data to/from tables"

So what would I be loading in the tables? The envelop of the partial? What would I
use to then remove all but that partial, some FFT opcode?



-ap


Alternately could I use ATS opcodes to do this?


On Tue, Oct 26, 2010 at 11:18 AM, peiman khosravi <peimankhosravi@gmail.com> wrote:
With masking data you can definitely do the job in Csound. Just make user defined opcode to read and write the data to/from tables.

SPEAR is good for analysis and works fine with really sustained sounds but I don't think it would give a usable result for this purpose.

Peiman


On 26 October 2010 15:10, Anthony Palomba <apalomba@austin.rr.com> wrote:
As I understand it SPEAR would give me an SDIF file
that amplitude trajectories of all the partials in a sound
recording.

Does SPEAR also do the masking part?



-ap




On Tue, Oct 26, 2010 at 9:01 AM, Toby Chappell <saturnin@fastmail.fm> wrote:
Or just use a tool designed for jobs like this, something like SPEAR
(http://www.klingbeil.com/spear/ )


-Toby


Send bugs reports to the Sourceforge bug tracker
           https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"






Date2010-10-26 22:17
FromAnthony Palomba
Subject[Csnd] Re: Re: Re: Re: Re: Re: Re: Re: Re: Using csound to isolate a sound
I have no exact material in mind. I would create the masking track with
the closest sample set that I have.



On Tue, Oct 26, 2010 at 3:54 PM, peiman khosravi <peimankhosravi@gmail.com> wrote:
What is your material exactly? Do you have a version of the recording without the sound that you want to isolate? How will you make the masking track if not?

You can make a sort of dynamic version of pvsmaska in which the masking table changes window by window, as long as you have a version of the sound without the material you want to isolate. Otherwise I don't know how you would make a masking signal.

To read/write to table you would use pvsftr and pvsftw. Unless your sound is harmonic and relatively stable partial tracking wont give you a good result in my experience.


Best,

Peiman


On 26 October 2010 17:24, Anthony Palomba <apalomba@austin.rr.com> wrote:
"Just make user defined opcode to read and write the data to/from tables"

So what would I be loading in the tables? The envelop of the partial? What would I
use to then remove all but that partial, some FFT opcode?



-ap


Alternately could I use ATS opcodes to do this?


On Tue, Oct 26, 2010 at 11:18 AM, peiman khosravi <peimankhosravi@gmail.com> wrote:
With masking data you can definitely do the job in Csound. Just make user defined opcode to read and write the data to/from tables.

SPEAR is good for analysis and works fine with really sustained sounds but I don't think it would give a usable result for this purpose.

Peiman


On 26 October 2010 15:10, Anthony Palomba <apalomba@austin.rr.com> wrote:
As I understand it SPEAR would give me an SDIF file
that amplitude trajectories of all the partials in a sound
recording.

Does SPEAR also do the masking part?



-ap




On Tue, Oct 26, 2010 at 9:01 AM, Toby Chappell <saturnin@fastmail.fm> wrote:
Or just use a tool designed for jobs like this, something like SPEAR
(http://www.klingbeil.com/spear/ )


-Toby


Send bugs reports to the Sourceforge bug tracker
           https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"







Date2010-10-26 23:58
Frompeiman khosravi
Subject[Csnd] Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Using csound to isolate a sound
That should work then I guess. But again having audiosculpt might be really useful as it allows you to load a midi file unto your sonogram and use each midi note as a filter (band pass or reject).

Time to go to bed now!

P

On 26 October 2010 22:17, Anthony Palomba <apalomba@austin.rr.com> wrote:
I have no exact material in mind. I would create the masking track with
the closest sample set that I have.



On Tue, Oct 26, 2010 at 3:54 PM, peiman khosravi <peimankhosravi@gmail.com> wrote:
What is your material exactly? Do you have a version of the recording without the sound that you want to isolate? How will you make the masking track if not?

You can make a sort of dynamic version of pvsmaska in which the masking table changes window by window, as long as you have a version of the sound without the material you want to isolate. Otherwise I don't know how you would make a masking signal.

To read/write to table you would use pvsftr and pvsftw. Unless your sound is harmonic and relatively stable partial tracking wont give you a good result in my experience.


Best,

Peiman


On 26 October 2010 17:24, Anthony Palomba <apalomba@austin.rr.com> wrote:
"Just make user defined opcode to read and write the data to/from tables"

So what would I be loading in the tables? The envelop of the partial? What would I
use to then remove all but that partial, some FFT opcode?



-ap


Alternately could I use ATS opcodes to do this?


On Tue, Oct 26, 2010 at 11:18 AM, peiman khosravi <peimankhosravi@gmail.com> wrote:
With masking data you can definitely do the job in Csound. Just make user defined opcode to read and write the data to/from tables.

SPEAR is good for analysis and works fine with really sustained sounds but I don't think it would give a usable result for this purpose.

Peiman


On 26 October 2010 15:10, Anthony Palomba <apalomba@austin.rr.com> wrote:
As I understand it SPEAR would give me an SDIF file
that amplitude trajectories of all the partials in a sound
recording.

Does SPEAR also do the masking part?



-ap




On Tue, Oct 26, 2010 at 9:01 AM, Toby Chappell <saturnin@fastmail.fm> wrote:
Or just use a tool designed for jobs like this, something like SPEAR
(http://www.klingbeil.com/spear/ )


-Toby


Send bugs reports to the Sourceforge bug tracker
           https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"








Date2010-10-27 20:22
FromAnthony Palomba
Subject[Csnd] Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Using csound to isolate a sound
That is very cool, I would love to be able to do that in csound as well.



-ap



On Tue, Oct 26, 2010 at 5:58 PM, peiman khosravi <peimankhosravi@gmail.com> wrote:
That should work then I guess. But again having audiosculpt might be really useful as it allows you to load a midi file unto your sonogram and use each midi note as a filter (band pass or reject).

Time to go to bed now!

P


On 26 October 2010 22:17, Anthony Palomba <apalomba@austin.rr.com> wrote:
I have no exact material in mind. I would create the masking track with
the closest sample set that I have.



On Tue, Oct 26, 2010 at 3:54 PM, peiman khosravi <peimankhosravi@gmail.com> wrote:
What is your material exactly? Do you have a version of the recording without the sound that you want to isolate? How will you make the masking track if not?

You can make a sort of dynamic version of pvsmaska in which the masking table changes window by window, as long as you have a version of the sound without the material you want to isolate. Otherwise I don't know how you would make a masking signal.

To read/write to table you would use pvsftr and pvsftw. Unless your sound is harmonic and relatively stable partial tracking wont give you a good result in my experience.


Best,

Peiman


On 26 October 2010 17:24, Anthony Palomba <apalomba@austin.rr.com> wrote:
"Just make user defined opcode to read and write the data to/from tables"

So what would I be loading in the tables? The envelop of the partial? What would I
use to then remove all but that partial, some FFT opcode?



-ap


Alternately could I use ATS opcodes to do this?


On Tue, Oct 26, 2010 at 11:18 AM, peiman khosravi <peimankhosravi@gmail.com> wrote:
With masking data you can definitely do the job in Csound. Just make user defined opcode to read and write the data to/from tables.

SPEAR is good for analysis and works fine with really sustained sounds but I don't think it would give a usable result for this purpose.

Peiman


On 26 October 2010 15:10, Anthony Palomba <apalomba@austin.rr.com> wrote:
As I understand it SPEAR would give me an SDIF file
that amplitude trajectories of all the partials in a sound
recording.

Does SPEAR also do the masking part?



-ap




On Tue, Oct 26, 2010 at 9:01 AM, Toby Chappell <saturnin@fastmail.fm> wrote:
Or just use a tool designed for jobs like this, something like SPEAR
(http://www.klingbeil.com/spear/ )


-Toby


Send bugs reports to the Sourceforge bug tracker
           https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"