[Csnd] Playing raw-files in csound
Date | 2019-12-15 11:37 |
From | Jan Jacob Hofmann |
Subject | [Csnd] Playing raw-files in csound |
Dear list, for the first time I do have to read a raw soundfile ("bassdrum.raw") with diskin2. No matter, which setting I do choose for iformat, all I get is just the same short burst of noise. Is there something general about dealing with raw soundfiles that I am missing? Best, Jan Jacob -- sound | movement | object | space sonic architecture | site: http://www.sonicarchitecture.de spatial electronic composition | higher order ambisonic music 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-12-15 12:29 |
From | Victor Lazzarini |
Subject | Re: [Csnd] Playing raw-files in csound |
What version of Csound? ======================== Prof. Victor Lazzarini Maynooth University Ireland > On 15 Dec 2019, at 11:37, Jan Jacob Hofmann |
Date | 2019-12-15 23:36 |
From | Pete Goodeve |
Subject | Re: [Csnd] Playing raw-files in csound |
Attachments | None |
Date | 2019-12-16 21:59 |
From | Pete Goodeve |
Subject | [Csnd] STK rawwaves files (was Re: [Csnd] Playing raw-files in csound) |
Attachments | None |
Date | 2019-12-17 02:38 |
From | Arthur Hunkins <000001e1d761dea2-dmarc-request@LISTSERV.HEANET.IE> |
Subject | Re: [Csnd] STK rawwaves files (was Re: [Csnd] Playing raw-files in csound) |
Several months ago I spent weeks trying to get the marmstk1.raw file working for me in the marimba, vibes and gogobel opcodes. I finally did, and the results can be found in three .csd's for my composition From a Dream (top of my comp list at arthunkins.com, in it's zip archive). I needed the 3 different .csd's largely due to differences in the way I had to implement marmstk1.raw in 3 platforms: console Csound, and new and older versions of the Android OS. (One of the differences is that the STK samples are not included in the earlier Android distributions of Csound.) You can compare my STK solutions by comparing their incorporation in the GEN01 functions near the end of the .csd's. Several random comments: complete paths for samples must be specified on Android. (Android doesn't seem to do relative.) And IIRC, for console Csound (in my case Windows), a simple substitution of a WAV for the RAW extension seems to be acceptable. (I don't recall that this works on Android.) I note that this is what Iain McCurdy seems to do in gogobel.csd in his Csound instrument collection. His SR is 22050, which I believe is the SR for all the SDK samples (I recall someone on this list verifying this fact.) Unfortunately, none of these knotty deviations are discussed anywhere that I know of. Art Hunkins On Mon, Dec 16, 2019 at 4:59 PM Pete Goodeve <pete.goodeve@computer.org> wrote: Just an addendum to yesterday's post. |
Date | 2019-12-17 06:56 |
From | Victor Lazzarini |
Subject | Re: [Csnd] STK rawwaves files (was Re: [Csnd] Playing raw-files in csound) |
Never actually looked into this, but one should ask, is it not a dumb thing to distribute raw files with your API? My impression always was that the STK only worked with these raw files, and not with proper soundfiles, therefore putting our wav or aif versions was useless. I might be wrong, though. Prof. Victor Lazzarini Maynooth University Ireland > On 16 Dec 2019, at 21:59, Pete Goodeve |
Date | 2019-12-17 07:59 |
From | Pete Goodeve |
Subject | Re: [Csnd] STK rawwaves files (was Re: [Csnd] Playing raw-files in csound) |
Attachments | None |
Date | 2019-12-17 08:10 |
From | Pete Goodeve |
Subject | Re: [Csnd] STK rawwaves files (was Re: [Csnd] Playing raw-files in csound) |
Attachments | None None stkwaveaiffs.zip |
Date | 2019-12-17 18:50 |
From | Arthur Hunkins <000001e1d761dea2-dmarc-request@LISTSERV.HEANET.IE> |
Subject | Re: [Csnd] STK rawwaves files (was Re: [Csnd] Playing raw-files in csound) |
Pete - Thanks for these insights. I'd like to see your "proper" marmstk1.wav (or .aiff) and experiment with it to see whether my gogobel, vibes and marimba opcodes might be made cleaner. I got into the .wav/.raw quagmire first because the reference manual for these opcodes used the .wav format, while my distributions (Windows and latest Android) supplied only .raw. Iain's catalog also uses .wav. I wonder how he "converted," if indeed he did anything but an extension substitution?) What I did was import marmstk1.raw into Audacity, and export it as a 22050 sr .wav. Should this give the proper impulse envelope, or is some other operation required? In any case, I'd like to know what sample (sample format?) is the proper one to use with these three opcodes (gogobel, vibes and marimba). Surely, all this should be made clear in the documentation (reference manual) somewhere - probably on the STK Opcodes page. Unfortunately, these three opcodes and marmstk1 (whether .raw or .wav) are not mentioned/discussed there. On Tue, Dec 17, 2019 at 2:59 AM Pete Goodeve <pete.goodeve@computer.org> wrote: On Mon, Dec 16, 2019 at 09:38:57PM -0500, Arthur Hunkins wrote: |
Date | 2019-12-17 22:54 |
From | Pete Goodeve |
Subject | Re: [Csnd] STK rawwaves files (was Re: [Csnd] Playing raw-files in csound) |
Attachments | None None marmstk1.aiff |
Date | 2019-12-17 23:52 |
From | Pete Goodeve |
Subject | Re: [Csnd] STK rawwaves files (was Re: [Csnd] Playing raw-files in csound) |
Attachments | None |