Csound Csound-dev Csound-tekno Search About

[Csnd] fft data from Matlab to Csound

Date2014-08-29 13:08
FromSigurd Saue
Subject[Csnd] fft data from Matlab to Csound
Hi,

What is the easiest way to get Matlab fft data into Csound? Does anyone know if Matlab can export to the PVOCEX format to be read by pvsfread?

Sigurd


Date2014-08-29 13:37
FromVictor Lazzarini
SubjectRe: [Csnd] fft data from Matlab to Csound
Sigurd,

there are several ways:

1) as you said, write a binary PVOCEX
2) write a text file and convert using pv_import
3) write two text files and load them onto tables (amp, freq).

Regards
========================
Dr Victor Lazzarini
Senior Lecturer
NUI Maynooth, Ireland
victor dot lazzarini at nuim dot ie




On 29 Aug 2014, at 13:08, Sigurd Saue  wrote:

> Hi,
> 
> What is the easiest way to get Matlab fft data into Csound? Does anyone know if Matlab can export to the PVOCEX format to be read by pvsfread?
> 
> Sigurd
> 
> 
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
> 
> 
> 



Date2014-08-31 21:58
FromSigurd Saue
SubjectRE: [Csnd] fft data from Matlab to Csound
Thanks Victor,

As far as I know Matlab does not support the first option, so we'll just go with one of the other.

Thanks! And see you in Erlangen, I guess?

Sigurd

-----Original Message-----
From: Victor Lazzarini [mailto:Victor.Lazzarini@nuim.ie] 
Sent: Friday, August 29, 2014 2:37 PM
To: csound@lists.bath.ac.uk
Subject: Re: [Csnd] fft data from Matlab to Csound

Sigurd,

there are several ways:

1) as you said, write a binary PVOCEX
2) write a text file and convert using pv_import
3) write two text files and load them onto tables (amp, freq).

Regards
========================
Dr Victor Lazzarini
Senior Lecturer
NUI Maynooth, Ireland
victor dot lazzarini at nuim dot ie




On 29 Aug 2014, at 13:08, Sigurd Saue  wrote:

> Hi,
> 
> What is the easiest way to get Matlab fft data into Csound? Does anyone know if Matlab can export to the PVOCEX format to be read by pvsfread?
> 
> Sigurd
> 
> 
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here To unsubscribe, 
> send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
> 
> 
> 



Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"





Date2014-08-31 22:27
FromVictor Lazzarini
SubjectRe: [Csnd] fft data from Matlab to Csound
Sorry, I will not be able to make it to Erlangen, but my colleague Joe will be there.
========================
Dr Victor Lazzarini
Dean of Faculty of Arts, Philosophy and Celtic Studies,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 







On 31 Aug 2014, at 21:58, Sigurd Saue  wrote:

> Thanks Victor,
> 
> As far as I know Matlab does not support the first option, so we'll just go with one of the other.
> 
> Thanks! And see you in Erlangen, I guess?
> 
> Sigurd
> 
> -----Original Message-----
> From: Victor Lazzarini [mailto:Victor.Lazzarini@nuim.ie] 
> Sent: Friday, August 29, 2014 2:37 PM
> To: csound@lists.bath.ac.uk
> Subject: Re: [Csnd] fft data from Matlab to Csound
> 
> Sigurd,
> 
> there are several ways:
> 
> 1) as you said, write a binary PVOCEX
> 2) write a text file and convert using pv_import
> 3) write two text files and load them onto tables (amp, freq).
> 
> Regards
> ========================
> Dr Victor Lazzarini
> Senior Lecturer
> NUI Maynooth, Ireland
> victor dot lazzarini at nuim dot ie
> 
> 
> 
> 
> On 29 Aug 2014, at 13:08, Sigurd Saue  wrote:
> 
>> Hi,
>> 
>> What is the easiest way to get Matlab fft data into Csound? Does anyone know if Matlab can export to the PVOCEX format to be read by pvsfread?
>> 
>> Sigurd
>> 
>> 
>> Send bugs reports to
>>       https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here To unsubscribe, 
>> send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>> 
>> 
>> 
> 
> 
> 
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
> 
> 
> 
> 
> 
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
> 
> 
> 



Date2014-08-31 22:49
FromDavid Worrall
SubjectRe: [Csnd] fft data from Matlab to Csound
Sorry I'll miss you (both) there - I've hopped down-under and will be working from Canberra for a couple of months.
I do have a development (RT-24/7) python/csound installation of network flow running there at IIS which those of you who visit will be welcome to audit.

