[Csnd] Generate audio file with N samples exactly?
Date | 2012-06-23 15:44 |
From | Ralph Bluecoat |
Subject | [Csnd] Generate audio file with N samples exactly? |
Hello again, I'm currently playing around with some low-level algorithms whose notes and durations are based on sample rate and control rate. Is there a way in Csound that I could write to an audio file and specify amount of samples I want to write to disk? Thanks, Paul |
Date | 2012-06-23 18:06 |
From | Tito Latini |
Subject | Re: [Csnd] Generate audio file with N samples exactly? |
Attachments | None |
Date | 2012-06-23 18:24 |
From | Ralph Bluecoat |
Subject | Re: [Csnd] Generate audio file with N samples exactly? |
Thanks! That should do the trick, though I may have to play around with the control rate. I never realized the resolution of the score was based on ksmps. This might explain the deviations I was getting when I was trying to get the period lengths of waveforms in samples in an audio editor. You may have guessed that I've been playing around with your Csound implementation of the one-line 8-bit patterns in C. It's been good fun trying to break down those equations and figure out how they work!
-P
On Sat, Jun 23, 2012 at 1:06 PM, Tito Latini <tito.01beta@gmail.com> wrote: Here is the trick (but only ksmps=1) |
Date | 2012-06-23 21:08 |
From | Tito Latini |
Subject | Re: [Csnd] Generate audio file with N samples exactly? |
Attachments | None |