Csound Csound-dev Csound-tekno Search About

Re: compiling files under dos

Date1999-03-02 16:03
Fromjpff@maths.bath.ac.uk
SubjectRe: compiling files under dos
Message written at 2 Mar 1999 10:13:42 +0000
--- Copy of mail to sb07@hotmail.com ---

I compile it for DOS regularly.  Which compiler are you using?  On teh
other hand there is no mention on  in my sources (just did a
grep) so I do not know which sources you are using either.

==John ffitch


Received: from shaun.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa23007;
          2 Mar 99 16:52 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 10HsP3-0005Hk-00; Tue, 2 Mar 1999 16:52:17 +0000
Received: from noether [144.173.8.10] by hermes via SMTP (QAA07858); Tue, 2 Mar 1999 16:19:56 GMT
Received: from exeter.ac.uk by maths.ex.ac.uk; Tue, 2 Mar 1999 16:19:40 GMT
Received: from mhd1.moorhead.msus.edu [199.17.81.1] by hermes via ESMTP (QAA00654); Tue, 2 Mar 1999 16:18:21 GMT
Received: from localhost by mhd1.moorhead.msus.edu (8.8.7/1.1.20.3/11Nov97-0622PM)
	id KAA0000030153; Tue, 2 Mar 1999 10:18:03 -0600 (CST)
Date: Tue, 2 Mar 1999 10:18:00 -0600 (CST)
From: Tesch David 
To: Csound List 
Subject: linux sys admin
Message-ID: 
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk


	hola,
	i am new to linux.  i am running mklinux /red hat 5.0 on an
8600/300 (clocks at 366mhz).  after various battles, i finally have the OS
stabilized and running.  i have downloaded rtcmix, multitrack, and various
other programs.  i have figured out how to untar and compile these into
executables, but only the games will execute.  i know this is due to my
incorrect installation of the required libraries in my $PATH.  i know what
my $PATH is, and where to put the libraries.  i DON'T know how to create
the symbolic and hard links to these libraries for the required programs.
+++  is there a system administrator manual for linux? i've never seen
one.  i have mark sobell's linux book, but it is for USERS, and is little
help for me.

also, anyone got the audiomedia III to work with linux?  it works great
with Pro Tools 4.3  (hell, anyone have the factory macintosh  converters
working in linux?) 


tracy 'love'



Received: from wallace.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa23071;
          2 Mar 99 17:06 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 10Hsd9-0005xv-00; Tue, 2 Mar 1999 17:06:52 +0000
Received: from noether [144.173.8.10] by hermes via SMTP (QAA16708); Tue, 2 Mar 1999 16:47:04 GMT
Received: from exeter.ac.uk by maths.ex.ac.uk; Tue, 2 Mar 1999 16:46:49 GMT
Received: from neptune.lyrick.com [38.227.100.46] by hermes via ESMTP (QAA09865); Tue, 2 Mar 1999 16:46:46 GMT
Received: by neptune.lyrick.com with Internet Mail Service (5.5.2448.0)
	id ; Tue, 2 Mar 1999 10:43:37 -0600
Message-ID: <283AABB8FD0DD21187C200A0C995F5DE0ECE74@neptune.lyrick.com>
From: David Boothe 
To: 'Tesch David ' , 
    'Csound List ' 
Subject: RE: linux sys admin
Date: Tue, 2 Mar 1999 10:43:36 -0600 
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2448.0)
Content-Type: text/plain;
	charset="windows-1252"
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

Tesch David wrote:

>also, anyone got the audiomedia III to work with linux?  it works great
>with Pro Tools 4.3  

I had one working (most of the time) under Windows, but gave up under Linux.
OSS doesn't support it, and an email inquiry to Digidesign (a few months
ago), about Linux support, brought no reply.

-David.



Received: from wallace.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa23082;
          2 Mar 99 17:08 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 10Hsec-0005yC-00; Tue, 2 Mar 1999 17:08:22 +0000
Received: from noether [144.173.8.10] by hermes via SMTP (QAA13434); Tue, 2 Mar 1999 16:53:12 GMT
Received: from exeter.ac.uk by maths.ex.ac.uk; Tue, 2 Mar 1999 16:52:52 GMT
Received: from thudson1.cygnus.com [205.226.144.45] by hermes via ESMTP (QAA18385); Tue, 2 Mar 1999 16:52:47 GMT
Received: from cygnus.com (thudson@localhost [127.0.0.1])
	by thudson1.cygnus.com (8.8.7/8.8.7) with ESMTP id WAA29661;
	Mon, 1 Mar 1999 22:11:53 -0500
Message-ID: <36DB56F8.1E3EE59@cygnus.com>
Date: Mon, 01 Mar 1999 22:11:52 -0500
From: Thomas Hudson 
Organization: Cygnus Solutions
X-Mailer: Mozilla 4.5 [en] (X11; I; Linux 2.0.35 i686)
X-Accept-Language: en
MIME-Version: 1.0
To: Tesch David 
CC: Csound List 
Subject: Re: linux sys admin
References: 
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

