Csound Csound-dev Csound-tekno Search About

new here

Date1997-02-08 14:48
FromNathan Day
Subjectnew here
Hello all
I'm new to this mailing list so he's a brief run down on me, I've be
interested in electronic and more recently in computer generated music for
a while now, I'm currently attending the South Australian School of
Engineering. I'm using a PowerPC Mac 7200/90. Im new to CSound but have had
experience with programming and also with digidesigns TurboSynth. I've been
toying around with the idea of creating a set of routines and classes for
c++ for the creation of music from midi files, but have just discovered
Csound, though I might write a sample editing program that has some
features designed for use with CSound.
I have a couple of questions though they might seem stupid, firstly how do
you use the opcode linenr, it says in the manual that linenr will extend
the performance time of the current instrument but I can't get it to do so.
Secondly what is the difference between the way comb and alpass work, my
understanding of a comb filter is just a short delay where frequencies
cancel and reinforce each other, how do you get an all pass filter.

Nathan Day
nathand@mail.senet.com.au





Received: from stork2.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa09612;
          8 Feb 97 19:14 GMT
Received: from goggins.bath.ac.uk by stork.maths.Bath.AC.UK id aa02500;
          8 Feb 97 19:16 GMT
Received: from hermes.ex.ac.uk by goggins.bath.ac.uk with SMTP (PP);
          Sat, 8 Feb 1997 19:15:42 +0000
Received: from noether [144.173.8.10] by hermes via SMTP (SAA19227);
          Sat, 8 Feb 1997 18:55:57 GMT
Received: from hermes.ex.ac.uk by noether.maths.exeter.ac.uk;
          Sat, 8 Feb 97 18:55:51 GMT
Received: from root@discover-net.net [208.134.196.20] by hermes 
          via ESMTP (SAA19217); Sat, 8 Feb 1997 18:55:33 GMT
Received: from PC_hljmm.discover-net.net (max1-218.discover-net.net [208.134.205.218]) 
          by discover.discover-net.net (8.7.3/8.7.3) with SMTP id MAA27858 
          for ; Sat, 8 Feb 1997 12:53:38 -0600 (CST)
Message-Id: 
In-Reply-To: 
References: Conversation  with last message 
Priority: Normal
To: CSound Mailing List 
Mime-Version: 1.0
From: Hans Mikelson 
Subject: Resonant Low-Pass Filter Instrument
Date: Sat, 08 Feb 97 12:51:34 PST
Content-Type: text/plain; charset=US-ASCII; X-MAPIextension=".TXT"
Content-Transfer-Encoding: 7bit
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

Here is a resonant low-pass filter I have been working on.  I'm 
sort of new to filter design type stuff.  The coefficients could 
probably use some tweaking, and their interelationship may not be 
optimized...but it sounds cool!  Please email me if you have any 
questions or suggestions.

;****************************************************************
; Resonant Low-Pass Filter
; Coded: Hans Mikelson  2/7/97
;****************************************************************

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


instr 1   ; Rezzy Synth based on Diff Eqs

idur  = p3
kamp  linseg 0, .01*p3, p4, .98*p3, p4, .01*p3, 0
ifqc  = cpspch(p5)
ires  = p7/1000

kfco linseg .1*p6, p3, p6
kres = ires

; The difference equation coefficients
kb = 1/kfco/kres
kk = 10000/kfco

aynm1 init 0
aynm2 init 0

      axn    oscil   kamp, ifqc, 3

; The difference equation: Yn=((b+2k)Yn-1 - kYn-2 + Xn)/(1+b+k)

      ayn=((kb+2*kk)*aynm1-kk*aynm2+axn)/(1+kb+kk)
      aynm2 = aynm1
      aynm1 = ayn

      out ayn
endin

; *********************************************************
; Rezzy Sawtooth Synth
; coded:  Hans Mikelson 2/7/97
;**********************************************************
; Sawtooth

f3  0   256   7  1 256 -1

; score ***************************************************

t 0 300

