[Csnd] GEN01 Changes
Date | 2019-03-20 17:16 |
From | Oscar Pablo Di Liscia |
Subject | [Csnd] GEN01 Changes |
I updated my Csound version to version 6.12 beta (double samples) Oct 24 2018 [commit: 037becccce26dc9ebc37198a75877e817431d978] libsndfile-1.0.29pre1 I noticed some changes in the GEN01 routine. Actually, I have been using it to load raw data formatted in 64 bit foating point doubles from ATS Analysis Files. Thanks to Michael Gogins, who gave me the information on which number (9) to put in the format field of the GEN01. So, as an example, after updated to V.6.12, I have been successfuly using the statement: f 1 0 0 -1 "../ATS-files/flute-A5.ats" 0 9 0 Which reads and loads on ftable 1 all the 64 doubles in "../ATS-files/flute-A5.ats". And worked really fine. I was able to load and read all the data of the ATS files to work with it via my own UDOs and Plugins (which i will share when I finish to test). But now, this is not workink the same way. I got the error message: "soundin cannot open ../ATS-files/flute-A5.ats: File contains data in an unknown format. ftable 1: Failed to open file ../ATS-files/flute-A5.ats" Now, in the Csound documentation I´ve found the following: format -- specifies the audio data-file format: 1 - 8-bit signed character 4 - 16-bit short integers 2 - 8-bit A-law bytes 5 - 32-bit long integers 3 - 8-bit U-law bytes 6 - 32-bit floats If format = 0 the sample format is taken from the soundfile header, or by default from the CSound -o command-line flag. Of course, the "optimal" solution would be to write a Csound Plugin adding a GEN routine that reads, checks and allocates ATS data in a Table. But before commiting myself in doing this, I just wanted to check if there is a different way to overcome the issue. Many thanks for your help. Pablo -- Dr. Oscar Pablo Di Liscia Profesor Titular Director Programa de Investigación "Sistemas Temporales y Síntesis Espacial en el Arte Sonoro" http://stseas.web.unq.edu.ar/ Director Colección Editorial "Música y Ciencia" Escuela Universitaria de Artes Universidad Nacional de Quilmes Argentina 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 | 2019-03-20 17:25 |
From | Eduardo Moguillansky |
Subject | Re: [Csnd] GEN01 Changes |
Try -9 On Mi, Mar 20, 2019 at 6:16 PM, Oscar Pablo Di Liscia |
Date | 2019-03-20 17:50 |
From | Oscar Pablo Di Liscia |
Subject | Re: [Csnd] GEN01 Changes |
Many thanks, it does not work either. But at least, I've got a different error message: "ftable 1: invalid sample format: -9" :) El mié., 20 mar. 2019 a las 14:25, Eduardo Moguillansky ( |
Date | 2019-03-20 18:42 |
From | pete.goodeve@COMPUTER.ORG |
Subject | Re: [Csnd] GEN01 Changes |
Attachments | None |
Date | 2019-03-20 18:53 |
From | Oscar Pablo Di Liscia |
Subject | Re: [Csnd] GEN01 Changes |
Thanks Pete, yes I saw the thread you mentioned. >Frankly, I still feel strongly that the decision >to reverse the sign -- which definitely breaks things >for me --was mistaken. Me too. Best El miércoles, 20 de marzo de 2019, <pete.goodeve@computer.org> escribió: On Wed, Mar 20, 2019 at 02:50:56PM -0300, Oscar Pablo Di Liscia wrote: -- Dr. Oscar Pablo Di Liscia Profesor Titular Director Programa de Investigación "Sistemas Temporales y Síntesis Espacial en el Arte Sonoro" http://stseas.web.unq.edu.ar/ Director Colección Editorial "Música y Ciencia" Escuela Universitaria de Artes Universidad Nacional de Quilmes Argentina 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 | 2019-03-20 21:24 |
From | john |
Subject | Re: [Csnd] GEN01 Changes |
Bizarre! that message comes from if (UNLIKELY(fmt < -9 || fmt > 9)) return fterror(ff, Str("invalid sample format: %d"), fmt); I just cannot see how -9 could generare it. On Wed, 20 Mar 2019, Oscar Pablo Di Liscia wrote: > Thanks Pete, yes I saw the thread you mentioned.>Frankly, I still feel > strongly that the decision > >to reverse the sign -- which definitely breaks things >for me --was mistaken. > Me too. > Best > > El miércoles, 20 de marzo de 2019, |
Date | 2019-03-20 21:44 |
From | Oscar Pablo Di Liscia |
Subject | Re: [Csnd] GEN01 Changes |
Hi John, I just have in my code: f 1 0 0 -1 "../ATS-files/flute-A5.ats" 0 -9 0 And got exactly that error message. El mié., 20 mar. 2019 a las 18:25, john ( |
Date | 2019-03-20 22:36 |
From | Victor Lazzarini |
Subject | Re: [Csnd] GEN01 Changes |
Are you looking at the same version? He might be using a different one. Victor Lazzarini Dean of Arts, Celtic Studies, and Philosophy Maynooth University Ireland > On 20 Mar 2019, at 21:25, john |
Date | 2019-03-20 23:20 |
From | Pete Goodeve |
Subject | Re: [Csnd] GEN01 Changes |
Attachments | None |
Date | 2019-03-22 12:06 |
From | Victor Lazzarini |
Subject | Re: [Csnd] GEN01 Changes |
We know there is a bug with 6.12, but it has been fixed in the latest git. I wonder if John was referring to this latest version when commented. ======================== Prof. Victor Lazzarini Dean of Arts, Celtic Studies, and Philosophy, Maynooth University, Maynooth, Co Kildare, Ireland Tel: 00 353 7086936 Fax: 00 353 1 7086952 > On 20 Mar 2019, at 23:20, Pete Goodeve |
Date | 2019-03-22 12:11 |
From | John ff |
Subject | Re: [Csnd] GEN01 Changes |
I only have the version in GitHub so perhaps this is the bug I fixed. Most be hearing time for a new release. Sent from TypeApp On Mar 22, 2019, 12:08, at 12:08, Victor Lazzarini |