David

 
On 31.08.2014, at 23:27, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:

Sorry, I will not be able to make it to Erlangen, but my colleague Joe will be there.
========================
Dr Victor Lazzarini
Dean of Faculty of Arts, Philosophy and Celtic Studies,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952







On 31 Aug 2014, at 21:58, Sigurd Saue <sigurd.saue@ntnu.no> wrote:

Thanks Victor,

As far as I know Matlab does not support the first option, so we'll just go with one of the other.

Thanks! And see you in Erlangen, I guess?

Sigurd

-----Original Message-----
From: Victor Lazzarini [mailto:Victor.Lazzarini@nuim.ie]
Sent: Friday, August 29, 2014 2:37 PM
To: csound@lists.bath.ac.uk
Subject: Re: [Csnd] fft data from Matlab to Csound

Sigurd,

there are several ways:

1) as you said, write a binary PVOCEX
2) write a text file and convert using pv_import
3) write two text files and load them onto tables (amp, freq).

Regards
========================
Dr Victor Lazzarini
Senior Lecturer
NUI Maynooth, Ireland
victor dot lazzarini at nuim dot ie




On 29 Aug 2014, at 13:08, Sigurd Saue <sigurd.saue@ntnu.no> wrote:

Hi,

What is the easiest way to get Matlab fft data into Csound? Does anyone know if Matlab can export to the PVOCEX format to be read by pvsfread?

Sigurd


Send bugs reports to
     https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here To unsubscribe,
send email sympa@lists.bath.ac.uk with body "unsubscribe csound"






Send bugs reports to
      https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"





Send bugs reports to
      https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"






Send bugs reports to
       https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"




______________________________________
Prof. Dr. David Worrall
Emerging Audio Research (EAR)
Audio Department
International Audio Laboratories Erlangen
Fraunhofer-Institut für Integrierte Schaltungen IIS
Am Wolfsmantel 33
91058 Erlangen
Telefon  +49 (0) 91 31 / 7 76-62 44
Fax      +49 (0) 91 31 / 7 76-20 99
E-Mail: david.worrall@iis.fraunhofer.de
Internet: www.iis.fraunhofer.de 
---
Adjunct Senior Research Fellow
School of Music, Australian National University





Date2014-09-01 06:30
FromAnders Genell
SubjectRe: [Csnd] fft data from Matlab to Csound
As I find this idea exciting I thought I'd follow this up with a quick question: couldn't one write a binary PVOCEX from Matlab (and GNU Octave) using e.g. fprintf if the format of PVOCEX is known? Is it known?

Regards,
Anders



31 aug 2014 kl. 22:58 skrev Sigurd Saue :

> Thanks Victor,
> 
> As far as I know Matlab does not support the first option, so we'll just go with one of the other.
> 
> Thanks! And see you in Erlangen, I guess?
> 
> Sigurd
> 
> -----Original Message-----
> From: Victor Lazzarini [mailto:Victor.Lazzarini@nuim.ie] 
> Sent: Friday, August 29, 2014 2:37 PM
> To: csound@lists.bath.ac.uk
> Subject: Re: [Csnd] fft data from Matlab to Csound
> 
> Sigurd,
> 
> there are several ways:
> 
> 1) as you said, write a binary PVOCEX
> 2) write a text file and convert using pv_import
> 3) write two text files and load them onto tables (amp, freq).
> 
> Regards
> ========================
> Dr Victor Lazzarini
> Senior Lecturer
> NUI Maynooth, Ireland
> victor dot lazzarini at nuim dot ie
> 
> 
> 
> 
> On 29 Aug 2014, at 13:08, Sigurd Saue  wrote:
> 
>> Hi,
>> 
>> What is the easiest way to get Matlab fft data into Csound? Does anyone know if Matlab can export to the PVOCEX format to be read by pvsfread?
>> 
>> Sigurd
>> 
>> 
>> Send bugs reports to
>>       https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here To unsubscribe, 
>> send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
> 
> 
> 
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
> 
> 
> 
> 
> 
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
> 
> 
> 


Date2014-09-01 07:23
FromVictor Lazzarini
SubjectRe: [Csnd] fft data from Matlab to Csound
PVOCEX is not a text file, so fprintf() would not be suitable. But if Matlab can write binary data, then it’s possible. PVOCEX is based
on WAVEFORMATEX and it is documented somewhere (Richard Dobson is the author).
========================
Dr Victor Lazzarini
Dean of Faculty of Arts, Philosophy and Celtic Studies,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 







