Dividing a String in Thirds

Nov 8, 2012 at 2:45pm

Dividing a String in Thirds

Here’s a prototype I made for dividing a string into thirds. It will eventually end up inside a gen~ patch to control node placement on a waveguide string. The two sliders represent the nodes and the A, B, and C segments of the string are calculated from moving them. It seems to work fine but I thought for my own/everyone’s amusement I’d see if any of the math/geometry geniuses could come up with a more elegant solution. What would really be interesting is an extensible solution that could be used for any amount of nodes. Not sure if that’s even possible (not for me right now :-) )

Cheers!

Dave

PS – The overall string length is set at the constant 100 for ease of reading, but of course in the final patch I’ll have a variable string length (in samples for the delay operators in gen~).

– Pasted Max Patch, click to expand. –
#65141
Nov 8, 2012 at 7:51pm

Hi,

do you mean something like this?

– Pasted Max Patch, click to expand. –

It can be expanded to as many nodes as you wish (I included 3 of them for demonstrating you the way to go). The only thing you have to change is the [pak] and the [unpack] at the beginning and the end, respectively. Don’t forget that in the [pak] at the top of the patcher you’ll need to include the additional ’1.’ (as you can see in my patch, too) at the N+1th place (if you have N nodes) and you shouldn’t connect anything to the rightmost inlet of that [pak].

Hope this helps,
Ádám

#234808
Nov 8, 2012 at 9:08pm

Fancy stuff there! Yes that does indeed help. A very elegant way to get multiple nodes. I’ll look at using this solution when I work on strings with more than three waveguides, and when I do I’ll post up an example of it in action. Thanks!

#234809

You must be logged in to reply to this topic.