Tesch David wrote:
> 
>         hola,
>         i am new to linux.  i am running mklinux /red hat 5.0 on an
> 8600/300 (clocks at 366mhz).  after various battles, i finally have the OS
> stabilized and running.  i have downloaded rtcmix, multitrack, and various
> other programs.  i have figured out how to untar and compile these into
> executables, but only the games will execute.  i know this is due to my
> incorrect installation of the required libraries in my $PATH.

The PATH env variable is for locating executables. If you have done a 
"make install", make sure your PATH includes "/usr/local/bin", as this 
is usually the default for additional programs. My path looks like:

$ echo $PATH
/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/jdk117_v1a/bin:/home/thudson/bin:/sbin:/usr/sbin

Some people like to put "./" in their path to mimic the behavior of
DOS, i.e. look in the current directory for executables. However, this
does open the risk of trojan horses. You can always explicitly specify
the pathname of an executable instead of relying on the PATH:

$ /home/username/some-package-.99.8/exename
or
$ ./exename            # in the current directory

This runs it from its build directory and does not require the "make install."

If you still have trouble, especially complaining about finding libraries,
you need to run "ldconfig" as root. This scans the list of directories specified
in "/etc/ld.so.conf" and registers all the libraries it finds with the loader.
My ld.so.conf looks like:

/usr/i486-linuxaout/lib
/usr/X11R6/lib
/usr/lib
/usr/i486-linux-libc5/lib
/usr/local/lib
/usr/local/netscape/plugins
/home/thudson/.netscape/plugins
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/egcs-2.91.58
/usr/local/lib/gtk/themes/engines

This is how Linux finds shared libraries. You can use the "-v" flag on ldconfig
to see what libraries it registers.

Thomas


Received: from wallace.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa23139;
          2 Mar 99 17:29 GMT
