Csound Csound-dev Csound-tekno Search About

primenumbers

Date1999-07-08 19:53
FromAnders Andersson
Subjectprimenumbers
Hi! Wouldn't it be nice to have a value-converter that delivers the closest
prime-number to the given input?

ip = prime(2300)
ip = 2297

// Pipe



Received: from wallace.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa09654;
          9 Jul 99 18:55 BST
Received: from [144.173.6.14] (helo=exeter.ac.uk)
	by wallace.maths.bath.ac.uk with esmtp (Exim 2.12 #1)
	id 112erY-0004cf-00
	for jpff@maths.bath.ac.uk; Fri, 9 Jul 1999 18:55:04 +0100
Received: from noether [144.173.8.10] by hermes via SMTP (SAA03675); Fri, 9 Jul 1999 18:53:24 +0100 (BST)
Received: from exeter.ac.uk by maths.ex.ac.uk; Fri, 9 Jul 1999 18:53:13 +0100
Received: from exim@wallace.maths.bath.ac.uk [138.38.100.104] by hermes via ESMTP (SAA01673); Fri, 9 Jul 1999 18:53:12 +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 112eox-0004ca-00; Fri, 9 Jul 1999 18:52:23 +0100
Date:     Fri, 9 Jul 99 18:53:08 BST
From: J P Fitch 
To: Anders Andersson 
cc: The CSound mailinglist 
Subject:  Re:  primenumbers
Message-Id: 
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

Amongst the problems are 
1) I can only think of a slow algorithm
2) Csound arguments are floating point, and so you could ask for primes
   beyond the precision of the question

On teh other hand.... one could cheat.
==J


Received: from shaun.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa09675;
          9 Jul 99 19:04 BST
Received: from [144.173.6.14] (helo=exeter.ac.uk)
	by shaun.maths.bath.ac.uk with esmtp (Exim 2.12 #1)
	id 112f0b-00034w-00
	for jpff@maths.bath.ac.uk; Fri, 9 Jul 1999 19:04:26 +0100
Received: from noether [144.173.8.10] by hermes via SMTP (TAA08603); Fri, 9 Jul 1999 19:02:17 +0100 (BST)
Received: from exeter.ac.uk by maths.ex.ac.uk; Fri, 9 Jul 1999 19:02:06 +0100
Received: from angel.algonet.se [194.213.74.112] by hermes via SMTP (TAA09927); Fri, 9 Jul 1999 19:02:05 +0100 (BST)
Received: (qmail 27221 invoked from network); 9 Jul 1999 20:02:04 +0200
Received: from du12-93.ppp.algonet.se (HELO algonet.se) (195.100.93.12)
  by angel.algonet.se with SMTP; 9 Jul 1999 20:02:04 +0200
From: Anders Andersson 
To: The CSound mailinglist 
Date: Fri, 09 Jul 1999 20:02:51 +0200
Message-ID: 
In-Reply-To: 
X-Mailer: YAM 2.0Preview7 [020] - Amiga Mailer by Marcel Beck - http://www.yam.ch
Subject: Re:  primenumbers
MIME-Version: 1.0
Content-Type: text/plain
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

> Amongst the problems are 
> 1) I can only think of a slow algorithm

Me to, but for I-time it wouldn't matter anyway,
and it's up to the user to use it.. =D


> 2) Csound arguments are floating point, and so you could ask for primes
>   beyond the precision of the question

Well, it's only to clamp the input between 1 and 256^sizeof(int)?


The thing is that I had to write a simple program myself to
do this, and that was very easy, and on my 68030/50 it hardly
took any time (well, for numbers in a reasonable range!)



> On teh other hand.... one could cheat.

 Hehe! My favourite subject! =)

I have a source here if someone is interested,
but I'm not very skilled in math, so my implementation
use the brute force method of testing the modulo of every
number... Not very fast but it works.. =)


Another question regarding primes:
If one have an integer X..
Can you be sure that a prime exists between X and 2X?
My intuition tells me this, but you can't know..


