Csound Csound-dev Csound-tekno Search About

[Csnd] DirectCsound 3.20 vs DirectCsound 2.70

Date1999-11-13 15:17
FromMichael Alcorn
Subject[Csnd] DirectCsound 3.20 vs DirectCsound 2.70
Dear All

The following (simplified) orchestra and score files work fine with
DirectCsound2.70, yet when applied to a more recent version (3.20) the
following error is generated:

"Csound Command ERROR:   can't write AIFF/WAV soundfile with no header"

This applies to all files (orc/sco & .csd).

My machine is running Win98 with the DirectX 7.0 Technology update and I'm
using the following flags:
csound -d -+O -m0 -+K0 -+X1 -b2000 sine1.orc sine1.sco

Any ideas?

Thanks

Michael Alcorn

===============
;ORC
sr = 44100
kr = 441
ksmps = 100
nchnls = 2
instr 1

inum notnum
a1 oscili 10000, 440, 1
outs a1, a1
 endin

=============
;sco
f1 0 1024 10 1
f0 600
e



--
To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk


Received: from wallace.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa19465;
          13 Nov 99 15:34 GMT
Received: from [138.38.32.81] (helo=mercury.bath.ac.uk)
	by wallace.maths.bath.ac.uk with smtp (Exim 2.12 #1)
	id 11me8v-0002vN-00
	for j.p.ffitch@maths.bath.ac.uk; Sat, 13 Nov 1999 14:27:05 +0000
Received: (qmail 1059 invoked from network); 13 Nov 1999 15:22:26 -0000
Received: from amos.bath.ac.uk (qmailr@138.38.32.36)
  by mercury.bath.ac.uk with SMTP; 13 Nov 1999 15:22:26 -0000
Received: (qmail 4181 invoked by uid 1457); 13 Nov 1999 15:19:45 -0000
Mailing-List: contact csound-help@lists.bath.ac.uk; run by ezmlm
Precedence: bulk
X-Mailing-List: csound
Delivered-To: mailing list csound@lists.bath.ac.uk
Received: (qmail 4168 invoked from network); 13 Nov 1999 15:19:44 -0000
Received: from pat.bath.ac.uk (138.38.32.2)
  by amos.bath.ac.uk with SMTP; 13 Nov 1999 15:19:44 -0000
Received: (qmail 22090 invoked from network); 13 Nov 1999 15:19:44 -0000
Received: from mta2.snfc21.pbi.net (206.13.28.123)
  by pat.bath.ac.uk with SMTP; 13 Nov 1999 15:19:44 -0000
Received: from rcsreg.com ([63.193.151.229])
 by mta2.snfc21.pbi.net (Sun Internet Mail Server sims.3.5.1999.09.16.21.57.p8)
 with ESMTP id <0FL3008E1W8QJT@mta2.snfc21.pbi.net> for
 csound@lists.bath.ac.uk; Fri, 12 Nov 1999 14:38:56 -0800 (PST)
Date: Fri, 12 Nov 1999 14:38:49 -0800
From: Tobiah 
Sender: toby@mta2.snfc21.pbi.net
To: Thomas Judson 
Cc: csound@lists.bath.AC.UK
Message-id: <382C96F9.7B15700E@rcsreg.com>
MIME-version: 1.0
X-Mailer: Mozilla 4.7 [en] (X11; U; Linux 2.3.24 i686)
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7bit
X-Accept-Language: en
References: <19991112212351.59116.qmail@hotmail.com>
Subject: Re: [Csnd] Newbie needs Guru's help...please

Can you just use another linseg?

	kOscilgate	linseg	0, iwait_time, 0, igate_time, 1

> However, I'm trying to find a way to allow the sample
> to play unchanged for a preset amout of time, and then have the oscil start
> up and effect the sound.
--
To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk


Received: from shaun.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa19471;
          13 Nov 99 15:37 GMT
Received: from [138.38.32.81] (helo=mercury.bath.ac.uk)
	by shaun.maths.bath.ac.uk with smtp (Exim 2.12 #1)
	id 11mfEw-0005g1-00
	for j.p.ffitch@maths.bath.ac.uk; Sat, 13 Nov 1999 15:37:22 +0000
Received: (qmail 2483 invoked from network); 13 Nov 1999 15:25:14 -0000
Received: from amos.bath.ac.uk (qmailr@138.38.32.36)
  by mercury.bath.ac.uk with SMTP; 13 Nov 1999 15:25:14 -0000
Received: (qmail 5257 invoked by uid 1457); 13 Nov 1999 15:23:34 -0000
Mailing-List: contact csound-help@lists.bath.ac.uk; run by ezmlm
Precedence: bulk
X-Mailing-List: csound
Delivered-To: mailing list csound@lists.bath.ac.uk
Received: (qmail 5247 invoked from network); 13 Nov 1999 15:23:34 -0000
Received: from pat.bath.ac.uk (138.38.32.2)
  by amos.bath.ac.uk with SMTP; 13 Nov 1999 15:23:34 -0000
Received: (qmail 22264 invoked from network); 13 Nov 1999 15:23:34 -0000
Received: from howl.werewolf.net (12.23.152.10)
  by pat.bath.ac.uk with SMTP; 13 Nov 1999 15:23:34 -0000
Received: from default (dial48.werewolf.net [12.23.153.48])
	by howl.werewolf.net (8.9.0/8.9.0) with SMTP id JAA09672
	for ; Sat, 13 Nov 1999 09:13:09 -0600 (CST)
Message-ID: <001401bf2dec$6a6fb220$3099170c@default>
From: Hans Mikelson 
To: Csound 
Date: Sat, 13 Nov 1999 09:33:19 -0600
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 4.72.3110.5
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Subject: [Csnd] Goofy Percussion Sound Orc/Sco

Hi there,

Here is a goofy little percussion sound I have been playing with today.  It
seems to be quite flexible.

Happy Csounding,
Hans Mikelson

; ORC
;---------------------------------------------------------
; Percussion
;---------------------------------------------------------
       instr     18

idur   =         p3            ; Duration
iamp   =         p4            ; Amplitude
ifqc   =         cpspch(p5)    ; Pitch to frequency
ipanl  =         sqrt(p6)      ; Pan left
ipanr  =         sqrt(1-p6)    ; Pan right
itime  =         p7            ; Reverb time
ifdbk  =         p8            ; Feedback level
idecay =         p9            ; Impulse decay time
isweep =         p10           ; Delay sweep
iq     =         p11           ; Resonance/Q

adel   init      0

kdclck linseg    1, idur-.002, 1, .002, 0 ; Declick envelope
kclk   linseg    1, idecay, 0, idur-idecay, 0 ; Generate a click
ktime  expseg    itime, idur, itime*isweep

anois  rand      kclk                         ; Genrate impulse
asig   rezzy     anois*5, ifqc, iq, 1         ; High pass rezzy



adel   vdelay3    (asig+adel)*ifdbk, ktime*1000, 1000

aout   =         (adel+asig)*iamp*kdclck
       outs      aout*ipanl, aout*ipanr            ; Output the sound

       endin

f1 0 65536 10 1

; Percussion 1
;    Sta     Dur  Amp     Pitch  Pan  DelTime  FdBack Decay  DelaySweep  Q
i18  1.375   .2   16000   9.00   .2   0.02     .7      .01   .5          20
i18  2.625   .2   14000   9.00   .8   0.02     .8      .01   .4          10
i18  3.375   .2   16000   9.00   .2   0.02     .7      .01   .5          20
i18  3.625   .2   14000   9.00   .8   0.02     .8      .01   .4          10
i18  5.375   .2   16000   9.00   .2   0.02     .7      .01   .5          20
i18  6.625   .2   14000   9.00   .8   0.02     .8      .01   .4          10
i18  7.375   .2   16000   9.00   .2   0.02     .7      .01   .5          20
;i18  7.625   .2   12000   9.00   .8   0.02     .8      .01   .4          10
i18  7.750   .25  0       9.00   .8   0.02     .8      .01   .4          10

; Perc sound 2
i18  0.125   .2   25000   8.00   .4   0.1      .2      .05   .8          10
i18  1.125   .2   35000   8.00   .4   0.1      .2      .05   .8          60
i18  2.125   .2   25000   8.00   .4   0.1      .2      .05   .8          10
i18  3.125   .2   35000   8.00   .4   0.1      .2      .05   .8          60
i18  4.125   .2   25000   8.00   .4   0.1      .2      .05   .8          10
i18  5.125   .2   35000   8.00   .4   0.1      .2      .05   .8          60
i18  6.125   .2   25000   8.00   .4   0.1      .2      .05   .8          10
i18  7.125   .2   35000   8.00   .4   0.1      .2      .05   .8          60

; Perc sound 3
i18  0.875   .4   15000   10.00  .0   0.04     .7      .02   2           5
i18  2.875   .4   15000   10.00  .0   0.04     .7      .02   1.8         10
i18  4.875   .4   15000   10.00  .0   0.04     .7      .02   2           20
i18  6.875   .4   15000   10.00  .0   0.04     .7      .02   2.2         10

; Perc sound 4
i18  5.625   .25  20000   8.07   .4   0.18     .7      .01   .1          10
i18  7.626   .25  19000   8.07   .6   0.18     .7      .01   .1          10


--
To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk


Received: from wallace.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa19619;
          13 Nov 99 16:32 GMT
Received: from [138.38.32.81] (helo=mercury.bath.ac.uk)
	by wallace.maths.bath.ac.uk with smtp (Exim 2.12 #1)
	id 11mf3R-0002wW-00
	for j.p.ffitch@maths.bath.ac.uk; Sat, 13 Nov 1999 15:25:29 +0000
Received: (qmail 8195 invoked from network); 13 Nov 1999 16:29:11 -0000
Received: from amos.bath.ac.uk (qmailr@138.38.32.36)
  by mercury.bath.ac.uk with SMTP; 13 Nov 1999 16:29:11 -0000
Received: (qmail 10462 invoked by uid 1457); 13 Nov 1999 16:27:33 -0000
Mailing-List: contact csound-help@lists.bath.ac.uk; run by ezmlm
Precedence: bulk
X-Mailing-List: csound
Delivered-To: mailing list csound@lists.bath.ac.uk
Received: (qmail 10452 invoked from network); 13 Nov 1999 16:27:33 -0000
Received: from pat.bath.ac.uk (138.38.32.2)
  by amos.bath.ac.uk with SMTP; 13 Nov 1999 16:27:33 -0000
Received: (qmail 25720 invoked from network); 13 Nov 1999 16:27:33 -0000
Received: from wallace.maths.bath.ac.uk (exim@138.38.100.104)
  by pat.bath.ac.uk with SMTP; 13 Nov 1999 16:27:33 -0000
Received: from [138.38.99.25] (helo=maths.Bath.AC.UK ident=mmdf)
	by wallace.maths.bath.ac.uk with smtp (Exim 2.12 #1)
	id 11meyD-0002wP-00
	for csound@lists.bath.AC.UK; Sat, 13 Nov 1999 15:20:05 +0000
Date: Sat, 13 Nov 1999 15:24:56 +0000
Message-Id: <2593-Sat13Nov1999152456+0000-jpff@maths.bath.ac.uk>
X-Mailer: emacs 20.4.91.2 (via feedmail 8 Q)
From: jpff@maths.bath.ac.uk
To: csound@lists.bath.AC.UK
Sender: j.p.ffitch@maths.bath.ac.uk
Source-Info:  From (or Sender) name not authenticated.
Subject: [Csnd] score.srt files

What I have done in my recent sources is by default score.srt is
created as a temporary file and deleted at the end.  A flag of -t0
will stop this and a score.srt will be created as before (read that as
temporaries no).  I do know that -t is a tempo flag but a zero tempo is
illegal.  I think this does not affect sore extraction, cscore or any
of those things.
==John ffitch
--
To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk


Received: from shaun.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa19793;
          13 Nov 99 18:33 GMT
Received: from [138.38.32.81] (helo=mercury.bath.ac.uk)
	by shaun.maths.bath.ac.uk with smtp (Exim 2.12 #1)
	id 11mhzc-0005mb-00
	for j.p.ffitch@maths.bath.ac.uk; Sat, 13 Nov 1999 18:33:44 +0000
Received: (qmail 15005 invoked from network); 13 Nov 1999 18:29:17 -0000
Received: from amos.bath.ac.uk (qmailr@138.38.32.36)
  by mercury.bath.ac.uk with SMTP; 13 Nov 1999 18:29:17 -0000
Received: (qmail 16965 invoked by uid 1457); 13 Nov 1999 18:27:42 -0000
Mailing-List: contact csound-help@lists.bath.ac.uk; run by ezmlm
Precedence: bulk
X-Mailing-List: csound
Delivered-To: mailing list csound@lists.bath.ac.uk
Received: (qmail 16951 invoked from network); 13 Nov 1999 18:27:41 -0000
Received: from pat.bath.ac.uk (138.38.32.2)
  by amos.bath.ac.uk with SMTP; 13 Nov 1999 18:27:41 -0000
Received: (qmail 1281 invoked from network); 13 Nov 1999 18:27:41 -0000
Received: from newbrussel.planetinternet.be (194.119.232.19)
  by pat.bath.ac.uk with SMTP; 13 Nov 1999 18:27:41 -0000
Received: from DMA (u195-95-47-97.pop-gent3.planetinternet.be [195.95.47.97])
	by newbrussel.planetinternet.be (8.9.3/8.9.3) with SMTP id TAA17789
	for ; Sat, 13 Nov 1999 19:22:42 +0100 (MET)
Message-ID: <00e901bf2e04$741f04c0$612f5fc3@dma.be>
From: mK 
To: csound 
Date: Sat, 13 Nov 1999 19:25:16 +0100
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.00.2014.211
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211
Subject: [Csnd] directcsound score loops

Will Gabriel Maldonado's (nested) score loops be included in the canonical
version?

mik




--
To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk


Received: from shaun.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa19912;
          13 Nov 99 19:46 GMT
Received: from [138.38.32.81] (helo=mercury.bath.ac.uk)
	by shaun.maths.bath.ac.uk with smtp (Exim 2.12 #1)
	id 11mj7n-0005oQ-00
	for j.p.ffitch@maths.bath.ac.uk; Sat, 13 Nov 1999 19:46:15 +0000
Received: (qmail 19686 invoked from network); 13 Nov 1999 19:42:06 -0000
Received: from amos.bath.ac.uk (qmailr@138.38.32.36)
  by mercury.bath.ac.uk with SMTP; 13 Nov 1999 19:42:06 -0000
Received: (qmail 21322 invoked by uid 1457); 13 Nov 1999 19:40:29 -0000
Mailing-List: contact csound-help@lists.bath.ac.uk; run by ezmlm
Precedence: bulk
X-Mailing-List: csound
Delivered-To: mailing list csound@lists.bath.ac.uk
Received: (qmail 21310 invoked from network); 13 Nov 1999 19:40:29 -0000
Received: from pat.bath.ac.uk (138.38.32.2)
  by amos.bath.ac.uk with SMTP; 13 Nov 1999 19:40:29 -0000
Received: (qmail 4673 invoked from network); 13 Nov 1999 19:40:29 -0000
Received: from scaup.prod.itd.earthlink.net (207.217.121.49)
  by pat.bath.ac.uk with SMTP; 13 Nov 1999 19:40:29 -0000
Received: from [63.16.18.134] (1Cust134.tnt10.nyc1.da.uu.net [63.16.18.134])
	by scaup.prod.itd.earthlink.net (8.9.3/8.9.3) with ESMTP id LAA06824
	for ; Sat, 13 Nov 1999 11:40:20 -0800 (PST)
Message-Id: <199911131940.LAA06824@scaup.prod.itd.earthlink.net>
X-Mailer: Microsoft Outlook Express Macintosh Edition - 4.5 (0410)
Date: Sat, 13 Nov 1999 14:48:20 -0500
From: Eloy Anzola 
To: Csound 
Mime-version: 1.0
X-Priority: 3
Content-type: text/plain; charset="US-ASCII"
Content-transfer-encoding: 7bit
Subject: Re: [Csnd] Goofy Percussion Sound Orc/Sco

Hans,

these are awesome !!
thanks,

Eloy
 ------
leaddaet@earthlink.net
http://home.earthlink.net/~leaddaet

--
To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk


Received: from wallace.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa20209;
          13 Nov 99 23:59 GMT
Received: from [138.38.32.81] (helo=mercury.bath.ac.uk)
	by wallace.maths.bath.ac.uk with smtp (Exim 2.12 #1)
	id 11mm17-00032D-00
	for j.p.ffitch@maths.bath.ac.uk; Sat, 13 Nov 1999 22:51:33 +0000
Received: (qmail 4255 invoked from network); 13 Nov 1999 23:55:27 -0000
Received: from amos.bath.ac.uk (qmailr@138.38.32.36)
  by mercury.bath.ac.uk with SMTP; 13 Nov 1999 23:55:27 -0000
Received: (qmail 995 invoked by uid 1457); 13 Nov 1999 23:53:52 -0000
Mailing-List: contact csound-help@lists.bath.ac.uk; run by ezmlm
Precedence: bulk
X-Mailing-List: csound
Delivered-To: mailing list csound@lists.bath.ac.uk
Received: (qmail 985 invoked from network); 13 Nov 1999 23:53:51 -0000
Received: from pat.bath.ac.uk (138.38.32.2)
  by amos.bath.ac.uk with SMTP; 13 Nov 1999 23:53:51 -0000
Received: (qmail 13648 invoked from network); 13 Nov 1999 23:53:51 -0000
Received: from law2-f165.hotmail.com (HELO hotmail.com) (216.32.181.165)
  by pat.bath.ac.uk with SMTP; 13 Nov 1999 23:53:51 -0000
Received: (qmail 63238 invoked by uid 0); 13 Nov 1999 23:53:23 -0000
Message-ID: <19991113235323.63237.qmail@hotmail.com>
Received: from 158.252.68.195 by www.hotmail.com with HTTP;
	Sat, 13 Nov 1999 15:53:22 PST
X-Originating-IP: [158.252.68.195]
From: Thomas Judson 
To: csound@lists.bath.AC.UK
Date: Sat, 13 Nov 1999 18:53:22 EST
Mime-Version: 1.0
Content-Type: text/plain; format=flowed
Subject: [Csnd] SampleFeedbac instr......

	Here's the final version of Samplefeedbac.orc.  Tobiah's idea helped alot.  
The idea behind this instr is to start with a sampled sound and then 
evolve/alter it over a predetermined time.  I like to set my time of start 
to the "Golden Mean," which is a favorite of mine.  However, it can be setup 
to "distort" or "feedback" at any time.  I think it makes a great sound with 
most aiff files I've tried. An important thing is, as with the feedbac.orc, 
that you play with the mod point.  Below 1 creates a more tru feedback, 
while above it distorts the sound alot.  You will see in the .sco that I 
have listed the "Points on expseg."  I put it at the end for the simplicity 
of puting all the points under one section, even though they have different 
p-fields. I plan also to add a panning effect and maybe some reverb.  
Anyway, mess around with it, I've gotten alot of different sound ideas from 
it.  Thanks for everyones help!
Tohm Judson

**********************************************************************; 
SampleFeedbac.orc

sr      =       44100
kr      =       4410
ksmps   =       10
nchnls 	=		2

instr 1 ; feedback fm
	iamp=	p4      			      ;max amplitude
	ifc=    p5      			      ;center frq
	indx=   p6      			      ;max. modulation index
	itime= (p3-(p3*p8))/3

asmpl	soundin	p7,2				  ;calls Sample
afrq    init    ifc     			  ;init. oscil frq to center frq
kOsgt   expseg  .001,p3*p8,.001,itime,p9,itime,p10,itime,p11;line
a1      oscil   kOsgt,afrq+asmpl,1    ;oscillator, normalized to 1
kndx    line    0,p3,indx    	   	  ;vary modulation index
afm  =  afrq * a1       			  ;calculate modulation frq
adev =  afm * kndx      			  ;calculate deviation frq
afrq =  ifc + adev      			  ;calculate oscil frq
kamp    linseg  0,.1,iamp,p3-.2,iamp,.1,0
aout1=   a1 * kamp
aout2=	aout1+asmpl
outs     aout2,aout2

endin
**********************************************************************
;SampleFeedbac.sco

f1      0       8192    10      1

;instr  start	dur		amp		center	mod		samplename		% of wait	Points on expseg
i1      0       50     	10000    880    .9		"heart.aiff"	  .617		.25 .5 1
e


______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
--
To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk


Received: from wallace.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa20797;
          14 Nov 99 7:28 GMT
Received: from [138.38.32.81] (helo=mercury.bath.ac.uk)
	by wallace.maths.bath.ac.uk with smtp (Exim 2.12 #1)
	id 11mt2F-0003Ix-00
	for j.p.ffitch@maths.bath.ac.uk; Sun, 14 Nov 1999 06:21:11 +0000
Received: (qmail 19972 invoked from network); 14 Nov 1999 07:11:27 -0000
Received: from amos.bath.ac.uk (qmailr@138.38.32.36)
  by mercury.bath.ac.uk with SMTP; 14 Nov 1999 07:11:27 -0000
Received: (qmail 18804 invoked by uid 1457); 14 Nov 1999 07:09:54 -0000
Mailing-List: contact csound-help@lists.bath.ac.uk; run by ezmlm
Precedence: bulk
X-Mailing-List: csound
Delivered-To: mailing list csound@lists.bath.ac.uk
Received: (qmail 18794 invoked from network); 14 Nov 1999 07:09:53 -0000
Received: from pat.bath.ac.uk (138.38.32.2)
  by amos.bath.ac.uk with SMTP; 14 Nov 1999 07:09:53 -0000
Received: (qmail 25255 invoked from network); 14 Nov 1999 07:09:53 -0000
Received: from howl.werewolf.net (12.23.152.10)
  by pat.bath.ac.uk with SMTP; 14 Nov 1999 07:09:53 -0000
Received: from default (dial47.werewolf.net [12.23.153.47])
	by howl.werewolf.net (8.9.0/8.9.0) with SMTP id AAA10873
	for ; Sun, 14 Nov 1999 00:59:26 -0600 (CST)
Message-ID: <000301bf2e70$a0bcb600$2f99170c@default>
From: Hans Mikelson 
To: Csound 
Date: Sun, 14 Nov 1999 01:19:43 -0600
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 4.72.3110.5
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Subject: [Csnd] Scrambler Orc/Sco

Hi,

This orchestra/score selects random sections of a sound file, declicks them
and loops them.  I used a mono 44100 spoken phrase about 4 seconds long
called strange.wav.

Bye,
Hans Mikelson


; Orchestra
; Scrambler by Hans Mikelson
sr     =       44100
kr     =       4410
ksmps  =       10
nchnls =       2

; Select random sections from a file and loop them a few times.

       instr   1

irlps  =       p4                ; Max random loops
irdr1  =       p5                ; Max random duration
irdr2  =       p6                ; Minimum duration
iroff  =       p7                ; Max random offset
ipanl  =       sqrt(p8)          ; Pan left
ipanr  =       sqrt(1-p8)        ; or right

idur    =      rnd(irdr1)+irdr2  ; Initial random duration
ioffs   =      rnd(iroff)        ; Initial random offset
inloops =      rnd(irlps)        ; Initial random loops

icount  =      0                 ; Count starts at zero

kdclk   linseg  0, .002, 1, p3-.004, 1, .002, 0 ; Overall declick

loop:                                              ; Reinit loop here
  kaenv  linseg  0, .002, 1, idur-.004, 1, .002, 0 ; Segment declick
  asig   diskin  "strange.wav", 1, ioffs           ; Read in the sound
  aout   =       asig*kaenv                        ; Declick the segment

  timout 0, idur, cont1                            ; If time isn't up goto
cont1
    icount = icount + 1                            ; Count number of
segments
    if (icount<=inloops) igoto next                ; if (Count>NLoops) then
       icount  = 0                                 ;   Reset count to zero
       inloops = rnd(irlps)                        ;   Get next random loops
       idur    = rnd(irdr1)+irdr2                  ;   Get next random
duration
       ioffs   = rnd(iroff)                        ;   Get next random
offset
next:                                              ; Endif

  reinit loop                                      ; Reinit up to loop

cont1:                                             ; Arrive here before
timeout

       outs    aout*kdclk*ipanl, aout*kdclk*ipanr  ; Overall declick, pan
and output

       endin

; Score
;   Sta  Dur  Loops  Dur  Dur2  Offs  Pan
i1  0    16   16     .1   .02   2     1
i1  0    16   16     .1   .02   2     0


--
To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk


Received: from wallace.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa20831;
          14 Nov 99 8:08 GMT
Received: from [138.38.32.81] (helo=mercury.bath.ac.uk)
	by wallace.maths.bath.ac.uk with smtp (Exim 2.12 #1)
	id 11mtey-0003J9-00
	for j.p.ffitch@maths.bath.ac.uk; Sun, 14 Nov 1999 07:01:12 +0000
Received: (qmail 23476 invoked from network); 14 Nov 1999 08:04:43 -0000
Received: from amos.bath.ac.uk (qmailr@138.38.32.36)
  by mercury.bath.ac.uk with SMTP; 14 Nov 1999 08:04:43 -0000
Received: (qmail 21096 invoked by uid 1457); 14 Nov 1999 08:03:09 -0000
Mailing-List: contact csound-help@lists.bath.ac.uk; run by ezmlm
Precedence: bulk
X-Mailing-List: csound
Delivered-To: mailing list csound@lists.bath.ac.uk
Received: (qmail 21086 invoked from network); 14 Nov 1999 08:03:09 -0000
Received: from pat.bath.ac.uk (138.38.32.2)
  by amos.bath.ac.uk with SMTP; 14 Nov 1999 08:03:09 -0000
Received: (qmail 26667 invoked from network); 14 Nov 1999 08:03:09 -0000
Received: from fornax.tiscalinet.it (HELO smtp.tiscalinet.it) (195.130.224.67)
  by pat.bath.ac.uk with SMTP; 14 Nov 1999 08:03:09 -0000
Received: (qmail 24321 invoked by uid 7770); 14 Nov 1999 07:50:59 -0000
Received: from unknown (HELO agora.stm.it) (62.10.150.29)
  by fornax.tiscalinet.it with SMTP; 14 Nov 1999 07:50:59 -0000
Message-ID: <382E6ECB.8D411CEC@agora.stm.it>
Date: Sun, 14 Nov 1999 09:11:55 +0100
From: Gabriel Maldonado 
X-Mailer: Mozilla 4.7 [en] (Win98; I)
X-Accept-Language: en
MIME-Version: 1.0
To: Dr Michael Alcorn 
CC: csound@lists.bath.AC.UK
References: <000b01bf2dea$4de650c0$51022ec2@dnet.co.uk>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Subject: Re: [Csnd] DirectCsound 3.20 vs DirectCsound 2.70

Try to download version 3.031; some problems raise from DirectX 7.0
Gab

Michael Alcorn wrote:
> 
> Dear All
> 
> The following (simplified) orchestra and score files work fine with
> DirectCsound2.70, yet when applied to a more recent version (3.20) the
> following error is generated:
> 
> "Csound Command ERROR:   can't write AIFF/WAV soundfile with no header"
> 
> This applies to all files (orc/sco & .csd).
> 
> My machine is running Win98 with the DirectX 7.0 Technology update and I'm
> using the following flags:
> csound -d -+O -m0 -+K0 -+X1 -b2000 sine1.orc sine1.sco
> 
> Any ideas?
> 
> Thanks
> 
> Michael Alcorn
> 
> ===============
> ;ORC
> sr = 44100
> kr = 441
> ksmps = 100
> nchnls = 2
> instr 1
> 
> inum notnum
> a1 oscili 10000, 440, 1
> outs a1, a1
>  endin
> 
> =============
> ;sco
> f1 0 1024 10 1
> f0 600
> e
> 
> --
> To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk

-- 
Gabriel Maldonado

http://web.tiscalinet.it/G-Maldonado
--
To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk