Csound Csound-dev Csound-tekno Search About

Enveloppe design

Date1999-10-29 01:21
Fromras kizo
SubjectEnveloppe design
Hello everyone !

i'm looking for a software that could allow me to draw graphically 
enveloppes.

Do you have any hint ?

Thank you.

Raskizo

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com


Received: from wallace.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa19594;
          29 Oct 99 14:39 GMT
Received: from [138.38.32.81] (helo=mercury.bath.ac.uk ident=qmailr)
	by wallace.maths.bath.ac.uk with smtp (Exim 2.12 #1)
	id 11hCCl-0007P9-00
	for j.p.ffitch@maths.bath.ac.uk; Fri, 29 Oct 1999 14:36:31 +0100
Received: (qmail 25470 invoked from network); 29 Oct 1999 14:35:54 -0000
Received: from amos.bath.ac.uk (qmailr@138.38.32.36)
  by mercury.bath.ac.uk with SMTP; 29 Oct 1999 14:35:54 -0000
Received: (qmail 10386 invoked by uid 1457); 29 Oct 1999 14:34:04 -0000
Mailing-List: contact csound-help@lists.bath.ac.uk; run by ezmlm
Precedence: bulk
Delivered-To: mailing list csound@lists.bath.ac.uk
Received: (qmail 10377 invoked from network); 29 Oct 1999 14:34:02 -0000
Received: from pat.bath.ac.uk (138.38.32.2)
  by amos.bath.ac.uk with SMTP; 29 Oct 1999 14:34:02 -0000
Received: (qmail 2654 invoked from network); 29 Oct 1999 14:34:00 -0000
Received: from hermes.ex.ac.uk (HELO exeter.ac.uk) (144.173.6.14)
  by pat.bath.ac.uk with SMTP; 29 Oct 1999 14:34:00 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (PAA510298); Fri, 29 Oct 1999 15:33:54 +0100 (BST)
Received: from exeter.ac.uk by maths.ex.ac.uk; Fri, 29 Oct 1999 14:33:53 GMT
Received: from fm3.freemail.hu [194.38.105.13] by hermes via SMTP (PAA502828); Fri, 29 Oct 1999 15:33:50 +0100 (BST)
Received: (qmail 5352 invoked by uid 339175); 29 Oct 1999 14:33:42 -0000
Date: 29 Oct 1999 14:33:42 -0000
Message-ID: <19991029143342.5351.qmail@freemail.c3.hu>
MIME-Version: 1.0
To: csound@maths.ex.ac.uk
Subject:  Re: Compressor/Limiter
From: =?ISO-8859-2?Q?Varga_Istv=E1n?= 

"Michael A. Thompson"  wrote:

> Looking for a good compressor/limiter csound .orc. Anybody messed around
> with doing one?

What sort of compressor/limiter do you want ? For compression, I have some
orc files (and one of the drum instruments also uses compression); for removing
peaks (this is not really compression), I use this:
http://www.geocities.com/SiliconValley/Bit/5683/maximizer-1.0.zip
Note that this program is really for removing large peaks (mostly caused by
bass instruments), it cannot change the average volume. It is also
written in C, so you may not like it. As of compressor orcs, you can find them at
http://www.geocities.com/SiliconValley/Bit/5683/compress.zip

Some simple test files:
http://www.geocities.com/SiliconValley/Bit/5683/testfiles.zip
(It eats up lots of space on the server, so will be removed soon)

Files in the archive are:

test1.mp2: original signal, scaled to 32000
test2.mp2: compressed with Limit412.orc (see below)
test3.mp2: processed with "maximizer", command-line flags:

        -verbose -smode 0 -lmode 0 -limit 14000          \
	-clpl1 14000 -clpl2 15625 -nband 9 -ovrlp 4      \
	-freq2 1000 -scale 2.048 -r_lim a 1.0            \
	-clpsn 0 4.0 -clpsn 1 2.0 -clpsn 2 1.4           \
	-clpsn 3 1.0 -clpsn 4 0.7 -clpsn 5 1.0           \
	-clpsn 6 1.2 -clpsn 7 1.4 -clpsn 8 2.0           \
	-clpsn 9 4.0
   (this may need some more experimenting)

test4.mp2: simply clipped (see "clip.orc")

-------- Limit412.orc --------

sr	=  44100
kr	=  44100
ksmps	=  1
nchnls	=  2

	instr 1

iamp	=  2.048
imax1	=  14000
idel1	=  20
idec1	=  0.01
iatt1	=  0.0001
ifrq1	=  25
imax2	=  14000
idel2	=  2.5
idec2	=  0.5
iatt2	=  0.0025
ifrq2	=  200

a1,a2	soundin "mix.sf"

idel1	=  idel1*0.001
idel2	=  idel2*0.001
klv01	init 0
klv02	init 0

ad1	delay a1,idel1
ad2	delay a2,idel1

klx1	downsamp abs(a1)
klx2	downsamp abs(a2)
klx	=  (klx1>klx2 ? klx1:klx2)
klv01	=  (klx>klv01 ? klv01+(klx-klv01)*idec1:klv01+(klx-klv01)*iatt1)
al1	upsamp klv01
al1	butterlp al1,ifrq1
klv01x	downsamp al1

a1	=  (klv01xklx2 ? klx1:klx2)
klv02	=  (klx>klv02 ? klv02+(klx-klv02)*idec2:klv02+(klx-klv02)*iatt2)
al1	upsamp klv02
al1	butterlp al1,ifrq2
klv02x	downsamp al1

ad1	=  (klv02x; Fri, 29 Oct 1999 08:40:14 -0700
Message-Id: <3.0.1.32.19991029084912.017d25d0@sunhawk.com>
X-Sender: benmca@sunhawk.com
X-Mailer: Windows Eudora Pro Version 3.0.1 (32)
Date: Fri, 29 Oct 1999 08:49:12 -0700
To: csound@maths.ex.ac.uk
From: Ben McAllister 
Subject: Win NT Problems take 2
In-Reply-To: 
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"

Hi,

	Well, there wasn't much concrete feedback there on the NT issue.  Some
folks HAVE experienced what I have, and some haven't.  

	For the folks who have Winsound running smoothly on their machines:  Could
we get an idea of your system attributes?

	To whomever codes the Winsound app: what were the testing conditions for
the app?  Win 95?  I also have had difficulties under Win 98, and wrote to
the list about those last Oct or Nov.   I'm a programmer, though not
familiar with the subtle differences between Win 95 and NT.  I assume this
could be part of the problem.  Also: are there known conflicts between
Winsound and other programs?  Thanks.

Ben Mcallister


Received: from shaun.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa20643;
          29 Oct 99 16:56 GMT
Received: from [138.38.32.81] (helo=mercury.bath.ac.uk ident=qmailr)
	by shaun.maths.bath.ac.uk with smtp (Exim 2.12 #1)
	id 11hDUs-0003xE-00
	for j.p.ffitch@maths.bath.ac.uk; Fri, 29 Oct 1999 15:59:18 +0100
Received: (qmail 29126 invoked from network); 29 Oct 1999 14:55:54 -0000
Received: from amos.bath.ac.uk (qmailr@138.38.32.36)
  by mercury.bath.ac.uk with SMTP; 29 Oct 1999 14:55:54 -0000
Received: (qmail 14201 invoked by uid 1457); 29 Oct 1999 14:54:02 -0000
Mailing-List: contact csound-help@lists.bath.ac.uk; run by ezmlm
Precedence: bulk
Delivered-To: mailing list csound@lists.bath.ac.uk
Received: (qmail 14181 invoked from network); 29 Oct 1999 14:53:57 -0000
Received: from pat.bath.ac.uk (138.38.32.2)
  by amos.bath.ac.uk with SMTP; 29 Oct 1999 14:53:57 -0000
Received: (qmail 5872 invoked from network); 29 Oct 1999 14:53:50 -0000
Received: from fm3.freemail.hu (HELO freemail.c3.hu) (194.38.105.13)
  by pat.bath.ac.uk with SMTP; 29 Oct 1999 14:53:50 -0000
Received: (qmail 23141 invoked by uid 339175); 29 Oct 1999 14:53:44 -0000
Date: 29 Oct 1999 14:53:44 -0000
Message-ID: <19991029145344.23133.qmail@freemail.c3.hu>
MIME-Version: 1.0
To: csound@lists.bath.AC.UK
Subject:  Re: Compressor/Limiter
From: =?ISO-8859-2?Q?Varga_Istv=E1n?= 

"Michael A. Thompson"  wrote:

> Looking for a good compressor/limiter csound .orc. Anybody messed around
> with doing one?

What sort of compressor/limiter do you want ? For compression, I have some
orc files (and one of the drum instruments also uses compression); for removing
peaks (this is not really compression), I use this:
http://www.geocities.com/SiliconValley/Bit/5683/maximizer-1.0.zip
Note that this program is really for removing large peaks (mostly caused by
bass instruments), it cannot change the average volume. It is also
written in C, so you may not like it. As of compressor orcs, you can find them at
http://www.geocities.com/SiliconValley/Bit/5683/compress.zip

Some simple test files:
http://www.geocities.com/SiliconValley/Bit/5683/testfiles.zip
(It eats up lots of space on the server, so will be removed soon)

Files in the archive are:

test1.mp2: original signal, scaled to 32000
test2.mp2: compressed with Limit412.orc (see below)
test3.mp2: processed with "maximizer", command-line flags:

        -verbose -smode 0 -lmode 0 -limit 14000          \
        -clpl1 14000 -clpl2 15625 -nband 9 -ovrlp 4      \
        -freq2 1000 -scale 2.048 -r_lim a 1.0            \
        -clpsn 0 4.0 -clpsn 1 2.0 -clpsn 2 1.4           \
        -clpsn 3 1.0 -clpsn 4 0.7 -clpsn 5 1.0           \
        -clpsn 6 1.2 -clpsn 7 1.4 -clpsn 8 2.0           \
        -clpsn 9 4.0
   (this may need some more experimenting)

test4.mp2: simply clipped (see "clip.orc")

-------- Limit412.orc --------

sr      =  44100
kr      =  44100
ksmps   =  1
nchnls  =  2

        instr 1

iamp    =  2.048
imax1   =  14000
idel1   =  20
idec1   =  0.01
iatt1   =  0.0001
ifrq1   =  25
imax2   =  14000
idel2   =  2.5
idec2   =  0.5
iatt2   =  0.0025
ifrq2   =  200

a1,a2   soundin "mix.sf"

idel1   =  idel1*0.001
idel2   =  idel2*0.001
klv01   init 0
klv02   init 0

ad1     delay a1,idel1
ad2     delay a2,idel1

klx1    downsamp abs(a1)
klx2    downsamp abs(a2)
klx     =  (klx1>klx2 ? klx1:klx2)
klv01   =  (klx>klv01 ? klv01+(klx-klv01)*idec1:klv01+(klx-klv01)*iatt1)
al1     upsamp klv01
al1     butterlp al1,ifrq1
klv01x  downsamp al1

a1      =  (klv01xklx2 ? klx1:klx2)
klv02   =  (klx>klv02 ? klv02+(klx-klv02)*idec2:klv02+(klx-klv02)*iatt2)
al1     upsamp klv02
al1     butterlp al1,ifrq2
klv02x  downsamp al1

ad1     =  (klv02x
Date: Fri, 29 Oct 1999 19:55:35 +0100
From: Richard Dobson 
Organization: Composers Desktop Project
X-Mailer: Mozilla 4.51 [en] (WinNT; I)
X-Accept-Language: en
MIME-Version: 1.0
To: csound@maths.ex.ac.uk
Subject: Re: Win NT Problems take 2
References: <3.0.1.32.19991029084912.017d25d0@sunhawk.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

I have, from time to time, fiddled a bit with the Winsound code (mainly
the playback code), as I have hitherto been running NT4 (with a mere
SoundBlaster 16!), and there were a few pertinent differences from Win95
(on which I also tested -  dual-boot setup). I am now running
Windows2000 beta.
At the moment I am still at Csound v3.55 - here I don't find any
problems such as you describe - both 'play at end' and  'remain active'
seem to be working. I have only just moved house, and am still not fully
set up, so it will be a day or two before I can start up with the most
recent version.

The main differences audio-wise are the very different soundcard driver
models - a plain-vanilla MME driver under Win95, and a WDM driver under
Win2K (with vastly lower latency, BTW).

Richard Dobson
 

Ben McAllister wrote:
> 
> Hi,
> 
>         Well, there wasn't much concrete feedback there on the NT issue.  Some
> folks HAVE experienced what I have, and some haven't.
> 
>         For the folks who have Winsound running smoothly on their machines:  Could
> we get an idea of your system attributes?
> 
>         To whomever codes the Winsound app: what were the testing conditions for
> the app?  Win 95?  I also have had difficulties under Win 98, and wrote to
> the list about those last Oct or Nov.   I'm a programmer, though not
> familiar with the subtle differences between Win 95 and NT.  I assume this
> could be part of the problem.  Also: are there known conflicts between
> Winsound and other programs?  Thanks.
> 
> Ben Mcallister

-- 
Test your DAW with my Soundcard Attrition Page!
http://wkweb5.cableinet.co.uk/rwd (LU: 23rd August 1999)
CDP: http://www.bath.ac.uk/~masjpf/CDP/CDP.htm (LU: 14th June 1999)


Received: from wallace.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa20908;
          29 Oct 99 19:05 GMT
Received: from [138.38.32.81] (helo=mercury.bath.ac.uk ident=qmailr)
	by wallace.maths.bath.ac.uk with smtp (Exim 2.12 #1)
	id 11hGLO-0007a3-00
	for j.p.ffitch@maths.bath.ac.uk; Fri, 29 Oct 1999 19:01:42 +0100
Received: (qmail 23815 invoked from network); 29 Oct 1999 19:01:04 -0000
Received: from amos.bath.ac.uk (qmailr@138.38.32.36)
  by mercury.bath.ac.uk with SMTP; 29 Oct 1999 19:01:04 -0000
Received: (qmail 10554 invoked by uid 1457); 29 Oct 1999 18:59:16 -0000
Mailing-List: contact csound-help@lists.bath.ac.uk; run by ezmlm
Precedence: bulk
Delivered-To: mailing list csound@lists.bath.ac.uk
Received: (qmail 10528 invoked from network); 29 Oct 1999 18:59:12 -0000
Received: from pat.bath.ac.uk (138.38.32.2)
  by amos.bath.ac.uk with SMTP; 29 Oct 1999 18:59:12 -0000
Received: (qmail 1334 invoked from network); 29 Oct 1999 18:59:12 -0000
Received: from hermes.ex.ac.uk (HELO exeter.ac.uk) (144.173.6.14)
  by pat.bath.ac.uk with SMTP; 29 Oct 1999 18:59:12 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (TAA567426); Fri, 29 Oct 1999 19:59:10 +0100 (BST)
Received: from exeter.ac.uk by maths.ex.ac.uk; Fri, 29 Oct 1999 18:59:09 GMT
Received: from root@ulster.net [208.148.73.65] by hermes via ESMTP (TAA509386); Fri, 29 Oct 1999 19:59:07 +0100 (BST)
Received: from ulster.net (port145.ts2.ulster.net [208.242.164.145])
	by nerf.ulster.net (8.9.3/8.9.3/Debian/GNU) with ESMTP id PAA09593;
	Fri, 29 Oct 1999 15:03:32 -0400
Sender: pw@ulster.net
Message-ID: <3819DDBD.113FB9D3@ulster.net>
Date: Fri, 29 Oct 1999 13:47:41 -0400
From: Paul Winkler 
X-Mailer: Mozilla 4.61 [en] (X11; U; Linux 2.0.36 i686)
X-Accept-Language: en
MIME-Version: 1.0
To: "Michael A. Thompson" 
CC: "csound@maths.ex.ac.uk" 
Subject: Re: Compressor/Limiter
References: <37EE97C4.F269A370@jove.acs.unt.edu>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

"Michael A. Thompson" wrote:
> 
> Looking for a good compressor/limiter csound .orc. Anybody messed around
> with doing one?

Funny you should ask, I've been working on this lately.
csound has a "dam" opcode that's supposed to be a general-purpose
dynamics processor, but I can't get it to sound good.

Here's where I left off on my compressor instr. THe big difficulty
seems to be implementing "attack" and "decay" in ways that work like
an analog compressor, since it's rarely desirable to have a
compressor that works instantaneously all the time. This version
sort-of does the trick.

Next step is to add a threshold level and different ratios above/
below that level. Not sure how to do that yet. I had some good
exchanges with Paul Barton-Davis where we tried to figure out how
that worked; I think his idea of using an ftable to plot input level
vs. output gain might be the best approach, since it allows multiple
threshold levels and arbitrary dynamics curves.


instr 14    ; do everything in dB. 
            ; Attack/release added using my by-hand linear slope
method.
        ; Let's see if I can make this work right with ratio (that
is,
        ; ratio of 1 "turns off" attack/release controls...)
        ; OK, this is getting there....

        ; EXTRACT & COMPRESS ENVELOPE
iratio = 1 / p4   ; p4 is "compression ratio" -- 4 means 4:1 
ihp = 10          ; lopass filter freq for rms and gain

kenv expseg 1, p3 - .1, 32767, .1, 32767
kdclick linseg 0, .1, 1, p3 -.1, 1
asig, asig2 diskin "arms/salt_notice/nines.wav", 1 ; ,  217
avg = (asig + asig2) * .5
krms_raw rms avg, ihp, 0
kdb_raw = 20 * log10(krms_raw + 1)  ; + 1 to avoid divide by 0
kdb_comp = kdb_raw * iratio

ioffset =  72 - (72 * iratio) ; I thought it should be 90 d
                              ; but that doesn't work right at high
                              ; ratios. 
                              ;  70 catches peaks pretty well.

kdb_comp = kdb_comp + ioffset ; make-up gain.
kdiff = kdb_comp - kdb_raw                      ; difference


            ; SLOPE CONTROL (attack & release)
iattack = p6       ; MAX time for level to RISE 60 dB
irelease = p7      ; MIN time for level to DROP 60 dB
            ; Now we translate that into maximum diff. between
successive
            ; values of k-rate DIFFERENCE
imaxattd = (90 * iratio) / (kr * iattack ); "max. attack difference"
imaxreld = (90 * iratio) / (kr * irelease)
print iattack, imaxattd
print irelease, imaxreld
kdiff_old init 88

if (kdiff > kdiff_old) goto RELEASE
ATTACK:
;  khalftime = iattack  ; fast attack
;  ;                ; this works???
goto OUTPUT

RELEASE:
        ; This sort-of works...
if (kdiff_old + imaxreld) > kdiff goto OUTPUT
kdiff = kdiff_old + imaxreld

OUTPUT:

kdiff_old = kdiff            ; store for next cycle

            ; FINAL OUTPUT GAIN CONTROL ...
kdb_comp = kdb_raw + kdiff      ; construct final target gain
krms_comp = 10 ^ (kdb_comp / 20) ; convert back to rms.
aout1 gain asig, krms_comp, ihp, 1    ; set gain to match RMS
aout2 gain asig2, krms_comp, ihp, 1
; asig, rms,  filter hz, initial (0=clear, 1 prevents clicks)

imakeup = p5                                    ; NOT USED

  outs aout1, aout2
endin


;;;;;;;;;; here's a test sco.

; First uncompressed, then compressed with fast attack & release,
; then fast attack / slow release.

f1 0 1024 10 1                          ; sine

;14     at      dur     ratio   gain    attack  release
i14     1       6       1       1       .000001      .0001
i14     7.5       .      8       1       .000001      .00000001
i14     14       .       8       2       .000001      .5




----------------    paul winkler    ------------------
slinkP arts:  music, sound, illustration, design, etc.
email=========================slinkp AT ulster DOT net
ARMS online=======================http://reacharms.com    
personal page===========http://www.ulster.net/~abigoo/



Received: from wallace.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa20959;
          29 Oct 99 19:39 GMT
Received: from [138.38.32.81] (helo=mercury.bath.ac.uk ident=qmailr)
	by wallace.maths.bath.ac.uk with smtp (Exim 2.12 #1)
	id 11hGsP-0007aW-00
	for j.p.ffitch@maths.bath.ac.uk; Fri, 29 Oct 1999 19:35:49 +0100
Received: (qmail 27775 invoked from network); 29 Oct 1999 19:33:15 -0000
Received: from amos.bath.ac.uk (qmailr@138.38.32.36)
  by mercury.bath.ac.uk with SMTP; 29 Oct 1999 19:33:15 -0000
Received: (qmail 12895 invoked by uid 1457); 29 Oct 1999 19:31:38 -0000
Mailing-List: contact csound-help@lists.bath.ac.uk; run by ezmlm
Precedence: bulk
Delivered-To: mailing list csound@lists.bath.ac.uk
Received: (qmail 12888 invoked from network); 29 Oct 1999 19:31:37 -0000
Received: from pat.bath.ac.uk (138.38.32.2)
  by amos.bath.ac.uk with SMTP; 29 Oct 1999 19:31:37 -0000
Received: (qmail 3397 invoked from network); 29 Oct 1999 19:31:36 -0000
Received: from courier01.adinet.com.uy (206.99.44.235)
  by pat.bath.ac.uk with SMTP; 29 Oct 1999 19:31:36 -0000
Received: from adinet.com.uy (r246-149.adinet.com.uy [207.50.246.149])
	by courier01.adinet.com.uy (8.9.0/8.9.0) with ESMTP id QAA28657
	for ; Fri, 29 Oct 1999 16:31:17 -0300 (GMT)
Sender: lj@courier01.adinet.com.uy
Message-ID: <3819C8F4.69A3E9CD@adinet.com.uy>
Date: Fri, 29 Oct 1999 16:19:00 +0000
From: luis jure 
X-Mailer: Mozilla 4.5 [en] (X11; I; Linux 2.2.12 i686)
X-Accept-Language: en
MIME-Version: 1.0
To: csound list 
Subject: IIR
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

well, i seem to be back in the list again. here's a message i tried to send
twice before, unsuccessfully:


just for learning purposes i've been trying to implement the most basic
types of filters with instruments using just delay lines. everything went
fine with non-recursive filters, but with IIRs i don't get the expected
results.

below is an instrument that i think should produce the following:

y(n) = a*x(n) + b*y(n-1)

; orc =======================================
sr      =       44100
kr      =       44100
ksmps   =       1

instr   1

aout    init    0       ; y(n)
a0      rand    20000   ; x(n)
a1      =       a0 * .5 ; a * x(n)
a2      delay1  aout    ; y(n-1)
a3      =       a2 * .5 ; b * y(n-1)
aout    =       a1 + a3 ; y(n)
out     aout

endin

; sco =======================================

i1      0       3
e

it looks to me as if the instrument were right; the problem is that i don't 
get a low-pass filter as i should according to the textbook, but rather a
band-reject filter with center freq at sr/4 and a very wide bw. conversely,
with aout = a1 - a3 i get a band-pass filter of similar characteristics
instead of a high-pass. could somebody please point me what i am doing
wrong? 

thank you




Received: from wallace.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa21000;
          29 Oct 99 19:55 GMT
Received: from [138.38.32.81] (helo=mercury.bath.ac.uk ident=qmailr)
	by wallace.maths.bath.ac.uk with smtp (Exim 2.12 #1)
	id 11hH8b-0007ak-00
	for j.p.ffitch@maths.bath.ac.uk; Fri, 29 Oct 1999 19:52:33 +0100
Received: (qmail 29125 invoked from network); 29 Oct 1999 19:35:36 -0000
Received: from amos.bath.ac.uk (qmailr@138.38.32.36)
  by mercury.bath.ac.uk with SMTP; 29 Oct 1999 19:35:36 -0000
Received: (qmail 12907 invoked by uid 1457); 29 Oct 1999 19:31:48 -0000
Mailing-List: contact csound-help@lists.bath.ac.uk; run by ezmlm
Precedence: bulk
Delivered-To: mailing list csound@lists.bath.ac.uk
Received: (qmail 12899 invoked from network); 29 Oct 1999 19:31:41 -0000
Received: from pat.bath.ac.uk (138.38.32.2)
  by amos.bath.ac.uk with SMTP; 29 Oct 1999 19:31:41 -0000
Received: (qmail 3399 invoked from network); 29 Oct 1999 19:31:40 -0000
Received: from courier01.adinet.com.uy (206.99.44.235)
  by pat.bath.ac.uk with SMTP; 29 Oct 1999 19:31:40 -0000
Received: from adinet.com.uy (r246-149.adinet.com.uy [207.50.246.149])
	by courier01.adinet.com.uy (8.9.0/8.9.0) with ESMTP id QAA28698
	for ; Fri, 29 Oct 1999 16:31:20 -0300 (GMT)
Sender: lj@courier01.adinet.com.uy
Message-ID: <3819C9C8.D723B151@adinet.com.uy>
Date: Fri, 29 Oct 1999 16:22:33 +0000
From: luis jure 
X-Mailer: Mozilla 4.5 [en] (X11; I; Linux 2.2.12 i686)
X-Accept-Language: en
MIME-Version: 1.0
To: csound list 
Subject: feedback FM (with a long delay)
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

another old message i had waiting:

from hans mikelson long ago, in response to a question about feedback
fm:

> a1    init  0
>
> aenv  adsr  iatt, idec, islev, irel
>
> a1    oscil aenv, ifqc*(1+a1), 1
>
>       outs  a1, a1
>
>       endin
>
> The pitch tends to drift somewhat though I think.
>

actually for real feedback fm you need something a bit more complicated
than that, where you can control the modulation index. below is a simple
and naively commented orchestra

; ============================================================
; fdbckfm.orc

sr      =       44100
kr      =       44100
ksmps   =       1

instr 1 ; feedback fm

iamp    =       p4      ; max amplitude
ifc     =       p5      ; center frq
indx    =       p6      ; max. modulation index

afrq    init    ifc     ; initialize oscil frq to center frq

a1      oscil   1,afrq,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
aout    =       a1 * kamp

out     aout

endin

; ============================================================
; fdbckfm.sco

f1      0       8192    10      1

i1      0       3       25000   300     .9
i1      3.2     4       25000   300     2

e

; ============================================================

it's very important to note that the range of usable modulation indexes
in feedback fm is significantly lower than in simple fm, generally I <
1.

in my orchestra pitch tends to raise when I gets close to 1, and for I >
1.2 aprox the system becomes unstable, as you can see in the second
note. i'm not sure if that's something inherent to the technique, or
maybe it's a problem with this particular implementation.

i would appreciate some comments.




Received: from wallace.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa21021;
          29 Oct 99 20:06 GMT
Received: from [138.38.32.81] (helo=mercury.bath.ac.uk ident=qmailr)
	by wallace.maths.bath.ac.uk with smtp (Exim 2.12 #1)
	id 11hHId-0007az-00
	for j.p.ffitch@maths.bath.ac.uk; Fri, 29 Oct 1999 20:02:55 +0100
Received: (qmail 3139 invoked from network); 29 Oct 1999 20:02:50 -0000
Received: from amos.bath.ac.uk (qmailr@138.38.32.36)
  by mercury.bath.ac.uk with SMTP; 29 Oct 1999 20:02:50 -0000
Received: (qmail 16314 invoked by uid 1457); 29 Oct 1999 20:01:16 -0000
Mailing-List: contact csound-help@lists.bath.ac.uk; run by ezmlm
Precedence: bulk
Delivered-To: mailing list csound@lists.bath.ac.uk
Received: (qmail 16308 invoked from network); 29 Oct 1999 20:01:15 -0000
Received: from pat.bath.ac.uk (138.38.32.2)
  by amos.bath.ac.uk with SMTP; 29 Oct 1999 20:01:15 -0000
Received: (qmail 5803 invoked from network); 29 Oct 1999 20:01:14 -0000
Received: from dns2.seanet.com (HELO mx.seanet.com) (199.181.164.2)
  by pat.bath.ac.uk with SMTP; 29 Oct 1999 20:01:14 -0000
Received: from seanet.com (costello.seanet.com [204.182.65.218]) by mx.seanet.com (8.9.3/Seanet-8.7.3) with ESMTP id NAA21534; Fri, 29 Oct 1999 13:01:02 -0700 (PDT)
Message-ID: <3819FB6D.C2F1DAA4@seanet.com>
Date: Fri, 29 Oct 1999 12:54:21 -0700
From: Sean Costello 
X-Mailer: Mozilla 4.51 [en] (Win95; I)
X-Accept-Language: en
MIME-Version: 1.0
To: luis jure 
CC: csound list 
Subject: Re: feedback FM (with a long delay)
References: <3819C9C8.D723B151@adinet.com.uy>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit



luis jure wrote:

> in my orchestra pitch tends to raise when I gets close to 1, and for I >
> 1.2 aprox the system becomes unstable, as you can see in the second
> note. i'm not sure if that's something inherent to the technique, or
> maybe it's a problem with this particular implementation.

Most of the cool techniques available with feedback FM in the Yamaha FM
synthesizers are not truly based on frequency modulation, but rather on
Phase Modulation. Probably the best way of doing this in Csound is with
a phasor/tablei combination. 

Sean Costello


Received: from shaun.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa21306;
          29 Oct 99 22:53 GMT
Received: from [138.38.32.81] (helo=mercury.bath.ac.uk ident=qmailr)
	by shaun.maths.bath.ac.uk with smtp (Exim 2.12 #1)
	id 11hKtY-00044W-00
	for j.p.ffitch@maths.bath.ac.uk; Fri, 29 Oct 1999 23:53:16 +0100
Received: (qmail 16721 invoked from network); 29 Oct 1999 22:35:44 -0000
Received: from amos.bath.ac.uk (qmailr@138.38.32.36)
  by mercury.bath.ac.uk with SMTP; 29 Oct 1999 22:35:44 -0000
Received: (qmail 24303 invoked by uid 1457); 29 Oct 1999 22:34:04 -0000
Mailing-List: contact csound-help@lists.bath.ac.uk; run by ezmlm
Precedence: bulk
Delivered-To: mailing list csound@lists.bath.ac.uk
Received: (qmail 24297 invoked from network); 29 Oct 1999 22:34:04 -0000
Received: from pat.bath.ac.uk (138.38.32.2)
  by amos.bath.ac.uk with SMTP; 29 Oct 1999 22:34:04 -0000
Received: (qmail 14081 invoked from network); 29 Oct 1999 22:34:04 -0000
Received: from hermes.ex.ac.uk (HELO exeter.ac.uk) (144.173.6.14)
  by pat.bath.ac.uk with SMTP; 29 Oct 1999 22:34:04 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (XAA535583); Fri, 29 Oct 1999 23:34:02 +0100 (BST)
Received: from exeter.ac.uk by maths.ex.ac.uk; Fri, 29 Oct 1999 22:34:00 GMT
Received: from emerald.oz.net [216.39.128.2] (may be forged) by hermes via ESMTP (XAA546801); Fri, 29 Oct 1999 23:33:59 +0100 (BST)
Received: (from madgello@localhost) by emerald.oz.net (8.9.3/8.7.3) id PAA08348; Fri, 29 Oct 1999 15:28:54 -0700 (PDT)
Date: Fri, 29 Oct 1999 15:28:54 -0700 (PDT)
From: Richard Weisgerber 
Message-Id: <199910292228.PAA08348@emerald.oz.net>
To: csound@maths.ex.ac.uk
Reply-To: madgello@oz.net
Subject: Re: Win NT Problems take 2


I tried this with Winsound on NT 4 SP5 wks with following results.

Used tried and true Trapped in Convert composition by Richard Boulanger for 
this test.

Remain Active & Play at end unchecked:
Compiled piece and put press a key to close dialog, pressed enter and Winsound 
closed.  Played results in wave player, success.

Remain Active & Play at end checked:
Compiled piece but DID NOT play the piece when finished.  Bug it
Click on logging window, hit a key and up pops the Winsound control dialog.
Played results in wave player, success.

Remain Active checked & Play at end unchecked:
Compile piece, press a key and winsound closed,
Played results in wave player, success.

The only place I noticed weirdness:
Remain Active unchecked & Play at end checked:
Compiled piece, Winsound started playing results, success.
Was about to hit a key to stop playback when I noticed Winsound logging window 
title bar says: "Playing.... any character to con(some weird characters)"  Bug 
it.

DPW 266i w/ ESS 1888 onboard, 128MB RAM, 2x 4GB drives w/ plenty of space.  
Clean US NT 4 SP5 install with very few apps installed yet as this is at new 
station for day job.

I did have Winsound lock completely when I used (not at home, don't have name 
of writer, but is the person that's been putting the drums, strings etc. up 
lately) String_11.orc/sco with Remain Active and Play at end checked.  BTW, it 
says Winsound 3.58 on this version fresh download from 
ftp.maths.bath.ac.uk/pub/dream/newest today.


rich out
on with the Csound QA Test crew.  ;-)


>From: Ben McAllister 
>Hi,
>
>	Well, there wasn't much concrete feedback there on the NT issue.  Some
>folks HAVE experienced what I have, and some haven't.  
>
>	For the folks who have Winsound running smoothly on their machines:  
Could
>we get an idea of your system attributes?
>
>	To whomever codes the Winsound app: what were the testing conditions 
for
>the app?  Win 95?  I also have had difficulties under Win 98, and wrote to
>the list about those last Oct or Nov.   I'm a programmer, though not
>familiar with the subtle differences between Win 95 and NT.  I assume this
>could be part of the problem.  Also: are there known conflicts between
>Winsound and other programs?  Thanks.
>
>Ben Mcallister
>




Received: from shaun.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa21370;
          29 Oct 99 23:33 GMT
Received: from [138.38.32.81] (helo=mercury.bath.ac.uk ident=qmailr)
	by shaun.maths.bath.ac.uk with smtp (Exim 2.12 #1)
	id 11hLWU-000454-00
	for j.p.ffitch@maths.bath.ac.uk; Sat, 30 Oct 1999 00:33:30 +0100
Received: (qmail 22723 invoked from network); 29 Oct 1999 23:28:31 -0000
Received: from amos.bath.ac.uk (qmailr@138.38.32.36)
  by mercury.bath.ac.uk with SMTP; 29 Oct 1999 23:28:31 -0000
Received: (qmail 27311 invoked by uid 1457); 29 Oct 1999 23:26:54 -0000
Mailing-List: contact csound-help@lists.bath.ac.uk; run by ezmlm
Precedence: bulk
Delivered-To: mailing list csound@lists.bath.ac.uk
Received: (qmail 27305 invoked from network); 29 Oct 1999 23:26:54 -0000
Received: from pat.bath.ac.uk (138.38.32.2)
  by amos.bath.ac.uk with SMTP; 29 Oct 1999 23:26:54 -0000
Received: (qmail 17435 invoked from network); 29 Oct 1999 23:26:53 -0000
Received: from mtiwmhc06.worldnet.att.net (204.127.131.41)
  by pat.bath.ac.uk with SMTP; 29 Oct 1999 23:26:53 -0000
Received: from worldnet.att.net ([12.76.99.236])
          by mtiwmhc06.worldnet.att.net (InterMail v03.02.07.07 118-134)
          with ESMTP id <19991029232625.WMAL2915@worldnet.att.net>
          for ; Fri, 29 Oct 1999 23:26:25 +0000
Message-ID: <381A28FA.F33FEE63@worldnet.att.net>
Date: Fri, 29 Oct 1999 19:08:43 -0400
From: Kirsh Family 
Reply-To: kirsh@worldnet.att.net
Organization: Kirsh Family
X-Mailer: Mozilla 4.5 (Macintosh; U; PPC)
X-Accept-Language: en-US
MIME-Version: 1.0
To: Csound list 
Subject: Re: GEN 21 Problem
References: <001601bf21b2$c143bb00$7c98e226@dboothe.lyrick.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

I believe the term "x-class" comes from the fact that these ugens can
produce i-rate, k-rate, or a-rate data without having to have a separate
name (with appropriate beginning letter) for each rate.  This notation
is used elsewhere in the manual for the naming of formal arguments which
can take values at any of the three rates; e.g., the "xamp" and "xcps"
arguments of "oscil".

				David Kirsh

David Boothe wrote:
> 
> ...
> BTW, where does the term "x-class noise generators" come from?
> 
> -David.
>




Received: from shaun.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa21589;
          30 Oct 99 1:33 GMT
Received: from [138.38.32.81] (helo=mercury.bath.ac.uk ident=qmailr)
	by shaun.maths.bath.ac.uk with smtp (Exim 2.12 #1)
	id 11hNOK-00046M-00
	for j.p.ffitch@maths.bath.ac.uk; Sat, 30 Oct 1999 02:33:12 +0100
Received: (qmail 29659 invoked from network); 30 Oct 1999 01:29:00 -0000
Received: from amos.bath.ac.uk (qmailr@138.38.32.36)
  by mercury.bath.ac.uk with SMTP; 30 Oct 1999 01:29:00 -0000
Received: (qmail 2937 invoked by uid 1457); 30 Oct 1999 01:27:22 -0000
Mailing-List: contact csound-help@lists.bath.ac.uk; run by ezmlm
Precedence: bulk
Delivered-To: mailing list csound@lists.bath.ac.uk
Received: (qmail 2931 invoked from network); 30 Oct 1999 01:27:22 -0000
Received: from pat.bath.ac.uk (138.38.32.2)
  by amos.bath.ac.uk with SMTP; 30 Oct 1999 01:27:22 -0000
Received: (qmail 22416 invoked from network); 30 Oct 1999 01:27:21 -0000
Received: from smtp6.mindspring.com (207.69.200.110)
  by pat.bath.ac.uk with SMTP; 30 Oct 1999 01:27:21 -0000
Received: from Realizer (user-2ive4dm.dialup.mindspring.com [165.247.17.182])
	by smtp6.mindspring.com (8.8.5/8.8.5) with SMTP id VAA12617;
	Fri, 29 Oct 1999 21:27:08 -0400 (EDT)
From: Michael Gogins 
To: luis jure , 
    csound list 
Subject: RE: IIR
Date: Fri, 29 Oct 1999 21:30:38 -0400
Message-ID: 
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
In-Reply-To: <3819C8F4.69A3E9CD@adinet.com.uy>
Importance: Normal

IIRs will have to have ksmps = 1, presumably you are already doing that?

-----Original Message-----
From: lj@courier01.adinet.com.uy [mailto:lj@courier01.adinet.com.uy]On
Behalf Of luis jure
Sent: Friday, October 29, 1999 12:19 PM
To: csound list
Subject: IIR


well, i seem to be back in the list again. here's a message i tried to send
twice before, unsuccessfully:


just for learning purposes i've been trying to implement the most basic
types of filters with instruments using just delay lines. everything went
fine with non-recursive filters, but with IIRs i don't get the expected
results.

below is an instrument that i think should produce the following:

y(n) = a*x(n) + b*y(n-1)

; orc =======================================
sr      =       44100
kr      =       44100
ksmps   =       1

instr   1

aout    init    0       ; y(n)
a0      rand    20000   ; x(n)
a1      =       a0 * .5 ; a * x(n)
a2      delay1  aout    ; y(n-1)
a3      =       a2 * .5 ; b * y(n-1)
aout    =       a1 + a3 ; y(n)
out     aout

endin

; sco =======================================

i1      0       3
e

it looks to me as if the instrument were right; the problem is that i don't
get a low-pass filter as i should according to the textbook, but rather a
band-reject filter with center freq at sr/4 and a very wide bw. conversely,
with aout = a1 - a3 i get a band-pass filter of similar characteristics
instead of a high-pass. could somebody please point me what i am doing
wrong?

thank you




Received: from wallace.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa22216;
          30 Oct 99 9:06 GMT
Received: from [138.38.32.81] (helo=mercury.bath.ac.uk ident=qmailr)
	by wallace.maths.bath.ac.uk with smtp (Exim 2.12 #1)
	id 11hTTP-0007rH-00
	for j.p.ffitch@maths.bath.ac.uk; Sat, 30 Oct 1999 09:02:51 +0100
Received: (qmail 26137 invoked from network); 30 Oct 1999 09:01:58 -0000
Received: from amos.bath.ac.uk (qmailr@138.38.32.36)
  by mercury.bath.ac.uk with SMTP; 30 Oct 1999 09:01:58 -0000
Received: (qmail 21040 invoked by uid 1457); 30 Oct 1999 09:00:24 -0000
Mailing-List: contact csound-help@lists.bath.ac.uk; run by ezmlm
Precedence: bulk
Delivered-To: mailing list csound@lists.bath.ac.uk
Received: (qmail 21034 invoked from network); 30 Oct 1999 09:00:23 -0000
Received: from pat.bath.ac.uk (138.38.32.2)
  by amos.bath.ac.uk with SMTP; 30 Oct 1999 09:00:23 -0000
Received: (qmail 8402 invoked from network); 30 Oct 1999 09:00:23 -0000
Received: from front7.grolier.fr (194.158.96.57)
  by pat.bath.ac.uk with SMTP; 30 Oct 1999 09:00:23 -0000
Received: from club-internet.fr (ppp-163-210.villette.club-internet.fr [195.36.163.210])
	by front7.grolier.fr (8.9.3/No_Relay+No_Spam_MGC990224) with ESMTP id LAA21574
	for ; Sat, 30 Oct 1999 11:00:16 +0200 (MET DST)
Message-ID: <381AA9C9.C196907F@club-internet.fr>
Date: Sat, 30 Oct 1999 10:18:19 +0200
From: JM&M DARREMONT 
Reply-To: jmdbrady@club-internet.fr
X-Mailer: Mozilla 4.06 (Macintosh; I; PPC)
MIME-Version: 1.0
To: csound@lists.bath.AC.UK
Subject: Re: Enveloppe design
References: <19991029082115.11923.qmail@hotmail.com>
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

A nice one for that is Cecilia.
http://mitpress.mit.edu/e-books/csound/frontpage.html
Then click on "Front end" menu.

ras kizo a crit:

> i'm looking for a software that could allow me to draw graphically
> enveloppes.

-- 
Jean-Michel DARREMONT