[PD] send recieve efficientcy

Bradon Webb amodiuslonodium at yahoo.com
Fri Dec 26 16:51:39 CET 2003


hello,
I am trying to work out better effeciency for this
patch.  It is a sequencer based off of the simple
logic of being able to store a number in a certain
location and sequentially call that number back up. 
right now it is only 16 steps however I would like to
make it 64.  I am using a keyboard toggle/canvas sub
patch that someone made, so many thanks to them who
ever they are, although I did have to go in and
reset/edit all the variables, and values.

I will attach the patch so you can open it up and
better see where I want to make the improvements.
also Thomas and I have sent some messages back and
forth copy below.


The more efficient areas that I would like to have are
in the recieve sections.  such as in [pd toggles]
where there are recieves $0-step1 through $0-step16
and also where the notes are recieved at $0-n48
through $0-n84 in [pd notes].  I was wondering if
there was a way to recieve all the revieves at one
location that could carry a variable signifier or some
kind of range.  this is mainly to eliminate the need
for me to connect 40 recieve boxes to one inlet..., in
the future I may want to do something with over 100
recieves and connecting all those boxes seems like it
could be done a better way. 

Thomas had the suggestion of using nqpoly abstractoin
(see below) however I am not familiar with how to use
that to do what I want.

many thanks,
Bradon

amodiuslonodium at yahoo.com

---------------------------------------------

Hi Bradon,
i don't know why you want to do that because you can
always have to
respective logic in the sender (to send to a specific
receiver)... it's
clear that in the sense of modularity this may be
difficult, though.
A way would be to use the nqpoly abstraction or my
dyn~ object to
dynamically create a range of number-coded
receivers... i expect this 
to
provide what you want.

best greetings,
Thomas

PS. If you would subscribe to the pd-list others could
benefit from 
this
conversation too.

----- Original Message ----- 
From: "Bradon Webb" <bradonwebb at yahoo.com>
To: "Thomas Grill" <t.grill at gmx.net>
Sent: Monday, December 22, 2003 3:13 PM
Subject: Thanks: Re: PD Help!


> Thanks a lot Thomas,
>  I don't know why I didn't think of that earlier,
but
> your solution works perfect.  I was able to shorten
up
> everything by eliminating a router and replaceing a
> bunch of send objects with the one variable send. 
The
> other good thing is I can expand the patch to
include
> more variables without modifying the patch.  I just
> wonder now if the reverse of this can be done
also...
> Is there a way to recieve a varible number of sends,
> or a range of sends in one location.  Something like
> [r nX] where X is the varibale,  This doesn't make
> sense to me though because... say the first number
in
> the recieve would be the variable, and then the
second
> number would be the actual message to send, the
> recieve would have to be defined before it recieved
> the message variable to tell it what to be defined
as
> unless you could set an the value of X through
another
> inlet, which there is only one on the recieve.... 
or
> maybe something like this is possible [r (n1 -
n40)].
> where the recieve is defined but it will accept
> multiple sends.  What I have currently been using is
> having a bunch of seperate recieve objects and then
> connecting them all together i.e. [r n1], [r n2], [r
> n3]....  kind of gets tireing after wireing 40 or so
> of these together.
>
> peace
> bradon~
>
>
> --- Thomas Grill <t.grill at gmx.net> wrote:
> > Hi Bradon,
> > it would be easier to use variable numbers for the
> > names of receivers than
> > letters, since only these can be passed with $xx
> > arguments to a message.
> >
> > Sending to variable receivers can be done with a
> > message like
> > [ ; $1-recv $2 (
> > with no object afterwards, where $1-recv is the
> > receiver and $2 the message.
> > You can feed it with a [pack 0 0] or the likes.
> >
> > i hope this helps, best greeting,
> > Thomas
> >
> > ----- Original Message ----- 
> > From: "Bradon Webb" <bradonwebb at yahoo.com>
> > To: <t.grill at gmx.net>
> > Sent: Thursday, December 18, 2003 11:09 PM
> > Subject: PD Help!
> >
> >
> > > hello thomas,
> > >
> > > i got your name from the PD list, I was a happy
> > > subscriber to until just recently my e-acess was
> > lost.
> > >  i had a quick question about a post you made in
> > > response to variable send objects.  I did not
see
> > the
> > > attatched patch for download off the list?  I am
> > > trying to use one send object and have it
> > dynamically
> > > set to send to a number of recieveable objects.
> > the
> > > send would also have to have a $0 in it as it
will
> > be
> > > used as an abstraction for multiple uses.  This
> > will
> > > be for a keyboard type of aplication.  i would
> > like
> > > something like [s $0-"C1"] where the C1 could be
> > > changed to a D1, E1, B2 etc. any help at all
would
> > be
> > > great, I am kind of stuck in a puddle of mud
until
> > I
> > > figure this one out.
> > >
> > > thanks,
> > > Bradon
	

__________________________________
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: +seq16.pd
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20031226/e23bd42c/attachment.txt>


More information about the Pd-list mailing list