Received: from [139.130.53.38] (helo=toad.ilogic.com.au ident=postfix)
	by wallace.maths.bath.ac.uk with esmtp (Exim 1.92 #2)
	for jpff@maths.bath.ac.uk
	id 10HsyT-0005zn-00; Tue, 2 Mar 1999 17:28:55 +0000
Delivered-To: csound-unix-dev-list@ilogic.com.au
Received: by toad.ilogic.com.au (Postfix, from userid 91)
	id 058933878; Wed,  3 Mar 1999 04:24:54 +1100 (EST)
Delivered-To: csound-unix-dev@ilogic.com.au
Received: from pop05.iname.net (pop05.iname.net [165.251.8.70])
	by toad.ilogic.com.au (Postfix) with ESMTP for 
	id AE67F3877; Wed,  3 Mar 1999 04:24:49 +1100 (EST)
Received: from iname.com (ppp221.100.mmtl.videotron.net [207.253.100.221]) by pop05.iname.net (8.9.0/8.8.0) with ESMTP id MAA26954; Tue, 2 Mar 1999 12:24:02 -0500 (EST)
Message-Id: <199903021724.MAA26954@pop05.iname.net>
Date: Tue, 2 Mar 1999 12:31:15 -0500 (EST)
From: Antoine Lefebvre 
Reply-To: gamma_orion@iname.com
Subject: [CUD] rtaudio.c modif for linux
To: csound@maths.ex.ac.uk
Cc: csound-unix-dev@ilogic.com.au
MIME-Version: 1.0
Content-Type: TEXT/plain; CHARSET=US-ASCII
Sender: owner-csound-unix-dev@ilogic.com.au
Precedence: bulk

Hello csounder,
I have made an useful modification to rtaudio.c for the people who have
two soundcard and want to use one for input and the other for output.

#ifdef LINUX                                  /* Jonathan Mohr  1995 Oct 17 */
#include 
#include 
/* in this section you can specify your device for input and for
output */
#define DSPIN_NAME  "/dev/dsp1"
#define DSPOUT_NAME    "/dev/dsp"
static int dspinfd;
static int dspoutfd;
/* */
void setsndparms(int, int, int, float, unsigned);
void setvolume(volume);
#endif
.
.
.
/* in this section I change DSP_NAME for DSPIN_NAME and
dspfd for dspinfd */

#ifdef LINUX                                  /* Jonathan Mohr  1995 Oct 17 */
        /* open DSP device for reading */
        if ( (dspinfd = open(DSPIN_NAME, O_RDONLY)) == -1 ) 
          die("unable to open soundcard for audio input");

        /* initialize data format, channels, sample rate, and buffer size */
        setsndparms( dspinfd, O.informat, nchnls, esr, oMaxLag * O.insampsiz );
#endif
.
.
.

/*same thing here but for DSPOUT_NAME and dspoutfd */
#ifdef LINUX                                       /*  J. Mohr  1995 Oct 17 */
/* The following code not only opens the DSP device (soundcard and driver)
   for writing and initializes it for the proper sample size, rate, and
   channels, but allows the user to set the output volume.                  */
    {
        extern void setscheduler(void);
        /* open DSP device for writing */
        if ( (dspoutfd = open(DSPOUT_NAME, O_WRONLY)) == -1 )
          die("unable to open soundcard for audio output");

        /* set sample size/format, rate, channels, and DMA buffer size */
        setsndparms( dspoutfd, O.outformat, nchnls, esr,
                     O.outbufsamps * O.outsampsiz);

.
.
.
/* after that, all the dspfd are change to dspinfd or dspoutfd
depending if they are use for input or output*/

/*Don't forget to close the two file descriptor*/


It is possible to use a 
csound -odevaudio -idevaudio .....
csound will use the good soundcard


-- 
Antoine Lefebvre
antoinelefebvre@softhome.net
http://pages.infinit.net/linux/music/music.html




Received: from shaun.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa23433;
          2 Mar 99 19: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 10Huyr-0005SZ-00; Tue, 2 Mar 1999 19:37:25 +0000
Received: from noether [144.173.8.10] by hermes via SMTP (TAA03018); Tue, 2 Mar 1999 19:33:15 GMT
Received: from exeter.ac.uk by maths.ex.ac.uk; Tue, 2 Mar 1999 19:33:03 GMT
Received: from front1.grolier.fr [194.158.96.51] by hermes via ESMTP (TAA06482); Tue, 2 Mar 1999 19:33:02 GMT
Received: from club-internet.fr (ppp-195-36-172-164.pop.club-internet.fr [195.36.172.164])
	by front1.grolier.fr (8.9.3/No_Relay+No_Spam_MGC990224) with ESMTP id UAA25597
	for ; Tue, 2 Mar 1999 20:33:04 +0100 (MET)
Message-ID: <36DC4AD2.C579DE9D@club-internet.fr>
Date: Tue, 02 Mar 1999 20:32:18 +0000
From: Jean-Michel DARRMONT 
Reply-To: jmdbrady@club-internet.fr
X-Mailer: Mozilla 4.04 (Macintosh; I; PPC)
MIME-Version: 1.0
To: liste CSound 
Subject: Spectral enhancer
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

Hi,


Does any one knows how to simulate a spectral enhancer(Aphex type) in CSound.
Are there orc&sco on this subject around there or, more generally, is there
any documentation on the subject (books,web, usenet,lists etc...).

Thanks for your advices.

-- 
Jean-Michel DARREMONT



Received: from shaun.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa23588;
          2 Mar 99 20: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 10Hvpe-0005Vb-00; Tue, 2 Mar 1999 20:31:58 +0000
Received: from noether [144.173.8.10] by hermes via SMTP (UAA01049); Tue, 2 Mar 1999 20:25:35 GMT
Received: from exeter.ac.uk by maths.ex.ac.uk; Tue, 2 Mar 1999 20:25:22 GMT
Received: from dns2.seanet.com [199.181.164.2] by hermes via ESMTP (UAA05726); Tue, 2 Mar 1999 20:25:20 GMT
Received: from seanet.com (cy37.dialup.seanet.com [207.12.136.37]) by mx.seanet.com (8.8.8/Seanet-8.7.3) with ESMTP id MAA08053; Tue, 2 Mar 1999 12:25:15 -0800 (PST)
Message-ID: <36DC4A54.B2B9008F@seanet.com>
Date: Tue, 02 Mar 1999 12:30:12 -0800
From: Sean Costello 
X-Mailer: Mozilla 4.05 [en] (Win95; I)
MIME-Version: 1.0
To: jmdbrady@club-internet.fr
CC: liste CSound 
Subject: Re: Spectral enhancer
References: <36DC4AD2.C579DE9D@club-internet.fr>
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by exeter.ac.uk id UAA05726
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

Jean-Michel DARR=C9MONT wrote:
>=20
> Hi,
>=20
> Does any one knows how to simulate a spectral enhancer(Aphex type) in C=
Sound.
> Are there orc&sco on this subject around there or, more generally, is t=
here
> any documentation on the subject (books,web, usenet,lists etc...).

Your best bet is to search http://www.patents.ibm.com for the keyword
Aphex, and see what turns up.  The different spectral enhancement
methods are usually not discussed by the companies in question, but a
little creative patent searching should uncover some good stuff. =20

The original Aphex patent is

http://www.patents.ibm.com/details?&patent_number=3D4150253

>From what I understand of the Aphex-type boxes, they work through a
combination of filtering and nonlinear distortion.  One variant uses a
highpass filter, followed by 2-quadrant modulation of the signal with
itself (thus doubling frequencies, and adding more high-frequency
energy).  Other versions simply use a highpass filter followed by diode
clipping; this could be simulated in Csound with a highpass filter,
followed by table lookup into the distortion function of your choice.=20
You might want to try running a signal through a filter, then using this
filtered signal to modulate a deltapi delay line that the signal is
going through.

The big problem with trying to do this sort of spectral enhancement in
Csound would be aliasing.  The process depends on generating new
high-frequency harmonics of the signal, which could very easy alias and
end up sounding lousy.=20

Sean Costello


Received: from wallace.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa23600;
          2 Mar 99 20:42 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 10Hvzi-0006DF-00; Tue, 2 Mar 1999 20:42:22 +0000
Received: from noether [144.173.8.10] by hermes via SMTP (UAA16374); Tue, 2 Mar 1999 20:31:33 GMT
Received: from exeter.ac.uk by maths.ex.ac.uk; Tue, 2 Mar 1999 20:31:22 GMT
Received: from thudson1.cygnus.com [205.226.144.45] by hermes via ESMTP (UAA04804); Tue, 2 Mar 1999 20:31:20 GMT
Received: from cygnus.com (thudson@localhost [127.0.0.1])
	by thudson1.cygnus.com (8.8.7/8.8.7) with ESMTP id PAA30179;
	Tue, 2 Mar 1999 15:26:50 -0500
Message-ID: <36DC4989.6EB10BC0@cygnus.com>
Date: Tue, 02 Mar 1999 15:26:49 -0500
From: Thomas Hudson 
Organization: Cygnus Solutions
X-Mailer: Mozilla 4.5 [en] (X11; I; Linux 2.0.35 i686)
X-Accept-Language: en
MIME-Version: 1.0
To: jmdbrady@club-internet.fr
CC: liste CSound 
Subject: Re: Spectral enhancer
References: <36DC4AD2.C579DE9D@club-internet.fr>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

Jean-Michel DARRIMONT wrote:
> 
> Hi,
> 
> Does any one knows how to simulate a spectral enhancer(Aphex type) in CSound.
> Are there orc&sco on this subject around there or, more generally, is there
> any documentation on the subject (books,web, usenet,lists etc...).
> 
I read an article many years ago in Electronic Musician describing a circuit
that emulated it quite well. The basic concept is to highpass filter the
input signal and then soft clip this signal (distortion). This resulting signal
is then mixed with the original signal.

The original article was by Jules Ryckebusch (mailto:ryckebusch@aol.com). I 
believe there was recently a discussion about it on the synth-diy mailing list. I
think he redrew the original schematic and may have the original article
posted somewhere. This issue of EM was still in the days when EM was associated
w/ PAiA (http://www.paia.com), you may find something at their site.

I remember that the original circuit was good enought to elicit a response from
Aphex stating that the design was patented. Thus the IBM patent server may
be another good place to look.

Thomas


Received: from wallace.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa23798;
          2 Mar 99 22:08 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 10HxL4-0006Hw-00; Tue, 2 Mar 1999 22:08:30 +0000
Received: from noether [144.173.8.10] by hermes via SMTP (WAA07571); Tue, 2 Mar 1999 22:04:51 GMT
Received: from exeter.ac.uk by maths.ex.ac.uk; Tue, 2 Mar 1999 22:04:39 GMT
Received: from gudrun.passagen.se [195.163.107.4] by hermes via ESMTP (WAA10667); Tue, 2 Mar 1999 22:04:38 GMT
Received: from dumburk (dialup198-3-20.swipnet.se [130.244.198.148])
	by gudrun.passagen.se (8.8.5/8.8.5) with SMTP id XAA13819;
	Tue, 2 Mar 1999 23:03:26 +0100 (MET)
Message-ID: <36DC60A6.46E@hem.passagen.se>
Date: Tue, 02 Mar 1999 23:05:26 +0100
From: rasmus ekman 
X-Mailer: Mozilla 3.04 (Win95; I)
MIME-Version: 1.0
To: Serge _ 
CC: Csound list 
Subject: Re: compiling files under dos
References: <19990301191145.18697.qmail@hotmail.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

> Serge _ wrote:
>
> > see what files i need it to compile the CSound.exe. Unfortunatly, after
> > repairing some warnings/errors, i still miss the file .
> 
jpff@maths.bath.ac.uk wrote:
> 
> other hand there is no mention on  in my sources (just did a

Lpcanal.c in /anal/lpc, and two more files in subdirectories of
source distribution have this reference.

Serge, you don't need these files. I added a note about this in
winhlp shortly ago. 
Just as anyone who gets a problem with csound.exe must say which 
version and include orc/sco, you should mention what compiler you use. 
If it's MsDev, start by using the included project files (consound.mdp,
winsound.mdp), else you must edit some makefile to do it.

If (you or) someone wants to compile for DOS and doesn't want to
check winhlp ("Adding your own modules to Csound" section), I could
copy and repost the lot. Basically, you should include all and only 
files in the root Csound source directory, *except*

Blaster.c  Cscormai.c  Decaudio.c  Decplay.c  Het_ Expo.c  Het_Impo.c
Hpplay.c  Linuxaud.c  Lpc_Expo.c  Pv_Expor.c  Pv_Impor.c  Sgiplay.c  
Winbor.c  Winfg.c  Winsgi.c  Winwat.c  Winx11.c

and set the preprocessor flags

_CONSOLE,  WIN32, SFIRCAM, PIPES, MACROS, RTAUDIO, MSVC

to compile win32 console executables. Perhaps there's more to
it, I use the .mdp files so not sure.


        re


Received: from wallace.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa23913;
          2 Mar 99 23:03 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 10HyCf-0006Ks-00; Tue, 2 Mar 1999 23:03:53 +0000
Received: from noether [144.173.8.10] by hermes via SMTP (XAA04670); Tue, 2 Mar 1999 23:01:33 GMT
Received: from exeter.ac.uk by maths.ex.ac.uk; Tue, 2 Mar 1999 23:01:26 GMT
Received: from root@lix.intercom.es [194.179.21.2] by hermes via ESMTP (XAA07875); Tue, 2 Mar 1999 23:01:24 GMT
Received: from intercom.es (iv2-134.intercom.es [195.76.206.134]) by lix.intercom.es (8.7.3/8.6.12) with ESMTP id AAA05060; Wed, 3 Mar 1999 00:06:49 +0100
Message-ID: <36DC6638.57C5B5B2@intercom.es>
Date: Tue, 02 Mar 1999 23:29:12 +0100
From: Josep M Comajuncosas 
X-Mailer: Mozilla 4.05 [en] (Win95; I)
MIME-Version: 1.0
To: jmdbrady@club-internet.fr
CC: liste CSound 
Subject: Re: Spectral enhancer
References: <36DC4AD2.C579DE9D@club-internet.fr>
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by exeter.ac.uk id XAA07875
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

I wrote an enhancer some time ago ... maybe I can find it somewhere.
Basically I
splitted a signal in a high-pass and a low-pass part. The lowpassed part
is
waveshaped to generate some amount of 2nd and 3rd harmonic and mixed
with the
highpassed (not waveshaped) signal. This way you add some extra harmonic
energy
to the sound. Notice the freq.cutoff of the lowpass filter should be
sr/6 or lower to prevent aliasing.

Jean-Michel DARR=C9MONT wrote:

> Hi,
>
> Does any one knows how to simulate a spectral enhancer(Aphex type) in C=
Sound.
> Are there orc&sco on this subject around there or, more generally, is t=
here
> any documentation on the subject (books,web, usenet,lists etc...).




Received: from shaun.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa23995;
          2 Mar 99 23:28 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 10Hyal-0005eR-00; Tue, 2 Mar 1999 23:28:47 +0000
Received: from noether [144.173.8.10] by hermes via SMTP (XAA12266); Tue, 2 Mar 1999 23:27:45 GMT
Received: from exeter.ac.uk by maths.ex.ac.uk; Tue, 2 Mar 1999 23:27:34 GMT
Received: from mail.infomedia.co.il [199.203.20.13] (may be forged) by hermes via ESMTP (XAA14234); Tue, 2 Mar 1999 23:27:32 GMT
Received: by GS with Internet Mail Service (5.5.1960.3)
	id ; Wed, 3 Mar 1999 01:29:22 +0200
Message-ID: <41C7A36D82FED011B36300805F7172815DE7E0@GS>
From: Oded Streigold 
To: "'csound@maths.ex.ac.uk'" 
Subject: RE: Spectral enhancer
Date: Wed, 3 Mar 1999 01:29:13 +0200 
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.1960.3)
Content-Type: text/plain
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

Hi.
I have this idea for a special sound effect:
A monophonic input sound data is processed in such way that all the
frequencies above the 'base' frequency are stripped ( by base frequency
I mean the dominant frequency, I hope this is the right term ). The base
frequency changes in time, so the filter has to apply different
parameters as time progresses ( e.g.. each note gets a different
low-pass filter ). The filter will be so 'aggressive' that none or very
little of the higher frequencies will remain. The result would retain
the pitch and volume information of the original file but with a much
simpler sound, almost an oscillator sound. Those this effect can turn a
vocal or flute etc. recording into a 'synth sound' recording, in a much
more efficient way then current audio to pitch/midi convertors such as
AutoScore, and Sound2Midi.
It's even possible to ADD frequencies to the resulting simple sound, so
to make it complex again but with a completely different sound then the
original.

Well, first I'd like to know if such or similar devices exist.
And if CSound would be the best approch to implement it.
I'm very new to CSound, so I'd appreciate any help.

Thanx!

Oded.

oded@appstream.com




Received: from wallace.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa24303;
          3 Mar 99 1:52 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 10I0pP-0006UK-00; Wed, 3 Mar 1999 01:52:03 +0000
Received: from noether [144.173.8.10] by hermes via SMTP (BAA14479); Wed, 3 Mar 1999 01:48:46 GMT
Received: from exeter.ac.uk by maths.ex.ac.uk; Wed, 3 Mar 1999 01:48:34 GMT
Received: from f100.hotmail.com [207.82.250.219] by hermes via SMTP (BAA13433); Wed, 3 Mar 1999 01:48:33 GMT
Received: (qmail 4873 invoked by uid 0); 3 Mar 1999 01:48:02 -0000
Message-ID: <19990303014802.4872.qmail@hotmail.com>
Received: from 157.193.51.29 by www.hotmail.com with HTTP;
	Tue, 02 Mar 1999 17:48:01 PST
X-Originating-IP: [157.193.51.29]
From: david ds 
To: csound@maths.ex.ac.uk
Subject: My problem
Date: Tue, 02 Mar 1999 17:48:01 PST
Mime-Version: 1.0
Content-type: text/plain
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk


Could this be the reason for my feelings of deep down depression
and desperate hopelessness ???


http://www.kcstar.com/item/pages/home.pat,local/30da55e2.829,.html


Anybody here suffers from or has suffered from loneliness and depression 
??


David



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


Received: from wallace.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa24334;
          3 Mar 99 2:07 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 10I13s-0006V2-00; Wed, 3 Mar 1999 02:07:00 +0000
Received: from noether [144.173.8.10] by hermes via SMTP (CAA15080); Wed, 3 Mar 1999 02:05:00 GMT
Received: from exeter.ac.uk by maths.ex.ac.uk; Wed, 3 Mar 1999 02:04:49 GMT
Received: from root@westnet.com [206.24.6.2] by hermes via ESMTP (CAA11690); Wed, 3 Mar 1999 02:04:48 GMT
Received: from goodguy (p21.pm3-3.westnet.com [206.28.203.21])
	by westnet.com (8.9.1/8.9.1) with SMTP id VAA02459;
	Tue, 2 Mar 1999 21:04:25 -0500 (EST)
Message-ID: <36DC8B2E.2CE31960@westnet.com>
Date: Wed, 03 Mar 1999 01:06:54 +0000
From: Larry Troxler 
X-Mailer: Mozilla 3.01 (X11; I; Linux 2.0.31 i586)
MIME-Version: 1.0
To: david ds 
CC: csound@maths.ex.ac.uk
Subject: Nice try, Mr. Troll / Re: My problem
References: <19990303014802.4872.qmail@hotmail.com>
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk




Received: from shaun.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa24542;
          3 Mar 99 4:29 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 10I3Hq-0005ts-00; Wed, 3 Mar 1999 04:29:34 +0000
Received: from noether [144.173.8.10] by hermes via SMTP (EAA09549); Wed, 3 Mar 1999 04:22:29 GMT
Received: from exeter.ac.uk by maths.ex.ac.uk; Wed, 3 Mar 1999 04:22:16 GMT
Received: from howl.werewolf.net [12.23.152.10] by hermes via ESMTP (EAA10376); Wed, 3 Mar 1999 04:22:15 GMT
Received: from default (dial76.werewolf.net [12.23.153.76])
	by howl.werewolf.net (8.9.0/8.9.0) with SMTP id WAA01267
	for ; Tue, 2 Mar 1999 22:16:16 -0600 (CST)
Message-ID: <003501be652e$350e8e80$4c99170c@default>
From: Hans Mikelson 
To: Csound 
Subject: Csound Magazine call for contributions
Date: Tue, 2 Mar 1999 22:27:51 -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
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

Hi,

I'll be putting the second issue of Csound Magazine together over the next
couple of weeks.  If you would like to contribute please let me know.  This
issue will likely be included on the CD ROM of Richard Boulanger's upcoming
Csound book due out in the fall.  The topics for the regular columns are
beginners, synthesis, sound processing, real-time Csound and Csound
internals.  For more information on contributing check out the Csound
Magazine web site and follow the links for departments then contribute.

http://www.werewolf.net/~hljmm/Ezine/

Best regards,
Hans Mikelson



Received: from shaun.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa24553;
          3 Mar 99 4:36 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 10I3OF-0005u9-00; Wed, 3 Mar 1999 04:36:11 +0000
Received: from noether [144.173.8.10] by hermes via SMTP (EAA04116); Wed, 3 Mar 1999 04:34:58 GMT
Received: from exeter.ac.uk by maths.ex.ac.uk; Wed, 3 Mar 1999 04:34:46 GMT
Received: from vcn.bc.ca [207.102.64.2] by hermes via ESMTP (EAA13132); Wed, 3 Mar 1999 04:34:45 GMT
Received: from localhost (wfreno@localhost)
	by vcn.bc.ca (8.9.2/8.9.2) with ESMTP id UAA02677
	for ; Tue, 2 Mar 1999 20:29:42 -0800 (PST)
Date: Tue, 2 Mar 1999 20:29:42 -0800 (PST)
From: Wayne Freno 
To: Csound List 
Subject: Grains from Audio files
Message-ID: 
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

What are the best sources (hopefully free and on the
internet! ;-)) for using audio files in granular
synthesis?  So far I can only get the grain opcode
to use a sine wave, but I can imagine mucho pontential
with audio files!  Thanks!  

Wayne Freno




Received: from wallace.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa25158;
          3 Mar 99 9:57 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 10I8Or-0006vZ-00; Wed, 3 Mar 1999 09:57:09 +0000
Received: from noether [144.173.8.10] by hermes via SMTP (JAA12704); Wed, 3 Mar 1999 09:47:07 GMT
Received: from exeter.ac.uk by maths.ex.ac.uk; Wed, 3 Mar 1999 09:46:53 GMT
Received: from root@d1o211.telia.com [195.204.228.241] by hermes via ESMTP (JAA03479); Wed, 3 Mar 1999 09:46:51 GMT
Received: from apas.no (t5o211p34.telia.com [195.204.229.34])
	by d1o211.telia.com (8.8.5/8.8.5) with ESMTP id KAA06909
	for ; Wed, 3 Mar 1999 10:46:49 +0100 (CET)
Message-ID: <36DD0526.BF003BFE@apas.no>
Date: Wed, 03 Mar 1999 10:47:18 +0100
From: Roger Klaveness 
X-Mailer: Mozilla 4.5 [en] (WinNT; I)
X-Accept-Language: en
MIME-Version: 1.0
To: 'Csound List ' 
Subject: Re: linux sys admin
References: <283AABB8FD0DD21187C200A0C995F5DE0ECE74@neptune.lyrick.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk


I think that a linux-driver for AudiomediaIII will never apear.
Digidesign seems to be rather uninterested in their customers need.
I bought an AudiomediaIII together with Cubase Audio XT a couple of years
ago which was supposed to be state of the art at that time for windows.
So what happens? Steinberg releases Cubase VST but until now no ASIO 
drivers from digidesign. Only recently they released a full duplex driver
for win95/98. DirectX no. The card supports 24 bit but only the Windows NT 
driver ( not full duplex ) can use it and so on ....
If you read what people say on Digidesigns user conference for AmIII-windows 
it's clear that many people are unhappy with Digidesign.

I don't know about Mac but for windows AmIII s***s
I would be very surprised if Digidesign would do better 
for linux than windows.

Roger Klaveness

David Boothe wrote:
> 
> Tesch David wrote:
> 
> >also, anyone got the audiomedia III to work with linux?  it works great
> >with Pro Tools 4.3
> 
> I had one working (most of the time) under Windows, but gave up under Linux.
> OSS doesn't support it, and an email inquiry to Digidesign (a few months
> ago), about Linux support, brought no reply.
> 
> -David.