// Anders



Received: from wallace.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa09707;
          9 Jul 99 19:17 BST
Received: from [144.173.6.14] (helo=exeter.ac.uk)
	by wallace.maths.bath.ac.uk with esmtp (Exim 2.12 #1)
	id 112fCj-0004d6-00
	for jpff@maths.bath.ac.uk; Fri, 9 Jul 1999 19:16:57 +0100
Received: from noether [144.173.8.10] by hermes via SMTP (TAA06074); Fri, 9 Jul 1999 19:15:33 +0100 (BST)
Received: from exeter.ac.uk by maths.ex.ac.uk; Fri, 9 Jul 1999 19:15:22 +0100
Received: from neptune.lyrick.com [38.227.100.46] by hermes via ESMTP (TAA14380); Fri, 9 Jul 1999 19:15:21 +0100 (BST)
Received: by neptune.lyrick.com with Internet Mail Service (5.5.2448.0)
	id <3LBFJ73Y>; Fri, 9 Jul 1999 13:15:20 -0500
Message-ID: <283AABB8FD0DD21187C200A0C995F5DEECB015@neptune.lyrick.com>
From: David Boothe 
To: 'richard bowers' 
Cc: "'csound@maths.ex.ac.uk'" 
Subject: RE: Audio file lengths
Date: Fri, 9 Jul 1999 13:15:10 -0500 
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2448.0)
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_001_01BECA37.00C9DC56"
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01BECA37.00C9DC56
Content-Type: text/plain;
	charset="iso-8859-1"

1. Use a GEN01 table with power-of-two (+1 if you want), that you know is
larger than the file. This will take some experimentation if you have no way
of knowing that externally (such as Cool Edit or equivalent).

2. Use nsamp to measure the length of the soundfile. nsamp should not count
empty table points after the  end of the sound file.

3. Divide the number returned by nsamp with the original sample rate of the
file to get the original length.

-David.

> -----Original Message-----
> From: richard bowers [mailto:richardbowers@simulacrum.freeserve.co.uk]
> Sent: Friday, July 09, 1999 3:45 AM
> To: csound csound
> Subject: Audio file lengths
> 
> 
> Can anyone offer me a solution to obtaining the duration (if 
> possible) or
> file size of an audio file stored on disk from within a 
> instrument? I feel
> it would be useful to know the duration of a file to make 
> better use of -
> and prevent errors when using - the skiptime on the 
> soundin/diskin ugs.
> 
> Thanks,
> Richard Bowers.
> 

------_=_NextPart_001_01BECA37.00C9DC56
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable






RE: Audio file lengths



1. Use a GEN01 table with power-of-two (+1 if you = want), that you know is larger than the file. This will take some = experimentation if you have no way of knowing that externally (such as = Cool Edit or equivalent).

2. Use nsamp to measure the length of the soundfile. = nsamp should not count empty table points after the  end of the = sound file.

3. Divide the number returned by nsamp with the = original sample rate of the file to get the original length.

-David.

> -----Original Message-----
> From: richard bowers [mailto:richardb= owers@simulacrum.freeserve.co.uk]
> Sent: Friday, July 09, 1999 3:45 AM
> To: csound csound
> Subject: Audio file lengths
>
>
> Can anyone offer me a solution to obtaining the = duration (if
> possible) or
> file size of an audio file stored on disk from = within a
> instrument? I feel
> it would be useful to know the duration of a = file to make
> better use of -
> and prevent errors when using - the skiptime on = the
> soundin/diskin ugs.
>
> Thanks,
> Richard Bowers.
>

