| How would I have a line in a score repeat say 10, 20, 30 times? or
infinitely? what is the command?
Also is there a random command that works in scores?
Thanks,
Marcus
Received: from wallace.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa11549;
6 Mar 99 20:17 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 10JNVd-0002Rk-00; Sat, 6 Mar 1999 20:17:18 +0000
Received: from noether [144.173.8.10] by hermes via SMTP (UAA15241); Sat, 6 Mar 1999 20:16:21 GMT
Received: from exeter.ac.uk by maths.ex.ac.uk; Sat, 6 Mar 1999 20:16:09 GMT
Received: from root@relayd.gateway.net [208.230.117.252] by hermes via ESMTP (UAA01560); Sat, 6 Mar 1999 20:16:07 GMT
Received: from gate (1Cust98.tnt3.melbourne.fl.da.uu.net [208.255.97.98])
by smtp7.gateway.net (8.9.1/8.9.1) with SMTP id PAA27836
for ; Sat, 6 Mar 1999 15:16:02 -0500 (EST)
Message-ID: <000a01be680e$316e5de0$6261ffd0@gate>
From: Bill DeWitt
To: Csound Q&A list
Subject: Re: simple repeat command? HOW?
Date: Sat, 6 Mar 1999 15:16:11 -0500
MIME-Version: 1.0
Content-Type: text/plain;
charset="Windows-1252"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.00.0810.800
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.0810.800
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk
I was going to ask the same question today.
I have searched all over for some example of recursive or itterative
function in .sco files and haven't found any!
I'm real new, so it may be that they are hidden in the .orc file functions
and I haven't gotten to them yet...
But I really want a for/next loop in my scores, any hope?
----- Original Message -----
From: SONICMAN
To: Csound Q&A list
Sent: Saturday, March 06, 1999 3:11 PM
Subject: simple repeat command? HOW?
>How would I have a line in a score repeat say 10, 20, 30 times? or
>infinitely? what is the command?
>
>Also is there a random command that works in scores?
>
>Thanks,
>Marcus
>
>
Received: from wallace.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa11619;
6 Mar 99 21:02 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 10JODZ-0002SY-00; Sat, 6 Mar 1999 21:02:41 +0000
Received: from noether [144.173.8.10] by hermes via SMTP (UAA05107); Sat, 6 Mar 1999 20:59:40 GMT
Received: from exeter.ac.uk by maths.ex.ac.uk; Sat, 6 Mar 1999 20:59:29 GMT
Received: from root@jason05.u.washington.edu [140.142.78.6] by hermes via ESMTP (UAA11998); Sat, 6 Mar 1999 20:59:27 GMT
Received: from homer09.u.washington.edu (karpen@homer09.u.washington.edu [140.142.77.13])
by jason05.u.washington.edu (8.9.3+UW99.02/8.9.3+UW99.01) with ESMTP id MAA12580;
Sat, 6 Mar 1999 12:59:27 -0800
Received: from localhost (karpen@localhost)
by homer09.u.washington.edu (8.9.3+UW99.02/8.9.3+UW99.01) with ESMTP id MAA24484;
Sat, 6 Mar 1999 12:59:24 -0800
Date: Sat, 6 Mar 1999 12:59:24 -0800 (PST)
From: Richard Karpen
To: Bill DeWitt
cc: Csound Q&A list
Subject: Re: simple repeat command? HOW?
In-Reply-To: <000a01be680e$316e5de0$6261ffd0@gate>
Message-ID:
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk
I recommend toe *everyone* who uses Csound to look into Common Music, a
lisp-based, environment created by Heinrich Taube, for making note-lists.
It's well worth the effort to learn this language. It's nothing short of
absolutely great. And it's free!!
Richard Karpen
On Sat, 6 Mar 1999, Bill DeWitt wrote:
> I was going to ask the same question today.
>
> I have searched all over for some example of recursive or itterative
> function in .sco files and haven't found any!
>
> I'm real new, so it may be that they are hidden in the .orc file functions
> and I haven't gotten to them yet...
>
> But I really want a for/next loop in my scores, any hope?
>
>
> ----- Original Message -----
> From: SONICMAN
> To: Csound Q&A list
> Sent: Saturday, March 06, 1999 3:11 PM
> Subject: simple repeat command? HOW?
>
>
> >How would I have a line in a score repeat say 10, 20, 30 times? or
> >infinitely? what is the command?
> >
> >Also is there a random command that works in scores?
> >
> >Thanks,
> >Marcus
> >
> >
>
>
Received: from shaun.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa11739;
6 Mar 99 21:47 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 10JOuc-00013Q-00; Sat, 6 Mar 1999 21:47:10 +0000
Received: from noether [144.173.8.10] by hermes via SMTP (VAA10477); Sat, 6 Mar 1999 21:42:42 GMT
Received: from exeter.ac.uk by maths.ex.ac.uk; Sat, 6 Mar 1999 21:42:30 GMT
Received: from root@proxy3.ba.best.com [206.184.139.14] by hermes via ESMTP (VAA00858); Sat, 6 Mar 1999 21:42:28 GMT
Received: from charlieb.com (baker.vip.best.com [206.86.232.121])
by proxy3.ba.best.com (8.9.3/8.9.2/best.out) with ESMTP id NAA27541
for ; Sat, 6 Mar 1999 13:40:29 -0800 (PST)
Message-ID: <36E1A0B9.B5B6330A@charlieb.com>
Date: Sat, 06 Mar 1999 13:40:13 -0800
From: Charles Baker
Reply-To: baker@charlieb.com
X-Mailer: Mozilla 4.5 (Macintosh; U; PPC)
X-Accept-Language: en
MIME-Version: 1.0
CC: Csound Q&A list
Subject: Re: simple repeat command? HOW?
References:
Content-Type: text/plain; charset=us-ascii; x-mac-type="54455854"; x-mac-creator="4D4F5353"
Content-Transfer-Encoding: 7bit
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk
Richard Karpen wrote:
> I recommend toe *everyone* who uses Csound to look into Common Music, a
> lisp-based, environment created by Heinrich Taube, for making note-lists.
> It's well worth the effort to learn this language. It's nothing short of
> absolutely great. And it's free!!
>
> Richard Karpen
Even though "me too" reponses are not usually appropriate, let me add my
enthusiastic
vote for CommonMusic. Not only can you generate csound sco output, but you can
generate midi output, or read midi in, then convert the midi to csound sco, all
with a very powerful
(and *not* difficult!) .language controling the many parameters of your ins. I
love the interactive
way I can genrerate a run of Csound score, synthsize, listen to the result,
adjust parameters,
do resynthesis, listen, etc...
Available for
DOS/WIN (no gui)
Mac (great gui added)
SGI,
Linux !:-)!
NeXT
they have varying levels of Midi implementation...all read write files...some
have 'real time' output/input
the Mac version signs into OpcodeMidiSystem, allowing use of it's features.
I also added some silly hacks years ago to the distribution that allow
generating some cmix and cmusic scores also,
if you have those tools.
The Home ftp site:
ftp://ccrma-ftp.stanford.edu/pub/Lisp/cm
While there (one dir up) also check out CommonLispMusic, a synthesis toolkit in
CommonLisp, that generates, compiles, then links in fast c code from Lisp
instrument definitions. Some great example instruments in the dist, too.
( Not avail for all the platforms that CommonMusic is..)
It's really *not* that hard to learn, and can help immensely with generating
csound score files!
CharlieB
Received: from shaun.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa11775;
6 Mar 99 22:14 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 10JPLU-00013f-00; Sat, 6 Mar 1999 22:14:56 +0000
Received: from noether [144.173.8.10] by hermes via SMTP (WAA07139); Sat, 6 Mar 1999 22:11:45 GMT
Received: from exeter.ac.uk by maths.ex.ac.uk; Sat, 6 Mar 1999 22:11:33 GMT
Received: from root@www.inx.de [195.21.255.251] by hermes via SMTP (WAA07629); Sat, 6 Mar 1999 22:11:32 GMT
Received: by www.inx.de (Smail3.2.0.96inx)
from berlin.snafu.de (195.21.37.20) with esmtp
id ; Sat, 6 Mar 1999 23:11:31 +0100 (MET)
Message-ID: <36E1B684.1DDCCA30@berlin.snafu.de>
Date: Sat, 06 Mar 1999 23:13:09 +0000
From: Andre Bartetzki
Organization: STEAM HfM Berlin
X-Mailer: Mozilla 4.04 (Macintosh; I; PPC)
MIME-Version: 1.0
To: Csound Mailing List
Subject: Re: bugs in wg opcodes
References: <283AABB8FD0DD21187C200A0C995F5DE0ECE86@neptune.lyrick.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk
> David Boothe wrote:
>
> See below for more clarifications. Hope these help.
>
> -David.
> (....)
Thanks David!
I post the remaining bugs / problems again. Has anyone similar experiences
with these opcodes ?
-----------
2. ar wgflute kamp,kfreq,kjet,iatt,idetk,kngain,kvibf,kvamp,ifn [,iminfreq]
kfreq accepts no k-rate, even if iminfreq has a reasonable value.
Csound resp. perf prints this message if there is a k-rate kfreq:
PERF ERROR: No base frequency for flute
FATAL ERROR: terminated perf.
-----------
4. ar wgclar kamp, kfreq,kstiff,iatt,idetk,kngain,kvibf,kvamp,ifn [,iminfreq]
If we have a k-rate kfreq and no iminfreq like in
kf line 200,p3,400
a1 wgclar 20000,kf,-0.3,0.1,0.1,0.2,6,0.1,1
then iminfreq should be set automatically to the initial kfreq.
But this doesn't work:
PERF ERROR: No base frequency for clarinet
-----------
6. a1 mandol kamp,kfreq,kpluck,kdetune,kgain,ksize,ifn [,iminfreq]
Every trial to use mandol with the suggested values leads to a crash!
-----------
Andre
--------------------------------------------------
Andre Bartetzki http://www.kgw.tu-berlin.de/~abart
Studio fuer elektroakustische Musik http://www.kgw.tu-berlin.de/~abart/Steam/steam.html
Hochschule fuer Musik Berlin http://www.hfm-berlin.de
Tel. +49-30-4726629
Tel. +49-30-203092488
--------------------------------------------------
Received: from shaun.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa11784;
6 Mar 99 22:17 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 10JPO8-00013j-00; Sat, 6 Mar 1999 22:17:40 +0000
Received: from noether [144.173.8.10] by hermes via SMTP (WAA17113); Sat, 6 Mar 1999 22:15:33 GMT
Received: from exeter.ac.uk by maths.ex.ac.uk; Sat, 6 Mar 1999 22:15:21 GMT
Received: from root@relayb.gateway.net [208.230.117.250] by hermes via ESMTP (WAA06768); Sat, 6 Mar 1999 22:15:19 GMT
Received: from gate (1Cust98.tnt3.melbourne.fl.da.uu.net [208.255.97.98])
by smtp9.gateway.net (8.9.1/8.9.1) with SMTP id RAA22476
for ; Sat, 6 Mar 1999 17:15:09 -0500 (EST)
From: Bill DeWitt
To: Csound List
Subject: RE: simple repeat command? HOW?
Date: Sat, 6 Mar 1999 17:15:21 -0500
Message-ID: <000001be681e$d394bb40$6261ffd0@gate>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Windows-1252"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0
In-Reply-To: <36E1A0B9.B5B6330A@charlieb.com>
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.0810.800
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk
While I appreciate the recommendation and will certainly investigate it, I
have to ask: Is this an indication that the answer to my question is "No"?
Just wondering if I should give up the search...
> Richard Karpen wrote:
>
> > I recommend toe *everyone* who uses Csound to look into Common Music, a
> > lisp-based, environment created by Heinrich Taube, for making
> note-lists.
> > It's well worth the effort to learn this language. It's nothing short of
> > absolutely great. And it's free!!
> >
> > Richard Karpen
>
> Even though "me too" reponses are not usually appropriate, let me add my
> enthusiastic
> vote for CommonMusic. Not only can you generate csound sco
> output, but you can
> generate midi output, or read midi in, then convert the midi to
> csound sco, all
> with a very powerful
> (and *not* difficult!) .language controling the many parameters
> of your ins. I
> love the interactive
> way I can genrerate a run of Csound score, synthsize, listen to
> the result,
> adjust parameters,
> do resynthesis, listen, etc...
>
> Available for
> DOS/WIN (no gui)
> Mac (great gui added)
> SGI,
> Linux !:-)!
> NeXT
>
> they have varying levels of Midi implementation...all read write
> files...some
> have 'real time' output/input
> the Mac version signs into OpcodeMidiSystem, allowing use of it's
> features.
>
> I also added some silly hacks years ago to the distribution that allow
> generating some cmix and cmusic scores also,
> if you have those tools.
>
> The Home ftp site:
> ftp://ccrma-ftp.stanford.edu/pub/Lisp/cm
>
> While there (one dir up) also check out CommonLispMusic, a
> synthesis toolkit in
> CommonLisp, that generates, compiles, then links in fast c code from Lisp
> instrument definitions. Some great example instruments in the dist, too.
> ( Not avail for all the platforms that CommonMusic is..)
>
> It's really *not* that hard to learn, and can help immensely with
> generating
> csound score files!
>
>
> CharlieB
>
>
>
Received: from wallace.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa11807;
6 Mar 99 22:24 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 10JPUp-0002Tk-00; Sat, 6 Mar 1999 22:24:35 +0000
Received: from noether [144.173.8.10] by hermes via SMTP (WAA04673); Sat, 6 Mar 1999 22:23:30 GMT
Received: from exeter.ac.uk by maths.ex.ac.uk; Sat, 6 Mar 1999 22:23:18 GMT
Received: from mtiwmhc06.worldnet.att.net [204.127.131.41] by hermes via ESMTP (WAA10831); Sat, 6 Mar 1999 22:23:17 GMT
Received: from att.net ([12.64.5.125]) by mtiwmhc06.worldnet.att.net
(InterMail v03.02.07 118 124) with ESMTP
id <19990306222246.BDFL25498@att.net>
for ; Sat, 6 Mar 1999 22:22:46 +0000
Message-ID: <36E1AD8C.48B952B4@att.net>
Date: Sat, 06 Mar 1999 14:34:58 -0800
From: SONICMAN
X-Mailer: Mozilla 4.5 (Macintosh; U; PPC)
X-Accept-Language: en
MIME-Version: 1.0
To: Csound Q&A list
Subject: Okay, Not so simple "repeat" command?
Content-Type: text/plain; charset=us-ascii; x-mac-type="54455854"; x-mac-creator="4D4F5353"
Content-Transfer-Encoding: 7bit
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk
I just downloaded common lisp or whatever it is called selected auto
fill and it generated a mega-ton of ERRORS. I'm really starting to grow
weary of Csounds endless obstacles.
Man I'm depressed, I need some Beer.
SONICMAN=out
Received: from wallace.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa11859;
6 Mar 99 22:59 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 10JQ31-0002U8-00; Sat, 6 Mar 1999 22:59:55 +0000
Received: from noether [144.173.8.10] by hermes via SMTP (WAA03705); Sat, 6 Mar 1999 22:57:10 GMT
Received: from exeter.ac.uk by maths.ex.ac.uk; Sat, 6 Mar 1999 22:56:57 GMT
Received: from dns2.seanet.com [199.181.164.2] by hermes via ESMTP (WAA02950); Sat, 6 Mar 1999 22:56:55 GMT
Received: from seanet.com (cy24.dialup.seanet.com [207.12.136.24]) by mx.seanet.com (8.8.8/Seanet-8.7.3) with ESMTP id OAA08952 for ; Sat, 6 Mar 1999 14:56:53 -0800 (PST)
Message-ID: <36E1B3D6.24C1BFFC@seanet.com>
Date: Sat, 06 Mar 1999 15:01:42 -0800
From: Sean Costello
X-Mailer: Mozilla 4.05 [en] (Win95; I)
MIME-Version: 1.0
To: Csound Q&A list
Subject: Re: Okay, Not so simple "repeat" command?
References: <36E1AD8C.48B952B4@att.net>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk
SONICMAN wrote:
>
> I just downloaded common lisp or whatever it is called selected auto
> fill and it generated a mega-ton of ERRORS. I'm really starting to grow
> weary of Csounds endless obstacles.
> Man I'm depressed, I need some Beer.
Are you trying to run Common Music on a Windows machine? If so, things
will be mighty confusing, because all the instructions are for using a
different version of Lisp on a Unix machine. I figured out how to get
CM running in Windows last year, and will append the tips to the end of
this email.
Common Music is really the best way to do repeating notes. I don't
think there is a comparable ability in standard Csound. There are other
Csound add-ons that will do what you want, but Common Music is really
nice.
As far as beer goes, I highly recommend Mirror Pond Pale Ale, or any of
the output of the Deschutes brewery from Bend, Oregon. That high desert
air seems to work magic. Oregon beers in general are good things.
As far as depression, remember that the spring is coming soon - unless
you are in the Southern Hemisphere, in which case it is probably nice
and warm anyway. Here in Seattle we have the first sunny day in months,
and I'm gonna go for a walk and soak up the rays.
Sean Costello
[begin tips from old email to class mailing list]
Hi folks:
Just stayed up til 5 am figuring out how to run Common Music at home. I
had a very helpful friend who helped me get it running in Linux, and I
just figured out how to get it running in Windows 98.
Here's what I found out so far:
1) The precompiled binaries that can be found on the page "Installing
Common Music"
(http://ccrma-www.stanford.edu/CCRMA/Software/cm/install.html) DO WORK.
They seem to be a better bet than downloading the sources and building
your own installations. Note that the Linux version is not directly
accessible as a link; go to
ftp://ccrma-ftp.stanford.edu/pub/Lisp/cm/binaries and look for the Linux
binary.
2) Setting the path variables is not a pleasant experience. I really
can't help you there with Linux, as I don't understand that operating
system very well. When I figure out what to do with Windows 98, I'll
let the list know. For now, I have been simply opening up the file
"CM.BAT" that can be found in the cm-1.3_clisp-95 director which the
binary file creates. Clicking on this file in Windows Explorer kicks
you into Common Music. [I ended up putting a shortcut to CM.BAT on the
desktop, and labeling it Common Music. Clicking on the icon opens a DOS
window that is running Common Music.]
3) When Common Music comes up, it will not look like the version at
school. Instead of a lot of ASCII text that tells you that you are in
Common Music, you get a single prompt - "> ". Don't worry, you are
actually in Common Music at this point, assuming you installed it
correctly.
4) IMPORTANT: The precompiled binaries for Win 95/98 and Linux use
CLISP, instead of the ACL (Allegro Common Lisp) used at school. THE
COMMAND USED ON THE SMCC COMPUTERS TO OPEN A FILE IN COMMON MUSIC DOES
NOT WORK WITHIN THE VERSIONS OF COMMON MUSIC THAT RUN IN CLISP. To open
a file, you need to type the following:
Linux: at the "> " prompt, type
(load "pathname")
where "pathname" is the complete path to the .lisp file
you wish to open. For example, on my system, to open Example5.lisp, I
would type
(load "/home/sean/Orchestras/Example5.lisp")
Win 95/98: at the "> " prompt, type
(load "pathname")
where "pathname" is the complete path to the .lisp file
you wish to open. The pathname needs to use double backslashes, for
some reason. To open Example5.lisp on my system, I would type
(load "C:\\Csound\\Orchestras\\Example5.lisp")
5) After the file is loaded, the (make-score) commands work as normal.
To exit, type (exit), instead of :exit.
Hope this helps people out there.
Sean Costello
P.S. BTW, the Linux version of Csound on my machine runs several times
quicker than the M$ Windows version on the same machine.
Received: from shaun.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa12003;
7 Mar 99 0:40 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 10JRcX-00017Z-00; Sun, 7 Mar 1999 00:40:41 +0000
Received: from noether [144.173.8.10] by hermes via SMTP (AAA14966); Sun, 7 Mar 1999 00:39:38 GMT
Received: from exeter.ac.uk by maths.ex.ac.uk; Sun, 7 Mar 1999 00:39:27 GMT
Received: from root@relay8.gateway.net [208.230.117.247] by hermes via ESMTP (AAA05402); Sun, 7 Mar 1999 00:39:25 GMT
Received: from gate (1Cust98.tnt3.melbourne.fl.da.uu.net [208.255.97.98])
by smtp4.gateway.net (8.9.1/8.9.1) with SMTP id TAA14450
for ; Sat, 6 Mar 1999 19:39:09 -0500 (EST)
From: Bill DeWitt
To: Csound Q&A list
Subject: RE: Okay, Not so simple "repeat" command?
Date: Sat, 6 Mar 1999 19:39:20 -0500
Message-ID: <000101be6832$f04ec460$6261ffd0@gate>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Windows-1252"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0
In-Reply-To: <36E1AD8C.48B952B4@att.net>
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.0810.800
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk
Boy do I know how you feel!
I'm busy making a JavaScript thingie to generate a notelist page I can cut
into my .sco instead of trying to get that other thing to run in Windows.
Not anything near what I wanted to do, but at least I will get somewhere
with it during my short time off work. I've blown most of the day trying to
build a pattern of notes by hand only to find that some of my values were
off in the first few and threw the whole run off.
>
> I just downloaded common lisp or whatever it is called selected auto
> fill and it generated a mega-ton of ERRORS. I'm really starting to grow
> weary of Csounds endless obstacles.
> Man I'm depressed, I need some Beer.
>
> SONICMAN=out
>
>
Received: from shaun.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa12035;
7 Mar 99 0:48 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 10JRkA-00017i-00; Sun, 7 Mar 1999 00:48:34 +0000
Received: from noether [144.173.8.10] by hermes via SMTP (AAA08574); Sun, 7 Mar 1999 00:47:11 GMT
Received: from exeter.ac.uk by maths.ex.ac.uk; Sun, 7 Mar 1999 00:47:00 GMT
Received: from mercury.cc.oberlin.edu [132.162.1.220] by hermes via ESMTP (AAA12808); Sun, 7 Mar 1999 00:46:59 GMT
Received: from dhcp (DHCP5201.resnet.oberlin.edu)
by oberlin.edu (PMDF V5.1-12 #29794) with SMTP id <0F8700BU58UANY@oberlin.edu>
for csound@maths.ex.ac.uk; Sat, 6 Mar 1999 19:46:59 -0500 (EST)
Date: Sat, 06 Mar 1999 19:46:23 -0500
From: jim altieri
Subject: sco repetitions
X-Sender: sjva4957@mail.cc.oberlin.edu
To: csound@maths.ex.ac.uk
Message-id: <2.2.32.19990307004623.0071f790@mail.cc.oberlin.edu>
MIME-version: 1.0
X-Mailer: Windows Eudora Pro Version 2.2 (32)
Content-type: text/plain; charset="us-ascii"
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk
we've been talking about ways to generate repetitive or algorithmic scores.
i prefer to write programs in c to do it, but remember there's lots of ways
to do it. excel and most other spreadsheets can save its files as
"space-delimited ascii", which is how sco files are organized. a simple
thing in a spreadsheet should do a looping type of pattern. just need a
fairly simple equation for p2, and cut and paste your way to csound fame and
fortune.
-jim
(shameless plug: listen to some of my csound music at http://www.mp3.com/tweeg )
Received: from wallace.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa12126;
7 Mar 99 1: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 10JSWd-0002Xd-00; Sun, 7 Mar 1999 01:38:39 +0000
Received: from noether [144.173.8.10] by hermes via SMTP (BAA09174); Sun, 7 Mar 1999 01:36:41 GMT
Received: from exeter.ac.uk by maths.ex.ac.uk; Sun, 7 Mar 1999 01:36:30 GMT
Received: from post5.inre.asu.edu [129.219.110.86] by hermes via ESMTP (BAA16900); Sun, 7 Mar 1999 01:36:27 GMT
Received: from smtp2.asu.edu by asu.edu (PMDF V5.1-12 #24133)
with ESMTP id <01J8IQ87XF528YE423@asu.edu> for csound@maths.ex.ac.uk; Sat,
6 Mar 1999 18:38:00 MST
Received: from asu.edu (sss20-07.inre.asu.edu [129.219.101.139])
by smtp2.asu.edu (8.9.1/8.9.1) with ESMTP id SAA01135 for
; Sat, 06 Mar 1999 18:36:57 -0700 (MST)
Date: Sat, 06 Mar 1999 18:37:45 +0000
From: Todd Ingalls
Subject: Re: Okay, Not so simple "repeat" command?
To: Csound Q&A list
Message-id: <36E175F6.F02FFA15@asu.edu>
MIME-version: 1.0
X-Mailer: Mozilla 4.5 (Macintosh; U; PPC)
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7bit
X-Accept-Language: en
References: <36E1AD8C.48B952B4@att.net>
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk
CM might seem a little frustrating at first but it is well worth the
effort to learn.
In regards to your original query about repeating lines in a score, you
should look at section 14.6 in the csound manual which details the r
score directive for repeating sections. Here is a very simple example of
its use:
r4
s
i1 0 1 8000 230 ;this line repeats 3 times
s
i1 0 4 8000 313
r2
s
i1 0 2 8000 270 ;these two lines
i1 2 4 8000 370 ;repeat once
e
--
todd ingalls
http://www.public.asu.edu/~todd2
SONICMAN wrote:
>
> I just downloaded common lisp or whatever it is called selected auto
> fill and it generated a mega-ton of ERRORS. I'm really starting to grow
> weary of Csounds endless obstacles.
> Man I'm depressed, I need some Beer.
>
> SONICMAN=out
Received: from shaun.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa12160;
7 Mar 99 1: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 10JSkG-00018U-00; Sun, 7 Mar 1999 01:52:44 +0000
Received: from noether [144.173.8.10] by hermes via SMTP (BAA09572); Sun, 7 Mar 1999 01:51:38 GMT
Received: from exeter.ac.uk by maths.ex.ac.uk; Sun, 7 Mar 1999 01:51:27 GMT
Received: from howl.werewolf.net [12.23.152.10] by hermes via ESMTP (BAA14637); Sun, 7 Mar 1999 01:51:25 GMT
Received: from default (dial340.werewolf.net [12.23.154.40])
by howl.werewolf.net (8.9.0/8.9.0) with SMTP id TAA25377
for ; Sat, 6 Mar 1999 19:45:10 -0600 (CST)
Message-ID: <002001be683d$c9c24b40$289a170c@default>
From: Hans Mikelson
To: Csound Q&A list
Subject: Re: Okay, Not so simple "repeat" command?
Date: Sat, 6 Mar 1999 19:56:52 -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,
Perl is another dandy language for generating text and you can find one of
my score generating Perl programs in the Csound list archives. I was about
to suggest SCOT (which I have never used) but I see its been discontinued.
Regards,
Hans Mikelson
Received: from shaun.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa12241;
7 Mar 99 2:40 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 10JTUO-00019C-00; Sun, 7 Mar 1999 02:40:24 +0000
Received: from noether [144.173.8.10] by hermes via SMTP (CAA16811); Sun, 7 Mar 1999 02:39:16 GMT
Received: from exeter.ac.uk by maths.ex.ac.uk; Sun, 7 Mar 1999 02:39:04 GMT
Received: from howl.werewolf.net [12.23.152.10] by hermes via ESMTP (CAA16371); Sun, 7 Mar 1999 02:39:03 GMT
Received: from default (dial340.werewolf.net [12.23.154.40])
by howl.werewolf.net (8.9.0/8.9.0) with SMTP id UAA24799
for ; Sat, 6 Mar 1999 20:32:50 -0600 (CST)
Message-ID: <003301be6844$718d40e0$289a170c@default>
From: Hans Mikelson
To: Csound List
Subject: Re: Grains from Audio files
Date: Sat, 6 Mar 1999 20:44:36 -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,
The tricky thing when using samples with Csound's grain opcode is that the
frequency indicates the rate at which the *entire* sound file is scanned
since there is way to indicate a base frequency. So if you want the
granular sound to be approximately the same pitch as the sample be sure to
indicate a frequency of 1/sample length.
Below is an example. Note: Take out the line wraps.
Bye,
Hans Mikelson
; ORC
sr=44100
kr=4410
ksmps=10
nchnls=2
;---------------------------------------------------------------------------
-------
; Basic Granular Sampler Synthesis
;---------------------------------------------------------------------------
-------
instr 4
idur = p3
iamp = p4
ifqc = p5
igrtab = p6
iwintab = p7
ifrng = p8
idens = p9
ifade = p10
igdur = p11
iamprng = p12
kamp linseg 0, ifade, 1, idur-2*ifade, 1, ifade, 0
; Amp Fqc Dense AmpOff PitchOff GrDur GrTable
WinTable MaxGrDur
aoutl grain p4, ifqc, idens, 100*iamprng, ifqc*ifrng, igdur, igrtab,
iwintab, 5
aoutr grain p4, ifqc, idens, 100*iamprng, ifqc*ifrng, igdur, igrtab,
iwintab, 5
outs aoutl*kamp, aoutr*kamp
endin
; SCO
f2 0 524288 1 "soundin.11" 0 4 0
f7 0 1024 8 0 512 1 512 0
; Start Dur Amp Freq GrTab WinTab FqcRng Dens Fade GrDur AmpRng
i4 0.0 2 20000 .08 2 7 .021 200 .2 .1 1
Received: from wallace.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa12273;
7 Mar 99 2:51 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 10JTfY-0002YW-00; Sun, 7 Mar 1999 02:51:56 +0000
Received: from noether [144.173.8.10] by hermes via SMTP (CAA08990); Sun, 7 Mar 1999 02:50:56 GMT
Received: from exeter.ac.uk by maths.ex.ac.uk; Sun, 7 Mar 1999 02:50:45 GMT
Received: from gudrun.passagen.se [195.163.107.4] by hermes via ESMTP (CAA18410); Sun, 7 Mar 1999 02:50:44 GMT
Received: from dumburk (dialup187-1-17.swipnet.se [130.244.187.17])
by gudrun.passagen.se (8.8.5/8.8.5) with SMTP id DAA23462;
Sun, 7 Mar 1999 03:50:05 +0100 (MET)
Message-ID: <36E1E9D8.2471@hem.passagen.se>
Date: Sun, 07 Mar 1999 03:52:08 +0100
From: rasmus ekman
X-Mailer: Mozilla 3.04 (Win95; I)
MIME-Version: 1.0
To: SONICMAN
CC: Csound list
Subject: r statement (Re: simple repeat command? HOW?)
References: <36E18BE5.8C357A78@att.net>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk
SONICMAN wrote:
>
> How would I have a line in a score repeat say 10, 20, 30 times?
For simple repetitions you can fake it with the r statement.
You get a counter with it. This actually repeats score *sections*,
which limits the processing in some ways, but it does what you ask for.
See the file Version3_48.Notes at bath/newest for info and example.
Something like this:
r42 COUNT ; "COUNT" will change value 1...42 for each repetition
i1 0 3 $COUNT. ; p4 gets COUNT value in instr 1
i2 .5 1.5 75 $COUNT. ; p5 gets COUNT value
s ; end of repeated section
Note that COUNT is a macro variable (works by textual replacement when
the score file is read, ie before the csound score parser "actually"
gets to see the score), so you use it with the dollar macro usage prefix.
re
Received: from shaun.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa12281;
7 Mar 99 2:54 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 10JThx-00019S-00; Sun, 7 Mar 1999 02:54:25 +0000
Received: from noether [144.173.8.10] by hermes via SMTP (CAA01260); Sun, 7 Mar 1999 02:53:18 GMT
Received: from exeter.ac.uk by maths.ex.ac.uk; Sun, 7 Mar 1999 02:53:10 GMT
Received: from ccrma.Stanford.EDU [36.49.0.84] by hermes via ESMTP (CAA10188); Sun, 7 Mar 1999 02:53:09 GMT
Received: from ccrma.stanford.edu (cmn34 [36.49.0.113])
by ccrma.stanford.edu (8.8.8/8.8.8) with ESMTP id SAA25132;
Sat, 6 Mar 1999 18:53:07 -0800 (PST)
Message-ID: <36E1EA12.245D1F1D@ccrma.stanford.edu>
Date: Sat, 06 Mar 1999 18:53:06 -0800
From: Tobias Kunze
X-Mailer: Mozilla 4.07 [en] (X11; U; Linux 2.0.33 i686)
MIME-Version: 1.0
To: SONICMAN
CC: Csound Q&A list
Subject: Re: Okay, Not so simple "repeat" command?
References: <36E1AD8C.48B952B4@att.net>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk
This is a real hall-of-famer for the category
"Got someth'n, pushed `banana' and got someth'n else."
Hey, be glad it did anything at all or be specific!
Re beer: now we're talking. If you ever run across "Krombacher
Pilsner" on tap, give it a try. You won't regret it.
SONICMAN wrote:
>
> I just downloaded common lisp or whatever it is called selected auto
> fill and it generated a mega-ton of ERRORS. I'm really starting to grow
> weary of Csounds endless obstacles.
> Man I'm depressed, I need some Beer.
>
> SONICMAN=out
Received: from wallace.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa12422;
7 Mar 99 4:09 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 10JUsU-0002Zd-00; Sun, 7 Mar 1999 04:09:22 +0000
Received: from noether [144.173.8.10] by hermes via SMTP (EAA14593); Sun, 7 Mar 1999 04:07:56 GMT
Received: from exeter.ac.uk by maths.ex.ac.uk; Sun, 7 Mar 1999 04:07:35 GMT
Received: from root@relayd.gateway.net [208.230.117.252] by hermes via ESMTP (EAA11376); Sun, 7 Mar 1999 04:07:29 GMT
Received: from gate (1Cust180.tnt1.melbourne.fl.da.uu.net [208.255.26.180])
by smtp7.gateway.net (8.9.1/8.9.1) with SMTP id XAA13751
for ; Sat, 6 Mar 1999 23:07:22 -0500 (EST)
From: Bill DeWitt
To: Csound List
Subject: RE: r statement (Re: simple repeat command? HOW?)
Date: Sat, 6 Mar 1999 23:07:35 -0500
Message-ID: <000001be6850$083c6240$b41affd0@gate>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Windows-1252"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.0810.800
Importance: Normal
In-Reply-To: <36E1E9D8.2471@hem.passagen.se>
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk
Now this is good. I think one could go a long way with this. I would like to
see some more examples if anyone has them, but so far it looks good! I am
having a little trouble with the [math] thing that I would like to use, but
everything else is all I could have expected. (I can't seem to get it to
recognize a macro inside brackets, and it won't do math with the macro
without brackets i.e.: [COUNT*3] gives me an undefined macro name error and
COUNT*3 gives me the value zero)
Now I am going to look at the #include and #macro sections to see what else
might be done.
BTW, since I was using the online version of The CSound Manual
http://emu.music.ufl.edu/csman/TITLE.html ) it's no wonder I couldn't find
the method! Thanks for pointing out the newer versions!
> For simple repetitions you can fake it with the r statement.
> You get a counter with it. This actually repeats score *sections*,
> which limits the processing in some ways, but it does what you ask for.
> See the file Version3_48.Notes at bath/newest for info and example.
>
> Something like this:
>
> r42 COUNT ; "COUNT" will change value 1...42 for
> each repetition
> i1 0 3 $COUNT. ; p4 gets COUNT value in instr 1
> i2 .5 1.5 75 $COUNT. ; p5 gets COUNT value
> s ; end of repeated section
>
> Note that COUNT is a macro variable (works by textual replacement when
> the score file is read, ie before the csound score parser "actually"
> gets to see the score), so you use it with the dollar macro usage prefix.
>
Received: from shaun.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa12471;
7 Mar 99 4:41 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 10JVNI-0001Ap-00; Sun, 7 Mar 1999 04:41:12 +0000
Received: from noether [144.173.8.10] by hermes via SMTP (EAA06237); Sun, 7 Mar 1999 04:40:07 GMT
Received: from exeter.ac.uk by maths.ex.ac.uk; Sun, 7 Mar 1999 04:39:45 GMT
Received: from gudrun.passagen.se [195.163.107.4] by hermes via ESMTP (EAA13688); Sun, 7 Mar 1999 04:39:45 GMT
Received: from dumburk (dialup198-3-54.swipnet.se [130.244.198.182])
by gudrun.passagen.se (8.8.5/8.8.5) with SMTP id FAA01700;
Sun, 7 Mar 1999 05:39:06 +0100 (MET)
Message-ID: <36E20366.991@hem.passagen.se>
Date: Sun, 07 Mar 1999 05:41:10 +0100
From: rasmus ekman
X-Mailer: Mozilla 3.04 (Win95; I)
MIME-Version: 1.0
To: SONICMAN
CC: Csound list
Subject: uh, or perhaps not (Re: r statement )
References: <36E18BE5.8C357A78@att.net> <36E1E9D8.2471@hem.passagen.se>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk
rasmus ekman wrote:
>
> > How would I have a line in a score repeat say 10, 20, 30 times?
>
> For simple repetitions you can fake it with the r statement.
...but note that it will only play sections consecutively, so it's
probably not what you want.
(I fail to see how to get score sections to overlap, if that were
possible r-statements would work. I think (but not very well tonight).)
Sorry,
re
Received: from wallace.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa12553;
7 Mar 99 5:31 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 10JWAI-0002eI-00; Sun, 7 Mar 1999 05:31:51 +0000
Received: from noether [144.173.8.10] by hermes via SMTP (FAA12224); Sun, 7 Mar 1999 05:30:53 GMT
Received: from exeter.ac.uk by maths.ex.ac.uk; Sun, 7 Mar 1999 05:30:41 GMT
Received: from root@relayc.gateway.net [208.230.117.251] by hermes via ESMTP (FAA08598); Sun, 7 Mar 1999 05:30:39 GMT
Received: from gate (1Cust180.tnt1.melbourne.fl.da.uu.net [208.255.26.180])
by smtp3.gateway.net (8.9.1/8.9.1) with SMTP id AAA05023
for ; Sun, 7 Mar 1999 00:30:24 -0500 (EST)
From: Bill DeWitt
To: Csound List
Subject: RE: uh, or perhaps not (Re: r statement )
Date: Sun, 7 Mar 1999 00:30:36 -0500
Message-ID: <000101be685b$a1293ea0$b41affd0@gate>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Windows-1252"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.0810.800
Importance: Normal
In-Reply-To: <36E20366.991@hem.passagen.se>
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk
That's what I thought at first, then I found this...
>(New in Csound 3.49)
>
>
>b clockbase
>
>Resets the base clock for textually following events.
>
>PFIELDS
>
> p1 New clock base value.
>
>SPECIAL CONSIDERATIONS
>
>Use it for repeated sections where you want an overlap with previous
version, as it does not start a new section. It is >textual, and is
expanded before sorting.
>
I just wish I understood it. It seems to be saying that you can reset the
clock to a time(clockbase) of your choosing. It doesn't seem to do anything
yet, but that's what I thought about [math] until 15 minutes ago...
> rasmus ekman wrote:
> >
> > > How would I have a line in a score repeat say 10, 20, 30 times?
> >
> > For simple repetitions you can fake it with the r statement.
>
> ...but note that it will only play sections consecutively, so it's
> probably not what you want.
>
> (I fail to see how to get score sections to overlap, if that were
> possible r-statements would work. I think (but not very well tonight).)
>
> Sorry,
>
> re
>
Received: from shaun.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa12834;
7 Mar 99 9:40 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 10Ja3H-0001I6-00; Sun, 7 Mar 1999 09:40:51 +0000
Received: from noether [144.173.8.10] by hermes via SMTP (JAA12553); Sun, 7 Mar 1999 09:37:49 GMT
Received: from exeter.ac.uk by maths.ex.ac.uk; Sun, 7 Mar 1999 09:37:38 GMT
Received: from agora.stm.it [195.62.32.1] by hermes via ESMTP (JAA04672); Sun, 7 Mar 1999 09:37:37 GMT
Received: from agora.stm.it (ppp02-14.dial-access.stm.it [195.62.37.78]) by agora.stm.it (8.9.2/8.8.5) with ESMTP id KAA17398; Sun, 7 Mar 1999 10:37:22 +0100 (ITA)
Message-ID: <36E24835.484D0F96@agora.stm.it>
Date: Sun, 07 Mar 1999 10:34:45 +0100
From: Gabriel Maldonado
X-Mailer: Mozilla 4.06 [en] (Win95; I)
MIME-Version: 1.0
To: SONICMAN , Csound list
Subject: Re: simple repeat command? HOW?
References: <36E18BE5.8C357A78@att.net>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk
Try current version of DirectCsound (if you are using a PC) it includes the new score
opcodes '{' and '}' to implement nested loop without any section interruption.
This is the manual:
Syntax:
{ num NN
...... body........
}
Score loops are a very powerful tool. Derived by repeats (r opcode), they allow to define
any parameter,
and the score events inside the loop are not separated by a section termination in each
iteration. So it is
possible to implement overlapping loops. Loops can be nested. The syntax is similar to
that of the repeats:
the macro $NN is incremented in each iteration (notice that, differently from repeats, it
starts with a zero
value); num argument must be set to the number of iterations.
NB: exponential ramp symbol has been changed to '(' or ')' in order to allow curly-brace
characters to be used
for loops.
EXAMPLE:
{ 10 nn
i1 [$nn/2] .5 [$Line(10, $nn , 10000, 4000)] [$Line(10,$nn,440,110)]
{ 5 bb
i1 [$nn/2+$bb/10] .1 [(1+$nn/4)*$Line(10 , $bb, 2000, 500)] [$Line(10,
$bb, 400, 600)]
}
}
SONICMAN wrote:
>
> How would I have a line in a score repeat say 10, 20, 30 times? or
> infinitely? what is the command?
>
> Also is there a random command that works in scores?
>
> Thanks,
> Marcus
--
Gabriel Maldonado
http://www.agora.stm.it/G.Maldonado/home2.htm |