Csound Csound-dev Csound-tekno Search About

madsr bug in 3.51

Date1999-01-27 15:47
Fromthe Physicist
Subjectmadsr bug in 3.51
Hello,

I just noticed that 'madsr' stopped working in Version 3.51: The
Attack and Decay Values have no influence any more. The sustain level,
however, still works, and I think the release, too.
The bug is only in 'madsr', 'mxadsr' (exponential adsr) works fine.


Thomas



Received: from wallace.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa08677;
          27 Jan 99 16:38 GMT
Received: from [144.173.6.14] (helo=exeter.ac.uk)
	by wallace.maths.bath.ac.uk with esmtp (Exim 1.92 #2)
	for jpff@maths.bath.ac.uk
	id 105XzK-0001vl-00; Wed, 27 Jan 1999 16:38:46 +0000
Received: from noether [144.173.8.10] by hermes via SMTP (QAA11293); Wed, 27 Jan 1999 16:30:23 GMT
Received: from exeter.ac.uk by maths.ex.ac.uk; Wed, 27 Jan 1999 16:30:03 GMT
Received: from exim@wallace.maths.bath.ac.uk [138.38.100.104] by hermes via ESMTP (QAA11222); Wed, 27 Jan 1999 16:30:02 GMT
Received: from [138.38.97.36] (helo=maths.Bath.AC.UK ident=mmdf)
	by wallace.maths.bath.ac.uk with smtp (Exim 1.92 #2)
	id 105Xqr-0001uN-00; Wed, 27 Jan 1999 16:30:01 +0000
Date:     Wed, 27 Jan 99 16:29:57 GMT
From: J P Fitch 
To: the Physicist 
cc: csound@maths.ex.ac.uk
Subject:  Re:  madsr bug in 3.51
Message-Id: 
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

Oh dear!  I was told that masdr did not work in 3.50 so I rewrote it, in line
with mxadsr actually.  I will take another look to see if I can work out
what is happening.  I did check it with a trivial MIDI file and I thought
it was OK.  More work for tonight!
==John ff


Received: from wallace.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa08814;
          27 Jan 99 17:24 GMT
Received: from [144.173.6.14] (helo=exeter.ac.uk)
	by wallace.maths.bath.ac.uk with esmtp (Exim 1.92 #2)
	for jpff@maths.bath.ac.uk
	id 105Yha-00020M-00; Wed, 27 Jan 1999 17:24:30 +0000
Received: from noether [144.173.8.10] by hermes via SMTP (RAA11059); Wed, 27 Jan 1999 17:19:13 GMT
Received: from exeter.ac.uk by maths.ex.ac.uk; Wed, 27 Jan 1999 17:18:59 GMT
Received: from ds9.sci.fi [195.74.0.54] by hermes via ESMTP (RAA10910); Wed, 27 Jan 1999 17:18:58 GMT
Received: from sci.fi (MCCXXII.dyn.saunalahti.fi [195.197.4.22])
	by ds9.sci.fi (8.9.1/8.9.1) with ESMTP id TAA08002
	for ; Wed, 27 Jan 1999 19:18:56 +0200 (EET)
Message-ID: <36AF4A61.F5E78121@sci.fi>
Date: Wed, 27 Jan 1999 19:18:25 +0200
From: Matti Koskinen 
X-Mailer: Mozilla 4.07 [en] (X11; I; Linux 2.0.35 i586)
MIME-Version: 1.0
To: Csound 
Subject: adsyn
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

hello all

	i tried adsyn under cecilia and found out that
	the created orc don't work. using any global
	k-rate variables in an orc with adsyn makes
	my versions of csound crash with floating
	point exception. i tried with csound-3.47 that
	came with cecilia and (unofficial) 3.50.
	removing global variables and placing e.g
	linseg inside the instr in their place,
	works just ok.

	also hetro from (unoff) 3.50, when opening nonexistent
	file prints just garbage.

-matti
mjkoskin@sci.fi


Received: from shaun.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa08836;
          27 Jan 99 17:31 GMT
Received: from [144.173.6.14] (helo=exeter.ac.uk)
	by shaun.maths.bath.ac.uk with esmtp (Exim 1.92 #2)
	for jpff@maths.bath.ac.uk
	id 105YoV-00027a-00; Wed, 27 Jan 1999 17:31:39 +0000
Received: from noether [144.173.8.10] by hermes via SMTP (RAA03256); Wed, 27 Jan 1999 17:12:14 GMT
Received: from exeter.ac.uk by maths.ex.ac.uk; Wed, 27 Jan 1999 17:11:57 GMT
Received: from exim@wallace.maths.bath.ac.uk [138.38.100.104] by hermes via ESMTP (RAA07239); Wed, 27 Jan 1999 17:11:57 GMT
Received: from [138.38.97.36] (helo=maths.Bath.AC.UK ident=mmdf)
	by wallace.maths.bath.ac.uk with smtp (Exim 1.92 #2)
	id 105YVP-0001zM-00; Wed, 27 Jan 1999 17:11:55 +0000
Date:     Wed, 27 Jan 99 17:11:52 GMT
From: J P Fitch 
To: the Physicist 
cc: csound@maths.ex.ac.uk
Subject:  Re:  madsr bug in 3.51
Message-Id: 
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

Sorry about that; I have fixed the (trivial but devestating) bug.
Will send out corrected system soon.

I have accumulated fixes to ^, sndwarp and diskin as well as a substantial
reorgainisation internally which shoudl lead to faster code (slightly) and
less noise (in teh case of spectrum).  

Any other serious problems known?

==John


Received: from shaun.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa08854;
          27 Jan 99 17:37 GMT
Received: from [144.173.6.14] (helo=exeter.ac.uk)
	by shaun.maths.bath.ac.uk with esmtp (Exim 1.92 #2)
	for jpff@maths.bath.ac.uk
	id 105Ytp-000289-00; Wed, 27 Jan 1999 17:37:09 +0000
Received: from noether [144.173.8.10] by hermes via SMTP (RAA15929); Wed, 27 Jan 1999 17:29:53 GMT
Received: from exeter.ac.uk by maths.ex.ac.uk; Wed, 27 Jan 1999 17:29:38 GMT
Received: from indy1.calarts.edu [156.3.140.68] by hermes via ESMTP (RAA15588); Wed, 27 Jan 1999 17:29:35 GMT
Received: from localhost (sgsofia@localhost) by indy1.calarts.edu (980427.SGI.8.8.8/970903.SGI.AUTOCF) via SMTP id JAA16072; Wed, 27 Jan 1999 09:25:40 -0800 (PST)
Date: Wed, 27 Jan 1999 09:25:37 -0800 (PST)
From: Sal G Sofia 
X-Sender: sgsofia@indy1.calarts.edu
To: Charles T Van Haecke 
cc: csound@maths.ex.ac.uk
Subject: Re: Csound Comp.
In-Reply-To: 
Message-ID: 
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk


Dear Charles:

The time is getting closer to the deadline! Do not be
too meticulous about it, and let see what we have on paper.
Also tell me in one short paragraph what you are dealing with
(a) the goal of the comp. (b) description of the orc and sco...

Regards.

Sal 



Received: from shaun.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa08862;
          27 Jan 99 17:38 GMT
Received: from [144.173.6.14] (helo=exeter.ac.uk)
	by shaun.maths.bath.ac.uk with esmtp (Exim 1.92 #2)
	for jpff@maths.bath.ac.uk
	id 105Yuo-00028O-00; Wed, 27 Jan 1999 17:38:10 +0000
Received: from noether [144.173.8.10] by hermes via SMTP (RAA15037); Wed, 27 Jan 1999 17:27:53 GMT
Received: from exeter.ac.uk by maths.ex.ac.uk; Wed, 27 Jan 1999 17:27:39 GMT
Received: from exim@wallace.maths.bath.ac.uk [138.38.100.104] by hermes via ESMTP (RAA14205); Wed, 27 Jan 1999 17:27:38 GMT
Received: from [138.38.97.36] (helo=maths.Bath.AC.UK ident=mmdf)
	by wallace.maths.bath.ac.uk with smtp (Exim 1.92 #2)
	id 105Ykb-00020b-00; Wed, 27 Jan 1999 17:27:37 +0000
Date:     Wed, 27 Jan 99 17:27:35 GMT
From: J P Fitch 
To: Matti Koskinen 
cc: Csound 
Subject:  Re:  adsyn
Message-Id: 
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

Any chance of seeing and orc/sco with teh problems?
==John ff


Received: from shaun.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa09874;
          28 Jan 99 0:19 GMT
Received: from [144.173.6.14] (helo=exeter.ac.uk)
	by shaun.maths.bath.ac.uk with esmtp (Exim 1.92 #2)
	for jpff@maths.bath.ac.uk
	id 105fBZ-0002WS-00; Thu, 28 Jan 1999 00:19:53 +0000
Received: from noether [144.173.8.10] by hermes via SMTP (AAA09565); Thu, 28 Jan 1999 00:18:35 GMT
Received: from exeter.ac.uk by maths.ex.ac.uk; Thu, 28 Jan 1999 00:18:23 GMT
Received: from ella.mills.edu [144.91.3.20] by hermes via SMTP (AAA00241); Thu, 28 Jan 1999 00:18:21 GMT
Received: (qmail 2493875 invoked by uid 1964); 27 Jan 1999 16:18:41 -0800
Date: Wed, 27 Jan 1999 16:18:41 -0800 (PST)
From: "Matt J. Ingalls" 
To: csound@maths.ex.ac.uk
Subject: csound 3.51 PPC (fwd)
Message-ID: 
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

it's here!! what youve all been waiting for! get one now!
everyone has one! dont be left in the dust! and did i mention:
its FREE!!!!!!!!!!!!!!!!!!!!
(note the 2 big bug fixes)
=======================================
jan26.99
	Csound for Power Macintosh
=======================================
This Version: 
	fFitch code base	3.51
	Perf "engine"		3.51
	Csound "front end"  1.1.3
	
Available From:
	www.concentric.net/~mingalls/software/csound
  or:	ftp://mills.edu/ccm/csound.ppc/CsoundPPC3.51.sit.hqx
=======================================
changes from 3.494
 (3.50 was never released)
=======================================
Perf:
- Upgraded source to 3.51
- Incuded Sndwarp bug fix by Karpen
- Fixed diskin default params bug
    reported by Maurizio Giri
	
Front End:
- nil
=======================================
Please email bugs to csound-dev@mills.edu




Received: from wallace.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa11115;
          28 Jan 99 10:48 GMT
Received: from [144.173.6.14] (helo=exeter.ac.uk)
	by wallace.maths.bath.ac.uk with esmtp (Exim 1.92 #2)
	for jpff@maths.bath.ac.uk
	id 105p0H-00038w-00; Thu, 28 Jan 1999 10:48:53 +0000
Received: from noether [144.173.8.10] by hermes via SMTP (KAA13621); Thu, 28 Jan 1999 10:43:54 GMT
Received: from exeter.ac.uk by maths.ex.ac.uk; Thu, 28 Jan 1999 10:43:39 GMT
Received: from arwen.unibe.ch [130.92.9.52] by hermes via SMTP (KAA07741); Thu, 28 Jan 1999 10:43:38 GMT
Received: from haegar.iamexwi.unibe.ch (actually haegar.unibe.ch) by arwen 
          with smtpL; Thu, 28 Jan 1999 11:40:59 +0100
Received: from klee.iamexwi.unibe.ch 
          by haegar.iamexwi.unibe.ch (SMI-8.6/SMI-SVR4) id LAA19150;
          Thu, 28 Jan 1999 11:42:52 +0100
Received: by klee.iamexwi.unibe.ch (8.8.8+Sun/SMI-SVR4) id LAA17238;
          Thu, 28 Jan 1999 11:42:44 +0100 (MET)
Date: Thu, 28 Jan 1999 11:42:44 +0100 (MET)
From: the Physicist 
Message-Id: <199901281042.LAA17238@klee.iamexwi.unibe.ch>
To: csound@maths.ex.ac.uk
Subject: Further bugs I found
X-Sun-Charset: US-ASCII
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

Thanks for fixing the madsr problem. Now I have found other bugs:
'aftouch' crashes csound (segmentation fault), and wgflute hangs it
(it writes 'new alloc for instr1', then nothing happens any more. wgbow,
wgclar and wgbrass, however, work).



Thomas, the csound fan



Received: from wallace.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa11217;
          28 Jan 99 11:46 GMT
Received: from [144.173.6.14] (helo=exeter.ac.uk)
	by wallace.maths.bath.ac.uk with esmtp (Exim 1.92 #2)
	for jpff@maths.bath.ac.uk
	id 105ptc-0003Ea-00; Thu, 28 Jan 1999 11:46:04 +0000
Received: from noether [144.173.8.10] by hermes via SMTP (LAA03092); Thu, 28 Jan 1999 11:39:55 GMT
Received: from exeter.ac.uk by maths.ex.ac.uk; Thu, 28 Jan 1999 11:39:35 GMT
Received: from renoir.mailpac.pt [194.65.21.2] by hermes via SMTP (LAA02642); Thu, 28 Jan 1999 11:39:29 GMT
Received: by renoir.mailpac.pt (SMI-8.6/SMI-SVR4)
	id LAA04438; Thu, 28 Jan 1999 11:37:54 GMT
Date: 28 Jan 99 11:37 GMT
X400-Received: by /ADMD=mailpac/C=pt/; 
	Relayed; 28 Jan 99 11:37 GMT
X400-Received: by /PRMD=gtw-ms/ADMD=mailpac/C=pt/; 
	Relayed; 28 Jan 99 11:37 GMT
Priority: normal
P1-Message-ID: pt*mailpac*gtw-ms;36b04c12115200mailpac92
Original-Encoded-Information-Types: IA5-Text
MIME-version: 1.0
From: Pedro Batista 
To: csound@maths.ex.ac.uk
Message-ID: <36b04c12115201mailpac92*@mailpac.pt>
Subject: =?iso-8859-1?Q?Fwd:_=3B97x97?=
Content-Type: text/plain; charset=unknown-8bit
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by exeter.ac.uk id LAA02642
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk


my anti-friend asked me to fwd this...
_______



http://m9ndfukc.com/nebula_m81


 - what is it +?

dze futur s!ll!


 -
 - !nztrukt!onz +? [url.ava!lbl 4 few hourz]
 -

presz return + sh!ft kurzor
reku!rd - netzkape 4.xx [4.5 doeznt zupport snd hensz ... s!lensz]

 -
 -
 -

8.4 m!ll!on channelz !n dze rad!o zpektrum
@ 1 pres!sz freq ov 1420.405741758 megahertz
1.420 b!ll!on wavez enter!ng =3D enter!ng ur d+tektor ever! 2nd

konklud m9ndfukc.macht.fre!






    -

         -  nebula_m81 . m9ndfukc.os ?? kont!nuum eng!n

    -




                                        ||
                                      ||9||
[p-un_kT-pr_o-Tk_oL] =E9 f =E9 =E9 =E9 3       ||
                 herausgegeben v=F9m !nternat!onalen
!nst!tut f:ur ordnung |+| d!sz!pl!n
                 194.19.130.194/=3Dcw4t7abs/0f0003/ztpd
hTTp://m9ndfukc.com  ::  hTTp://m9ndfukc.org



Received: from wallace.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa11236;
          28 Jan 99 11:58 GMT
Received: from [144.173.6.14] (helo=exeter.ac.uk)
	by wallace.maths.bath.ac.uk with esmtp (Exim 1.92 #2)
	for jpff@maths.bath.ac.uk
	id 105q5s-0003Fs-00; Thu, 28 Jan 1999 11:58:44 +0000
Received: from noether [144.173.8.10] by hermes via SMTP (LAA01451); Thu, 28 Jan 1999 11:39:12 GMT
Received: from exeter.ac.uk by maths.ex.ac.uk; Thu, 28 Jan 1999 11:38:53 GMT
Received: from renoir.mailpac.pt [194.65.21.2] by hermes via SMTP (LAA01508); Thu, 28 Jan 1999 11:38:34 GMT
Received: by renoir.mailpac.pt (SMI-8.6/SMI-SVR4)
	id LAA04273; Thu, 28 Jan 1999 11:36:45 GMT
Date: 28 Jan 99 11:36 GMT
X400-Received: by /ADMD=mailpac/C=pt/; 
	Relayed; 28 Jan 99 11:36 GMT
X400-Received: by /PRMD=gtw-ms/ADMD=mailpac/C=pt/; 
	Relayed; 28 Jan 99 11:36 GMT
Priority: normal
P1-Message-ID: pt*mailpac*gtw-ms;36b04bcc10ad00mailpac92
Original-Encoded-Information-Types: IA5-Text
MIME-version: 1.0
From: Pedro Batista 
To: csound@maths.ex.ac.uk
Message-ID: <36b04bcc10ad01mailpac92*@mailpac.pt>
Subject: Re: Help on using zak
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk



>I' m porting some code from C to csound.
>Can anyone explain me the best way to perform with C array operations
>with zak ?
>I.e.  Suppose I want translate a cycle of this kind:
>
>for(i=0;i<15;i++)
> for(j=0;j<15;j++)
>   c[i][j]=a[i]*b[(i-j)%15]
>

Well, since I've done this extensivelly, maybe I can offer some help

a for loop translates to this:

ki=0
loop:

;inside the loop
;do what you gotta do

ki=ki+1
if (ki<15) kgoto loop

Of course you need a different label for each loop. For nested loops:

ki=0
loop1:
kj=0
loop2:

;inside nested loops

kj=kj+1
if (kj<15) kgoto loop2
ki=ki+1
if (ki<15) kgoto loop1

Now, arrays are more complicated. I deal with them like this:
Define start positions for each array. Careful, dont let them overlap

;float a[16], b[8], c[16][8];
iastart = 0
ibstart = iastart+16
icstart = ibstart+8
iend = icstart + 16*8

....then to read from a[5] use

kval zkr iastart+5

....and to read from c[7][3] use

kval zkr icstart+7*8+3

You have to multiply the 1st index -7- by the second dimension -8- and add
the 2nd index -3-

Now for the fearless, a 3 dimension array:
;float c[16][8][4];
(you have to set asside a 16*8*4 block in zak-space)

;reading from c[1][2][3]

kval zkr icstart+1*(8*4)+2*(4)+3

And so on...
(Note that this all assumes arrays starting at zero)

Finally the whole thing (I need to know the c array size, so assuming float
c[8][16]):

ki=0
loop1:
kj=0
loop2:
;c[i][j]=a[i]*b[(i-j)%15]

ka zkr iastart+ki
kndx=(ki-kj)-int((ki-kj)/15)*15
kb zkr ibstart+kndx

zkw ka*kb, icstart+ki*16+kj

kj=kj+1
if (kj<15) kgoto loop2
ki=ki+1
if (ki<15) kgoto loop1

(dis was just off the top of my head, hope I didnt miss any bugs)

>where the a[],b[] and c[][] are previosly declared as float.

there's only floats in csound

>How can I declare the variables and perform the task if a,b,c are
>at  i_time?

use i-variables, igoto and zir/ziw

I do this kind of things 'ad nauseum' in my neural nets (the perceptron, the 

back-prop morpher and the recurrent FIR network - this last one has
4-dimension arrays), and wavelet stuff. Its a drag, and must be debugged
thoroughly. I dont know how hard this array thing would be to implement, and 

how useful it would be except for my useless designs

pedro


Received: from shaun.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa11361;
          28 Jan 99 12:40 GMT
Received: from [144.173.6.14] (helo=exeter.ac.uk)
	by shaun.maths.bath.ac.uk with esmtp (Exim 1.92 #2)
	for jpff@maths.bath.ac.uk
	id 105qkG-0003Mf-00; Thu, 28 Jan 1999 12:40:28 +0000
Received: from noether [144.173.8.10] by hermes via SMTP (MAA11663); Thu, 28 Jan 1999 12:33:46 GMT
Received: from exeter.ac.uk by maths.ex.ac.uk; Thu, 28 Jan 1999 12:33:22 GMT
Received: from exim@wallace.maths.bath.ac.uk [138.38.100.104] by hermes via ESMTP (MAA11411); Thu, 28 Jan 1999 12:33:16 GMT
Received: from [138.38.99.25] (helo=maths.Bath.AC.UK ident=mmdf)
	by wallace.maths.bath.ac.uk with smtp (Exim 1.92 #2)
	for csound@maths.ex.ac.uk
	id 105qd0-0003Iw-00; Thu, 28 Jan 1999 12:32:58 +0000
Date:     Thu, 28 Jan 99 12:32:56 GMT
From: jpff@maths.bath.ac.uk
Subject:  v5.1 for PowerMac
To: csound@maths.ex.ac.uk
Message-Id: 
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

Message written at 28 Jan 1999 10:20:59 +0000

I have compiled a version, not the 'Mills' version, without realtime
output, no MIDI and simple interface, and it is on the server, bugs
and all.  I do this as I am personally confused as to what state matt
has got his code to.
==John