Messages Search About

[Csnd] ftlen on GEN02

Date2022-08-26 09:54
Fromjjjjaqcuqes
Subject[Csnd] ftlen on GEN02
Hi,

is it normal that if I write the length of a GEN02 ften changes his value?

e.g.

gitab1			ftgen	0, 0, 0, -2, 2, 3, 1
gitab2			ftgen	0, 0, 3, -2, 2, 3, 1
	
	instr 1
ilen1	ftlen gitab1
print ilen1

ilen2	ftlen gitab2
print ilen2
	endin

---
instr 1:  ilen1 = 3.000
instr 1:  ilen2 = 2.000

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

Date2022-08-26 10:08
From"Jeanette C."
SubjectRe: [Csnd] ftlen on GEN02
Aug 26 2022, jjjjaqcuqes has written:
...
> gitab2			ftgen	0, 0, 3, -2, 2, 3, 1
...
With non power-of-two table lengths it is advised to use a negative
number, i.e.:
gitab2       ftgen 0, 0, -3, -2, 2, 3, 1
...

HTH.

Best wishes,

Jeanette

-- 
  * Website: http://juliencoder.de - for summer is a state of sound
  * Youtube: https://www.youtube.com/channel/UCMS4rfGrTwz8W7jhC1Jnv7g
  * Audiobombs: https://www.audiobombs.com/users/jeanette_c
  * GitHub: https://github.com/jeanette-c

Ain't no way I'll be lonely <3
(Britney Spears)

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

Date2022-08-26 10:44
FromVictor Lazzarini
SubjectRe: [Csnd] [EXTERNAL] [Csnd] ftlen on GEN02
Yes, because 3 is a power-of-two plus 1 and that will set the size to 2 with an extended guard point. Note that there is always one extra point (guard point) on the table.

3, 5, 9 sizes will work that way.

Prof. Victor Lazzarini
Maynooth University
Ireland

> On 26 Aug 2022, at 09:55, jjjjaqcuqes  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.
> 
> Hi,
> 
> is it normal that if I write the length of a GEN02 ften changes his value?
> 
> e.g.
> 
> gitab1                  ftgen   0, 0, 0, -2, 2, 3, 1
> gitab2                  ftgen   0, 0, 3, -2, 2, 3, 1
> 
>        instr 1
> ilen1   ftlen gitab1
> print ilen1
> 
> ilen2   ftlen gitab2
> print ilen2
>        endin
> 
> ---
> instr 1:  ilen1 = 3.000
> instr 1:  ilen2 = 2.000
> 
> 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=05%7C01%7CVictor.Lazzarini%40mu.ie%7Ce81eb1118e7e438269aa08da8740aa36%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C637971009058774755%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=j%2B1oD4hWt4KL1TEq9Q9IqepAsRU3UL%2Bnz609we4PwEU%3D&reserved=0
> Send bugs reports to
>        https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcsound%2Fcsound%2Fissues&data=05%7C01%7CVictor.Lazzarini%40mu.ie%7Ce81eb1118e7e438269aa08da8740aa36%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C637971009058774755%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=BP0%2FHpgoq1JHoqgFv6IGbk9SJcMHQ31%2BYsfw2aBuE3s%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

Date2022-08-26 10:45
FromVictor Lazzarini
SubjectRe: [Csnd] [EXTERNAL] Re: [Csnd] ftlen on GEN02
afaik that changed since 6.0 and setting a negative size doesn't do anything now.

That said, I'd have to look at the code to confirm.

Prof. Victor Lazzarini
Maynooth University
Ireland

> On 26 Aug 2022, at 10:10, Jeanette C.  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.
> 
> Aug 26 2022, jjjjaqcuqes has written:
> ...
>> gitab2                        ftgen   0, 0, 3, -2, 2, 3, 1
> ...
> With non power-of-two table lengths it is advised to use a negative
> number, i.e.:
> gitab2       ftgen 0, 0, -3, -2, 2, 3, 1
> ...
> 
> HTH.
> 
> Best wishes,
> 
> Jeanette
> 
> --
> * Website: https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fjuliencoder.de%2F&data=05%7C01%7CVictor.Lazzarini%40mu.ie%7Cb32fe0a8d09a4b1839dd08da8742cdff%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C637971018250862207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=5EpeUX20oUcYgXCfInDRQO7upMBcI4FENqqthhqUBmk%3D&reserved=0 - for summer is a state of sound
> * Youtube: https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.youtube.com%2Fchannel%2FUCMS4rfGrTwz8W7jhC1Jnv7g&data=05%7C01%7CVictor.Lazzarini%40mu.ie%7Cb32fe0a8d09a4b1839dd08da8742cdff%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C637971018250862207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=ajQzcQr1PsHkTHS5GyxoSVWWsr4vgtAtLyosUEltt7A%3D&reserved=0
> * Audiobombs: https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.audiobombs.com%2Fusers%2Fjeanette_c&data=05%7C01%7CVictor.Lazzarini%40mu.ie%7Cb32fe0a8d09a4b1839dd08da8742cdff%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C637971018250862207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=xHsSVNtkdUclddBGyUdwmKv%2F5Z1agXC1v6YnBwuM904%3D&reserved=0
> * GitHub: https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fjeanette-c&data=05%7C01%7CVictor.Lazzarini%40mu.ie%7Cb32fe0a8d09a4b1839dd08da8742cdff%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C637971018250862207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=u9V34rLsUIS49jHSLzqiIB1x%2BAYtVv2%2FtqI0F%2FolbJw%3D&reserved=0
> 
> Ain't no way I'll be lonely <3
> (Britney Spears)
> 
> 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=05%7C01%7CVictor.Lazzarini%40mu.ie%7Cb32fe0a8d09a4b1839dd08da8742cdff%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C637971018250862207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=fKJlCtlmrtXY473m3nhGgCKUN8csImJW%2BZ9F3HV7lkE%3D&reserved=0
> Send bugs reports to
>       https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcsound%2Fcsound%2Fissues&data=05%7C01%7CVictor.Lazzarini%40mu.ie%7Cb32fe0a8d09a4b1839dd08da8742cdff%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C637971018250862207%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=7niDrbd4roqB9NO%2FK4fZE0i82WAh7E8uXtXXLHyh7ac%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