Received: from xenakis.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa27508;
          3 Mar 99 10:28 GMT
From: jpff@maths.bath.ac.uk
To: rasmuse@hem.passagen.se
CC: sb07@hotmail.com, csound@maths.ex.ac.uk
In-reply-to: <36DC60A6.46E@hem.passagen.se> (message from rasmus ekman on Tue,
	02 Mar 1999 23:05:26 +0100)
Subject: Re: compiling files under dos
BCC: jpff@maths.bath.ac.uk
References: <19990301191145.18697.qmail@hotmail.com> <36DC60A6.46E@hem.passagen.se>
Date: Wed, 3 Mar 99 10:28:38 GMT
Sender: jpff@maths.bath.ac.uk
Source-Info:  From (or Sender) name not authenticated.

I repeat, there is no use of sndf.h in my sources, including anal/lpc

omphalos 358% find . -type f -exec fgrep sndf.h {} /dev/null \;
./old/anal/lpc/lpcanal.c:#include 
./old/anal/pvoc/pvanal.c:#include 
./old/util2/sndinfo.dir/sndinfo.c:#include      /* all the Soundfile stuff */
./util2/scale.dir/sndf.h:*   sndf.h                                                     *
./util3/scale.dir/scale.c:#include 
omphalos 359% 

These are the master sources.  I suppose that there is a discrepency
in the csound_src.zip file but as I do not have a PC here it is hard
to check.  

