Re: [Csnd] gen01 formats on Linux - what do I choose for 24 bit sample files
Date | 2018-03-31 20:20 |
From | Prent Rodgers |
Subject | Re: [Csnd] gen01 formats on Linux - what do I choose for 24 bit sample files |
I noticed that csound reports that it reads the sample file as mono and RAW: ftable 646: deferred alloc for samples/Bosendor/47 emp G3-.wav audio sr = 44100, monaural opening RAW infile samples/Bosendor/47 emp G3-.wav defer length 1378972 I've tried all the gen01 parameters I could think of, but none seem to read it correctly any more. From the gen01 manual page, here are the choices. I don't see 24-bit stereo in the list. 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 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-03-31 20:55 |
From | jpff |
Subject | Re: [Csnd] gen01 formats on Linux - what do I choose for 24 bit sample files |
If you use format 0 it will read as wac and get the sample size correcty. If you set a value in format it will assume you know what you are doing and will open as raw -- which is rarely correct. ==John ff On Sat, 31 Mar 2018, Prent Rodgers wrote: > I noticed that csound reports that it reads the sample file as mono and RAW: > > ftable 646: > deferred alloc for samples/Bosendor/47 emp G3-.wav > audio sr = 44100, monaural > opening RAW infile samples/Bosendor/47 emp G3-.wav > defer length 1378972 > > I've tried all the gen01 parameters I could think of, but none seem to read it correctly any more. > > From the gen01 manual page, here are the choices. I don't see 24-bit stereo in the list. > > 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 > > 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 > 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-03-31 21:16 |
From | jpff |
Subject | Re: [Csnd] gen01 formats on Linux - what do I choose for 24 bit sample files |
BTW the latest code in github does not open the file twice;this area has been subject to some rational reworking. 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-03-31 21:58 |
From | jpff |
Subject | Re: [Csnd] gen01 formats on Linux - what do I choose for 24 bit sample files |
and moreover the number 8 gives24 bit integer samples and has fora lomg time - the nanual was wrong in this respect. 1 - 8-bit signed character 2 - 8-bit A-law bytes 3 - 8-bit U-law bytes 4 - 16-bit short integers 5 - 32-bit long integers 6 - 32-bit floats 7 - 8-bit unsigned character 8 - 24-bit integers 9 - 64-bit doubles BUTonly for RAW format files; others take the data from the header. ==John ff PS I have just corrected the manual and will commit very soon On Sat, 31 Mar 2018, jpff wrote: > BTW the latest code in github does not open the file twice;this area has been > subject to some rational reworking. > > 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 > 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 |