How to push

1 view
Skip to first unread message

Brandon James

unread,
Oct 4, 2010, 6:03:17 AM10/4/10
to web-pure-data
Chris (or anyone really),

Please excuse the noob question, but I'm new to working with svn other
than to download source now and then.

The good news is that by using the workaround I mentioned in the other
thread I was finally able to test one the objects I've ported and it
works beautifully.

I then used Bazaar to checkout a copy from my branch, added the new
files for the object, and committed the changes.

When I try to push the new version, it says:

bzr: ERROR: A Subversion remote access command failed: Server sent
unexpected return value (405 Method Not Allowed) in response to
MKACTIVITY request for '/svn/!svn/act/9aafb684-21de-
a544-986a-605e9070644c'

Does this mean I can't use Bazaar?
What's the best way to go about the whole process?
I'm not afraid of command line, as long as I know what I'm typing
means.

Thanks for your help and patience.

In the meantime, I've got plenty of tests to throw together.
My current list of objects to be tested is:

cos~
ftom~ (tested and working)
sig~
wrap~
samphold~
max~
min~
clip~
abs~
exp~
pow~
log~
dbtopow~
powtodb~
dbtorms~
rmstodb~
snapshot~
hip~

We'll see how many actually work :-)

Chris McCormick

unread,
Oct 4, 2010, 11:20:02 AM10/4/10
to web-pu...@googlegroups.com
Hey Brandon,

If you're happy to use bzr that is even better. Do you have a web host with ftp or ssh access? If so then you can just push there and I'll pull direct from you. Tomorrow I'll take a.closer look at your svn issue - maybe you need to include your full username in the path, like user...@code.google.com/etc

Cheers,

Chris.

"Brandon James" <xbrando...@gmail.com> wrote:

--
Sent from my Android phone with K-9 Mail. Please excuse my brevity.

Spencer Kelly

unread,
Oct 4, 2010, 9:28:56 PM10/4/10
to web-pu...@googlegroups.com
On Mon, Oct 4, 2010 at 6:03 AM, Brandon James <xbrando...@gmail.com> wrote:
> In the meantime, I've got plenty of tests to throw together.
> My current list of objects to be tested is:
>
> cos~
> ftom~ (tested and working)
> sig~
> wrap~
> samphold~
> max~
> min~
> clip~
> abs~
> exp~
> pow~
> log~
> dbtopow~
> powtodb~
> dbtorms~
> rmstodb~
> snapshot~
> hip~
>

you rule!

i just wrote 'select', 'swap' and 'spigot'.
i'm having the same problem with svn auth actually. let me know if you
figure it out. i heard somewhere that it gets user/pass from your
google cookie or something.


chris, i wrote the fromstring() method:

/** Initiate a load of a Pd source string **/
this.loadfromstring = function (string, callback) {
this.loadcallback = callback;
this.loadcomplete(string,{"status":200});
return string;
}

hey brandon, while you're testing, will you add 3 new properties to
your new objects for the UI?

defaultinlets = inlet # without arguments
defaultoutlets = outlet # without arguments
description: = what it does, briefly

i've done this for the existing objects. these changes are the only
things the UI needs from pd.js,cheers

Brandon James

unread,
Oct 4, 2010, 10:14:56 PM10/4/10
to web-pure-data
>>Do you have a web host with ftp or ssh access?

No, sorry, I don't have a web host. Where/when do I enter my username
and password? If you could explain the process like I'm 5 and never
owned a computer before, I think we could get things moving.

>>hey brandon, while you're testing, will you add 3 new properties to
your new objects for the UI?

Sure. Like this?

// dsp multiply object
"*~": {
"defaultinlets" = 2
"defaultoutlets" = 1
"description" = "multiply two signals"
"outletTypes": ["dsp"],
"dspinlets": [0, 1],
"init": function() {
// argument sets right inlet constant value
if (this.args.length >= 6) {
this.inletbuffer[1][0] = parseFloat(this.args[5]);
}
},
"dsptick": function() {
// mutiply our two buffers together
var i1 = this.inletbuffer[0];
var i2 = this.inletbuffer[1];
for (var i=0; i < this.pd.bufferSize; i++) {
this.outletbuffer[0][i] = i1[i % i1.length] * i2[i % i2.length];
}
},
},