I would certianly appreciate hearing of any such oddities in the
sources.

==John


Received: from wallace.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa27558;
          3 Mar 99 10: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 10I93L-0006yu-00; Wed, 3 Mar 1999 10:38:59 +0000
Received: from noether [144.173.8.10] by hermes via SMTP (KAA01749); Wed, 3 Mar 1999 10:29:07 GMT
Received: from exeter.ac.uk by maths.ex.ac.uk; Wed, 3 Mar 1999 10:28:47 GMT
Received: from exim@wallace.maths.bath.ac.uk [138.38.100.104] by hermes via ESMTP (KAA04184); Wed, 3 Mar 1999 10:28:46 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 10I8tN-0006yC-00; Wed, 3 Mar 1999 10:28:41 +0000
From: jpff@maths.bath.ac.uk
To: rasmuse@hem.passagen.se
CC: sb07@hotmail.com, csound@maths.ex.ac.uk
In-reply-to: <36DC60A6.46E@hem.passagen.se> (message from rasmus ekman on Tue,
	02 Mar 1999 23:05:26 +0100)
Subject: Re: compiling files under dos
References: <19990301191145.18697.qmail@hotmail.com> <36DC60A6.46E@hem.passagen.se>
Date: Wed, 3 Mar 99 10:28:38 GMT
Source-Info:  From (or Sender) name not authenticated.
Message-Id: 
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

