Csound Csound-dev Csound-tekno Search About

[Csnd] Re: Re: Re: Re: need some help, thanks

Date2010-06-30 22:56
FromMiguel Coca
Subject[Csnd] Re: Re: Re: Re: need some help, thanks
Thank you again Mark and Victor for your help. 

I could solve the problem using diskin2 instead of the loscil opcode to load a sound file.

have a great 4 July vacation!,

best

MC

---------------------------------------
Original E-mail
From: Victor Lazzarini <Victor.Lazzarini@nuim.ie>
Date: 06/29/2010 03:41 AM
To: csound@lists.bath.ac.uk
Subject: [Csnd] Re: Re: Re: need some help, thanks

Is this a PPC Mac? Try 'run in term'  and see if it still crashes. There does not seem to be anything wrong in the CSD.

Victor
On 29 Jun 2010, at 01:10, Miguel Coca wrote:

Thanks Victor:

Qute Csound version = 0.4.6
Mac OS version = 10.5.8

This is the CSD that I am using (the program crashes when it has to render instrument 106):

 <CsoundSynthesizer>
<CsOptions>
-odac
</CsOptions>
<CsInstruments>
sr = 44100
kr = 441
ksmps = 100
nchnls = 1

instr 101
a1 oscil 5000, 440, 1
out a1
endin

instr 102
a1 foscil 1500, 550, 1, 9, 3, 1 ;simple 2 operator fm opcode
out a1
endin

instr 103
a1 buzz 4000, 660, 20, 1 ;variable pulse train
out a1
endin

instr 104
a1 pluck 6000, 770, 440, p4, 1 ;karplus-strong plucked string ; p4=ifn (table number)
out a1
endin

instr 105
a1 grain 5000, p4, p5, 5000, 10, p6, 1, 3, 1 ;asynchronous granular synthesis ; p5=density ; p6=duration of grains
out a1
endin

instr 106
a1 loscil p4, p5, 4 ;sample-based looping oscillator
out a1
endin

instr 66
a1 loscil p4, p5, 5 ;sample-based looping oscillator
out a1
endin

instr 67
a1 loscil p4, p5, 6 ;sample-based looping oscillator
out a1
endin

instr 68
a1 loscil p4, p5, 7 ;sample-based looping oscillator
out a1
endin

</CsInstruments>
<CsScore>
; Function 1 uses the GEN10 subroutine to compute a sine wave
; Function 2 uses the GEN10 subroutine to compute the first sixteen partials of a sawtooth wave
; Function 3 uses the GEN20 subroutine to compute a Hanning window for use as a grain envelope
; Function 4 uses the GEN01 subroutine to read in an AIF audio file

f 1 0 4096 10 1 ;.1 .5 .7 .9 0 0 .1 .2 0 0 0 0 .3
f 2 0 4096 10 1 .5 .333 .25 .2 .166 .142 .125 .111 .1 .09 .083 .076 .071 .066 .062
f 3 0 4097 20 2 1
f 4 0 0 1 "sing.aif" 0 4 0
f 5 0 0 1 "mc1.wav" 0 4 0
f 6 0 0 1 "mc2.wav" 0 4 0
f 7 0 0 1 "mc3.wav" 0 4 0

;inst start duration
i 105 0 .5 440 1 .2
i 105 .25 .5 550 4 .2
i 105 .5 .5 660 8 .75
i 105 .75 .5 770 10 0.1
i 105 1 .5 880 19 .0125
i 105 1.25 .5 770 21 .015
i 105 1.5 .5 660 29 .0175
i 105 1.75 .5 550 80 .2
s
;inst start duration
i 105 0 2 440 1 0.9
i 105 2 2 550 2 0.9
i 105 4 2 660 3 .075
i 105 6 2 880 4 .5
i 105 8 2 770 5 .025
i 105 10 2 660 6 .05
i 105 12 2 880 7 .015
i 105 14 2 1000 8 .02
s
;inst start duration
i 104 0 .5 1
i 104 .25 .5 2
i 104 .5 .5 3
i 104 .75 .5 4
i 104 1 .5 3
i 104 1.25 .5 2
i 104 1.5 .5 1
i 104 1.75 .5
i 101 2 .5
i 102 2.5 .5
i 103 3 .5
i 104 3.5 .5 2
i 105 4 .5
i 106 5 2 10000 440
i 101 7 .2
i 102 7.2 .2
i 103 7.4 .2
i 104 7.6 .2
i 105 7.8 .2
i 101 8 1
i 102 8 1
i 103 8 1
i 104 8 1
i 105 8 1
i 106 8 1 8000 880
i 106 10 .5 10000 440
i 106 10.5 .5 5000 570
i 106 11 .5 8000 660
i 106 11.5 .25 10000 570
i 106 11.75 .25 5000 660
i 106 12 .5 8000 880
i 106 12.5 .25 6000 800
i 106 12.75 .25 4000 760
i 106 13 .25 8000 700
i 106 13.25 25 8000 660
i 106 13.5 .25 6000 770
i 106 13.75 1 4000 880
i 106 7 1 8000 440
i 106 9 1 10000 220
s
;inst start duration
a 0 0 7
i 66 8 1 8000 880
i 66 10 .5 10000 440
i 67 10.5 .5 5000 570
i 66 11 .5 8000 660
i 67 11.5 .25 10000 570
i 66 11.75 .25 5000 660
i 68 12 .5 8000 880
i 68 12.5 .25 6000 800
i 68 12.75 .25 4000 760
i 68 13 .25 8000 700
i 68 13.25 25 8000 660
i 67 13.5 .25 6000 770
i 66 13.75 1 4000 880
i 66 7 1 8000 440
i 67 8 1 10000 220
i 68 9 1 10000 220

</CsScore>
</CsoundSynthesizer>


---------------------------------------
Original E-mail
From: Victor Lazzarini <Victor.Lazzarini@nuim.ie>
Date: 06/28/2010 07:29 PM
To: csound@lists.bath.ac.uk
Subject: [Csnd] Re: need some help, thanks

Ok, could you

1. Tell us what version of QuteCsound, Csound and what OS you are using?
2. Copy here the CSD you are using.

Victor


On 29 Jun 2010, at 00:22, Miguel Coca wrote:

Hi everyone! I wonder if someone would be kind to help me with this: 

I am desperate trying to understand why when I use and instrument that loads a file using the loscil opcode, Qute Csound crashes and closes:
- I think that my programing is fine because it works sometimes (however most of the times it doesn't so I really need to fix this problem so i can continue working on it and render my orchestras!)
- I have set the buffer size to "no limit"
- It says there are N0 samples out of range
- All the other opcodes and instruments work
- My computer works great in all the other programs

Maybe I am missing sth important, do you have any clue of what can it be happening?

Thanks for your help

MC