Csound Csound-dev Csound-tekno Search About

[Csnd-dev] bug i printing

Date2016-10-31 17:39
Fromjpff
Subject[Csnd-dev] bug i printing
Note this case
instr 1
  iArr[][] init   2,3
  iArr     fillarray  1,2,3,7,6,5
  iRow     =      0
  until iRow == 2 do
  iColumn  =      0
    until iColumn == 3 do
    prints "Col = %d\n", iColumn
    prints "iArr[%d][%d] = %d %d\n", iRow, iColumn, iArr[iRow][iColumn]
    iColumn +=    1
  enduntil
  iRow      +=    1
  od
endin


==John ffitch
SECTION 1:
new alloc for instr 1:
Col = 0
iArr[0][-11] = 0 1
Col = 1
iArr[0][-11] = 1 2
Col = 2
iArr[0][-11] = 2 3
Col = 0
iArr[1][-11] = 0 7
Col = 1
iArr[1][-11] = 1 6
Col = 2

Date2016-10-31 18:20
FromVictor Lazzarini
SubjectRe: [Csnd-dev] bug i printing
Looks like yet another bug in prints

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

> On 31 Oct 2016, at 17:40, jpff  wrote:
> 
> Note this case
> instr 1
>  iArr[][] init   2,3
>  iArr     fillarray  1,2,3,7,6,5
>  iRow     =      0
>  until iRow == 2 do
>  iColumn  =      0
>    until iColumn == 3 do
>    prints "Col = %d\n", iColumn
>    prints "iArr[%d][%d] = %d %d\n", iRow, iColumn, iArr[iRow][iColumn]
>    iColumn +=    1
>  enduntil
>  iRow      +=    1
>  od
> endin
> 
> 
> ==John ffitch
> SECTION 1:
> new alloc for instr 1:
> Col = 0
> iArr[0][-11] = 0 1
> Col = 1
> iArr[0][-11] = 1 2
> Col = 2
> iArr[0][-11] = 2 3
> Col = 0
> iArr[1][-11] = 0 7
> Col = 1
> iArr[1][-11] = 1 6
> Col = 2