;       idur  iamp   ipch   Filter cut-off  Resonance
i1    0   2    6000   7.00       1000            5
i1    +   1    6000   7.03       1000           10
i1    .   .    6000   7.05        800           15
i1    .   .    6000   7.02       1000           20
i1    .   .    6000   8.00       1200           25
i1    .   .    6000   7.03       1000           30
i1    .   .    6000   7.05        500           60
i1    .   2    6000   7.00       1000            5
i1    .   1    6000   7.03       1000           10
i1    .   .    6000   7.05        800           15
i1    .   .    6000   7.02       1000           20
i1    .   .    6000   8.00       1200           25
i1    .   .    6000   7.03       1000           30
i1    .   .    6000   7.05        500           60
i1    0   8    6000   5.00        200           30
i1    +   .    6000   4.10        200           30
i1    .   .    6000   5.00       1000          100

e

|    |    |  \   |     /      Hans P. Mikelson
|  __     |  __/ |  \    |    hljmm@discover-net.net
|__  |__  |__    |__ \_  |__  http://discover-net.net/~hljmm/




Received: from stork2.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa10033;
          8 Feb 97 21:04 GMT
Received: from goggins.bath.ac.uk by stork.maths.Bath.AC.UK id aa05701;
          8 Feb 97 21:06 GMT
Received: from hermes.ex.ac.uk by goggins.bath.ac.uk with SMTP (PP);
          Sat, 8 Feb 1997 21:06:00 +0000
Received: from noether [144.173.8.10] by hermes via SMTP (UAA22264);
          Sat, 8 Feb 1997 20:46:50 GMT
Received: from hermes.ex.ac.uk by noether.maths.exeter.ac.uk;
          Sat, 8 Feb 97 20:46:45 GMT
Received: from root@big.fishnet.net [205.216.133.3] by hermes 
          via ESMTP (UAA22261); Sat, 8 Feb 1997 20:46:43 GMT
Received: from port020.vta.fishnet.net (port020.vta.fishnet.net [205.216.133.169]) 
          by big.fishnet.net (8.7.5/8.6.9) with SMTP id MAA13833 
          for ; Sat, 8 Feb 1997 12:53:31 -0800
X-Authentication-Warning: big.fishnet.net: Host port020.vta.fishnet.net 
                          [205.216.133.169] didn't use HELO protocol
Message-Id: <32FCE6BE.6BEC66F7@rcsreg.com>
Date: Sat, 08 Feb 1997 12:49:02 -0800
From: Toby 
X-Mailer: Mozilla 3.01Gold (X11; I; Linux 2.0.27 i486)
Mime-Version: 1.0
To: Csound Mailing List 
Subject: NeXT binary for drumachine, also version 1.01 for Linux
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

Fixed a bug, added a feature.
NeXT binary (1.0) compliments of Charlie Baker.

Toby

	-There otta be a law-



Received: from stork2.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa10486;
          8 Feb 97 23:24 GMT
Received: from goggins.bath.ac.uk by stork.maths.Bath.AC.UK id aa09579;
          8 Feb 97 23:27 GMT
Received: from hermes.ex.ac.uk by goggins.bath.ac.uk with SMTP (PP);
          Sat, 8 Feb 1997 23:26:16 +0000
Received: from noether [144.173.8.10] by hermes via SMTP (XAA26034);
          Sat, 8 Feb 1997 23:04:30 GMT
Received: from hermes.ex.ac.uk by noether.maths.exeter.ac.uk;
          Sat, 8 Feb 97 23:04:25 GMT
Received: from mailer.fsu.edu [128.186.6.122] by hermes via ESMTP (XAA26030);
          Sat, 8 Feb 1997 23:04:24 GMT
Received: from otto.cmr.fsu.edu (otto.cmr.fsu.edu [128.186.54.5]) 
          by mailer.fsu.edu (8.8.5/8.7.3) with SMTP id SAA18676 
          for ; Sat, 8 Feb 1997 18:04:23 -0500 (EST)
