|
Hi I'm trying to use Michael Clarke's FOG example within Max via csound~. I'm currently having trouble wrapping my head around using dropfile to load into my ftable using gen01. Essentially I just want to load in stereo audio files of varying lengths. I haven't had too much problem with 1-3 second files but a 60+ seconds seems to present a problem. Can anyone enlighten me? Also I'm sure there are errors in the Csound file, workin' on it! As far as the Max file, I'm using the loadsamp patcher provided by Dave's helpfile.
Thank you! <CsoundSynthesizer> <CsInstruments> sr = 44100 ksmps = 32 nchnls = 2 0dbfs = 1 giwavetable ftgen 1, 0, 262144, 1, "Cwejman S1.wav", 0, 0, 0 instr 1 i1 = sr/ftlen(giwavetable) a1 phasor i1*p5 asigl fog .5, 15, p4, a1, 1, 0, .01, .5, .01, 30, 1, 2, p3 asigr fog .4, 25, p4+.2, a1, 1, 0, .01, .5, .01, 30, 1, 2, p3, .5 outs asigl, asigr endin </CsInstruments> <CsScore> f0 86400 f 2 0 1024 19 .5 .5 270 .5 i 1 0 1. 1. 1. e </CsScore> </CsoundSynthesizer> |
|
One problem is that Csound~ will automatically resize the table to a power of 2 so you're likely to have a silence at the end of the playback. Not ideal. I always end up loading the file by passing it in a p-filed.
But what is your exact issue? P On 17 February 2012 19:54, Jeshua <[hidden email]> wrote: Hi I'm trying to use Michael Clarke's FOG example within Max via csound~. I'm |
|
The issue I am having is loading larger files, say 168 seconds to be exact, into a table. In Max, I was sending a loadsamp 1 0 $1 0. 168. message, but csound or max would only buffer perhaps 3-4 seconds worth. I was able to load the sample in the csd without Max, but I was receiving error messages saying that the ftable size was smaller than the audio file. I wanted to defer the size with a zero but ftlen won't work when I try that. I'm just running around in circles it seems. I'm just trying to build an instrument that I can easily drop audio files into a table without much fuss, does anyone have a csd or max patch that I can study? Thank you
On Fri, Feb 17, 2012 at 2:58 PM, peiman khosravi <[hidden email]> wrote: One problem is that Csound~ will automatically resize the table to a power of 2 so you're likely to have a silence at the end of the playback. Not ideal. I always end up loading the file by passing it in a p-filed. |
|
could you post or email me your max patch alongside the csd? I can take a look.
Best, Peiman On 18 February 2012 01:06, Jeshua Whitaker <[hidden email]> wrote: The issue I am having is loading larger files, say 168 seconds to be exact, into a table. In Max, I was sending a loadsamp 1 0 $1 0. 168. message, but csound or max would only buffer perhaps 3-4 seconds worth. I was able to load the sample in the csd without Max, but I was receiving error messages saying that the ftable size was smaller than the audio file. I wanted to defer the size with a zero but ftlen won't work when I try that. I'm just running around in circles it seems. I'm just trying to build an instrument that I can easily drop audio files into a table without much fuss, does anyone have a csd or max patch that I can study? Thank you |
|
In reply to this post by Jeshua
hi jeshua -
it might be the easiest way to send a message to the csound~ object to create a table with gen01. this can be done with the message 'event f 1 ...' (i don't have max on my computer here, but there are examples in davis' subpatchers). all you have to do is to get your filename from the dropfile, and the put in in the message box (via $1 or formatting with prepend etc). hope this helps - joachim Am 18.02.2012 02:06, schrieb Jeshua Whitaker: > The issue I am having is loading larger files, say 168 seconds to be > exact, into a table. In Max, I was sending a loadsamp 1 0 $1 0. 168. > message, but csound or max would only buffer perhaps 3-4 seconds worth. > I was able to load the sample in the csd without Max, but I was > receiving error messages saying that the ftable size was smaller than > the audio file. I wanted to defer the size with a zero but ftlen won't > work when I try that. I'm just running around in circles it seems. I'm > just trying to build an instrument that I can easily drop audio files > into a table without much fuss, does anyone have a csd or max patch that > I can study? Thank you > > On Fri, Feb 17, 2012 at 2:58 PM, peiman khosravi > <[hidden email] <mailto:[hidden email]>> wrote: > > One problem is that Csound~ will automatically resize the table to a > power of 2 so you're likely to have a silence at the end of the > playback. Not ideal. I always end up loading the file by passing it > in a p-filed. > > But what is your exact issue? > > P > > > On 17 February 2012 19:54, Jeshua <[hidden email] > <mailto:[hidden email]>> wrote: > > Hi I'm trying to use Michael Clarke's FOG example within Max via > csound~. I'm > currently having trouble wrapping my head around using dropfile > to load into > my ftable using gen01. Essentially I just want to load in stereo > audio files > of varying lengths. I haven't had too much problem with 1-3 > second files but > a 60+ seconds seems to present a problem. Can anyone enlighten > me? Also I'm > sure there are errors in the Csound file, workin' on it! As far > as the Max > file, I'm using the loadsamp patcher provided by Dave's helpfile. > > Thank you! > > <CsoundSynthesizer> > <CsInstruments> > sr = 44100 > ksmps = 32 > nchnls = 2 > 0dbfs = 1 > > giwavetable ftgen 1, 0, 262144, 1, "Cwejman S1.wav", 0, 0, 0 > > instr 1 > i1 = sr/ftlen(giwavetable) > a1 phasor i1*p5 > asigl fog .5, 15, p4, a1, 1, 0, .01, .5, .01, 30, 1, 2, p3 > asigr fog .4, 25, p4+.2, a1, 1, 0, .01, .5, .01, 30, 1, 2, p3, .5 > outs asigl, asigr > endin > > </CsInstruments> > <CsScore> > f0 86400 > f 2 0 1024 19 .5 .5 270 .5 > > i 1 0 1. 1. 1. > e > </CsScore> > </CsoundSynthesizer> > > -- > View this message in context: > http://csound.1045644.n5.nabble.com/Csound-loadsamp-message-with-ftable-gen01-question-tp5493738p5493738.html > Sent from the Csound - General mailing list archive at Nabble.com. > > > Send bugs reports to the Sourceforge bug tracker > > https://sourceforge.net/tracker/?group_id=81968&atid=564599 > <https://sourceforge.net/tracker/?group_id=81968&atid=564599> > Discussions of bugs and features can be posted here > To unsubscribe, send email [hidden email] > <mailto:[hidden email]> with body "unsubscribe csound" > > > Send bugs reports to the Sourceforge bug tracker https://sourceforge.net/tracker/?group_id=81968&atid=564599 Discussions of bugs and features can be posted here To unsubscribe, send email [hidden email] with body "unsubscribe csound" |
|
I think what you need is replace instead of fill the table. Try this instead (with the negative table number):
-1 0 $1 0. 168. P On 18 February 2012 10:45, joachim heintz <[hidden email]> wrote: hi jeshua - |
|
yes that's that, it's working here. But note that the table will be re-sized to the nearest power of two that exceeds the defined duration.
On 18 February 2012 11:10, peiman khosravi <[hidden email]> wrote: I think what you need is replace instead of fill the table. Try this instead (with the negative table number): |
|
You guys are awesome! I won't have time today to implement it, but tomorrow I will do this for sure. Thank you
On Sat, Feb 18, 2012 at 6:19 AM, peiman khosravi <[hidden email]> wrote: yes that's that, it's working here. But note that the table will be re-sized to the nearest power of two that exceeds the defined duration. |
| Powered by Nabble | See how NAML generates this page |