------_=_NextPart_001_01BECA37.00C9DC56--   Received: from shaun.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa09789; 9 Jul 99 19:49 BST Received: from [144.173.6.14] (helo=exeter.ac.uk) by shaun.maths.bath.ac.uk with esmtp (Exim 2.12 #1) id 112fiR-00035x-00 for jpff@maths.bath.ac.uk; Fri, 9 Jul 1999 19:49:43 +0100 Received: from noether [144.173.8.10] by hermes via SMTP (TAA12110); Fri, 9 Jul 1999 19:47:01 +0100 (BST) Received: from exeter.ac.uk by maths.ex.ac.uk; Fri, 9 Jul 1999 19:46:50 +0100 Received: from neptune.lyrick.com [38.227.100.46] by hermes via ESMTP (TAA00537); Fri, 9 Jul 1999 19:46:49 +0100 (BST) Received: by neptune.lyrick.com with Internet Mail Service (5.5.2448.0) id <3LBFJ7SB>; Fri, 9 Jul 1999 13:46:48 -0500 Message-ID: <283AABB8FD0DD21187C200A0C995F5DEECB016@neptune.lyrick.com> From: David Boothe To: 'vanDongen/Gilcher' Cc: "'csound@maths.ex.ac.uk'" Subject: RE: new user and a few problems Date: Fri, 9 Jul 1999 13:46:44 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2448.0) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01BECA3B.664AB6AA" Sender: owner-csound-outgoing@maths.ex.ac.uk Precedence: bulk This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01BECA3B.664AB6AA Content-Type: text/plain; charset="iso-8859-1" I think you may be using an old version of the manual. You can go to http://www.geocities.com/~csoundmanual and download the manual in the format of your choice. Specifically: >f.i. inumber ilinrand 100 is not recognized. ilinrand is now simply linrand and has been for some time. >2)wgpluck2 always results in the >message that there are too few >parameters According to the manual there are 5 arguments to wgpluck2. This agrees with the messages from the -z1 flag. >3)doscil isn't recognized I think this was never implemented. It's not in the current documentation. It's difficult to tell from your description what is happening with nlfilt. Posting the relevant sections of the orc and sco would help. You must be careful with global variables. Make sure it is established before attempting to write to it. And that it is available for reading at the appropriate time. -David. ------_=_NextPart_001_01BECA3B.664AB6AA Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable RE: new user and a few problems

I think you may be using an old version of the = manual. You can go to
   http://www.geocities.com/~csoundmanual
and download the manual in the format of your = choice.

Specifically:
>f.i. inumber ilinrand 100 is not = recognized.
ilinrand is now simply linrand and has been for some = time.

>2)wgpluck2 always results in the
>message that there are too few
>parameters
According to the manual there are 5 arguments to = wgpluck2. This agrees with the messages from the -z1 flag.

>3)doscil isn't recognized
I think this was never implemented. It's not in the = current documentation.

It's difficult to tell from your description what is = happening with nlfilt. Posting the relevant sections of the orc and sco = would help. You must be careful with global variables. Make sure it is = established before attempting to write to it. And that it is available = for reading at the appropriate time.

-David.

