Csound Csound-dev Csound-tekno Search About

realtime on mac

Date1998-10-20 15:35
FromNye Parry
Subjectrealtime on mac
Thanks everyone,
that'll teach me to get an up to date version of csound
N.


Nye Parry
City University &
Guildhall School of Music and Drama
http://www.red56.co.uk/nye/



Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa16276;
          20 Oct 98 16:21 BST
Received: from pat.bath.ac.uk by stork.maths.Bath.AC.UK id aa12112;
          20 Oct 98 16:21 BST
Received: (qmail 15582 invoked from network); 20 Oct 1998 15:21:50 -0000
Received: from hermes.ex.ac.uk (HELO exeter.ac.uk) (144.173.6.14)
  by pat.bath.ac.uk with SMTP; 20 Oct 1998 15:21:50 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (QAA01606); Tue, 20 Oct 1998 16:09:39 +0100 (BST)
Received: from exeter.ac.uk by maths.ex.ac.uk; Tue, 20 Oct 1998 16:09:24 +0100
Received: from howl.werewolf.net [206.103.224.20] by hermes via ESMTP (QAA23537); Tue, 20 Oct 1998 16:09:19 +0100 (BST)
Received: from default (dial77.werewolf.net [206.103.225.87])
	by howl.werewolf.net (8.9.0/8.9.0) with SMTP id KAA15548
	for ; Tue, 20 Oct 1998 10:05:08 -0500 (CDT)
From: Hans Mikelson 
To: Csound 
Subject: Re: xyin for Windows/ Theremin Orc, Sco Problems
Date: Tue, 20 Oct 1998 10:12:38 -0500
Message-ID: <01bdfc3c$13226360$57e167ce@default>
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.71.1712.3
X-MimeOLE: Produced By Microsoft MimeOLE V4.71.1712.3
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

Hi,

John ffitch wrote:

>The winsound version does do xyin


I'm not able to get xyin working or real-time output on winsound v3.485
(Win95 PII SB64).

Running the following command line:

winsound.exe -odevaudio -B4096 -8 -r44100 -k4410 -d -m7 thermous.orc
thermous.sco

generates the error:

WAVE OUT unknown wave format

Gabriel's version works in real-time but does not read xyin as far as I can
tell.  I can't get xyin working either with a variety of command line
options.  The result is as if xyin was not read.

The following orchestra and score work on an SGI with the command line:

./csound -idevaudio -odevaudio thermous.orc thermous.sco

The fof version sound like a Big Briar Etherwave and the simulated one
sounds more like an RCA.

;-------------------------------------------------------------------------
; Mouse Theremin
; Coded by Hans Mikelson
; March 1998
;-------------------------------------------------------------------------
sr=44100
kr=4410
ksmps=10
nchnls=1
; Formant Theremouse
         instr    1
irate    =        .01                    ; Mouse read rate
kx1, ky1 xyin     irate, 0, 200, 0, 200  ; Read the x & y mouse position
kx       port     (kx1+1)*10, irate      ; Portamento to smooth out
transitions
ky       port     ky1*16, irate          ; Smooth out y too
; Formant synthsis sounds a lot like my Etherwave theremin.
;                 Amp Fqc FormntFqc
a1       fof      ky, kx, 564,      0, 200, .003, .017, .005, 50, 1,19, p3,
0, 1
         out      a1                     ; Ouput result
         endin

; Additive Theremouse
         instr    2
irate    =        .01                    ; Mouse read rate
kx1, ky1 xyin     irate, 0, 200, 0, 200  ; Read the x & y mouse position
kx       port     (kx1+1)*10, irate      ; Smooth and scale x
ky       port     ky1*16, irate          ; Smooth and scale y
a1       oscil    ky,    kx,     1       ; Oscillator with amplitude y and
freqency x
a2       oscil    ky,    kx*1.5, 1       ; Oscillator tuned 1/5 higher.
         out      a1+a2                  ; Combine and output
         endin