Also, [metro] or [delay] would be very helpful to me in trying to
devise tests for some of these objects, but I'm unclear on how time is
handled outside the dsp domain. So if you're trying to decide which
objects to do next, please keep that in mind.

Brandon

On Oct 4, 6:28 pm, Spencer Kelly <spencerkell...@gmail.com> wrote:

Spencer Kelly

unread,
Oct 4, 2010, 10:42:59 PM10/4/10
to web-pu...@googlegroups.com
On Mon, Oct 4, 2010 at 10:14 PM, Brandon James <xbrando...@gmail.com> wrote:
> Sure. Like this?
>
> // dsp multiply object
>        "*~": {
>                "defaultinlets" = 2
>                "defaultoutlets" = 1
>                "description" = "multiply two signals"
>                "outletTypes": ["dsp"],
>                "dspinlets": [0, 1],
>                "init": function() {
>                        // argument sets right inlet constant value
>                        if (this.args.length >= 6) {
>                                this.inletbuffer[1][0] = parseFloat(this.args[5]);
>                        }
>                },
>                "dsptick": function() {
>                        // mutiply our two buffers together
>                        var i1 = this.inletbuffer[0];
>                        var i2 = this.inletbuffer[1];
>                        for (var i=0; i < this.pd.bufferSize; i++) {
>                                this.outletbuffer[0][i] = i1[i % i1.length] * i2[i % i2.length];
>                        }
>                },
>        },

perfect. thanks

>
> Also, [metro] or [delay] would be very helpful to me in trying to
> devise tests for some of these objects, but I'm unclear on how time is
> handled outside the dsp domain. So if you're trying to decide which
> objects to do next, please keep that in mind.

+1 !

chrism

unread,
Oct 5, 2010, 12:52:02 AM10/5/10
to web-pu...@googlegroups.com
Hi Brandon,

On Mon, 4 Oct 2010 19:14:56 -0700 (PDT), Brandon James
<xbrando...@gmail.com> wrote:
>>>Do you have a web host with ftp or ssh access?
>
> No, sorry, I don't have a web host. Where/when do I enter my username
> and password? If you could explain the process like I'm 5 and never
> owned a computer before, I think we could get things moving.

Ok, sorry, I see that I am not being clear enough. First try this:

bzr push
https://xbrando...@web-pure-data.googlecode.com/svn/branches/brandon

Note the username before the @ sign there. You will be asked for your
password, which should be your automatically generated Google Code
password. You can get that from this url:
<https://code.google.com/hosting/settings>

If that doesn't work, or you are still having trouble with it, you can
do a 'bound branch' which is basically like an SVN checkout, but using
bzr (which is better for me). To do that, check out the branch:

bzr co https://web-pure-data.googlecode.com/svn/branches/brandon
WebPd-brandon

Then go into the WebPd-brandon directory, and merge your changes from
your other checkout. You can probably do this quite easily with `bzr
merge path-to-my-other-checkout`. After that you should commit, which
should push them back into the SVN repository. As before you will need
your username and Google Code password.

Let me know if this helps!

Chris.

-------------------
http://mccormick.cx

Brandon James

unread,
Oct 5, 2010, 6:16:07 AM10/5/10
to web-pure-data, chrism
Chris

Thanks for your continued help a patience. After a little fiddling I
got it to work using Bazaar, but for some reason it created another
branch instead of overwriting the old one. When I tried to create
bound branch it told me the directory didn't exist, but after doing a
push (and creating the 2nd branch) I tried again and it seemed to
work. Hopefully you can delete the old branch and things will run
smoothly now. If I did something wrong please let me know.

Brandon