On 1 Sep 2014, at 06:30, Anders Genell  wrote:

> As I find this idea exciting I thought I'd follow this up with a quick question: couldn't one write a binary PVOCEX from Matlab (and GNU Octave) using e.g. fprintf if the format of PVOCEX is known? Is it known?
> 
> Regards,
> Anders
> 
> 
> 
> 31 aug 2014 kl. 22:58 skrev Sigurd Saue :
> 
>> Thanks Victor,
>> 
>> As far as I know Matlab does not support the first option, so we'll just go with one of the other.
>> 
>> Thanks! And see you in Erlangen, I guess?
>> 
>> Sigurd
>> 
>> -----Original Message-----
>> From: Victor Lazzarini [mailto:Victor.Lazzarini@nuim.ie] 
>> Sent: Friday, August 29, 2014 2:37 PM
>> To: csound@lists.bath.ac.uk
>> Subject: Re: [Csnd] fft data from Matlab to Csound
>> 
>> Sigurd,
>> 
>> there are several ways:
>> 
>> 1) as you said, write a binary PVOCEX
>> 2) write a text file and convert using pv_import
>> 3) write two text files and load them onto tables (amp, freq).
>> 
>> Regards
>> ========================
>> Dr Victor Lazzarini
>> Senior Lecturer
>> NUI Maynooth, Ireland
>> victor dot lazzarini at nuim dot ie
>> 
>> 
>> 
>> 
>> On 29 Aug 2014, at 13:08, Sigurd Saue  wrote:
>> 
>>> Hi,
>>> 
>>> What is the easiest way to get Matlab fft data into Csound? Does anyone know if Matlab can export to the PVOCEX format to be read by pvsfread?
>>> 
>>> Sigurd
>>> 
>>> 
>>> Send bugs reports to
>>>      https://github.com/csound/csound/issues
>>> Discussions of bugs and features can be posted here To unsubscribe, 
>>> send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>> 
>> 
>> 
>> Send bugs reports to
>>       https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>> 
>> 
>> 
>> 
>> 
>> Send bugs reports to
>>       https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>> 
>> 
>> 
> 
> 
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
> 
> 
> 



Date2014-09-01 07:39
FromAnders Genell
SubjectRe: [Csnd] fft data from Matlab to Csound

I don't know if there is enough control of format to fit PVOCEX but it might be worth a try?

I found this http://people.bath.ac.uk/masrwd/pvocex/pvocex.html and will try to wrap my stale brain around it...

Thanks,
Anders

1 sep 2014 kl. 08:23 skrev Victor Lazzarini <Victor.Lazzarini@nuim.ie>:

PVOCEX is not a text file, so fprintf() would not be suitable. But if Matlab can write binary data, then it’s possible. PVOCEX is based
on WAVEFORMATEX and it is documented somewhere (Richard Dobson is the author).
========================
Dr Victor Lazzarini
Dean of Faculty of Arts, Philosophy and Celtic Studies,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952







On 1 Sep 2014, at 06:30, Anders Genell <anders.genell@gmail.com> wrote:

As I find this idea exciting I thought I'd follow this up with a quick question: couldn't one write a binary PVOCEX from Matlab (and GNU Octave) using e.g. fprintf if the format of PVOCEX is known? Is it known?

Regards,
Anders



31 aug 2014 kl. 22:58 skrev Sigurd Saue <sigurd.saue@ntnu.no>:

Thanks Victor,

As far as I know Matlab does not support the first option, so we'll just go with one of the other.

Thanks! And see you in Erlangen, I guess?

Sigurd

-----Original Message-----
From: Victor Lazzarini [mailto:Victor.Lazzarini@nuim.ie]
Sent: Friday, August 29, 2014 2:37 PM
To: csound@lists.bath.ac.uk
Subject: Re: [Csnd] fft data from Matlab to Csound

Sigurd,

there are several ways:

1) as you said, write a binary PVOCEX
2) write a text file and convert using pv_import
3) write two text files and load them onto tables (amp, freq).

Regards
========================
Dr Victor Lazzarini
Senior Lecturer
NUI Maynooth, Ireland
victor dot lazzarini at nuim dot ie




