Csound Csound-dev Csound-tekno Search About

[Csnd-dev] GEN23 unexpected table size

Date2025-07-04 10:35
Fromjoachim heintz
Subject[Csnd-dev] GEN23 unexpected table size
Attachmentsgen23.txt  
values@global:i = ftgen(0,0,0,-23,"gen23.txt")
instr 1
   for i in [0,1,2] do
     print(table(i,values))
   od
endin

with gen23.txt consisting of three numbers returns:

ftable 101:
2 elements in gen23.txt
ftable 101:	2 points, scalemax 2.000
orch now loaded
audio buffered in 256 sample-frame blocks
not writing to sound disk
SECTION 1:
new alloc (instance 1) for instr 1:
instr 1:	#i0 = 1.000
instr 1:	#i0 = 2.000
instr 1:	#i0 = 2.000

i guess this has to do with the guard point but it is very much 
unexpected as actually the last values is ignored.

can this be changed?

cheers -
	joachim

Date2025-07-04 11:32
Fromjoachim heintz
SubjectRe: [Csnd-dev] GEN23 unexpected table size
can be irgnored; there was no newline at the end of my text file.  i 
think this is required.

On 04/07/2025 11:35, joachim heintz wrote:
> values@global:i = ftgen(0,0,0,-23,"gen23.txt")
> instr 1
>    for i in [0,1,2] do
>      print(table(i,values))
>    od
> endin
> 
> with gen23.txt consisting of three numbers returns:
> 
> ftable 101:
> 2 elements in gen23.txt
> ftable 101:    2 points, scalemax 2.000
> orch now loaded
> audio buffered in 256 sample-frame blocks
> not writing to sound disk
> SECTION 1:
> new alloc (instance 1) for instr 1:
> instr 1:    #i0 = 1.000
> instr 1:    #i0 = 2.000
> instr 1:    #i0 = 2.000
> 
> i guess this has to do with the guard point but it is very much 
> unexpected as actually the last values is ignored.
> 
> can this be changed?
> 
> cheers -
>      joachim