Received: by otto.cmr.fsu.edu (SMI-8.6/SMI-SVR4)	id SAA05874;
          Sat, 8 Feb 1997 18:04:42 -0500
Date: Sat, 8 Feb 1997 18:04:42 -0500
From: "Peter S. Lakanen" 
Message-Id: <199702082304.SAA05874@otto.cmr.fsu.edu>
To: csound@maths.ex.ac.uk
Subject: .orc/.sco for tb-303 simulation?
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk


I've trying to hack together a TB-303 (I think
Roland made it originally).  Any advice?

Anyone done it before?

-peter



Received: from stork2.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa10828;
          9 Feb 97 0:52 GMT
Received: from goggins.bath.ac.uk by stork.maths.Bath.AC.UK id ab12192;
          9 Feb 97 0:55 GMT
Received: from hermes.ex.ac.uk by goggins.bath.ac.uk with SMTP (PP);
          Sun, 9 Feb 1997 00:55:16 +0000
Received: from noether [144.173.8.10] by hermes via SMTP (AAA28006);
          Sun, 9 Feb 1997 00:33:51 GMT
Received: from hermes.ex.ac.uk by noether.maths.exeter.ac.uk;
          Sun, 9 Feb 97 00:33:46 GMT
Received: from root@discover-net.net [208.134.196.20] by hermes 
          via ESMTP (AAA28003); Sun, 9 Feb 1997 00:33:44 GMT
Received: from PC_hljmm.discover-net.net (max1-233.discover-net.net [208.134.205.233]) 
          by discover.discover-net.net (8.7.3/8.7.3) with SMTP id SAA13290 
          for ; Sat, 8 Feb 1997 18:31:50 -0600 (CST)
Message-Id: 
In-Reply-To: <199702082304.SAA05874@otto.cmr.fsu.edu>
References: Conversation <199702082304.SAA05874@otto.cmr.fsu.edu> with last message <199702082304.SAA05874@otto.cmr.fsu.edu>
Priority: Normal
To: csound@maths.ex.ac.uk
Mime-Version: 1.0
From: Hans Mikelson 
Subject: Re: .orc/.sco for tb-303 simulation?
Date: Sat, 08 Feb 97 18:29:45 PST
Content-Type: text/plain; charset=US-ASCII; X-MAPIextension=".TXT"
Content-Transfer-Encoding: 7bit
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk



>I've trying to hack together a TB-303 (I think
>Roland made it originally).  Any advice?

There is a schematic at the Music Machines web site:

http://www.hyperreal.com/music/machines/schematics.html

If that's any help.  Also see my resonant filter I just posted.  
Let me know if you have any luck.  This page has links to TB-303 
software.

http://www.teknet.ch/tb-303/software/software.htm

Good luck,

|    |    |  \   |     /      Hans P. Mikelson
|  __     |  __/ |  \    |    hljmm@discover-net.net
|__  |__  |__    |__ \_  |__  http://discover-net.net/~hljmm/




Received: from stork2.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa12840;
          9 Feb 97 9:49 GMT
Received: from goggins.bath.ac.uk by stork.maths.Bath.AC.UK id ac27647;
          9 Feb 97 9:52 GMT
Received: from hermes.ex.ac.uk by goggins.bath.ac.uk with SMTP (PP);
          Sun, 9 Feb 1997 09:52:15 +0000
Received: from noether [144.173.8.10] by hermes via SMTP (JAA07404);
          Sun, 9 Feb 1997 09:47:55 GMT
Received: from hermes.ex.ac.uk by noether.maths.exeter.ac.uk;
          Sun, 9 Feb 97 09:47:47 GMT
Received: from server3.syd.mail.ozemail.net [203.108.7.41] by hermes 
          via ESMTP (JAA07394); Sun, 9 Feb 1997 09:47:45 GMT
Received: from oznet07.ozemail.com.au (oznet07.ozemail.com.au [203.2.192.122]) 
          by server3.syd.mail.ozemail.net (8.8.4/8.6.12) with ESMTP 
          id UAA03089; Sun, 9 Feb 1997 20:47:37 +1100 (EST)