I repeat, there is no use of sndf.h in my sources, including anal/lpc

omphalos 358% find . -type f -exec fgrep sndf.h {} /dev/null \;
./old/anal/lpc/lpcanal.c:#include 
./old/anal/pvoc/pvanal.c:#include 
./old/util2/sndinfo.dir/sndinfo.c:#include      /* all the Soundfile stuff */
./util2/scale.dir/sndf.h:*   sndf.h                                                     *
./util3/scale.dir/scale.c:#include 
omphalos 359% 

These are the master sources.  I suppose that there is a discrepency
in the csound_src.zip file but as I do not have a PC here it is hard
to check.  

I would certianly appreciate hearing of any such oddities in the
sources.

==John


Received: from wallace.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa27673;
          3 Mar 99 11:03 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 10I9RI-00070i-00; Wed, 3 Mar 1999 11:03:44 +0000
Received: from noether [144.173.8.10] by hermes via SMTP (KAA10166); Wed, 3 Mar 1999 10:40:36 GMT
Received: from exeter.ac.uk by maths.ex.ac.uk; Wed, 3 Mar 1999 10:40:20 GMT
Received: from front2.grolier.fr [194.158.96.52] by hermes via ESMTP (KAA13826); Wed, 3 Mar 1999 10:40:19 GMT
Received: from club-internet.fr (ppp-165-139.villette.club-internet.fr [195.36.165.139])
	by front2.grolier.fr (8.9.3/No_Relay+No_Spam_MGC990224) with ESMTP id LAA18715;
	Wed, 3 Mar 1999 11:40:08 +0100 (MET)