On 29 Aug 2014, at 13:08, Sigurd Saue <sigurd.saue@ntnu.no> wrote:

Hi,

What is the easiest way to get Matlab fft data into Csound? Does anyone know if Matlab can export to the PVOCEX format to be read by pvsfread?

Sigurd


Send bugs reports to
    https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here To unsubscribe,
send email sympa@lists.bath.ac.uk with body "unsubscribe csound"



Send bugs reports to
     https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"





Send bugs reports to
     https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"





Send bugs reports to
      https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"






Send bugs reports to
       https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"




Date2014-09-01 08:35
FromSigurd Saue
SubjectRE: [Csnd] fft data from Matlab to Csound

Hi Anders,

 

That would be great. Let me know if you make any progress or else I might give it a go later.

 

Sigurd

 

From: Anders Genell [mailto:anders.genell@gmail.com]
Sent: Monday, September 01, 2014 8:40 AM
To: csound@lists.bath.ac.uk
Subject: Re: [Csnd] fft data from Matlab to Csound

 

 

I don't know if there is enough control of format to fit PVOCEX but it might be worth a try?



I found this http://people.bath.ac.uk/masrwd/pvocex/pvocex.html and will try to wrap my stale brain around it...



Thanks,

Anders


1 sep 2014 kl. 08:23 skrev Victor Lazzarini <Victor.Lazzarini@nuim.ie>:

PVOCEX is not a text file, so fprintf() would not be suitable. But if Matlab can write binary data, then it’s possible. PVOCEX is based
on WAVEFORMATEX and it is documented somewhere (Richard Dobson is the author).
========================
Dr Victor Lazzarini
Dean of Faculty of Arts, Philosophy and Celtic Studies,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952







On 1 Sep 2014, at 06:30, Anders Genell <anders.genell@gmail.com> wrote:


As I find this idea exciting I thought I'd follow this up with a quick question: couldn't one write a binary PVOCEX from Matlab (and GNU Octave) using e.g. fprintf if the format of PVOCEX is known? Is it known?

 

Regards,

Anders

 

 

 

31 aug 2014 kl. 22:58 skrev Sigurd Saue <sigurd.saue@ntnu.no>:

 

Thanks Victor,

 

As far as I know Matlab does not support the first option, so we'll just go with one of the other.

 

Thanks! And see you in Erlangen, I guess?

 

Sigurd

 

-----Original Message-----

From: Victor Lazzarini [mailto:Victor.Lazzarini@nuim.ie]

Sent: Friday, August 29, 2014 2:37 PM

To: csound@lists.bath.ac.uk

Subject: Re: [Csnd] fft data from Matlab to Csound

 

Sigurd,

 

there are several ways:

 

1) as you said, write a binary PVOCEX

2) write a text file and convert using pv_import

3) write two text files and load them onto tables (amp, freq).

 

Regards

========================

Dr Victor Lazzarini

Senior Lecturer

NUI Maynooth, Ireland

victor dot lazzarini at nuim dot ie

 

 

 

 

On 29 Aug 2014, at 13:08, Sigurd Saue <sigurd.saue@ntnu.no> wrote:

 

Hi,

 

What is the easiest way to get Matlab fft data into Csound? Does anyone know if Matlab can export to the PVOCEX format to be read by pvsfread?

 

Sigurd

 

 

Send bugs reports to

    https://github.com/csound/csound/issues

Discussions of bugs and features can be posted here To unsubscribe,

send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

 

 

 

Send bugs reports to

     https://github.com/csound/csound/issues

Discussions of bugs and features can be posted here To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

 

 

 

 

 

Send bugs reports to

     https://github.com/csound/csound/issues

Discussions of bugs and features can be posted here

To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

 

 

 

 

 

Send bugs reports to

      https://github.com/csound/csound/issues

Discussions of bugs and features can be posted here

To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

 

 

 




Send bugs reports to
       https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"



Date2014-09-02 13:59
FromRichard Dobson
SubjectRe: [Csnd] fft data from Matlab to Csound
On 01/09/2014 07:39, Anders Genell wrote:
> Oh, my bad, I meant fwrite
> http://www.mathworks.se/help/matlab/ref/fwrite.html
>
> I don't know if there is enough control of format to fit PVOCEX but it
> might be worth a try?
>
> I found this http://people.bath.ac.uk/masrwd/pvocex/pvocex.html and will
> try to wrap my stale brain around it...
>