; Simulated Theremouse
         instr    3
irate    =        .01                    ; Mouse read rate
kx1, ky1 xyin     irate, 0, 200, 0, 200  ; Read the x & y mouse position
kx       port     kx1,    irate          ; Smooth and scale x
ky       port     ky1*16, irate          ; Smooth and scale y
a1       oscil    1,    20000,     1       ; Fixed oscillator
a2       oscil    1,    20000*(kx/800), 1  ; Variable oscillator
         out      (a1-a2)*ky               ; Combine and output
         endin

;-------------------------------------------------------------------------
; Mouse Theremin
; Coded by Hans Mikelson
; March 1998
;-------------------------------------------------------------------------
f1  0  8192  10  1             ; Sine
f19 0  1024  19 .5 .5 270 .5   ; 1/2 Bell Shape for formant synthesis
;   Sta  Dur
i3  0.0  30.0
;   Sta  Dur
;i2  30.0  30.0



Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa16481;
          20 Oct 98 17:38 BST
Received: from mercury.bath.ac.uk by stork.maths.Bath.AC.UK id aa20069;
          20 Oct 98 17:38 BST
Received: (qmail 2997 invoked from network); 20 Oct 1998 16:38:32 -0000
Received: from hermes.ex.ac.uk (HELO exeter.ac.uk) (144.173.6.14)
  by mercury.bath.ac.uk with SMTP; 20 Oct 1998 16:38:32 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (RAA27636); Tue, 20 Oct 1998 17:34:52 +0100 (BST)
Received: from exeter.ac.uk by maths.ex.ac.uk; Tue, 20 Oct 1998 17:34:38 +0100
Received: from fortschritt.laden.ilk.de [194.121.104.31] by hermes via ESMTP (RAA27506); Tue, 20 Oct 1998 17:34:37 +0100 (BST)
Received: from sterne.laden.ilk.de (sterne.laden.ilk.de [194.121.104.12])
	by fortschritt.laden.ilk.de (8.8.5/8.8.5) with ESMTP id SAA13101;
	Tue, 20 Oct 1998 18:34:04 +0200
Received: (from jae@localhost)
	by sterne.laden.ilk.de (8.8.5/8.8.5) id SAA10046;
	Tue, 20 Oct 1998 18:34:33 +0200
Date: Tue, 20 Oct 1998 18:34:33 +0200
Message-Id: <199810201634.SAA10046@sterne.laden.ilk.de>
From: "Juergen A. Erhard" 
To: hljmm@werewolf.net
CC: csound@maths.ex.ac.uk
In-reply-to: <01bdf219$d56656c0$53e167ce@default> (hljmm@werewolf.net)
Subject: Re: Csound E-Zine
References:  <01bdf219$d56656c0$53e167ce@default>
X-Emacs: Emacs 20.2, MULE 3.0 (MOMIJINOGA)
MIME-Version: 1.0 (generated by SEMI 1.4.6 - =?ISO-8859-4?Q?"Ny=FEzen"?=)
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Mailer: GNU Emacs 20.2.1 (i486-pc-linux-gnulibc1)
X-Original-Date: Wed, 14 Oct 1998 23:38:53 +0200
X-Personality: INFP
X-Location: Karlsruhe, Baden-Wuerttemberg, Germany, Europe, Earth
X-Confirmation: read
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

-----BEGIN PGP SIGNED MESSAGE-----

>>>>> "Hans" =3D=3D Hans Mikelson  writes:

    Hans> Hi,
    Hans> I am thinking about publishing a Csound E-Zine and am looking for=

    Hans> contributers and suggestions.  This will be in html format with p=
ictures as
    Hans> either gif's or jpg's.  Sound samples can be included as either .=
au, .aiff,
    Hans> .wav or mp3.  The articles should be informal although a few equa=
tions are
    Hans> usually helpful in understanding things.

Wonderful idea... as the ton of responses shows.

