[Csnd] Request for more specific array warnings
Date | 2018-12-06 13:29 |
From | Andreas Bergsland |
Subject | [Csnd] Request for more specific array warnings |
Hi I have a request for having more specific warnings for indices out of range for arrays. It would be nice to know the name of the array in addition to the index and dimension, and that it would give warnings for all arrays. Right now (6.12) csound only reports one warning even if several indices are out of range (the first array encountered, but the second/last index): Thus, <CsInstruments> instr 1 karr[][] init 2,3 karr2[][] init 2,3 k1 = karr[2][2] k2 = karr2[3][4] endin </CsInstruments> gives for every k-cyckle WARNING: Array index 3 out of range (0,2) for dimension 2 It is also frustrating that warnings for k-rate arrays seem to occur once every k-cycle, which fills up the console output very quickly. Would it be possible to choke warnings that already had appeared? Best, Andreas -- Andreas Bergsland Associate professor - førsteamanuensis Study Programme Leader - studieprogramleder Music Technology Programme - Musikkteknologiseksjonen Department of Music - Institutt for musikk Olavskvartalet NTNU (Norwegian University of Science and Technology) 7491 Trondheim, NORWAY Visiting address/besøksadresse: Fjordgt.1 (3.etg.) e-mail: andreas.bergsland@ntnu.no Office phone (Skype for business):7359 0096 Mobil: 4566 3316 |
Date | 2018-12-06 17:05 |
From | jpff |
Subject | Re: [Csnd] Request for more specific array warnings |
Cannot see how it can repeat the error message as after that message it returns with NOTOK which ought to remove the instr instance after an error. But I do note that tihs uses a warning while it is arguble that this should be an error. 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 |
Date | 2018-12-06 17:27 |
From | jpff |
Subject | Re: [Csnd] Request for more specific array warnings |
The version in github develop branc seems beter to me ==John ff 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 |
Date | 2018-12-06 20:51 |
From | Andreas Bergsland |
Subject | Re: [Csnd] Request for more specific array warnings |
Thanks for fixing, John Best, Andreas On 06/12/2018, 18:28, "A discussion list for users of Csound on behalf of jpff" |