Yes, that's the main reference. In theory one could write an extension 
matlab library for pvocex (I think for example there is a libsndfile one 
somewhere), but as usual I never got around to it.

Richard Dobson



Date2014-09-02 15:35
FromAnders Genell
SubjectRe: [Csnd] fft data from Matlab to Csound
If I manage to free some time I will se what I can do using the binary writing capabilities of Matlab. 

Quickly browsing your main reference I assume PVOCEX is more or less an interleaved wav-file (but containing spectral data) with a particular header?

Regards,
Anders



2 sep 2014 kl. 14:59 skrev Richard Dobson :

> On 01/09/2014 07:39, Anders Genell wrote:
>> Oh, my bad, I meant fwrite
>> http://www.mathworks.se/help/matlab/ref/fwrite.html
>> 
>> I don't know if there is enough control of format to fit PVOCEX but it
>> might be worth a try?
>> 
>> I found this http://people.bath.ac.uk/masrwd/pvocex/pvocex.html and will
>> try to wrap my stale brain around it...
> 
> Yes, that's the main reference. In theory one could write an extension matlab library for pvocex (I think for example there is a libsndfile one somewhere), but as usual I never got around to it.
> 
> Richard Dobson
> 
> 
> 
> 
> Send bugs reports to
>       https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
> 
> 
> 


Date2014-09-02 15:46
FromEdward Costello
SubjectRe: [Csnd] fft data from Matlab to Csound
I’m close to finishing HDF5 file read and write opcodes for Csound, Matlab can read those so if anyone is interested I’ll post back here when I finish them.

Ed

> On 2 Sep 2014, at 15:35, Anders Genell  wrote:
> 
> If I manage to free some time I will se what I can do using the binary writing capabilities of Matlab. 
> 
> Quickly browsing your main reference I assume PVOCEX is more or less an interleaved wav-file (but containing spectral data) with a particular header?
> 
> Regards,
> Anders
> 
> 
> 
> 2 sep 2014 kl. 14:59 skrev Richard Dobson :
> 
>> On 01/09/2014 07:39, Anders Genell wrote:
>>> Oh, my bad, I meant fwrite
>>> http://www.mathworks.se/help/matlab/ref/fwrite.html
>>> 
>>> I don't know if there is enough control of format to fit PVOCEX but it
>>> might be worth a try?
>>> 
>>> I found this http://people.bath.ac.uk/masrwd/pvocex/pvocex.html and will
>>> try to wrap my stale brain around it...
>> 
>> Yes, that's the main reference. In theory one could write an extension matlab library for pvocex (I think for example there is a libsndfile one somewhere), but as usual I never got around to it.
>> 
>> Richard Dobson
>> 
>> 
>> 
>> 
>> Send bugs reports to
>>      https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>> 
>> 
>> 
> 
> 
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
> 
> 
> 



Date2014-09-02 15:51
FromRichard Dobson
SubjectRe: [Csnd] fft data from Matlab to Csound
On 02/09/2014 15:35, Anders Genell wrote:
> If I manage to free some time I will se what I can do using the
> binary writing capabilities of Matlab.
>
> Quickly browsing your main reference I assume PVOCEX is more or less
> an interleaved wav-file (but containing spectral data) with a
> particular header?
>
> Regards, Anders
>

Well, interleaved analysis frames (as in standard CARL/Dolson pvoc), 
with a custom WAVE_EX header.

Richard Dobson

Date2014-09-02 19:34
FromDavid Worrall
SubjectRe: [Csnd] fft data from Matlab to Csound
Yes please Ed.
I've used pytables (http://www.pytables.org/) in the past but not h5py (http://www.h5py.org/) and I'd be very interested to see how much functionality can be transferred to csound.

Thanks,
David


On 02.09.2014, at 16:46, Edward Costello <EDWARD.COSTELLO@nuim.ie> wrote:

I’m close to finishing HDF5 file read and write opcodes for Csound, Matlab can read those so if anyone is interested I’ll post back here when I finish them.

Ed

On 2 Sep 2014, at 15:35, Anders Genell <anders.genell@gmail.com> wrote:

If I manage to free some time I will se what I can do using the binary writing capabilities of Matlab.

Quickly browsing your main reference I assume PVOCEX is more or less an interleaved wav-file (but containing spectral data) with a particular header?

Regards,
Anders



2 sep 2014 kl. 14:59 skrev Richard Dobson <richarddobson@blueyonder.co.uk>:

