| Try replacing diskin with diskin2 and see if that helps..
On 25 May 2010 16:13, Emerson Aagaard wrote:
> Hi, I'm working through the first chapter of the csound book, and I'm very
> confused about what is happening when I try to run run instrument 135:
>
> sr = 44100
> ksmps = 10 nchnls = 1 instr 135 idur = p3 iamp = p4 igain = p5 iloopt = p6
> kenv linen iamp, .01, idur, .01 ain diskin "./samples/hellorcb.aif", 1.1
> acomb comb ain*kenv, igain, iloopt, 0 out ain+acomb endin ;ins st dur amp
> gain looptime resonant frq
> ;=================================================================== i135 0
> 5 .4 10 .5 ; 1/.5 = 2 Hz i135 5 5 .3 5 .25 ; 1/.25 = 4 Hz i135 10 5 .3 5
> .125 ; 1/.125 = 8 Hz i135 15 5 .2 2 .0625 ; 1/.0625 = 16 Hz i135 20 5 .2 2
> .03125 ; 1/.03125 = 32 Hz i135 25 5 .2 2 .015625 ; 1/.015625 = 64 Hz i135 30
> 5 .0 2 .001 ; 1/.001 = 1000Hz I get output
> (whether I write to dac or .wav file), but only for about a second or so
> before it cuts out. These are the messages I get at the command line:
> opening AIFF infile ./samples/hellorcb.aif defer length 100582 new alloc for
> instr 1350: diskin: opened './samples/hellorcb.aif': 44100 Hz, 1 channel(s),
> 100582 sample frames bufsize 4096 Csound tidy up: Segmentation fault
> inactive allocs returned to freespace end of score. overall amps: 46494.7
> overall samples out of range: 796 0 errors in performance Elapsed time at
> end of performance: real: 3.000s, CPU: 0.190s 427 512-byte soundblks of
> shorts written to dac
> I tried to make several other instruments based around this design to see
> what would happen, and the problem is clearly with diskin (using loscil and
> an ftable, for instance, works fine). Maybe I'm missing something really
> obvious here, but I can't see it! I would appreciate any help, and thanks in
> advance Emerson
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"
|