On Oct 4, 9:52 pm, chrism <ch...@mccormick.cx> wrote:
> Hi Brandon,
>
> On Mon, 4 Oct 2010 19:14:56 -0700 (PDT), Brandon James
>
> <xbrando...@gmail.com> wrote:
> >>>Do you have a web host with ftp or ssh access?
>
> > No, sorry, I don't have a web host. Where/when do I enter my username
> > and password? If you could explain the process like I'm 5 and never
> > owned a computer before, I think we could get things moving.
>
> Ok, sorry, I see that I am not being clear enough. First try this:
>
>     bzr pushhttps://xbrando...@web-pure-data.googlecode.com/svn/branches/brandon
>
> Note the username before the @ sign there. You will be asked for your
> password, which should be your automatically generated Google Code
> password. You can get that from this url:
> <https://code.google.com/hosting/settings>
>
> If that doesn't work, or you are still having trouble with it, you can
> do a 'bound branch' which is basically like an SVN checkout, but using
> bzr (which is better for me). To do that, check out the branch:
>
>    bzr cohttps://web-pure-data.googlecode.com/svn/branches/brandon

Brandon James

unread,
Oct 5, 2010, 6:39:44 AM10/5/10
to web-pure-data
I think there might have been an extra space at the end that was
causing problems.

On Oct 5, 3:16 am, Brandon James <xbrandonjam...@gmail.com> wrote:
> Chris
>
>  Thanks for your continued help a patience. After a little fiddling I
> got it to work using Bazaar, but for some reason it created another
> branch instead of overwriting the old one. When I tried to create
> bound branch it told me the directory didn't exist, but after doing a
> push (and creating the 2nd branch) I tried again and it seemed to
> work. Hopefully you can delete the old branch and things will run
> smoothly now. If I did something wrong please let me know.
>
> Brandon
>
> On Oct 4, 9:52 pm, chrism <ch...@mccormick.cx> wrote:
>
>
>
>
>
>
>
> > Hi Brandon,
>
> > On Mon, 4 Oct 2010 19:14:56 -0700 (PDT), Brandon James
>
> > <xbrandonjam...@gmail.com> wrote:
> > >>>Do you have a web host with ftp or ssh access?
>
> > > No, sorry, I don't have a web host. Where/when do I enter my username
> > > and password? If you could explain the process like I'm 5 and never
> > > owned a computer before, I think we could get things moving.
>
> > Ok, sorry, I see that I am not being clear enough. First try this:
>
> >     bzr pushhttps://xbrandonjam...@web-pure-data.googlecode.com/svn/branches/brandon

chrism

unread,
Oct 5, 2010, 7:04:50 AM10/5/10
to web-pu...@googlegroups.com
Whoa, that is pretty weird! I have never seen an svn repository with
the same path repeated twice. Would it be ok if I remove both branches,
and then you push them again, this time without the space? I just think
it will confuse everything otherwise.

Chris.

--
-------------------
http://mccormick.cx

Brandon James

unread,
Oct 5, 2010, 7:42:13 AM10/5/10
to web-pure-data
Fine with me.

chrism

unread,
Oct 5, 2010, 7:46:37 AM10/5/10
to web-pu...@googlegroups.com
Hey Brandon,

Ok I deleted the one with the space. Could you try committing to the
one without a space again?

Chris.

--
-------------------
http://mccormick.cx

Brandon James

unread,
Oct 5, 2010, 8:25:36 AM10/5/10
to web-pure-data, chrism
Everything seemed to go smoothly. I added [ftom~].

chrism

unread,
Oct 5, 2010, 8:34:59 AM10/5/10
to Brandon James, web-pure-data
Sweet! Thanks Brandon. I will try to merge/pull this today and then
commit it back to trunk.

Chris.

On Tue, 5 Oct 2010 05:25:36 -0700 (PDT), Brandon James

--
-------------------
http://mccormick.cx

chrism

unread,
Oct 8, 2010, 10:25:17 AM10/8/10
to web-pure-data
Hey all,

I have now merged all of Brandon's work (and Spencers via Brandon's
branch) into trunk. Thanks for all of those objects, awesome stuff! :D
:D :D

