Looks as if one of my commits failed. Version of 2014-04-16 19:28:50 should have many fixes -- no idea how that happened I *think* most string-array operations are broken but am not sure, or f how to check and fix. Quoting joachim heintz : > this is the commit: > commit 3e5567414c8843d7feca6f4315a7a715ed5509c8 > Author: John ffitch > Date: Wed Apr 16 11:06:25 2014 +0100 > > did you push after this? > > > Am 16.04.2014 20:30, schrieb jpff@cs.bath.ac.uk: >> bizarre -- I do not get those errors/problems. When did you check it >> out/pull? >> There was a typo in i-array arithmetic, now fixed >> >> Quoting joachim heintz : >> >>> i tested with recent git (commit 3e5567414c8843d7feca6f4315a7a715ed5509c8). >>> >>> >>> i can confirm the three examples you mentioned are not working. the >>> third example should read: >>> *** copya2ftab iArr, giSine >>> it was a typo in my initial list. >>> >>> >>> number 6) does not give an error, but the results are wrong: >>> iArr1[] fillarray 1, 2, 3 >>> iArr2[] = iArr1 + 10 >>> print iArr1[0], iArr1[1], iArr1[2] >>> print iArr2[0], iArr2[1], iArr2[2] >>> returns: >>> instr 1: #i20 = 1.000 #i21 = 2.000 #i22 = 3.000 >>> instr 1: #i23 = 0.000 #i24 = 0.000 #i25 = 0.000 >>> or sometimes something like: >>> instr 1: #i20 = 1.000 #i21 = 2.000 #i22 = 3.000 >>> instr 1: #i23 = >>> 7896072310099349162906429574043227461358208562244071576930073937753031657820141316759147187252869466600045210819649939617293601769692355161046355279872.000 >>> #i24 = >>> 1387031846154320490435473578089028700715223909848818692804087895876990638304924374329687277568.000 >>> #i25 = 0.000 >>> >>> >>> same for 7): >>> iArr1[] fillarray 1, 2, 3 >>> iArr2[] fillarray 10, 20, 30 >>> iArr3[] = iArr1 + iArr2 >>> print iArr3[0], iArr3[1], iArr3[2] >>> -> instr 1: #i20 = 0.000 #i21 = 0.000 #i22 = 0.000 >>> or some astronomical high numbers. >>> >>> >>> 8): maxarray and scalearray are working for i-arrays; minarray and >>> sumarray not. >>> * minarray: >>> iArr[] fillarray 1, 2, 3 >>> iMin minarray iArr >>> -> null opadr null opadr %s >>> * sumarray: >>> iArr[] fillarray 1, 2, 3 >>> iMin sumarray iArr >>> -> error: Unable to find opcode entry for 'sumarray' with matching >>> argument types: >>> Found: i sumarray i[] >>> >>> >>> 9) maparray is not working for me: >>> iArrSrc[] array 1.01, 2.02, 3.03, 4.05, 5.08, 6.13, 7.21 >>> iArrRes[] init 7 >>> iArrRes maparray iArrSrc, "sqrt" >>> -> error: Unable to find opcode entry for 'maparray' with matching >>> argument types: >>> Found: i[] maparray i[]S >>> >>> >>> 10) yes this works now: >>> iArr1[] fillarray 1, 2, 3 >>> iArr2[] = iArr1 >>> great! >>> >>> >>> best - >>> >>> joachim >>> >>> >>> Am 16.04.2014 12:23, schrieb john ffitch: >>>> More after initial testing >>>> Of Joachim's examples the following do not work >>>> >>>> ;;*** iArr[][] fillarray iArr1, iArr2 >>>> ;;*** SArr1 slicearray SArr, 0, 4 >>>> ;;*** copya2ftab giSine, giSine <===== curious >>>> ;;8) minarray, maxarray, sumarray, scalearray not tested >>>> >>>> All other lines parse and run >>>> >>>> The first of these is in Steve's area. The second is my area and I >>>> will look at it. Do not understand the third. Must test the 8) >>>> versions soon >>>> >>>> Nearly time for breakfast >>>> >>>> ==John ffitch >>>> >>>> >>>> >>>> >>>> >>>> instr 1 >>>> SArr[] fillarray "a", "b", "c" >>>> ;;b) not possible to have arrays as arguments, e.g. >>>> iArr1[] fillarray 1, 2, 3 >>>> iArr2[] fillarray 4, 5, 6 >>>> ;;*** iArr[][] fillarray iArr1, iArr2 >>>> >>>> ;;2) lenarray >>>> Sarr[] init 3 >>>> print lenarray(Sarr) >>>> >>>> ;;3) slicearray >>>> iArr[] fillarray 1, 2, 3, 4, 5, 6, 7, 8, 9 >>>> iArr1[] init 5 >>>> iArr2[] init 4 >>>> iArr1 slicearray iArr, 0, 4 ;[1, 2, 3, 4, 5] >>>> iArr2 slicearray iArr, 5, 8 ;[6, 7, 8, 9] >>>> ;;b) same for S-arrays: >>>> SArr[] init 9 >>>> SArr1[] init 5 >>>> ;;*** SArr1 slicearray SArr, 0, 4 >>>> >>>> ;;4) copyf2array >>>> giSine ftgen 0, 0, 8, 10, 1 >>>> iArr[] init 8 >>>> copyf2array iArr, giSine >>>> >>>> ;;5) copya2ftab >>>> ;;*** copya2ftab giSine, iArr >>>> >>>> ;;6) +, -, *, / between an array and a number >>>> ;;do not work at i-rate. this works: >>>> kArr1[] fillarray 1, 2, 3 >>>> kArr2[] = kArr1 + 10 >>>> ;;but this does not: >>>> iArr1[] array 1, 2, 3 >>>> iArr2[] = iArr1 + 10 >>>> >>>> ;;7) +, -, *, / between two arrays >>>> ;;also missing for i. this works: >>>> kArr1[] fillarray 1, 2, 3 >>>> kArr2[] fillarray 10, 20, 30 >>>> kArr3[] = kArr1 + kArr2 >>>> ;;but this does not: >>>> iArr1[] fillarray 1, 2, 3 >>>> iArr2[] fillarray 10, 20, 30 >>>> iArr3[] = iArr1 + iArr2 >>>> >>>> ;;8) minarray, maxarray, sumarray, scalearray >>>> ;;do all miss i-time operations, as far as i see. >>>> >>>> ;;9) maparray >>>> ;;as well: >>>> iArrSrc[] array 1.01, 2.02, 3.03, 4.05, 5.08, 6.13, 7.21 >>>> iArrRes[] init 7 >>>> ;;*** iArrRes maparray iArrSrc, "sqrt" >>>> >>>> ;;10) = >>>> ;;miss i-time operations. this is possible: >>>> kArr1[] fillarray 1, 2, 3 >>>> kArr2[] = kArr1 >>>> ;;but this returns "nul opadr": >>>> iArr1[] fillarray 1, 2, 3 >>>> iArr2[] = iArr1 >>>> >>>> endin >>>> >>>> >>>> >>>> i1 0 1 >>>> e >>>> >>>> >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> Learn Graph Databases - Download FREE O'Reilly Book >>>> "Graph Databases" is the definitive new guide to graph databases and their >>>> applications. Written by three acclaimed leaders in the field, >>>> this first edition is now available. Download your free book today! >>>> http://p.sf.net/sfu/NeoTech >>>> _______________________________________________ >>>> Csound-devel mailing list >>>> Csound-devel@lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/csound-devel >>>> >>> >>> ------------------------------------------------------------------------------ >>> Learn Graph Databases - Download FREE O'Reilly Book >>> "Graph Databases" is the definitive new guide to graph databases and their >>> applications. Written by three acclaimed leaders in the field, >>> this first edition is now available. Download your free book today! >>> http://p.sf.net/sfu/NeoTech >>> _______________________________________________ >>> Csound-devel mailing list >>> Csound-devel@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/csound-devel >> >> >> >> >> ------------------------------------------------------------------------------ >> Learn Graph Databases - Download FREE O'Reilly Book >> "Graph Databases" is the definitive new guide to graph databases and their >> applications. Written by three acclaimed leaders in the field, >> this first edition is now available. Download your free book today! >> http://p.sf.net/sfu/NeoTech >> _______________________________________________ >> Csound-devel mailing list >> Csound-devel@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/csound-devel >> > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/NeoTech > _______________________________________________ > Csound-devel mailing list > Csound-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/csound-devel ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/NeoTech _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net