Csound Csound-dev Csound-tekno Search About

[Csnd] size of table

Date2021-05-16 16:40
Fromtjingboem
Subject[Csnd] size of table

Perhaps cross posting, but i don't know if my message will be read by all if i post on The Csound Forum only...


Hi,
i believe i have a chicken and egg issue here…

i have created a pvx file using pvanal.
The output is:
analysing 35280 sample frames (0.8 secs) from timepoint 1.0
frameSize=1024
1024 infrsize, 256 infrInc
135 output frames estimated
pvanal: creating pvocex file
20
40
60
80
100
120
140
160

Now i want to use this pvx file as a mask in an instrument, and i have to put it in a table.
But i do not know the table size, and deferred size is not allowed.
How can i get to know the table size of the pvx file?

filelen — Returns the length of a sound file! but not a pvx file
ftlen - deferred size for GENs 1, 2, 23, 28 or 49 only, so GEN 43 is not one of them
tableng - same thing as ftlen

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

Date2021-05-16 16:57
Fromjohn
SubjectRe: [Csnd] size of table
Reasing the code it looksas if te sixze must be greater or equal to kalf 
the (fftsize+1).  looking at the problem more widely I cannot see why tis 
camnot be canged dynamcally to allocate what is needed.  Ris isVictor's 
code so prhaps he sjpuld comment.

==John ff

On Sun, 16 May 2021, tjingboem wrote:

> 
> Perhaps cross posting, but i don't know if my message will be read by all if i
> post on The Csound Forum only...
> 
> 
> Hi,
> i believe i have a chicken and egg issue here…
> 
> i have created a pvx file using pvanal.
> The output is:
> analysing 35280 sample frames (0.8 secs) from timepoint 1.0
> frameSize=1024
> 1024 infrsize, 256 infrInc
> 135 output frames estimated
> pvanal: creating pvocex file
> 20
> 40
> 60
> 80
> 100
> 120
> 140
> 160
> 
> Now i want to use this pvx file as a mask in an instrument, and i have to put
> it in a table.
> But i do not know the table size, and deferred size is not allowed.
> How can i get to know the table size of the pvx file?
> 
> filelen — Returns the length of a sound file! but not a pvx file
> ftlen - deferred size for GENs 1, 2, 23, 28 or 49 only, so GEN 43 is not one
> of them
> tableng - same thing as ftlen
> 
> 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

Date2021-05-16 20:04
From"Dr. Richard Boulanger"
SubjectRe: [Csnd] size of table
Sounds like we could use a pvxlen opcode

Dr. Richard Boulanger
Professor
Electronic Production and Design
Berklee College of Music

On May 16, 2021, at 11:41 AM, tjingboem <magknevel@gmail.com> wrote:



Perhaps cross posting, but i don't know if my message will be read by all if i post on The Csound Forum only...


Hi,
i believe i have a chicken and egg issue here…

i have created a pvx file using pvanal.
The output is:
analysing 35280 sample frames (0.8 secs) from timepoint 1.0
frameSize=1024
1024 infrsize, 256 infrInc
135 output frames estimated
pvanal: creating pvocex file
20
40
60
80
100
120
140
160

Now i want to use this pvx file as a mask in an instrument, and i have to put it in a table.
But i do not know the table size, and deferred size is not allowed.
How can i get to know the table size of the pvx file?

filelen — Returns the length of a sound file! but not a pvx file
ftlen - deferred size for GENs 1, 2, 23, 28 or 49 only, so GEN 43 is not one of them
tableng - same thing as ftlen

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

Date2021-05-16 22:18
FromVictor Lazzarini
SubjectRe: [Csnd] [EXTERNAL] [Csnd] size of table
size of table is DFT size divided by 2. So if analysis with N=1024, use at table size of 512.

see https://csound.com/docs/manual/GEN43.html

size -- number of points in the table, power-of-two or power-of-two plus 1. GEN 43 does not make any distinction between these two sizes, but it requires the table to be at least the fftsize/2.

========================
Prof. Victor Lazzarini
Maynooth University
Ireland

> On 16 May 2021, at 16:57, john  wrote:
> 
> *Warning*
> 
> This email originated from outside of Maynooth University's Mail System. Do not reply, click links or open attachments unless you recognise the sender and know the content is safe.
> 
> Reasing the code it looksas if te sixze must be greater or equal to kalf
> the (fftsize+1).  looking at the problem more widely I cannot see why tis
> camnot be canged dynamcally to allocate what is needed.  Ris isVictor's
> code so prhaps he sjpuld comment.
> 
> ==John ff
> 
> On Sun, 16 May 2021, tjingboem wrote:
> 
>> 
>> Perhaps cross posting, but i don't know if my message will be read by all if i
>> post on The Csound Forum only...
>> 
>> 
>> Hi,
>> i believe i have a chicken and egg issue here…
>> 
>> i have created a pvx file using pvanal.
>> The output is:
>> analysing 35280 sample frames (0.8 secs) from timepoint 1.0
>> frameSize=1024
>> 1024 infrsize, 256 infrInc
>> 135 output frames estimated
>> pvanal: creating pvocex file
>> 20
>> 40
>> 60
>> 80
>> 100
>> 120
>> 140
>> 160
>> 
>> Now i want to use this pvx file as a mask in an instrument, and i have to put
>> it in a table.
>> But i do not know the table size, and deferred size is not allowed.
>> How can i get to know the table size of the pvx file?
>> 
>> filelen — Returns the length of a sound file! but not a pvx file
>> ftlen - deferred size for GENs 1, 2, 23, 28 or 49 only, so GEN 43 is not one
>> of them
>> tableng - same thing as ftlen
>> 
>> Csound mailing list Csound@listserv.heanet.ie
>> https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flistserv.heanet.ie%2Fcgi-bin%2Fwa%3FA0%3DCSOUND&data=04%7C01%7CVictor.Lazzarini%40mu.ie%7C8018836201da493d4f6108d9188367f2%7C1454f5ccbb354685bbd98621fd8055c9%7C1%7C1%7C637567774954321727%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=yqJkIh6P3H1sUDh8wXNFG53Iq4O58gnP%2Fva4uQLFu5c%3D&reserved=0 Send bugs reports to
>> https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcsound%2Fcsound%2Fissues&data=04%7C01%7CVictor.Lazzarini%40mu.ie%7C8018836201da493d4f6108d9188367f2%7C1454f5ccbb354685bbd98621fd8055c9%7C1%7C1%7C637567774954321727%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=fzOUcRvsQszoCzIxiiKKz4WyvikBpRygtJh3jvcYASk%3D&reserved=0 Discussions of bugs and features can
>> be posted here
>> 
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flistserv.heanet.ie%2Fcgi-bin%2Fwa%3FA0%3DCSOUND&data=04%7C01%7CVictor.Lazzarini%40mu.ie%7C8018836201da493d4f6108d9188367f2%7C1454f5ccbb354685bbd98621fd8055c9%7C1%7C1%7C637567774954321727%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=yqJkIh6P3H1sUDh8wXNFG53Iq4O58gnP%2Fva4uQLFu5c%3D&reserved=0
> Send bugs reports to
>       https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcsound%2Fcsound%2Fissues&data=04%7C01%7CVictor.Lazzarini%40mu.ie%7C8018836201da493d4f6108d9188367f2%7C1454f5ccbb354685bbd98621fd8055c9%7C1%7C1%7C637567774954321727%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=fzOUcRvsQszoCzIxiiKKz4WyvikBpRygtJh3jvcYASk%3D&reserved=0
> 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