I noticed that some of them don't pass the unit tests. I guess we
should make a list of the ones that aren't working and flag them
somehow. Maybe I should put a red border on them on the testing page?

Also, can we try to make sure the .png's have a lowercase extension
(not .PNG) for those of us on case sensitive platforms. :)

Cheers, and thanks for all of this!

Chris.

On Tue, 5 Oct 2010 05:25:36 -0700 (PDT), Brandon James

--
-------------------
http://mccormick.cx

Brandon James

unread,
Oct 8, 2010, 11:50:49 AM10/8/10
to web-pure-data
Chris,
No problem, it's been a fun learning experience.

Which objects didn't pass their tests? I didn't add an object until I
had it working on my computer, so it might be another OS thing, or I
just coded something poorly.

One thing I did find today is that [sel] has a bug. All the bangs come
out the 1st outlet right now. It works fine as long as you only use
one argument per object though, and should be an easy fix.

I'll try to make sure about the png's.

I really look forward to seeing where this goes.

Brandon

On Oct 8, 10:25 am, chrism <ch...@mccormick.cx> wrote:
> Hey all,
>
> I have now merged all of Brandon's work (and Spencers via Brandon's
> branch) into trunk. Thanks for all of those objects, awesome stuff! :D
> :D :D
>
> I noticed that some of them don't pass the unit tests. I guess we
> should make a list of the ones that aren't working and flag them
> somehow. Maybe I should put a red border on them on the testing page?
>
> Also, can we try to make sure the .png's have a lowercase extension
> (not .PNG) for those of us on case sensitive platforms. :)
>
> Cheers, and thanks for all of this!
>
> Chris.
>
> On Tue, 5 Oct 2010 05:25:36 -0700 (PDT), Brandon James
>
>
>
>
>
>
>
>
>
> <xbrandonjam...@gmail.com> wrote:
> > Everything seemed to go smoothly. I added [ftom~].
>
> > On Oct 5, 4:46 am, chrism <ch...@mccormick.cx> wrote:
> >> Hey Brandon,
>
> >> Ok I deleted the one with the space. Could you try committing to the
> >> one without a space again?
>
> >> Chris.
>
> >> On Tue, 5 Oct 2010 04:42:13 -0700 (PDT), Brandon James
>

Brandon James

unread,
Oct 8, 2010, 12:07:24 PM10/8/10
to web-pure-data
Also, [hip~] and [lop~] don't sound the same as they do in PD. I'm not
sure why yet, as I basically implemented them the same way as far as I
can tell.

It might actually be [noise~] that's different now that I think about
it. I just used Math.random for it because I couldn't tell yet what
was going on in the PD source.
Maybe Math.random doesn't have the same frequency distribution.

Brandon

chrism

unread,
Oct 8, 2010, 12:13:15 PM10/8/10
to web-pu...@googlegroups.com
Hey Brandon,

[noise~] and [random] in Pd use some weird fast pseudo-random generator
based on primes. I think it probably does have a characteristic sound,
so maybe check the Pd source.

I will do some further investigation of which objects work (I
specifically noticed that [sel] does not work 100%) and get back to you.

I still have a plan to do [metro] and also connection fanning, but alas
I haven't done it yet, sorry.

Cheers, and speak soon!

Chris.

--
-------------------
http://mccormick.cx

Brandon James

unread,
Oct 8, 2010, 12:48:33 PM10/8/10
to web-pure-data
Yeah, I looked at the source at the time, and I think I'll have to sit
and stare at that little bit of trickery for a while before I fully
grasp what's going on.
I figured it would be better to get something out there that at least
works, and could be refined and improved later.

No worries on the connection fanning, trigger and +~ work well as
substitutes for now.
Metro would be fantastic.

Also, I'd to add a 3rd button to 'tests' that sends a bang to all [r
bigbang] objects. I played around with it a bit, but everything I
tried usually broke something.
I'm sure it's very simple, but my experience with js is limited to
this project, so I still sometimes have to battle syntax.
What would be the best way to go about it?

