Define or declare them before you use them that way or you get
a "used before defined" error message when you render it. I've come
across that a few times.
-pbs
=====================================
--- noisesmith@GMAIL.COM wrote:
From: Justin Smith <noisesmith@GMAIL.COM>
To: CSOUND@LISTSERV.HEANET.IE
Subject: Re: [Csnd] has anybody...
Date: Thu, 20 Jul 2017 20:29:55 +0000
one opcode I rarely see used that can make working with p fields nicer is passign
so instead of a bunch of lines like
iamp = p4
ipan = p5
ipitch = p6
you can use
iamp, ipan, ipitch passign 4
The only thing in regards to pfields I've been thinking about is for
CS7, which is to make fields have data types associated with them.
This would feed into work to allow any value be used as a pfield, such
as arrays or opcode instances. The latter is part of another bit of
work I wanted to have in Csound, but has a lot of complexities around
it (like, what's the duration for an opcode instance that is created
prior to using it as an event), but it allows a lot of expressive
possibilities. (e.g., Design an instrument once, let it play with a
static pitch, or pass in an expseg instance as a pfield to be used as
a glissando, etc.).
On Thu, Jul 20, 2017 at 3:51 PM, jpff <jpff@codemist.co.uk> wrote:
> On Thu, 20 Jul 2017, Cacophony7 wrote:
>
>> ...changed the way we look at p-fields?
>> can I make an array of k-variables based on the value of a p-field and do
>> an
>> algorithm of operations and functions based on it?
>
>
> You can do that if you want
>
>> can I give a p-field a default value or even a secondary one or some kind
>> of
>> articulate plan-B?
>
>
> AFAIK not in current system
>
>> can I skip a p-field or so?
>
>
> they are numbered by occurrence, but you can just not look at a p field
>
>
>> can I make a gestalt and OR or an array of p-fields?
>
>
> no idea
>
>> can I use an intelligent array generator on that gestalt?
>> can I go to a p-field based on an address, tag, or purpose?
>
>
> no idea what you mean; what does "go to" mean here? you can only reference
> them by name or via p() function
>
>
>> can I go to a gestalt like that too?
>>
> do p-fields have floating point names like p5.0 p5.1 p5.1 p6.0 p6.1
> p6.2.33?
>
> no
>
>
> I think i do not understand what you envisage
> ==John ff
>
>
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
> https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Netscape. Just the Net You Need.
Csound mailing list