Message-ID: <36DC9607.9185CADA@club-internet.fr>
Date: Wed, 03 Mar 1999 01:53:14 +0000
From: Jean-Michel DARRMONT 
Reply-To: jmdbrady@club-internet.fr
X-Mailer: Mozilla 4.04 (Macintosh; I; PPC)
MIME-Version: 1.0
To: Oded Streigold 
CC: "'csound@maths.ex.ac.uk'" 
Subject: Re: Spectral enhancer
References: <41C7A36D82FED011B36300805F7172815DE7E0@GS>
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by exeter.ac.uk id KAA13826
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

Oded Streigold wrote:
>=20
> I have this idea for a special sound effect:
> A monophonic input sound data is processed in such way that all the
> frequencies above the 'base' frequency are stripped ( by base frequency
> I mean the dominant frequency, I hope this is the right term ). The bas=
e
> frequency changes in time, so the filter has to apply different
> parameters as time progresses ( e.g.. each note gets a different
> low-pass filter ). The filter will be so 'aggressive' that none or very
> little of the higher frequencies will remain. The result would retain
> the pitch and volume information of the original file but with a much
> simpler sound, almost an oscillator sound. Those this effect can turn a
> vocal or flute etc. recording into a 'synth sound' recording, in a much
> more efficient way then current audio to pitch/midi convertors such as
> AutoScore, and Sound2Midi.
> It's even possible to ADD frequencies to the resulting simple sound, so
> to make it complex again but with a completely different sound then the
> original.
>=20