Brandon


On Oct 8, 12:13 pm, chrism <ch...@mccormick.cx> wrote:
> Hey Brandon,
>

Spencer Kelly

unread,
Oct 9, 2010, 2:34:05 PM10/9/10
to web-pu...@googlegroups.com
hey guys
i put brandon's objects in the ui version, and its getting pretty strong
http://www.spencerwaterbed.com/soft/webpd/
deleting is still flakey, (i need to reindex everything in the patch)
and you can't yet select cords (y=mx+b ?...) but its stable enough to
test our objects with.
maybe it won't be necessary to make png images.

I added a dozen or so objects to my branch that aren't in the trunk
yet. maybe because i haven't written tests for them yet.
I will do this. i will also do the rest of the math ones.

noticed the select bug too, but couldnt figure out why.

loadbang coffee debugging-

chrism

unread,
Oct 10, 2010, 11:16:22 PM10/10/10
to web-pu...@googlegroups.com
On Sat, 9 Oct 2010 14:34:05 -0400, Spencer Kelly
<spencer...@gmail.com> wrote:
> i put brandon's objects in the ui version, and its getting pretty strong
> http://www.spencerwaterbed.com/soft/webpd/

Dude, that is insanely awesome.

> deleting is still flakey, (i need to reindex everything in the patch)
> and you can't yet select cords (y=mx+b ?...) but its stable enough to
> test our objects with.

I have some code for proximity-to-a-line which might help you. Will try
to find it.

> maybe it won't be necessary to make png images.

That would be kind of cool, actually!

> I added a dozen or so objects to my branch that aren't in the trunk
> yet. maybe because i haven't written tests for them yet.
> I will do this. i will also do the rest of the math ones.

Great, let me know when you have them committed and i'll merge.

> noticed the select bug too, but couldnt figure out why.

I'll also try to look at that.

Chris.

-------------------
http://mccormick.cx

chrism

unread,
Oct 10, 2010, 11:18:55 PM10/10/10
to web-pu...@googlegroups.com
On Fri, 8 Oct 2010 09:48:33 -0700 (PDT), Brandon James
<xbrando...@gmail.com> wrote:
> Also, I'd to add a 3rd button to 'tests' that sends a bang to all [r
> bigbang] objects. I played around with it a bit, but everything I
> tried usually broke something.
> I'm sure it's very simple, but my experience with js is limited to
> this project, so I still sometimes have to battle syntax.
> What would be the best way to go about it?

This is a great idea. I think the xmen demo has an example of sending
information into the patch. When you drag along the audio loop it sends
new control points into the patch. Basically you bind a special receiver
and then when the button is clicked, send to it.

Cheers,

Chris.

-------------------
http://mccormick.cx

Brandon James

unread,
Oct 13, 2010, 7:16:44 PM10/13/10
to web-pure-data
>Also, can we try to make sure the .png's have a lowercase extension
>(not .PNG) for those of us on case sensitive platforms. :)

So it seems like even when I try to change them to .png manually, they
get changed back to .PNG,
I'm not sure why yet, but until I figure it out, my pic's will have to
stay broken I guess.
I'll work on it.

In the mean time, I added a 2nd inlet to [f ] and some other random
improvements to my earlier objects.

Brandon.

Brandon James

unread,
Oct 13, 2010, 10:49:01 PM10/13/10
to web-pure-data

> Also, I'd to add a 3rd button to 'tests' that sends a bang to all [r
> bigbang] objects. I played around with it a bit, but everything I
> tried usually broke something.


Turns out I was missing the quotes around the word 'bang'.

I thought I could just create another button and have it call
"pd.send('test,' 'bang')", but this didn't work.
I finally created a testbang() function in pd.js that does the same
thing and had the button call that.

I could see it being useful to have testbang() around in other
situations anyway.

Now to see if [snapshot~] works. :)

Brandon
Reply all
Reply to author
Forward
0 new messages