Received: from dialup01.interdomain.net.au (dialup01.interdomain.net.au [203.17.167.131]) 
          by oznet07.ozemail.com.au (8.8.4/8.6.12) with SMTP id UAA05013;
          Sun, 9 Feb 1997 20:44:20 +1100 (EST)
Message-Id: <199702090944.UAA05013@oznet07.ozemail.com.au>
Comments: Authenticated sender is 
From: Robin Whittle 
To: csound@maths.ex.ac.uk
Date: Sun, 9 Feb 1997 20:41:06 +0000
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7BIT
Subject: Re: .orc/.sco for tb-303 simulation?
Cc: "Peter S. Lakanen" 
Priority: normal
X-Mailer: Pegasus Mail for Windows (v2.23)
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

Peter S. Lakanen asked about using Csound to emulate a TB-303.

I have corresponded with a few people about this - to say that it 
would be a very difficult project.  The starting point is to get a 
TB-303 and study the schematic. Then use an oscilloscope and your 
ears to find out what is happening - particularly in the accent sweep 
circuit and the two envelope generators.

I do not know how to model the behaviour of the diode ladder filter, 
and don't know of anyone who does - they are not textbook perfect 
filters.

While I understand the TB-303 as well as anyone, because of my Devil 
Fish modification work, (see my WWW site for full info) and while I 
am up-to-speed with Csound, including writing my own ugens, I would 
attempt a TB-303 emulation with trepidation.

If you can't work with a machine, schematics and oscilloscope, then 
you won't be able to do a really accurate emulation.

Much better then to work with Csound to produce your attempt at an 
emulation of whatever you think the TB-303 is.  This will lead to 
much more interesting and novel results than a slavish engineering 
based approach.


- Robin

. Robin Whittle                                               .
. http://www.ozemail.com.au/~firstpr   firstpr@ozemail.com.au .
. 11 Miller St. Heidelberg Heights 3081 Melbourne Australia   .
. Ph +61-3-9459-2889    Fax +61-3-9458-1736                   .
. Consumer advocacy in telecommunications, especially privacy .
.                                                             .
. First Principles      - Research and expression - music,    .
.                         music industry, telecommunications  .
.                         human factors in technology adoption.
.                                                             .
. Real World Interfaces - Hardware and software, especially   .
.                         for music                           .



Received: from stork2.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa12840;
          9 Feb 97 9:49 GMT
Received: from goggins.bath.ac.uk by stork.maths.Bath.AC.UK id ac27647;
          9 Feb 97 9:52 GMT
Received: from hermes.ex.ac.uk by goggins.bath.ac.uk with SMTP (PP);
          Sun, 9 Feb 1997 09:52:15 +0000
Received: from noether [144.173.8.10] by hermes via SMTP (JAA07404);
          Sun, 9 Feb 1997 09:47:55 GMT
Received: from hermes.ex.ac.uk by noether.maths.exeter.ac.uk;
          Sun, 9 Feb 97 09:47:47 GMT
Received: from server3.syd.mail.ozemail.net [203.108.7.41] by hermes 
          via ESMTP (JAA07394); Sun, 9 Feb 1997 09:47:45 GMT
Received: from oznet07.ozemail.com.au (oznet07.ozemail.com.au [203.2.192.122]) 
          by server3.syd.mail.ozemail.net (8.8.4/8.6.12) with ESMTP 
          id UAA03089; Sun, 9 Feb 1997 20:47:37 +1100 (EST)
Received: from dialup01.interdomain.net.au (dialup01.interdomain.net.au [203.17.167.131]) 
          by oznet07.ozemail.com.au (8.8.4/8.6.12) with SMTP id UAA05013;
          Sun, 9 Feb 1997 20:44:20 +1100 (EST)
