Csound Csound-dev Csound-tekno Search About

ADSR envelope

Date1998-12-10 16:18
FromLars Luthman
SubjectADSR envelope
I'm a Csound newbie, and I would like to write a ADSR envelope to use with
my instruments and some sampled sounds. I've tried some different
combinations of expsegr and expseg, but I can't make it work. Can anyone
help me with this?

It's probably really simple, but I don't know anyone else to ask.



--ll




Received: from wallace.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa13218;
          10 Dec 98 17:04 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 0zo9VK-0005Mp-00; Thu, 10 Dec 1998 17:03:54 +0000
Received: from noether [144.173.8.10] by hermes via SMTP (QAA16760); Thu, 10 Dec 1998 16:58:46 GMT
Received: from exeter.ac.uk by maths.ex.ac.uk; Thu, 10 Dec 1998 16:58:29 GMT
Received: from neptune.lyrick.com [38.227.100.46] by hermes via ESMTP (QAA26615); Thu, 10 Dec 1998 16:58:28 GMT
Received: by NEPTUNE.lyrick.com with Internet Mail Service (5.5.2232.9)
	id ; Thu, 10 Dec 1998 10:54:28 -0600
Message-ID: <283AABB8FD0DD21187C200A0C995F5DE0ECDB1@NEPTUNE.lyrick.com>
From: David Boothe 
To: 'Lars Luthman' 
Cc: "Csound (E-mail)" 
Subject: RE: ADSR envelope
Date: Thu, 10 Dec 1998 10:54:27 -0600
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2232.9)
Content-Type: text/plain;
	charset="iso-8859-1"
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

Can you  be more specific about what is not working? Posting your orc/sco
and telling about your setup (using MIDI?) will help a great deal.

Why not use the ADSR opcode in the more recent version of Csound?

-David.

> -----Original Message-----
> From: Lars Luthman [mailto:nv96llu@ksk.sala.se]
> Sent: Thursday, December 10, 1998 10:19 AM
> To: csound@maths.ex.ac.uk
> Subject: ADSR envelope
> 
> 
> I'm a Csound newbie, and I would like to write a ADSR 
> envelope to use with
> my instruments and some sampled sounds. I've tried some different
> combinations of expsegr and expseg, but I can't make it work. 
> Can anyone
> help me with this?
> 
> It's probably really simple, but I don't know anyone else to ask.
> 
> 
> 
> --ll
> 
> 


Received: from wallace.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa13695;
          10 Dec 98 19:56 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 0zoCCW-0005XX-00; Thu, 10 Dec 1998 19:56:40 +0000
Received: from noether [144.173.8.10] by hermes via SMTP (TAA10944); Thu, 10 Dec 1998 19:55:01 GMT
Received: from exeter.ac.uk by maths.ex.ac.uk; Thu, 10 Dec 1998 19:54:49 GMT
Received: from mserv1a.u-net.net [195.102.240.34] by hermes via SMTP (TAA06327); Thu, 10 Dec 1998 19:54:48 GMT
Received: from p82.nas2.is3.u-net.net (babcom.u-net.com) [195.102.196.210] 
	by mserv1a.u-net.net with esmtp (Exim 1.82 #2)
	id 0zoCAu-0000aC-00; Thu, 10 Dec 1998 19:55:00 +0000
Message-ID: <366FEB3E.F514EF08@babcom.u-net.com>
Date: Thu, 10 Dec 1998 15:39:42 +0000
From: Steven Cook 
Reply-To: steve@babcom.u-net.com
X-Mailer: Mozilla 4.04 (Macintosh; I; 68K)
MIME-Version: 1.0
To: Csound List 
Subject: ipow not recognised?
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

Hi,

I've recently been trying to run orcs using ipow, including the example given
in the manual, but get "no legal opcode" errors:

;orc
sr     = 44100
kr     = 4410
ksmps  = 10
nchnls = 1

instr 1
iamp    ipow    10, 2
a1      oscil   iamp, 100, 1
a2      apow    a1, 2, iamp
out     a2
endin

;sco
f1  0  513  10  1
;inst strt  leng
i1    0     1
e

I am using Csound 68k latest version. Any ideas?

Thanks, Steve.



Received: from shaun.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa13943;
          10 Dec 98 21: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 0zoDnJ-0000aQ-00; Thu, 10 Dec 1998 21:38:45 +0000
Received: from noether [144.173.8.10] by hermes via SMTP (VAA12453); Thu, 10 Dec 1998 21:36:56 GMT
Received: from exeter.ac.uk by maths.ex.ac.uk; Thu, 10 Dec 1998 21:36:43 GMT
Received: from gudrun.passagen.se [195.163.107.4] by hermes via ESMTP (VAA18609); Thu, 10 Dec 1998 21:36:42 GMT
Received: from dumburk (dialup61-4-27.swipnet.se [130.244.61.219])
	by gudrun.passagen.se (8.8.5/8.8.5) with SMTP id WAA17347;
	Thu, 10 Dec 1998 22:35:20 +0100 (MET)
Message-ID: <36704040.1751@hem.passagen.se>
Date: Thu, 10 Dec 1998 22:42:24 +0100
From: rasmus ekman 
X-Mailer: Mozilla 3.0 (Win95; I)
MIME-Version: 1.0
To: Csound list 
CC: steve@babcom.u-net.com
Subject: Re: ipow not recognised?
References: <366FEB3E.F514EF08@babcom.u-net.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

> I've recently been trying to run orcs using ipow, 
> I am using Csound 68k latest version. Any ideas?

i/k/apow were changed to pow in cs 3.48/9. 
Generally: If you get name problems, run "Csound -z" to see 
a list of the available opcodes.

Cheers,

	re