| that works beautifully, thanks for the tip
2015-05-07 17:54 GMT+02:00 Victor Lazzarini :
> I think the best way would be to put the data into a table with pvsftw and then read it from there with pvsftr.
>
> ========================
> Dr Victor Lazzarini
> Dean of Arts, Celtic Studies and Philosophy,
> Maynooth University,
> Maynooth, Co Kildare, Ireland
> Tel: 00 353 7086936
> Fax: 00 353 1 7086952
>
>> On 7 May 2015, at 13:49, Oeyvind Brandtsegg wrote:
>>
>> Great, thank you.
>> Is there a workaround he can use in the meantime?
>> Use another window type? Or use a loop to transfer the values of bins
>> from on fsig to another (one that has been initialized with the
>> correct wintype)?
>>
>>
>> 2015-05-07 14:36 GMT+02:00 Victor Lazzarini :
>>> I checked and there was a mismatch between two constants in the sources, the wrong one making Hamming window type = 1, which
>>> got the formats wrong when they were read from file. It’s fixed in the sources now.
>>>
>>> ========================
>>> Dr Victor Lazzarini
>>> Dean of Arts, Celtic Studies and Philosophy,
>>> Maynooth University,
>>> Maynooth, Co Kildare, Ireland
>>> Tel: 00 353 7086936
>>> Fax: 00 353 1 7086952
>>>
>>>> On 7 May 2015, at 12:29, Oeyvind Brandtsegg wrote:
>>>>
>>>> One of my students appears to have found an oddity regarding
>>>> pvsfwrite/read and pvsfilter.
>>>>
>>>> The attached example is simplified to the stage where it does nothing
>>>> useful, just for the purpose of showing the problem
>>>>
>>>> He reads an audio signal, pvs analyze and write to file.
>>>> Then read this file, and analyze another audio signal,
>>>> then filter one fsig with the other (the one from file with the one
>>>> analyzed live)
>>>> For the purpose of the example the two "different" audio signals are
>>>> the same file here.
>>>>
>>>> The error printed is
>>>> instr 94: ioverlap = 128.000 inumbins = 257.000 iwinsize = 512.000
>>>> iformat = 0.000
>>>> instr 94: ioverlap2 = 128.000 inumbins2 = 257.000 iwinsize2 =
>>>> 512.000 iformat2 = 0.000
>>>> PERF ERROR in instr 94: pvsfilter: formats are different.
>>>> fsout pvsfilter fLive fsig 1 1
>>>> note aborted
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> sr = 48000
>>>> ksmps = 16
>>>> nchnls = 2
>>>> 0dbfs=1
>>>>
>>>> ; pvs globals
>>>> gifftsize = 512
>>>> giFftTabSize = (gifftsize / 2)+1
>>>> giwtype = 1
>>>>
>>>> ; analysis and write to file
>>>> instr 93
>>>> ainLive soundin "testfile.wav"
>>>> fLive pvsanal ainLive, gifftsize, gifftsize/4, gifftsize, giwtype, 0
>>>> pvsfwrite fLive, "testfile.pvx"
>>>> endin
>>>>
>>>>
>>>> ; read from file and filter
>>>> instr 94
>>>> fsig pvsfread 0, "testfile.pvx"
>>>> ainLive soundin "testfile.wav"
>>>> fLive pvsanal ainLive, gifftsize, gifftsize/4, gifftsize, giwtype, 0
>>>> ioverlap, inumbins, iwinsize, iformat pvsinfo fsig
>>>> print ioverlap , inumbins, iwinsize, iformat
>>>> ioverlap2, inumbins2, iwinsize2, iformat2 pvsinfo fLive
>>>> print ioverlap2 , inumbins2, iwinsize2, iformat2
>>>> fsout pvsfilter fLive, fsig, 1
>>>>
>>>> endin
>>>>
>>>>
>>>> i93 0 5 ; write to file
>>>> i94 6 5 ; read from file and filter
>>>> e
>>>>
>>>>
>>>>
>>>>
>>>> --
>>>>
>>>> Oeyvind Brandtsegg
>>>> Professor of Music Technology
>>>> NTNU
>>>> 7491 Trondheim
>>>> Norway
>>>> Cell: +47 92 203 205
>>>>
>>>> http://flyndresang.no/
>>>> http://www.partikkelaudio.com/
>>>> http://soundcloud.com/brandtsegg
>>>> http://soundcloud.com/t-emp
>>>>
>>>> ------------------------------------------------------------------------------
>>>> One dashboard for servers and applications across Physical-Virtual-Cloud
>>>> Widest out-of-the-box monitoring support with 50+ applications
>>>> Performance metrics, stats and reports that give you Actionable Insights
>>>> Deep dive visibility with transaction tracing using APM Insight.
>>>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>>>> _______________________________________________
>>>> Csound-users mailing list
>>>> Csound-users@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-users
>>>> Send bugs reports to
>>>> https://github.com/csound/csound/issues
>>>> Discussions of bugs and features can be posted here
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> One dashboard for servers and applications across Physical-Virtual-Cloud
>>> Widest out-of-the-box monitoring support with 50+ applications
>>> Performance metrics, stats and reports that give you Actionable Insights
>>> Deep dive visibility with transaction tracing using APM Insight.
>>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>>> _______________________________________________
>>> Csound-users mailing list
>>> Csound-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-users
>>> Send bugs reports to
>>> https://github.com/csound/csound/issues
>>> Discussions of bugs and features can be posted here
>>
>>
>>
>> --
>>
>> Oeyvind Brandtsegg
>> Professor of Music Technology
>> NTNU
>> 7491 Trondheim
>> Norway
>> Cell: +47 92 203 205
>>
>> http://flyndresang.no/
>> http://www.partikkelaudio.com/
>> http://soundcloud.com/brandtsegg
>> http://soundcloud.com/t-emp
>>
>> ------------------------------------------------------------------------------
>> One dashboard for servers and applications across Physical-Virtual-Cloud
>> Widest out-of-the-box monitoring support with 50+ applications
>> Performance metrics, stats and reports that give you Actionable Insights
>> Deep dive visibility with transaction tracing using APM Insight.
>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>> _______________________________________________
>> Csound-users mailing list
>> Csound-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-users
>> Send bugs reports to
>> https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
>
>
> ------------------------------------------------------------------------------
> One dashboard for servers and applications across Physical-Virtual-Cloud
> Widest out-of-the-box monitoring support with 50+ applications
> Performance metrics, stats and reports that give you Actionable Insights
> Deep dive visibility with transaction tracing using APM Insight.
> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
> _______________________________________________
> Csound-users mailing list
> Csound-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-users
> Send bugs reports to
> https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
--
Oeyvind Brandtsegg
Professor of Music Technology
NTNU
7491 Trondheim
Norway
Cell: +47 92 203 205
http://flyndresang.no/
http://www.partikkelaudio.com/
http://soundcloud.com/brandtsegg
http://soundcloud.com/t-emp
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Csound-users mailing list
Csound-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-users
Send bugs reports to
https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
|