One thing on the sound samples: have a permanent section on how to
convert those... generally, a section that deals with issues
concerning the zine itself.  A glossary should go into this too...

Because this section would be permanent, it wouldn't be a problem of
disk space (it would simple be linked from all the issues... so there
won't be any `old' versions)

[SNIP]

    Hans> Announcements

    Hans> This section will be for software and book announcements and upda=
tes.  Try
    Hans> to describe the product and any special hardware or software requ=
irements.

Maybe this should be a `copy' of a csound-announce list (that doesn't
exist yet)?  eMail can generally be much more current than any
publication (even e-).

[SNIP]

    Hans> Resources & Links

    Hans> A list of links for other Csound resources on the web.

This is another candidate for being a permanent feature (one that
won't be entirely different between issues).

Some others mentioned a discography, which I also think would be a
good idea.  Especially if this could link to any .orc/.sco that were
used for a piece (where possible, of course).

- -- =

J=FCrgen A. Erhard  eMail: jae@laden.ilk.de  phone: (GERMANY) 0721 27326
   MARS: http://members.tripod.com/~Juergen_Erhard/mars_index.html
	 George Herrimann's Krazy Kat (http://www.krazy.com)
	Win32 has many known work arounds. For example, Linux.

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3ia
Charset: noconv
Comment: Processed by Mailcrypt 3.4, an Emacs/PGP interface

iQEVAwUBNiUZ8gIG66LugGzRAQEd0Af8CdxZ5mIw56Ex3BSGAdqMj1qeX71XdoJV
zUSAdlmYF09w2BywPfg1FLX3W9qYPVpWE1buQdAXEhvSGyaAiTj8xECDIcyrVejG
pKxJpRA+MuZ8uOsJ/5RL2JrZR58ecm9iWEm+/YO/lqWcmwTuBhGAgJz109dThxwE
cn+R8AUC2GlEsiqdvHp9d384LxsfhEbbQyiR0hc2QOzka83VtY++VNZEB7nmv7IZ
H01rfMHpWnxplfUMX7e0arvKm3ch5bi0VajOAq9SHGaTBrHfnXyPFV6E5GkrzNFA
ATyVzVhcdkUpLO5CKJNvLNNP7wXhwjP+bjufMyoXP/tkv8m686fSzg==
=KMfV
-----END PGP SIGNATURE-----


Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa16656;
          20 Oct 98 18:53 BST
Received: from pat.bath.ac.uk by stork.maths.Bath.AC.UK id aa27337;
          20 Oct 98 18:53 BST
Received: (qmail 4627 invoked from network); 20 Oct 1998 17:53:13 -0000
Received: from hermes.ex.ac.uk (HELO exeter.ac.uk) (144.173.6.14)
  by pat.bath.ac.uk with SMTP; 20 Oct 1998 17:53:13 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (SAA16838); Tue, 20 Oct 1998 18:49:14 +0100 (BST)
Received: from exeter.ac.uk by maths.ex.ac.uk; Tue, 20 Oct 1998 18:49:01 +0100
Received: from howl.werewolf.net [206.103.224.20] by hermes via ESMTP (SAA01122); Tue, 20 Oct 1998 18:48:59 +0100 (BST)
Received: from default (dial77.werewolf.net [206.103.225.87])
	by howl.werewolf.net (8.9.0/8.9.0) with SMTP id MAA08613
	for ; Tue, 20 Oct 1998 12:44:49 -0500 (CDT)
From: Hans Mikelson 
To: Csound 
Subject: Re: Csound E-Zine
Date: Tue, 20 Oct 1998 12:52:20 -0500
Message-ID: <01bdfc52$6234fec0$57e167ce@default>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 4.71.1712.3
X-MimeOLE: Produced By Microsoft MimeOLE V4.71.1712.3
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by exeter.ac.uk id SAA01122
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

Hi,

Thanks for the suggestions.

J=FCrgen wrote:
>One thing on the sound samples: have a permanent section on how to
>convert those... generally,

That's a good idea.  My computer is set up to handle most formats
automatically but I know that others may not have their computer set up f=
or
this.

>a section that deals with issues concerning the zine itself.

I have started this on a temporary site:
http://www.werewolf.net/~hljmm/Ezine/

>A glossary should go into this too...

I have not done this yet.  Any volunteers?

>Maybe this should be a `copy' of a csound-announce list (that doesn't
>exist yet)?  eMail can generally be much more current than any
>publication (even e-).

