| What I have used is CoolEdit, which allows you to read in a text file
with numbers. It will ask you to specify a sample rate, etc. and then
load it as a soundfile. You can then write that to disk as a .WAV or
.AIFF file.
CoolEdit is available as shareware at www.syntrillium.com and is a very
useful utility.
Job van Zuijlen
Mark Polishook wrote:
>
> f1 0 512 -1 "voss" 0 4 0
>
> and the file, called "voss," holds 512 values. But when using this snippet,
> Csound complains that the table does not have a header:
>
> Is there a way to bring this table into Csound?
>
> Thanks,
>
> -mp
Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa22925;
25 Aug 98 15:44 BST
Received: from mercury.bath.ac.uk by stork.maths.Bath.AC.UK id aa14841;
25 Aug 98 15:43 BST
Received: (qmail 26598 invoked from network); 25 Aug 1998 14:43:54 -0000
Received: from hermes.ex.ac.uk (HELO exeter.ac.uk) (144.173.6.14)
by mercury.bath.ac.uk with SMTP; 25 Aug 1998 14:43:54 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (PAA25363); Tue, 25 Aug 1998 15:39:32 +0100 (BST)
Received: from exeter.ac.uk by maths.ex.ac.uk; Tue, 25 Aug 1998 15:39:20 +0100
Received: from exim@wallace.maths.bath.ac.uk [138.38.100.104] by hermes via ESMTP (PAA25837); Tue, 25 Aug 1998 15:39:19 +0100 (BST)
Received: from [138.38.99.25] (helo=maths.Bath.AC.UK ident=mmdf)
by wallace.maths.bath.ac.uk with smtp (Exim 1.92 #2)
for csound@maths.ex.ac.uk
id 0zBKFk-0001z5-00; Tue, 25 Aug 1998 15:39:20 +0100
Date: Tue, 25 Aug 98 15:39:25 BST
From: jpff@maths.bath.ac.uk
Subject: Re: midifile evaluation problem
To: csound@maths.ex.ac.uk
Message-Id:
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk
Message written at 25 Aug 1998 08:48:08 -0400
--- Copy of mail to nicb@axnet.it ---
I have made those changes in my sources as well.
==John ffitch
Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa23005;
25 Aug 98 16:01 BST
Received: from pat.bath.ac.uk by stork.maths.Bath.AC.UK id aa16825;
25 Aug 98 16:01 BST
Received: (qmail 23350 invoked from network); 25 Aug 1998 15:01:42 -0000
Received: from hermes.ex.ac.uk (HELO exeter.ac.uk) (144.173.6.14)
by pat.bath.ac.uk with SMTP; 25 Aug 1998 15:01:42 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (PAA03840); Tue, 25 Aug 1998 15:51:47 +0100 (BST)
Received: from exeter.ac.uk by maths.ex.ac.uk; Tue, 25 Aug 1998 15:51:35 +0100
Received: from exim@wallace.maths.bath.ac.uk [138.38.100.104] by hermes via ESMTP (PAA22949); Tue, 25 Aug 1998 15:51:34 +0100 (BST)
Received: from [138.38.99.25] (helo=maths.Bath.AC.UK ident=mmdf)
by wallace.maths.bath.ac.uk with smtp (Exim 1.92 #2)
id 0zBKRe-000201-00; Tue, 25 Aug 1998 15:51:38 +0100
Date: Tue, 25 Aug 98 15:51:44 BST
From: J P Fitch
To: jose halac
cc: csound@maths.ex.ac.uk
Subject: Re: winsound perf
Message-Id:
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk
I syuggest that you use a text editor rather that a word processor; that
could be your problem.
Try checking the "write log file" and then send me teh file winsound.log
which might haelp me understand the proble. But do it today as I am spending a
all Wednesday on a plane....
==John
Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa23350;
25 Aug 98 18:59 BST
Received: from pat.bath.ac.uk by stork.maths.Bath.AC.UK id aa05718;
25 Aug 98 18:59 BST
Received: (qmail 7186 invoked from network); 25 Aug 1998 17:59:23 -0000
Received: from hermes.ex.ac.uk (HELO exeter.ac.uk) (144.173.6.14)
by pat.bath.ac.uk with SMTP; 25 Aug 1998 17:59:23 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (SAA24072); Tue, 25 Aug 1998 18:55:18 +0100 (BST)
Received: from exeter.ac.uk by maths.ex.ac.uk; Tue, 25 Aug 1998 18:55:06 +0100
Received: from ella.mills.edu [144.91.3.20] by hermes via SMTP (SAA17140); Tue, 25 Aug 1998 18:54:39 +0100 (BST)
Received: (qmail 18381 invoked by uid 1964); 25 Aug 1998 10:53:56 -0700
Date: Tue, 25 Aug 1998 10:53:56 -0700 (PDT)
From: "Matt J. Ingalls"
To: polishoo@cwu.edu
cc: csound@maths.ex.ac.uk
Subject: Re: PMAX
In-Reply-To: <35E2607A.14C03EC7@televar.com>
Message-ID:
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk
> I'm assuming that the table should look like
>
> f1 0 512 -1 "voss" 0 4 0
this was an old bug i thought was fixed -- what version are you
running?
i am also curious how you are creating "voss" file..
(a workaround is use soundin for 'voss' and just output to a new file with
a header)
-matt
Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa23716;
25 Aug 98 20:39 BST
Received: from pat.bath.ac.uk by stork.maths.Bath.AC.UK id aa16232;
25 Aug 98 20:38 BST
Received: (qmail 12147 invoked from network); 25 Aug 1998 19:38:56 -0000
Received: from hermes.ex.ac.uk (HELO exeter.ac.uk) (144.173.6.14)
by pat.bath.ac.uk with SMTP; 25 Aug 1998 19:38:56 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (UAA23268); Tue, 25 Aug 1998 20:36:11 +0100 (BST)
Received: from exeter.ac.uk by maths.ex.ac.uk; Tue, 25 Aug 1998 20:36:00 +0100
Received: from exim@wallace.maths.bath.ac.uk [138.38.100.104] by hermes via ESMTP (UAA19510); Tue, 25 Aug 1998 20:36:00 +0100 (BST)
Received: from [138.38.99.25] (helo=maths.Bath.AC.UK ident=mmdf)
by wallace.maths.bath.ac.uk with smtp (Exim 1.92 #2)
for csound@maths.ex.ac.uk
id 0zBOsu-0002MJ-00; Tue, 25 Aug 1998 20:36:04 +0100
Date: Tue, 25 Aug 98 20:36:09 BST
From: jpff@maths.bath.ac.uk
Subject: Re: winsound perf
To: csound@maths.ex.ac.uk
Message-Id:
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk
Message written at 25 Aug 1998 11:41:46 -0400
A little-known feature is that if you double-click in the background of
the dialog box it deletes the default editor. At least it used to but
as I use emacs and the csound editing modes I have not tested this recently!
==John ffitch
Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa23722;
25 Aug 98 20:39 BST
Received: from pat.bath.ac.uk by stork.maths.Bath.AC.UK id aa16239;
25 Aug 98 20:38 BST
Received: (qmail 12150 invoked from network); 25 Aug 1998 19:39:00 -0000
Received: from hermes.ex.ac.uk (HELO exeter.ac.uk) (144.173.6.14)
by pat.bath.ac.uk with SMTP; 25 Aug 1998 19:39:00 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (UAA11867); Tue, 25 Aug 1998 20:36:32 +0100 (BST)
Received: from exeter.ac.uk by maths.ex.ac.uk; Tue, 25 Aug 1998 20:36:21 +0100
Received: from exim@wallace.maths.bath.ac.uk [138.38.100.104] by hermes via ESMTP (UAA03062); Tue, 25 Aug 1998 20:36:21 +0100 (BST)
Received: from [138.38.99.25] (helo=maths.Bath.AC.UK ident=mmdf)
by wallace.maths.bath.ac.uk with smtp (Exim 1.92 #2)
for csound@maths.ex.ac.uk
id 0zBOtF-0002MR-00; Tue, 25 Aug 1998 20:36:25 +0100
Date: Tue, 25 Aug 98 20:36:31 BST
From: jpff@maths.bath.ac.uk
Subject: Version 3.485 for Windows
To: csound@maths.ex.ac.uk
Message-Id:
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk
Message written at 25 Aug 1998 14:50:13 -0400
As i will be incommunicado for a while, and I have made so many
changes, I am about to transfer version 3.485 to pub/dream in binary
and ZIPped source.
There are a great deal of changes; mainly bug fixes, but the one
significant change is that the spectrum opcode is now working, and it
replaces the earlier nocdft opcode. The arguments for specptrk are
now as in the manual, strset is fully functional. Also interpretation
of \ character has changed again -- still not happy with this. Some
changes in MIDI (like program change commands no longer crash things),
and so on. I have not finished the user interface part of MIDI so you
will have to wait or ignore it (or use the command line version)
Matt has most of this code in his beta version, so while it might look
as if we are out of step, we are closer than we have been for ages.
There will be a gap before any bug fixes as I will be on holiday until
10 September, and I am not taking my comuputer or taking net access.
So I hope this version works as well for you as it does for me!
==John ffitch
Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa24901;
26 Aug 98 7:35 BST
Received: from pat.bath.ac.uk by stork.maths.Bath.AC.UK id aa25643;
26 Aug 98 7:35 BST
Received: (qmail 2189 invoked from network); 26 Aug 1998 06:35:18 -0000
Received: from ax-nicb.axnet.it (root@194.184.60.149)
by pat.bath.ac.uk with SMTP; 26 Aug 1998 06:35:18 -0000
Received: (from nicb@localhost)
by ax-nicb.axnet.it (8.8.8/8.8.8) id IAA12706;
Wed, 26 Aug 1998 08:33:32 +0200
Date: Wed, 26 Aug 1998 08:33:30 +0200 (MET DST)
From: Nicola Bernardini
To: James Croson , jpff@maths.bath.ac.uk
cc: csound@maths.ex.ac.uk
Subject: Re: several messages
In-Reply-To:
Message-ID:
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
On Mon, 24 Aug 1998, James Croson wrote:
> Nicola,
> re:
> ! tickspersec = Qticks * 2;
>
> I just happened to have looked at this on Friday. I
> do not know why the tempo is halved in cs3484, but
> the above line is the same as cs347 and tempo was
> fine in that version.
On Tue, 25 Aug 1998 jpff@maths.bath.ac.uk wrote:
> Message written at 25 Aug 1998 08:48:08 -0400
> --- Copy of mail to nicb@axnet.it ---
>
> I have made those changes in my sources as well.
> ==John ffitch
Thank you John to have incorporated those changes. Unfortunately, James
is right: the Qticks * 2 is correct. I was mislead by the fact that I
had a midifile which was rendered by midi2cs at 60 bpm while it was
supposed to be at 120 bpm (a bug in midi2cs???). Also Dave Phillips reported
that without the Qticks * 2, the midifile was running at half-speed.
So, I ended up putting the Qticks * 2 back... Sorry about that :)
Nicola
------------------------------------------------------------------------
Nicola Bernardini
E-mail: nicb@axnet.it
Re graphics: A picture is worth 10K words -- but only those to describe
the picture. Hardly any sets of 10K words can be adequately described
with pictures.
Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa24911;
26 Aug 98 7:40 BST
Received: from mercury.bath.ac.uk by stork.maths.Bath.AC.UK id aa26137;
26 Aug 98 7:40 BST
Received: (qmail 4934 invoked from network); 26 Aug 1998 06:40:22 -0000
Received: from hermes.ex.ac.uk (HELO exeter.ac.uk) (144.173.6.14)
by mercury.bath.ac.uk with SMTP; 26 Aug 1998 06:40:22 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (HAA18029); Wed, 26 Aug 1998 07:35:51 +0100 (BST)
Received: from exeter.ac.uk by maths.ex.ac.uk; Wed, 26 Aug 1998 07:35:40 +0100
Received: from root@ax-nicb.axnet.it [194.184.60.149] by hermes via ESMTP (HAA01459); Wed, 26 Aug 1998 07:35:36 +0100 (BST)
Received: (from nicb@localhost)
by ax-nicb.axnet.it (8.8.8/8.8.8) id IAA12706;
Wed, 26 Aug 1998 08:33:32 +0200
Date: Wed, 26 Aug 1998 08:33:30 +0200 (MET DST)
From: Nicola Bernardini
To: James Croson , jpff@maths.bath.ac.uk
cc: csound@maths.ex.ac.uk
Subject: Re: several messages
In-Reply-To:
Message-ID:
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk
On Mon, 24 Aug 1998, James Croson wrote:
> Nicola,
> re:
> ! tickspersec = Qticks * 2;
>
> I just happened to have looked at this on Friday. I
> do not know why the tempo is halved in cs3484, but
> the above line is the same as cs347 and tempo was
> fine in that version.
On Tue, 25 Aug 1998 jpff@maths.bath.ac.uk wrote:
> Message written at 25 Aug 1998 08:48:08 -0400
> --- Copy of mail to nicb@axnet.it ---
>
> I have made those changes in my sources as well.
> ==John ffitch
Thank you John to have incorporated those changes. Unfortunately, James
is right: the Qticks * 2 is correct. I was mislead by the fact that I
had a midifile which was rendered by midi2cs at 60 bpm while it was
supposed to be at 120 bpm (a bug in midi2cs???). Also Dave Phillips reported
that without the Qticks * 2, the midifile was running at half-speed.
So, I ended up putting the Qticks * 2 back... Sorry about that :)
Nicola
------------------------------------------------------------------------
Nicola Bernardini
E-mail: nicb@axnet.it
Re graphics: A picture is worth 10K words -- but only those to describe
the picture. Hardly any sets of 10K words can be adequately described
with pictures.
Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa24974;
26 Aug 98 8:32 BST
Received: from pat.bath.ac.uk by stork.maths.Bath.AC.UK id aa22008;
26 Aug 98 8:32 BST
Received: (qmail 4014 invoked from network); 26 Aug 1998 07:32:35 -0000
Received: from hermes.ex.ac.uk (HELO exeter.ac.uk) (144.173.6.14)
by pat.bath.ac.uk with SMTP; 26 Aug 1998 07:32:35 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (IAA24958); Wed, 26 Aug 1998 08:29:54 +0100 (BST)
Received: from exeter.ac.uk by maths.ex.ac.uk; Wed, 26 Aug 1998 08:29:43 +0100
Received: from root@concord.televar.com [208.8.131.83] by hermes via ESMTP (IAA20758); Wed, 26 Aug 1998 08:29:41 +0100 (BST)
Received: from televar.com (eburguser017.televar.com [208.8.152.19])
by concord.televar.com (8.8.8/8.8.8) with ESMTP id AAA01267
for ; Wed, 26 Aug 1998 00:29:39 -0700 (PDT)
Message-ID: <35E3C88A.BF795225@televar.com>
Date: Wed, 26 Aug 1998 00:34:19 -0800
From: Mark Polishook
Reply-To: polishoo@cwu.edu
X-Mailer: Mozilla 4.03 (Macintosh; I; PPC)
MIME-Version: 1.0
To: csound@maths.ex.ac.uk
Subject: Re: PMAX
References:
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk
Matt,
Matt J. Ingalls wrote:
>
> > I'm assuming that the table should look like
> >
> > f1 0 512 -1 "voss" 0 4 0
>
> this was an old bug i thought was fixed -- what version are you
> running?
I tried, actually, to run p7 in the snippet above with values 0 - 6, all
without success.
(1) Csound - 3.1b0 (the most recent, i think...?)
(2) perf - 3.47 - the perf that downloaded with Cecelia
>
> i am also curious how you are creating "voss" file..
see below - it's a translation to tcl/tk from the c++ in Dodge's book. (I
added another procedure to write the output to a file).
> (a workaround is use soundin for 'voss' and just output to a new file with
> a header)
Interesting...I'll give this a try.
Mark
*********************
proc Voss { npnts } {
set nbits 1
set np 1
set nr $npnts
set nr [expr $nr / 2 ]
while { $nr > 1 } {
incr nbits
set np [expr 2 * $np]
set nr [expr $nr / 2 ]
}
for { set i 0 } { $i < $nbits } { incr i } {
set rg($i) [expr double(rand()*1)]
}
for { set i 0 } { $i < $npnts } { incr i } {
set threshold $np
set ng $nbits
while { [expr $i % $threshold] != 0 } {
incr ng -1
set threshold [expr $threshold / 2]
}
set sum 0
for { set j 0 } { $j < $nbits } { incr j } {
if { $j < $ng } {
set rg($j) [expr double(rand()*1)]
}
set sum [expr $sum + $rg($j)]
}
lappend output [expr $sum / $nbits]
}
return $output
} |