csound~ partikkel synth causing crashes
Feb 3, 2009 at 3:43am
csound~ partikkel synth causing crashes
Hey, I just wanted to see if anyone had any suggestions on how to fix this. I’m working on integrating my own version of the granular synthesizer example patch that comes with csound~v.1.0.4 (by Davis Pyon) into an interactive system I’m building. It uses the partikkel opcode in csound. Only trouble is that I’d really like to use a larger chunk of audio to cut up, and right now it only accepts around the first minute of whatever sample I load in.
Whenever I try to use a larger ftable size csound won’t run. Then I found in the csound~ manual that you can send Csound~ a “loadsamp” message and the first argument in the message defines which ftable to load the sample into, and supposedly that if you send a negative number the csound file will automatically create that ftable if it doesn’t exist and size it appropriately. For some reason when I tried that the whole thing started crashing. I thought it was an order of operations problem, i.e. load the sample, then run the csound patch, then turn on the audio rather than running csound, and then loading the sample, but sometimes when I even try to open the file I was working on Max crashes all together.
I went backwards and started working from the help file instead of my version, and everything was working fine until I put the -1 in. Should I try to upgrade to csound~1.0.5? Could it be a bug in csound? It was working for awhile with the -1, and allowed me to load in 6:10 of audio no problem, but strangely enough all the audio was transposed up 4 octaves – I was able to adjust for that but then the crashes started. Tried running the disk utility and deleting my plists, but no help there. I also got these strange error messages. They didn’t seem to affect the program at first, but they might have something to do with it. In the csound program:
Feb 3, 2009 at 5:11am
Using the “loadsamp” message with a negative table # can be
1) Create an instrument to turn off the partikkel instr:
2) In your Max patch, create two message boxes:
e i1 0 -1 // this will turn on instr 1 indefinitely
3) To safely replace tables, send the “e i2 0 0.1″ message to
I hope this helps. Let me know how things work out.
Feb 3, 2009 at 5:52am
I’m new to Max/MSP and still learning it – slowly due to other duties
But I can see there’s a good rapport here among several groups of
I’m just a tad concerned that if I end up getting an Ebody2 and
The reason I say that is I’ve been getting all the e-mails (lots of
Are these appearing in Max/MSP 5, or does this have anything to do
I’m a C++ programmer and Computer Science major, been programming for
So I’m sure the visual aspect will be very appealing to me. But is
I’m still in planning stages, but I’m hoping this was a great
The other thing I’m hoping for is Interaction between Action Script
Nobody usually replies to me, but I can assure you, I’m not a lepor :)
On Feb 3, 2009, at 12:11 AM, Davis Pyon wrote:
Feb 3, 2009 at 8:58am
Feb 3, 2009 at 6:56pm
Thank you so much for your response Davis! I love csound~ it’s not as hard to understand as I thought it would be. Anyway, I tried out what you suggested and I am still having problems. It did manage to load the file and not crash, but the event telling instrument 2 to turn on and turn off all instances of instrument 1 is giving me a weird error message. I typed in everything you suggested:
e i2 0 .1 (to activate instr 2)
but e i2 0 .1 is having no effect on audio or csound, it just says in the max window:
And the text I put into csound (right after the endin statement on instrument 1):
and for now I’m still working off your example, so the partikkel synth is instr 1. I’m not sure what the problem is, I think it was a fluke that the audio loaded without crashing it, that did happen a couple times before I started having problems. Incidentally, it is still transposing it up 4 octaves – any idea why it’s doing that? Anyway, thank you so much for your help, I love how the Max world is small enough that people still help each other. Let me know if I should send you my patch.
Feb 3, 2009 at 8:04pm
Could you send your patch and csd to:
Don’t bother sending audio files; I’ve got plenty of those.
I’m not sure what’s causing the “invalid instrument” error. If I could examine your csd, I’m sure I could figure out what’s wrong.
WRT to the transposition by 4 octaves, it may have something to do
Sample rate mismatch could also be the problem. If your audio file sample rate is 22050 and your csd is running at 44100, it will be transposed up 1 octave.
You must be logged in to reply to this topic.