Csound Csound-dev Csound-tekno Search About

Re: Re: 24 bit?

Date1999-05-07 15:13
FromFokke de Jong
SubjectRe: Re: 24 bit?

"Matt J. Ingalls" wrote:

> > I'm having some trouble using the 'rescale to 24 bit' function in
> > Csound. This doesn't seem to write the right header (i.e. it writes a
> > 16-bit header). Does anyone else have this problem?
>
> > what are you using to read the 24 bit file?  (csound doesnt support
> > 24-bit-in!)
>
> > -matt

I'm trying to read them into Cubase 4.0/24 which should be able to read 24
bit, I'm sure!
The same goes for Peak 2.0, the problem is that neither cubase nor peak
recognizes the file as 24 bit, instead it thinks it's a 16 bit file, which
results in a lot of junk. Even Csound's sndinfo utility recognizes the
file as 16 bit (which it obviously isn't!).
I hope this state's the problem a bit clearer, and hope anyone can help.

thanx Fokke.




Received: from shaun.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa06993;
          7 May 99 14:22 BST
Received: from [144.173.6.14] (helo=exeter.ac.uk)
	by shaun.maths.bath.ac.uk with esmtp (Exim 2.12 #1)
	id 10fkZk-0000rU-00
	for jpff@maths.bath.ac.uk; Fri, 7 May 1999 14:22:00 +0100
Received: from noether [144.173.8.10] by hermes via SMTP (OAA07321); Fri, 7 May 1999 14:18:31 +0100 (BST)
Received: from exeter.ac.uk by maths.ex.ac.uk; Fri, 7 May 1999 14:18:19 +0100
Received: from exim@wallace.maths.bath.ac.uk [138.38.100.104] by hermes via ESMTP (OAA01496); Fri, 7 May 1999 14:18:18 +0100 (BST)
Received: from [138.38.97.36] (helo=maths.Bath.AC.UK ident=mmdf)
	by wallace.maths.bath.ac.uk with smtp (Exim 2.12 #1)
	id 10fkW8-00017V-00; Fri, 7 May 1999 14:18:16 +0100
From: jpff@maths.bath.ac.uk
To: andrew__lyons@hotmail.com
CC: csound@maths.ex.ac.uk
In-reply-to: <19990507084434.86541.qmail@hotmail.com> (message from Andrew
	Lyons on Fri, 07 May 1999 18:44:34 EST)
Subject: Re: pvanel file format
References:  <19990507084434.86541.qmail@hotmail.com>
Date: Fri, 7 May 99 14:18:11 BST
Source-Info:  From (or Sender) name not authenticated.
Message-Id: 
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

If you look at the pvanal_export.c program the format is reasonably
well explained..... well not really....the following is from pvoc.h

==John ff

PS: Welcome!
========================================================================

#define PVMAGIC 517730	/* look at it upside-down, esp on a 7-seg display */

#define PVDFLTBYTS 4

typedef struct pvstruct
    {
    long	magic;			/* magic number to identify */
    long	headBsize;		/* byte offset from start to data */
    long	dataBsize;		/* number of bytes of data */
    long	dataFormat;	       	/* (int) format specifier */
    float	samplingRate;		/* of original sample */
    long	channels;		/* (int) mono/stereo etc */
    long 	frameSize;		/* size of FFT frames (2^n) */
    long	frameIncr;		/* # new samples each frame */
    long	frameBsize;		/* bytes in each file frame */
    long	frameFormat;		/* (int) how words are org'd in frms */
    float	minFreq;		/* freq in Hz of lowest bin (exists) */
    float	maxFreq;		/* freq in Hz of highest (or next) */
    long	freqFormat;		/* (int) flag for log/lin frq */
    char	info[PVDFLTBYTS];	/* extendable byte area */
    } PVSTRUCT;

#define PV_UNK_LEN	-1L	/* flag if dataBsize unknown in hdr */

/* values for dataFormat field */
#define PVSHORT 2	/* 16 bit linear data */
#define PVLONG  4	/* 32 bit linear data */
#define PVFLOAT (4+32)  /* 32 bit float data */
#define PVDOUBLE (8+32) /* 64 bit float data */

/* values for frameFormat field */
#define PVMAG	1	/* magnitude only */
#define PVPHASE 2	/* phase only (!) */
#define PVPOLAR 3	/* mag, phase pairs */
#define PVREAL  4       /* real only */
#define PVIMAG  5       /* imaginary only */
#define PVRECT  6       /* real, imag pairs */
#define PVPVOC  7	/* weirdo mag, phi-dot format for phase vocoder */
#define PVCQ	32	/* ORed with previous to indicate one frame per 8ve */

/* values for freqFormat field */
#define PVLIN	1	/* linearly spaced frequency bins */
#define PVEXP   2	/* exponentially spaced frequency bins */ 

/* Some handy typedefs (one anyway) */
typedef struct {
    float mag, pha;
    } cpxpolar;



Received: from shaun.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa07728;
          7 May 99 19:20 BST
Received: from [144.173.6.14] (helo=exeter.ac.uk)
	by shaun.maths.bath.ac.uk with esmtp (Exim 2.12 #1)
	id 10fpEd-00010c-00
	for jpff@maths.bath.ac.uk; Fri, 7 May 1999 19:20:31 +0100
Received: from noether [144.173.8.10] by hermes via SMTP (TAA17562); Fri, 7 May 1999 19:18:13 +0100 (BST)
Received: from exeter.ac.uk by maths.ex.ac.uk; Fri, 7 May 1999 19:17:56 +0100
Received: from mailout.access.ch [195.112.71.160] by hermes via ESMTP (TAA05453); Fri, 7 May 1999 19:17:55 +0100 (BST)
Received: from [195.112.68.220] (gatezh2-92.access.ch [195.112.68.220])
	by mailout.access.ch (8.8.7/8.8.7) with ESMTP id UAA01360
	for ; Fri, 7 May 1999 20:17:55 +0200
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
X-Sender: gberger@pop.access.ch (Unverified)
Message-Id: 
Date: Fri, 7 May 1999 20:17:51 +0200
To: Csound list 
From: Gary Berger 
Subject: Call for works
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

Call for works for the concert season of 1999/2000

The Swiss Center for Computer Music (SCCM) requests submission of musical works
for tape, solo instrument and tape and solo instrument combined with live
electronics.

Please send DATs or CDs of your electroacoustic music
together with some biographical informations and a programe note to the
address below. Pieces with a maximum duration of 10 minutes are prefered.
If you would like to send a selection of your work, please feel free to do so.
Works for video may also be considered.

All works not selected for the concerts will be saved in the SCCM-archive
and possibly considered for future events.


Deadline: Please submit your compositions until July 1st, 1999.


Thank you for your participation. With kind regards

The Swiss Center for Computer Music



Send your compositions and requests for additional information to:

Gary Berger
Swiss Center for Computer Music
Elisabethenstrasse 3
8004 Zurich
Switzerland
E-mail: gberger@computermusic.ch
http://www.computermusic.ch


Received: from shaun.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa07804;
          7 May 99 19:47 BST
Received: from [144.173.6.14] (helo=exeter.ac.uk)
	by shaun.maths.bath.ac.uk with esmtp (Exim 2.12 #1)
	id 10fpec-00011l-00
	for jpff@maths.bath.ac.uk; Fri, 7 May 1999 19:47:22 +0100
Received: from noether [144.173.8.10] by hermes via SMTP (TAA14372); Fri, 7 May 1999 19:44:47 +0100 (BST)
Received: from exeter.ac.uk by maths.ex.ac.uk; Fri, 7 May 1999 19:44:36 +0100
Received: from root@renoir.op.net [209.152.193.4] by hermes via ESMTP (TAA06178); Fri, 7 May 1999 19:44:34 +0100 (BST)
Received: from op.net (d-bm2-07.ppp.op.net [209.152.194.39]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id OAA10132 for ; Fri, 7 May 1999 14:44:28 -0400 (EDT)
Received: (from pbd@localhost) by op.net ($Revision: 1.2 $) id OAA01865; Fri, 7 May 1999 14:42:03 -0400
Date: Fri, 7 May 1999 14:42:03 -0400
Message-Id: <199905071842.OAA01865@op.net>
From: Paul Barton-Davis 
To: csound@maths.ex.ac.uk
Subject: enveloping with function tables
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

am i missing something, or is there no standalone opcode similar to
tableseg, that reads a function table and generations a krate output
to be used in a fashion similar to linseg ? 

i just added the functionality of "spliner" to quasimodo, allowing me
to draw function tables, either as splines or line segments, and i want
to use this to setup complex sound envelopes. tablei doesn't seem
right, because it doesn't interpolate across time.

perhaps i'm just not seeing the right opcode ...

--p


Received: from wallace.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa08040;
          7 May 99 22:33 BST
Received: from [144.173.6.14] (helo=exeter.ac.uk)
	by wallace.maths.bath.ac.uk with esmtp (Exim 2.12 #1)
	id 10fsFe-0001PS-00
	for jpff@maths.bath.ac.uk; Fri, 7 May 1999 22:33:46 +0100
Received: from noether [144.173.8.10] by hermes via SMTP (WAA03063); Fri, 7 May 1999 22:31:20 +0100 (BST)
Received: from exeter.ac.uk by maths.ex.ac.uk; Fri, 7 May 1999 22:31:08 +0100
Received: from root@renoir.op.net [209.152.193.4] by hermes via ESMTP (WAA17498); Fri, 7 May 1999 22:31:06 +0100 (BST)
Received: from someip.ppp.op.net (d-bm2-19.ppp.op.net [209.152.194.57]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id RAA27639 for ; Fri, 7 May 1999 17:31:04 -0400 (EDT)
Message-Id: <199905072131.RAA27639@renoir.op.net>
To: csound@maths.ex.ac.uk
Subject: Re: enveloping with function tables 
In-reply-to: Your message of "Fri, 07 May 1999 14:42:03 EDT."
             <199905071842.OAA01865@op.net> 
Date: Fri, 07 May 1999 17:28:41 -0400
From: Paul Barton-Davis 
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

In message <199905071842.OAA01865@op.net>you write:
>am i missing something, or is there no standalone opcode similar to
>tableseg, that reads a function table and generations a krate output
>to be used in a fashion similar to linseg ? 
>
>perhaps i'm just not seeing the right opcode ...

ah, it seems that oscil1 is the right answer ...

--p


Received: from shaun.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa08227;
          8 May 99 0:28 BST
Received: from [144.173.6.14] (helo=exeter.ac.uk)
	by shaun.maths.bath.ac.uk with esmtp (Exim 2.12 #1)
	id 10fu33-00015g-00
	for jpff@maths.bath.ac.uk; Sat, 8 May 1999 00:28:53 +0100
Received: from noether [144.173.8.10] by hermes via SMTP (AAA17860); Sat, 8 May 1999 00:26:49 +0100 (BST)
Received: from exeter.ac.uk by maths.ex.ac.uk; Sat, 8 May 1999 00:26:38 +0100
Received: from howl.werewolf.net [12.23.152.10] by hermes via ESMTP (AAA13119); Sat, 8 May 1999 00:26:37 +0100 (BST)
Received: from default (dial33.werewolf.net [12.23.153.33])
	by howl.werewolf.net (8.9.0/8.9.0) with SMTP id SAA10078;
	Fri, 7 May 1999 18:17:14 -0500 (CDT)
Message-ID: <000e01be98e2$0bb51440$2199170c@default>
From: Hans Mikelson 
To: Paul Barton-Davis , csound@maths.ex.ac.uk
MMDF-Warning:  Parse error in original version of preceding line at UK.AC.Bath.maths.omphalos
Subject: Re: enveloping with function tables
Date: Fri, 7 May 1999 18:33:42 -0500
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

>am i missing something, or is there no standalone opcode similar to
>tableseg, that reads a function table and generations a krate output
>to be used in a fashion similar to linseg ? 


I think this is usually done using oscil with frequency set to 1/p3.

Hans Mikelson



Received: from wallace.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa08244;
          8 May 99 0:34 BST
Received: from [144.173.6.14] (helo=exeter.ac.uk)
	by wallace.maths.bath.ac.uk with esmtp (Exim 2.12 #1)
	id 10fu8l-0001Qj-00
	for jpff@maths.bath.ac.uk; Sat, 8 May 1999 00:34:47 +0100
Received: from noether [144.173.8.10] by hermes via SMTP (AAA13138); Sat, 8 May 1999 00:32:42 +0100 (BST)
Received: from exeter.ac.uk by maths.ex.ac.uk; Sat, 8 May 1999 00:32:31 +0100
Received: from out5.ibm.net [165.87.194.243] by hermes via ESMTP (AAA03923); Sat, 8 May 1999 00:32:30 +0100 (BST)
Received: from ibm.net (slip-32-101-208-228.dc.us.ibm.net [32.101.208.228]) by out5.ibm.net (8.8.5/8.6.9) with ESMTP id XAA81330 for ; Fri, 7 May 1999 23:32:29 GMT
Message-ID: <37337921.E890B892@ibm.net>
Date: Fri, 07 May 1999 19:37:05 -0400
From: "Job M. van Zuijlen" 
Reply-To: zuijlen@ibm.net
Organization: electona
X-Mailer: Mozilla 4.5 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
To: The CSound mailinglist 
Subject: Re: (OT!) Bandpass
References: 
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

One approach you may want to investigate is the so-called "gyrator",
which is an active circuit that simulates an inductor.  I built one, hm,
maybe 30 years ago, but I would have to look if I can find the circuit
diagram somewhere.  It used standard transistors, resistors and
condensers.  A nice feature of the gyrator is that it is possible to
achieve a very narrow bandwidth (high Q) without oscillation.  Nice for
all kinds of bell sounds.  It is tunable.  I found the following
definition of gyrator:

gyrator filters
===============
Term used to describe a class of active filters using gyrator 	networks.
Gyrator is the name given for RC networks that mimic inductors. A
gyrator is a form of artificial inductor where an RC filter synthesizes
inductive characteristics. Used to replace real inductors in filter
design. 

If I find the circuit and you still need it I can probably scan it in
and e-mail it to you.
Hope this helps.

Job van Zuijlen

Anders Andersson wrote:
> 
> Hello!
> 
> I'm quite a newbie with electronics, but I still would like to try some
> things out..
> 
> For a project I need a *very* narrow BP-filter (fixed frequency, but still
> adjustable so that I could have several modules with different frequency).
> It does not have to be "noisefree".
> 
> Is it possible to construct in many ways, or are there some general rule you
> always use when building BP-filters?
> 
> What would be the best way in this case?
> (I want to know what things I should read moe about, and what I can skip)
> 
> // Anders