[Csnd] Midi grain experiment causes Qutcsound crash
Date | 2010-07-19 23:19 |
From | Christopher Saunders |
Subject | [Csnd] Midi grain experiment causes Qutcsound crash |
Hi, I'm trying to explore the grain opcode using midi cc's but it causes a Qutecsound crash. I'm curious to what values are causing this, I've been troubleshooting for hours. I'm using Qutecsound ver 0.5.0
Topher <CsoundSynthesizer> <CsOptions> </CsOptions> <CsInstruments> sr = 44100 ksmps = 128 nchnls = 1 0dbfs = 320000 instr 1 igfn = 1 iwfn = 5 icps cpsmidi kdens midic7 1, 600 , 200 kampoff midic7 2, 0, 5000 kpitchoff midic7 3, 0 , 20 kgdur midic7 4, 0, .25 isus midic7 5, 0 , 100000 iamp midic7 6 , 0 , 300000 k1 madsr .05, .02 , isus, .5 aout grain 1, icps,kdens,kampoff,kpitchoff,kgdur,igfn, iwfn, .25 out aout*iamp*k1 endin </CsInstruments> <CsScore> f 1 0 1024 10 1 f 5 0 512 20 2 f 0 600 </CsScore> </CsoundSynthesizer> |
Date | 2010-07-20 08:19 |
From | Andres Cabrera |
Subject | [Csnd] Re: Midi grain experiment causes Qutcsound crash |
Hi, The problem is that the grain opcode will crash if you set the grain duration to 0. So you need to change this line: kgdur midic7 4, 0, .25 to: kgdur midic7 4, 0.001, .25 Would it be good to check this at perftime and generate a perf-error instead of a crash? Cheers, Andrés On Mon, Jul 19, 2010 at 11:19 PM, Christopher Saunders |
Date | 2010-07-20 08:58 |
From | jpff@cs.bath.ac.uk |
Subject | [Csnd] Re: Re: Midi grain experiment causes Qutcsound crash |
> Hi, > > The problem is that the grain opcode will crash if you set the grain > duration to 0. So you need to change this line: > > kgdur midic7 4, 0, .25 > > to: > > kgdur midic7 4, 0.001, .25 > > Would it be good to check this at perftime and generate a perf-error > instead of a crash? > > Cheers, > Andrés > I have added a check for kglen beingf strictly positive. Or should it give it a default value? ==John ff 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 sympa@lists.bath.ac.uk with body "unsubscribe csound" |
Date | 2010-07-20 10:15 |
From | Victor Lazzarini |
Subject | [Csnd] Re: Re: Re: Midi grain experiment causes Qutcsound crash |
One millisecond seems right to me if the user sets it to 0. Victor On 20 Jul 2010, at 08:58, jpff@cs.bath.ac.uk wrote: >> Hi, >> >> The problem is that the grain opcode will crash if you set the grain >> duration to 0. So you need to change this line: >> >> kgdur midic7 4, 0, .25 >> >> to: >> >> kgdur midic7 4, 0.001, .25 >> >> Would it be good to check this at perftime and generate a perf-error >> instead of a crash? >> >> Cheers, >> Andrés >> > > I have added a check for kglen beingf strictly positive. > Or should it give it a default value? > > ==John ff > > > > 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 sympa@lists.bath.ac.uk 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 sympa@lists.bath.ac.uk with body "unsubscribe csound" |
Date | 2010-07-20 15:09 |
From | Andres Cabrera |
Subject | [Csnd] Re: Re: Re: Re: Midi grain experiment causes Qutcsound crash |
Hi, I prefer the error as John has suggested. Otherwise you might undesired results without warning. Cheers, Andrés On Tue, Jul 20, 2010 at 10:15 AM, Victor Lazzarini |