I did what you are decribing few month ago using in fact three softwares:
Audiosculpt, Patchwork and CSound.
_Firs:t Audiosculpt was used for the fundamental analysis(what you call b=
ase frequency).
_Second: the fundamental analysis file(text) was send to Patchwork (wich =
I
usually use to generate CSound scores.) But you can directly read the ana=
lysis
file in CSound I guess(?)
_Third: This fundamental following is then stored in a table, as is the
amplitude, in CSound associated with a bandwith to filter white
noise(substractive synthesis).

It worked technically very well but musically so so. I guess it need to b=
e
practiced to get a musical interest.
I had also a problem of limited PMAX in the tables, but an other method i=
s
maybe usable.
I send you the orc and the score wich have been made from indian alto flu=
te analysis.
Sorry for the score,it's long I didn't write it myself, Patchwork did.


;;ORC
                                   ;SOUSTRACTIF PAR TABLES

;p1 =3Dins
;p2 =3Ddate
;p3 =3D dur
;1 =3D n=B0 table d'env d'amplitude
;2 =3D n=B0 table freq=20
;p6 =3D amplitude globale
;-----------------------------------------------------
   sr =3D 44100
   kr =3D 4410
   ksmps =3D 10
   nchnls =3D 1
;-----------------------------------------------------
     instr 1

idur  =3D p3

   	=20
   kfreq	oscil1i    	p2,1,p3,2
   kenvamp     	oscil1i    	p2,300,p3,1
       =20
   anoise  rand   kenvamp                         ; white noise

   a1      reson  anoise,  kfreq, kfreq/100, 2    ; filter
   a1      linen  a1, .1, idur, .1

           out    a1
=20
	 endin


;;SCO    Indian alto flute

f	1	0.0454	8193	-7	0	119	10000	118	4317	119	2111	119	1073	119	1806	118	86=
2	119	1931	119	1085	119	2436	118	3392	119	3829	119	435	118	1011	119	619	1=
19	510	119	715	118	756	119	866	119	850	118	937	119	697	119	637	119	627	11=
8	581	119	597	119	221	119	576	118	673	119	192	119	416	118	107	119	554	119=
	252	119	552	118	704	119	603	119	1446	119	2195	118	2574	119	2850	119	3147=
	118	3146	119	3275	119	2794	119	1781	118	1020	119	180	119	20	119	210	118	=
148	119	96	119	227	118	218	119	246	119	189	119	41	118	59	119	138	119	74	1=
18	121	119	86	119	77	119	76	118	90	119	52	119	65	119	58	118	4	119	0=09
f	2	0.0454	8193	-7	331	119	437	118	435	119	401	119	367	119	391	118	366	11=
9	392	119	364	119	392	118	430	119	432	119	322	118	362	119	351	119	351	119=
	352	118	352	119	353	119	353	118	354	119	353	119	353	119	353	118	352	119	=
353	119	342	119	352	118	353	119	345	119	352	118	340	119	353	119	344	119	3=
51	118	352	119	386	119	388	119	390	118	391	119	392	119	392	118	392	119	39=
3	119	394	119	395	118	363	119	357	119	294	119	292	118	299	119	297	119	292=
	118	293	119	293	119	290	119	284	118	263	119	265	119	261	118	263	119	263	=
119	262	119	262	118	263	119	258	119	262	119	261	118	262	119	320=09
f 3  0  1024 10 1

i	1	0.0454	7.6190=09
e

--=20
Jean-Michel DARREMONT