The Ezine will only be quarterly so it will not be very current.  Althoug=
h
if someone writes a book or a new program and sends me a description of i=
t,
a link, and a thumbnail screen shot or something I would be happy to put =
it
in the magazine.

>    Hans> Resources & Links
>    Hans> A list of links for other Csound resources on the web.

I have decided not to try and include an exhaustive list of links.  I've
done things like that in the past and I don't like it.  Also Rick Boulang=
er
is working on setting up such a list.  I will include a few essential lin=
ks.

Regards,
Hans Mikelson





Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa17037;
          20 Oct 98 22:10 BST
Received: from mercury.bath.ac.uk by stork.maths.Bath.AC.UK id aa14635;
          20 Oct 98 22:10 BST
Received: (qmail 21591 invoked from network); 20 Oct 1998 21:10:27 -0000
Received: from hermes.ex.ac.uk (HELO exeter.ac.uk) (144.173.6.14)
  by mercury.bath.ac.uk with SMTP; 20 Oct 1998 21:10:27 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (WAA12853); Tue, 20 Oct 1998 22:07:06 +0100 (BST)
Received: from exeter.ac.uk by maths.ex.ac.uk; Tue, 20 Oct 1998 22:06:55 +0100
Received: from post-20.mail.demon.net [194.217.242.27] by hermes via ESMTP (WAA18370); Tue, 20 Oct 1998 22:06:54 +0100 (BST)
Received: from [158.152.21.102] (helo=unstable.demon.co.uk)
	by post.mail.demon.net with smtp (Exim 2.05demon1 #1)
	id 0zVizV-0005VX-00; Tue, 20 Oct 1998 21:06:54 +0000
From: Simon Kunath 
To: csound@maths.ex.ac.uk
Cc: zarmzarm@erols.com
Subject: Re: Mailing list archives: an idea
Date: Tue, 20 Oct 1998 21:06:22 GMT
Organization: Unstable Sounds
Reply-To: sck@unstable.demon.co.uk
Message-ID: <3632d51c.188801226@post.demon.co.uk>
References: <361968DC.64CE@erols.com>
In-Reply-To: <361968DC.64CE@erols.com>
X-Mailer: Forte Agent 1.5/32.451
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

On Mon, 05 Oct 1998 20:48:28 -0400, you wrote:

>Hi folks,
>
>Well, the old mailing list archive on the web
>(at http://www.maths.ex.ac.uk/~james/csound_list/ )
>is still not happening.=20
>
>I would like to propose adding an archive of this list to
>http://www.egroups.com/=20
>
>This seems to be easy to do, it would update itself automatically, and
>egroups seems to have pretty good searching & browsing capabilities.

Please don't do this, I have just had a brush with egoups & anyone who
can't spot blatant data-mining is missing it.
Yuk!

Simon.
Unstable Sounds
Sussex.UK.


Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa17815;
          21 Oct 98 6:29 BST
Received: from pat.bath.ac.uk by stork.maths.Bath.AC.UK id aa29572;
          21 Oct 98 6:29 BST
Received: (qmail 8372 invoked from network); 21 Oct 1998 05:29:43 -0000
Received: from hermes.ex.ac.uk (HELO exeter.ac.uk) (144.173.6.14)
  by pat.bath.ac.uk with SMTP; 21 Oct 1998 05:29:43 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (GAA03966); Wed, 21 Oct 1998 06:26:36 +0100 (BST)
Received: from exeter.ac.uk by maths.ex.ac.uk; Wed, 21 Oct 1998 06:26:24 +0100
Received: from smtp3.erols.com [207.172.3.236] by hermes via ESMTP (GAA21297); Wed, 21 Oct 1998 06:26:22 +0100 (BST)
Received: from oemcomputer (207-172-123-16.s16.as4.nyb.erols.com [207.172.123.16])
	by smtp3.erols.com (8.8.8/8.8.5) with SMTP id BAA02645;
	Wed, 21 Oct 1998 01:26:19 -0400 (EDT)
Message-ID: <362D70B7.246A@erols.com>
Date: Wed, 21 Oct 1998 01:27:19 -0400
From: Paul Winkler 
Reply-To: zarmzarm@erols.com
X-Mailer: Mozilla 3.03 (Win95; I)
MIME-Version: 1.0
To: sck@unstable.demon.co.uk
CC: csound@maths.ex.ac.uk
Subject: Re: Mailing list archives: an idea
References: <361968DC.64CE@erols.com> <3632d51c.188801226@post.demon.co.uk>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

Simon Kunath wrote:
> 
> Paul Winkler wrote:
> >I would like to propose adding an archive of this list to
> >http://www.egroups.com/

> Please don't do this, I have just had a brush with egoups & anyone who
> can't spot blatant data-mining is missing it.
> Yuk!

OK, so far we have one response in favor of egroups and two against.
That's not much of a vote, but the concerns are real and I'm in favor of
not exposing people to needless spam. So I will not do anything to
create a csound egroups archive.

BUT... Simon, you seem to have missed the part of this thread where I
discovered that someone else has already created an egroups csound-list
archive. It's at www.egroups.com/list/csound/ ... only you can't get
into it without some mysterious password you obtain from some mysterious
source.

Once again, I ask of everyone:
Who is responsible for this archive?

The only info I've been able to glean from the egroups CSound archive is
this:
"Questions? The group moderator can be contacted at
csound-owner@eGroups.com"

I have sent a couple of questions to this address and have not received
any reply. Hello? Anybody home?

I'm also writing to the egroups staff to see if they can or will answer
any questions... I'll post anything relevant I find out to this list.

At this point, I agree that egroups may be a risk. So one question is,
how do we get rid of the existing csound archive at egroups.com? SOMEONE
must have put it there, and presumably only that person has the
authority to close it down.

Another question is, where CAN we put a web-based csound archive? Does
anyone have 10 or so free MB of space? (Yes, there's been a lot of
messages on the csound list in the past!)
At one point, both John Fitch and, if I remember right, Alex Burton had
offered ftp space for a downloadable HTML archive, but I don't recall if
web space was available for an online browsable archive...

If such space exists, I repeat my offer to convert the existing plain
text archives to HTML and create indexes. I have the software to do this
and it's not hard. I don't know any way to automatically update the
archive, but we can deal with that later, I guess.

Regards,

PW



Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id ab04949;
          21 Oct 98 11:51 BST
Received: from pat.bath.ac.uk by stork.maths.Bath.AC.UK id aa29565;
          21 Oct 98 11:44 BST
Received: (qmail 7151 invoked from network); 21 Oct 1998 10:44:42 -0000
Received: from hermes.ex.ac.uk (HELO exeter.ac.uk) (144.173.6.14)
  by pat.bath.ac.uk with SMTP; 21 Oct 1998 10:44:42 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (LAA08483); Wed, 21 Oct 1998 11:36:38 +0100 (BST)
From: James Andrews 
Message-Id: <4186.199810211036@maths.ex.ac.uk>
Subject: Re: Mailing list archives: an idea
To: csound@maths.ex.ac.uk
Date: Wed, 21 Oct 1998 11:36:23 +0100 (BST)
In-Reply-To: <362D70B7.246A@erols.com> from "Paul Winkler" at Oct 21, 98 01:27:19 am
X-Mailer: ELM [version 2.4 PL25]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

Paul Winkler wrote
>
>Simon Kunath wrote:
>> 
>> Paul Winkler wrote:
>> >I would like to propose adding an archive of this list to
>> >http://www.egroups.com/
>
>> Please don't do this, I have just had a brush with egoups & anyone who
>> can't spot blatant data-mining is missing it.
>> Yuk!
>
>OK, so far we have one response in favor of egroups and two against.
>That's not much of a vote, but the concerns are real and I'm in favor of
>not exposing people to needless spam. So I will not do anything to
>create a csound egroups archive.
>
>BUT... Simon, you seem to have missed the part of this thread where I
>discovered that someone else has already created an egroups csound-list
>archive. It's at www.egroups.com/list/csound/ ... only you can't get
>into it without some mysterious password you obtain from some mysterious
>source.
>
>Once again, I ask of everyone:
>Who is responsible for this archive?

Comment from your friendly list administrator here ( james@maths.ex.ac.uk )

they have just subscribed to csound

listsaver-of-csound--maths.ex.ac.uk@egroups.com

and are getting the messages as they arrive and archiving them

>Another question is, where CAN we put a web-based csound archive? Does
>anyone have 10 or so free MB of space? (Yes, there's been a lot of
>messages on the csound list in the past!)
>At one point, both John Fitch and, if I remember right, Alex Burton had
>offered ftp space for a downloadable HTML archive, but I don't recall if
>web space was available for an online browsable archive...

Disk space is not a problem.  The software is.

If anyone can recommend a email -> hypertext gateway program that will work
in a fairly painless way then I WILL install it.  Please do not recommend
hypermail as I have tried repeatedly to make it work and something doesnt
suit it
I have procmail and perl installed and available, the email machine is an
SGI

-- 
http://www.maths.ex.ac.uk/~james/tekno
Watch out for "Variations" LP on Science City (SCi 11)
Most Intelligent Customers Realize Our Software is Only for Fools and Teenagers



Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa05078;
          21 Oct 98 12:40 BST
Received: from mercury.bath.ac.uk by stork.maths.Bath.AC.UK id aa06056;
          21 Oct 98 12:40 BST
Received: (qmail 4155 invoked from network); 21 Oct 1998 11:40:15 -0000
Received: from hermes.ex.ac.uk (HELO exeter.ac.uk) (144.173.6.14)
  by mercury.bath.ac.uk with SMTP; 21 Oct 1998 11:40:15 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (MAA19857); Wed, 21 Oct 1998 12:32:17 +0100 (BST)
Received: from exeter.ac.uk by maths.ex.ac.uk; Wed, 21 Oct 1998 12:32:03 +0100
Received: from kmt.hku.nl [192.87.219.66] by hermes via ESMTP (MAA05246); Wed, 21 Oct 1998 12:32:02 +0100 (BST)
Received: from [192.87.217.22] ([192.87.217.22])
	by kmt.hku.nl (980427.SGI.8.8.8/8.8.8) with ESMTP id NAA19394;
	Wed, 21 Oct 1998 13:30:51 +0200 (MDT)
Date: Wed, 21 Oct 1998 13:30:51 +0200 (MDT)
X-Sender: hanst@kmt.hku.nl
Message-Id: 
In-Reply-To: <199810200515.PAA22611@bohm.anu.edu.au>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
To: Arne Hanna 
From: Hans Timmermans 
Subject: Re: off topic
Cc: csound@maths.ex.ac.uk
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

>Hi folks.
>Due to server problems at ANU we are unable to access newsgroups, and so, I
>beg your forgiveness for this entirely off topic message.
>
>
>I've written a real-time midi program in C that spits out random notes and
>onsets.  What I'd like to do is to control the range of the randomness with
>the mouse.  Quickdraw.h defines a structure called point that stores the
>x,y values of screen pixels.  Being very much a beginner as far as
>addressing the Mac events modus operandi, I'm unsure how to go about
>accessing coordinate info with the mouse, and unsure about whether I need
>to open a window first or not.
>If anyone could point me in the right direction I would be most grateful.
>

Hi Arne,

Try something like this (it runs perfectly in CodeWarrior):

#include	
#include	

void main()
{
	Point thePoint;

	while(!Button()){
		GetMouse(&thePoint);
		cout << "\n "<< thePoint.h <<" " << thePoint.v;
	}
}


Regards,


Hans Timmermans		     mailto:hans.timmermans@kmt.hku.nl
Utrecht School of the Arts
fac: Art, Media and Technology.
dep: Music.
Senior Lecturer Computermusic and Softwaredevelopment.

phone: 	(+31) 35 6836464
fax: 	(+31) 35 6836480

PO-BOX 2471
1200 CL HILVERSUM
the NETHERLANDS




Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa05091;
          21 Oct 98 12:48 BST
Received: from mercury.bath.ac.uk by stork.maths.Bath.AC.UK id aa06806;
          21 Oct 98 12:48 BST
Received: (qmail 5060 invoked from network); 21 Oct 1998 11:48:32 -0000
Received: from hermes.ex.ac.uk (HELO exeter.ac.uk) (144.173.6.14)
  by mercury.bath.ac.uk with SMTP; 21 Oct 1998 11:48:32 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (MAA12860); Wed, 21 Oct 1998 12:41:11 +0100 (BST)
Received: from exeter.ac.uk by maths.ex.ac.uk; Wed, 21 Oct 1998 12:40:55 +0100
Received: from kmt.hku.nl [192.87.219.66] by hermes via ESMTP (MAA09160); Wed, 21 Oct 1998 12:40:54 +0100 (BST)
Received: from [192.87.217.22] ([192.87.217.22])
	by kmt.hku.nl (980427.SGI.8.8.8/8.8.8) with ESMTP id NAA02338;
	Wed, 21 Oct 1998 13:39:44 +0200 (MDT)
Date: Wed, 21 Oct 1998 13:39:44 +0200 (MDT)
X-Sender: hanst@kmt.hku.nl
Message-Id: 
Mime-Version: 1.0
Content-Type: text/enriched; charset="us-ascii"
To: Arne Hanna 
From: Hans Timmermans 
Subject: Re: off topic 2
Cc: csound@maths.ex.ac.uk
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

>Hi folks.

>Due to server problems at ANU we are unable to access newsgroups, and
so, I

>beg your forgiveness for this entirely off topic message.

>

>

>I've written a real-time midi program in C that spits out random notes
and

>onsets.  What I'd like to do is to control the range of the randomness
with

>the mouse.  Quickdraw.h defines a structure called point that stores
the

>x,y values of screen pixels.  Being very much a beginner as far as

>addressing the Mac events modus operandi, I'm unsure how to go about

>accessing coordinate info with the mouse, and unsure about whether I
need

>to open a window first or not.

>If anyone could point me in the right direction I would be most
grateful.

>


Hi Arne,


Try something like this (it runs perfectly in CodeWarrior):


NB:	Don't forget to include:

InitGraph(&qd.thePort) like in this (revised) example:


#include	<

#include	<


void main()

{

	Point thePoint;

	InitGraf(&qd.thePort);

	

	while(!Button()){

		GetMouse(&thePoint);

		cout <<<< "\n "<<<< thePoint.h <<<<" " <<<< thePoint.v;

	}

}


Regards,


GenevaHans Timmermans		    
mailto:hans.timmermans@kmt.hku.nl

Utrecht School of the Arts              

fac: Art, Media and Technology.

dep: Music.

Senior Lecturer Computermusic and Softwaredevelopment.


phone: 	(+31) 35 6836464

fax: 	(+31) 35 6836480


PO-BOX 2471

1200 CL HILVERSUM

the NETHERLANDS