Message-Id: <199702090944.UAA05013@oznet07.ozemail.com.au>
Comments: Authenticated sender is 
From: Robin Whittle 
To: csound@maths.ex.ac.uk
Date: Sun, 9 Feb 1997 20:41:06 +0000
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7BIT
Subject: Re: .orc/.sco for tb-303 simulation?
Cc: "Peter S. Lakanen" 
Priority: normal
X-Mailer: Pegasus Mail for Windows (v2.23)
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

Peter S. Lakanen asked about using Csound to emulate a TB-303.

I have corresponded with a few people about this - to say that it 
would be a very difficult project.  The starting point is to get a 
TB-303 and study the schematic. Then use an oscilloscope and your 
ears to find out what is happening - particularly in the accent sweep 
circuit and the two envelope generators.

I do not know how to model the behaviour of the diode ladder filter, 
and don't know of anyone who does - they are not textbook perfect 
filters.

While I understand the TB-303 as well as anyone, because of my Devil 
Fish modification work, (see my WWW site for full info) and while I 
am up-to-speed with Csound, including writing my own ugens, I would 
attempt a TB-303 emulation with trepidation.

If you can't work with a machine, schematics and oscilloscope, then 
you won't be able to do a really accurate emulation.

Much better then to work with Csound to produce your attempt at an 
emulation of whatever you think the TB-303 is.  This will lead to 
much more interesting and novel results than a slavish engineering 
based approach.


- Robin

. Robin Whittle                                               .
. http://www.ozemail.com.au/~firstpr   firstpr@ozemail.com.au .
. 11 Miller St. Heidelberg Heights 3081 Melbourne Australia   .
. Ph +61-3-9459-2889    Fax +61-3-9458-1736                   .
. Consumer advocacy in telecommunications, especially privacy .
.                                                             .
. First Principles      - Research and expression - music,    .
.                         music industry, telecommunications  .
.                         human factors in technology adoption.
.                                                             .
. Real World Interfaces - Hardware and software, especially   .
.                         for music                           .



Received: from stork2.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa12921;
          9 Feb 97 10:08 GMT
Received: from goggins.bath.ac.uk by stork.maths.Bath.AC.UK id aa28219;
          9 Feb 97 10:11 GMT
Received: from hermes.ex.ac.uk by goggins.bath.ac.uk with SMTP (PP);
          Sun, 9 Feb 1997 10:11:24 +0000
Received: from noether [144.173.8.10] by hermes via SMTP (KAA07837);
          Sun, 9 Feb 1997 10:07:22 GMT
Received: from hermes.ex.ac.uk by noether.maths.exeter.ac.uk;
          Sun, 9 Feb 97 10:07:18 GMT
Received: from ping1.ping.be [193.74.114.1] by hermes via ESMTP (KAA07834);
          Sun, 9 Feb 1997 10:07:17 GMT
Received: from hyperion.ping.be (dialup78.brussels2.eunet.be [193.74.192.78]) 
          by ping1.ping.be (8.7.5/8.7.3) with ESMTP id LAA10286;
          Sun, 9 Feb 1997 11:07:08 +0100 (GMT+0100)
Message-Id: <199702091007.LAA10286@ping1.ping.be>
From: Marc Resibois 
To: "Peter S. Lakanen" , csound 
Subject: Re: .orc/.sco for tb-303 simulation?
Date: Sun, 9 Feb 1997 00:32:56 -0000
X-Msmail-Priority: Normal
X-Priority: 3
X-Mailer: Microsoft Internet Mail 4.70.1155
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk


There are some programs out there that should emulate some kind of a 303.
The latest hype seem to be the Rebirth RB-338. Take a look to
http://www.teknet.ch/tb303.htm for a whole plunge on 303 resources....

Cheers,

Marc.


Date1997-02-09 18:22
FromMike Berry
SubjectRe: new here
	linenr only works with the MIDI opcodes, not with a standard
score.
	comb and alpass are two different filters which are often used in
combination to create reverb effects.  reverb and reverb2 are combinations
of combs and allpass filters with particular coeficients.  comb produces a
series of evenly spaced peaks and alpass produces only phase alterations,
but does not affect frequency.

Mike Berry
mikeb@mills.edu