------_=_NextPart_001_01BECA3B.664AB6AA--   Received: from wallace.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa09818; 9 Jul 99 20:04 BST Received: from [144.173.6.14] (helo=exeter.ac.uk) by wallace.maths.bath.ac.uk with esmtp (Exim 2.12 #1) id 112fvl-0004e6-00 for jpff@maths.bath.ac.uk; Fri, 9 Jul 1999 20:03:29 +0100 Received: from noether [144.173.8.10] by hermes via SMTP (TAA09119); Fri, 9 Jul 1999 19:59:25 +0100 (BST) Received: from exeter.ac.uk by maths.ex.ac.uk; Fri, 9 Jul 1999 19:59:14 +0100 Received: from jaguars-int.cableinet.net [193.38.113.9] by hermes via SMTP (TAA02975); Fri, 9 Jul 1999 19:59:14 +0100 (BST) Received: (qmail 23024 invoked from network); 9 Jul 1999 18:54:59 -0000 Received: from unknown (HELO cableinet.co.uk) (194.117.146.51) by jaguars with SMTP; 9 Jul 1999 18:54:59 -0000 Message-ID: <378647FE.A2981360@cableinet.co.uk> Date: Fri, 09 Jul 1999 20:05:34 +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: vanDongen/Gilcher CC: csound Subject: Re: new user and a few problems References: <199907090930.LAA22558@smtp3.xs4all.nl> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-csound-outgoing@maths.ex.ac.uk Precedence: bulk Nlfilt is something I concocted some while back. The papers describing it are on the Bath site: Non-linear oscillators: http://www.bath.ac.uk/~masjpf/fractal_rev.html and (more specifically nlfilt) http://www.bath.ac.uk/~masjpf/HK_poster.html If you look up nlfilt in the helpfile documentation, and follow the 'some hints for nlfilt opcode) you will find a fairly detailed distillation of the main points in the papers. Internally, the non-linear operation is squaring, which means of course that any values larger than +- 1 are certain to overflow very quickly. Because of the constant added in some cases, even values below +- 1 will overflow sometimes. This is of course an expected feature of this sort of lon-linear algorithm! It also depends on the amplitude of the input, which, at the very least, needs to be within +- 1.0, and preferably within half that range. I cannot answer the question of bugs without looking at the code, however. I have to admit that since this was added to Csound I have not done anything further yet with nlfilt myself! Richard Dobson vanDongen/Gilcher wrote: > > Another strange effect excists when using nlfilt in an instrument where a > global a-rate variable is assigned some value (not necessarily the output > > ar nlfilt ain,ka,kb,kd,kL,kC > > When ka or kb <=0 there is no sound generated after the first (I think) > ksmps burst (there is only short tick. There is also an upper bound I > think somewhere around 5. > This effect (bug) doesn't happen when there is no ga variable present in > the instrument. > Also, I think in the manual the kL and kC values are swapped in the > examples (the results were more interesting anyway) > > I would like to hear more about how this filter works. Can anybody post a > webadress where I can find the original article mentioned in the manual. > > But csound is certainly fun to work with. > > -- Test your DAW with my Soundcard Attrition Page! http://wkweb5.cableinet.co.uk/rwd (LU: 6th July 1999) CDP: http://www.bath.ac.uk/~masjpf/CDP/CDP.htm (LU: 14th June 1999)   Received: from shaun.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa09825; 9 Jul 99 20:05 BST Received: from [144.173.6.14] (helo=exeter.ac.uk) by shaun.maths.bath.ac.uk with esmtp (Exim 2.12 #1) id 112fxw-00036K-00 for jpff@maths.bath.ac.uk; Fri, 9 Jul 1999 20:05:44 +0100 Received: from noether [144.173.8.10] by hermes via SMTP (UAA01785); Fri, 9 Jul 1999 20:03:12 +0100 (BST) Received: from exeter.ac.uk by maths.ex.ac.uk; Fri, 9 Jul 1999 20:03:00 +0100 Received: from jaguars-int.cableinet.net [193.38.113.9] by hermes via SMTP (UAA17286); Fri, 9 Jul 1999 20:03:00 +0100 (BST) Received: (qmail 23124 invoked from network); 9 Jul 1999 18:58:45 -0000 Received: from unknown (HELO cableinet.co.uk) (194.117.146.51) by jaguars with SMTP; 9 Jul 1999 18:58:45 -0000 Message-ID: <378648E1.B99F7728@cableinet.co.uk> Date: Fri, 09 Jul 1999 20:09:21 +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: Audio file lengths References: <283AABB8FD0DD21187C200A0C995F5DEECB015@neptune.lyrick.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-csound-outgoing@maths.ex.ac.uk Precedence: bulk Of course the silly thing about this is that the information is already there in the file header. An elegant solution would be to extend the soundin and diskin opcodes to return a second value. Ideally this should be optional - is such a thing feasible with the current Csound syntax? Alternatively, 'sndinfo' could become an opcode. Richard Dobson > David Boothe wrote: > > 1. Use a GEN01 table with power-of-two (+1 if you want), that you know > is larger than the file. This will take some experimentation if you > have no way of knowing that externally (such as Cool Edit or > equivalent). > > 2. Use nsamp to measure the length of the soundfile. nsamp should not > count empty table points after the end of the sound file. > > 3. Divide the number returned by nsamp with the original sample rate > of the file to get the original length. > > -David. > > > -----Original Message----- > > From: richard bowers > [mailto:richardbowers@simulacrum.freeserve.co.uk] > > Sent: Friday, July 09, 1999 3:45 AM > > To: csound csound > > Subject: Audio file lengths > > > > > > Can anyone offer me a solution to obtaining the duration (if > > possible) or > > file size of an audio file stored on disk from within a > > instrument? I feel > > it would be useful to know the duration of a file to make > > better use of - > > and prevent errors when using - the skiptime on the > > soundin/diskin ugs. > > > > Thanks, > > Richard Bowers. > > -- Test your DAW with my Soundcard Attrition Page! http://wkweb5.cableinet.co.uk/rwd (LU: 6th July 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 aa10311; 10 Jul 99 0:42 BST Received: from [144.173.6.14] (helo=exeter.ac.uk) by wallace.maths.bath.ac.uk with esmtp (Exim 2.12 #1) id 112kGn-0004iF-00 for jpff@maths.bath.ac.uk; Sat, 10 Jul 1999 00:41:29 +0100 Received: from noether [144.173.8.10] by hermes via SMTP (AAA16740); Sat, 10 Jul 1999 00:40:15 +0100 (BST) Received: from exeter.ac.uk by maths.ex.ac.uk; Sat, 10 Jul 1999 00:40:05 +0100 Received: from mail4.lig.bellsouth.net [205.152.0.32] by hermes via ESMTP (AAA10686); Sat, 10 Jul 1999 00:40:03 +0100 (BST) Received: from bellsouth.net (host-216-76-185-80.gnv.bellsouth.net [216.76.185.80]) by mail4.lig.bellsouth.net (8.8.8-spamdog/8.8.5) with ESMTP id TAA04030 for ; Fri, 9 Jul 1999 19:39:58 -0400 (EDT) Message-ID: <378650B4.1B75D882@bellsouth.net> Date: Fri, 09 Jul 1999 19:42:44 +0000 From: patrick pagano X-Mailer: Mozilla 4.5 [en] (Win98; I) X-Accept-Language: en MIME-Version: 1.0 To: "csound@maths.ex.ac.uk" Subject: Cps2pch Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-csound-outgoing@maths.ex.ac.uk Precedence: bulk Hi folks has anyone been using the Cps2 opcode? I would like to get some more info on how to apply it to JI if at all possible Thanks Pat   Received: from shaun.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa10550; 10 Jul 99 3:11 BST Received: from [144.173.6.14] (helo=exeter.ac.uk) by shaun.maths.bath.ac.uk with esmtp (Exim 2.12 #1) id 112mbc-0003BD-00 for jpff@maths.bath.ac.uk; Sat, 10 Jul 1999 03:11:08 +0100 Received: from noether [144.173.8.10] by hermes via SMTP (DAA18032); Sat, 10 Jul 1999 03:08:45 +0100 (BST) Received: from exeter.ac.uk by maths.ex.ac.uk; Sat, 10 Jul 1999 03:08:34 +0100 Received: from ella.mills.edu [144.91.3.20] by hermes via SMTP (DAA08398); Sat, 10 Jul 1999 03:08:33 +0100 (BST) Received: (qmail 1781567 invoked by uid 1964); 9 Jul 1999 19:08:11 -0700 Date: Fri, 9 Jul 1999 19:08:11 -0700 (PDT) From: "Matt J. Ingalls" To: David Boothe cc: 'richard bowers' , "'csound@maths.ex.ac.uk'" Subject: RE: Audio file lengths In-Reply-To: <283AABB8FD0DD21187C200A0C995F5DEECB015@neptune.lyrick.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-csound-outgoing@maths.ex.ac.uk Precedence: bulk > 1. Use a GEN01 table with power-of-two (+1 if you want), that you know is > 2. Use nsamp to measure the length of the soundfile. nsamp should not count this is great except for huge files you dont want to load them into a table. what i usually do is label the sound files "the old fashioned way" (geez-ive been so nostalgic lately...) soundin.x then i look up their durations in sndinfo - then i put them in a GEN02 list (in order of their soundin names) with this you can specify the soundin.x file from the score ('x' in a pfield) and inside the orc you can do a table lookup on the GEN2 index to 'x' to pull out the right duration. with all the new string capabilities, tables, and macros added the past year or so, i bet there is a way you could do something similiar but use the actual soundfile name rather than renaming everything to soundin.x.. -matt   Received: from shaun.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa10597; 10 Jul 99 3: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 112nAf-0003BM-00 for jpff@maths.bath.ac.uk; Sat, 10 Jul 1999 03:47:21 +0100 Received: from noether [144.173.8.10] by hermes via SMTP (DAA01012); Sat, 10 Jul 1999 03:44:54 +0100 (BST) Received: from exeter.ac.uk by maths.ex.ac.uk; Sat, 10 Jul 1999 03:44:44 +0100 Received: from vcn.bc.ca [207.102.64.2] by hermes via ESMTP (DAA14050); Sat, 10 Jul 1999 03:44:42 +0100 (BST) Received: from localhost (wfreno@localhost) by vcn.bc.ca (8.9.2/8.9.2) with ESMTP id TAA22779 for ; Fri, 9 Jul 1999 19:44:42 -0700 (PDT) Date: Fri, 9 Jul 1999 19:44:41 -0700 (PDT) From: Wayne Freno To: Csound List Subject: AXCsound/Visual Basic Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-csound-outgoing@maths.ex.ac.uk Precedence: bulk Does anyone have code for AXCsound and VB4? The code in the Csound Ezine (great job Hans!) is for VB5, and will not run in VB4. (I'm am a newbie to VB too Btw) Thanks! Wayne   Received: from wallace.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa11108; 10 Jul 99 7:45 BST Received: from [144.173.6.14] (helo=exeter.ac.uk) by wallace.maths.bath.ac.uk with esmtp (Exim 2.12 #1) id 112qsW-0004sB-00 for jpff@maths.bath.ac.uk; Sat, 10 Jul 1999 07:44:52 +0100 Received: from noether [144.173.8.10] by hermes via SMTP (HAA08591); Sat, 10 Jul 1999 07:43:06 +0100 (BST) Received: from exeter.ac.uk by maths.ex.ac.uk; Sat, 10 Jul 1999 07:42:55 +0100 Received: from ares.flash.net [209.30.0.41] by hermes via ESMTP (HAA08155); Sat, 10 Jul 1999 07:42:54 +0100 (BST) Received: from bigfoot.com (p237-148.atnt2.dialup.ftw1.flash.net [209.30.237.148]) by ares.flash.net (8.9.3/8.9.3) with ESMTP id BAA03429 for ; Sat, 10 Jul 1999 01:42:46 -0500 (CDT) Message-ID: <3786EB6F.D30EE69C@bigfoot.com> Date: Sat, 10 Jul 1999 01:42:55 -0500 From: pete moss Organization: pete moss GmbH X-Mailer: Mozilla 4.6 [en] (Win98; I) X-Accept-Language: en MIME-Version: 1.0 To: csound@maths.ex.ac.uk Subject: error in consound Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-csound-outgoing@maths.ex.ac.uk Precedence: bulk when i run the score below, i crash the win98 console version of csound. when i run it in gabriels direct csound, if runs fine. i have the latest version of each. here is the windows error: CSOUND caused an invalid page fault in module CSOUND.EXE at 023f:0045d78d. Registers: EAX=00000000 CS=023f EIP=0045d78d EFLGS=00010246 EBX=007d0430 SS=0247 ESP=006afd88 EBP=00475a34 ECX=ffffffff DS=0247 ESI=00000005 FS=c9c7 EDX=00006372 ES=0247 EDI=00006372 GS=0000 Bytes at CS:EIP: f2 ae f7 d1 49 3b ce 76 15 80 3c 16 3d 75 0f 56 Stack dump: 006cc8f6 007d4b88 00000002 00000000 0041574a 00475a34 0042c48f 0047bbe0 004765a8 006afde4 007d0378 00000000 007d4660 00000034 0000001a 00000002 after this error, it returns 'Process completed successfully' any pointers? :P here is the csd file: -W -d -o c:\csound\waves\matrix.wav ;-+O -m0 -d -+K0 -+X0 -b1000 sr=44100 kr=44100 ksmps=1 nchnls=1 instr 1 kint init 1 a11 phasor p6 a12 phasor p7 a13 phasor p8 a14 phasor p9 a15 phasor p10 a16 phasor p11 a17 phasor p12 if kint != 1 goto next2 a1 = sin(a11*6.2831853071796) goto end next2: if kint != 2 goto next3 a1 = sin(a12*6.2831853071796) goto end next3: if kint != 3 goto next4 a1 = sin(a13*6.2831853071796) goto end next4: if kint != 4 goto next5 a1 = sin(a14*6.2831853071796) goto end next5: if kint != 5 goto next6 a1 = sin(a15*6.2831853071796) goto end next6: if kint != 6 goto next7 a1 = sin(a16*6.2831853071796) goto end next7: a1 = sin(a17*6.2831853071796) end: out a1*p4 if kint = 7 goto redo kint = kint + 1 goto endinst redo: kint = 1 endinst: endin i1 0 3 14000 7 450 360 260 234 623 547 573 e   Received: from shaun.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa11410; 10 Jul 99 12:02 BST Received: from [144.173.6.14] (helo=exeter.ac.uk) by shaun.maths.bath.ac.uk with esmtp (Exim 2.12 #1) id 112utV-0003KP-00 for jpff@maths.bath.ac.uk; Sat, 10 Jul 1999 12:02:09 +0100 Received: from noether [144.173.8.10] by hermes via SMTP (LAA17228); Sat, 10 Jul 1999 11:59:56 +0100 (BST) Received: from exeter.ac.uk by maths.ex.ac.uk; Sat, 10 Jul 1999 11:59:49 +0100 Received: from root@lix.intercom.es [194.179.21.2] by hermes via ESMTP (LAA03066); Sat, 10 Jul 1999 11:59:48 +0100 (BST) Received: from intercom.es (iv2-28.intercom.es [195.76.206.28]) by lix.intercom.es (8.7.3/8.6.12) with ESMTP id NAA00339; Sat, 10 Jul 1999 13:04:48 +0100 Message-ID: <37872703.6F941CF@intercom.es> Date: Sat, 10 Jul 1999 12:57:08 +0200 From: Josep M Comajuncosas X-Mailer: Mozilla 4.05 [en] (Win95; I) MIME-Version: 1.0 To: Anders Andersson CC: The CSound mailinglist Subject: Re: primenumbers References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-csound-outgoing@maths.ex.ac.uk Precedence: bulk Anders Andersson wrote: > I have a source here if someone is interested, > but I'm not very skilled in math, so my implementation > use the brute force method of testing the modulo of every > number... Not very fast but it works.. =) Maybe it would be faster to store all the prime numbers from 0 to 2exp(32) in a table and truncate to the nearest number ;-)Btw what musical use could have that feature? -- Josep M Comajuncosas C/ Circumval.lacio 75 08790 Gelida - Penedes Catalunya - SPAIN tel. 93 7792243 e-mail: gelida@intercom.es ET Informatica de Sistemes e-mail: jcomajuncosas@campus.uoc.es http://members.tripod.com/csound/   Received: from wallace.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa11426; 10 Jul 99 12:09 BST Received: from [144.173.6.14] (helo=exeter.ac.uk) by wallace.maths.bath.ac.uk with esmtp (Exim 2.12 #1) id 112uzp-0004u1-00 for jpff@maths.bath.ac.uk; Sat, 10 Jul 1999 12:08:41 +0100 Received: from noether [144.173.8.10] by hermes via SMTP (MAA09294); Sat, 10 Jul 1999 12:07:29 +0100 (BST) Received: from exeter.ac.uk by maths.ex.ac.uk; Sat, 10 Jul 1999 12:07:22 +0100 Received: from root@lix.intercom.es [194.179.21.2] by hermes via ESMTP (MAA04474); Sat, 10 Jul 1999 12:07:21 +0100 (BST) Received: from intercom.es (iv2-28.intercom.es [195.76.206.28]) by lix.intercom.es (8.7.3/8.6.12) with ESMTP id NAA01055 for ; Sat, 10 Jul 1999 13:11:15 +0100 Message-ID: <3787287C.CFBDE6B4@intercom.es> Date: Sat, 10 Jul 1999 13:03:24 +0200 From: Josep M Comajuncosas X-Mailer: Mozilla 4.05 [en] (Win95; I) MIME-Version: 1.0 To: csound@maths.ex.ac.uk Subject: Csound under Windows CE? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-csound-outgoing@maths.ex.ac.uk Precedence: bulk Hi, does anyone know whether Csound can run on a PDA with Windows CE installed? If true, what versions? what about the speed, limitations, best PCMCIA sound cards for that, etc.? Tnx in advance! -- Josep M Comajuncosas C/ Circumval.lacio 75 08790 Gelida - Penedes Catalunya - SPAIN tel. 93 7792243 e-mail: gelida@intercom.es ET Informatica de Sistemes e-mail: jcomajuncosas@campus.uoc.es http://members.tripod.com/csound/   Received: from shaun.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa11484; 10 Jul 99 13:07 BST Received: from [144.173.6.14] (helo=exeter.ac.uk) by shaun.maths.bath.ac.uk with esmtp (Exim 2.12 #1) id 112vuS-0003Ks-00 for jpff@maths.bath.ac.uk; Sat, 10 Jul 1999 13:07:12 +0100 Received: from noether [144.173.8.10] by hermes via SMTP (NAA05196); Sat, 10 Jul 1999 13:05:05 +0100 (BST) Received: from exeter.ac.uk by maths.ex.ac.uk; Sat, 10 Jul 1999 13:04:53 +0100 Received: from postfix@arachna.worldonline.es [212.7.33.97] by hermes via ESMTP (NAA13029); Sat, 10 Jul 1999 13:04:52 +0100 (BST) Received: from a1111237servicom (ppp-43-183.worldonline.es [212.7.43.183]) by arachna.worldonline.es (Postfix) with SMTP id 0D6E7FEC9B for ; Sat, 10 Jul 1999 14:06:49 +0200 (CEST) Message-ID: <003d01becacc$d934ae00$b72b07d4@a1111237servicom> From: Servando Valero To: Csound Mailing List Subject: Spanish Manual 3.55 Date: Sat, 10 Jul 1999 14:07:56 +0200 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0038_01BECADD.9BE34AA0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2014.211 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 Sender: owner-csound-outgoing@maths.ex.ac.uk Precedence: bulk This is a multi-part message in MIME format. ------=_NextPart_000_0038_01BECADD.9BE34AA0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Finally, a complete updated translation of the Csound Manual is = available for Spanish csounders. I have sent the file to Gabriel = Maldonado and John ffitch so that they can place it on their sites. = Thank you both. And thank David Boothe for his advice. I would have = wasted a lot of time without your help. I will try to keep up with your = work on the manual. Servando ------=_NextPart_000_0038_01BECADD.9BE34AA0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
    Finally, a complete updated translation of the = Csound=20 Manual is available for Spanish csounders. I have sent the file to = Gabriel=20 Maldonado and John ffitch so that they can place it on their sites. = Thank you=20 both. And thank David Boothe for his advice. I would have wasted a lot = of time=20 without your help. I will try to keep up with your work on the = manual.
 
        Servando
------=_NextPart_000_0038_01BECADD.9BE34AA0--