On 01/09/2014 07:39, Anders Genell wrote:
Oh, my bad, I meant fwrite
http://www.mathworks.se/help/matlab/ref/fwrite.html

I don't know if there is enough control of format to fit PVOCEX but it
might be worth a try?

I found this http://people.bath.ac.uk/masrwd/pvocex/pvocex.html and will
try to wrap my stale brain around it...

Yes, that's the main reference. In theory one could write an extension matlab library for pvocex (I think for example there is a libsndfile one somewhere), but as usual I never got around to it.

Richard Dobson




Send bugs reports to
    https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"





Send bugs reports to
      https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"






Send bugs reports to
       https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"




______________________________________
Prof. Dr. David Worrall
Emerging Audio Research (EAR)
Audio Department
International Audio Laboratories Erlangen
Fraunhofer-Institut für Integrierte Schaltungen IIS
Am Wolfsmantel 33
91058 Erlangen
Telefon  +49 (0) 91 31 / 7 76-62 44
Fax      +49 (0) 91 31 / 7 76-20 99
E-Mail: david.worrall@iis.fraunhofer.de
Internet: www.iis.fraunhofer.de 
---
Adjunct Senior Research Fellow
School of Music, Australian National University





Date2014-09-02 22:10
FromSigurd Saue
SubjectRE: [Csnd] fft data from Matlab to Csound

Hi David,

 

I visited your very nice sonification installation at IIS earlier today. It wasn’t open to the public, but your colleague Susanne let me in and made a very enthusiastic presentation of it. Not only were the sounds pleasant and interesting – sort of a luscious, electronic frog pond - the workers also found it highly informative. That beautiful blend of art and technology that sonification at its best can be.

 

Sigurd

 

From: David Worrall [mailto:david.worrall@iis.fraunhofer.de]
Sent: Sunday, August 31, 2014 11:49 PM
To: csound@lists.bath.ac.uk
Subject: Re: [Csnd] fft data from Matlab to Csound

 

Sorry I'll miss you (both) there - I've hopped down-under and will be working from Canberra for a couple of months.

I do have a development (RT-24/7) python/csound installation of network flow running there at IIS which those of you who visit will be welcome to audit.

 

David

 

 

On 31.08.2014, at 23:27, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:



Sorry, I will not be able to make it to Erlangen, but my colleague Joe will be there.
========================
Dr Victor Lazzarini
Dean of Faculty of Arts, Philosophy and Celtic Studies,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952







On 31 Aug 2014, at 21:58, Sigurd Saue <sigurd.saue@ntnu.no> wrote:


Thanks Victor,

As far as I know Matlab does not support the first option, so we'll just go with one of the other.

Thanks! And see you in Erlangen, I guess?

Sigurd

-----Original Message-----
From: Victor Lazzarini [mailto:Victor.Lazzarini@nuim.ie]
Sent: Friday, August 29, 2014 2:37 PM
To: csound@lists.bath.ac.uk
Subject: Re: [Csnd] fft data from Matlab to Csound

Sigurd,

there are several ways:

1) as you said, write a binary PVOCEX
2) write a text file and convert using pv_import
3) write two text files and load them onto tables (amp, freq).

Regards
========================
Dr Victor Lazzarini
Senior Lecturer
NUI Maynooth, Ireland
victor dot lazzarini at nuim dot ie




On 29 Aug 2014, at 13:08, Sigurd Saue <sigurd.saue@ntnu.no> wrote:


Hi,

What is the easiest way to get Matlab fft data into Csound? Does anyone know if Matlab can export to the PVOCEX format to be read by pvsfread?

Sigurd


Send bugs reports to
     https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here To unsubscribe,
send email sympa@lists.bath.ac.uk with body "unsubscribe csound"





Send bugs reports to
      https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"





Send bugs reports to
      https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"





Send bugs reports to
       https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"


 

______________________________________
Prof. Dr. David Worrall
Emerging Audio Research (EAR)
Audio Department
International Audio Laboratories Erlangen
Fraunhofer-Institut für Integrierte Schaltungen IIS
Am Wolfsmantel 33
91058 Erlangen
Telefon  +49 (0) 91 31 / 7 76-62 44
Fax      +49 (0) 91 31 / 7 76-20 99
E-Mail: david.worrall@iis.fraunhofer.de
Internet: www.iis.fraunhofer.de 

---

Adjunct Senior Research Fellow

School of Music, Australian National University