Freehand drawing in "function"?

Jul 31, 2009 at 9:14am

Freehand drawing in "function"?

Is there a way to draw freehand in the function object, or is it locked to breakpoint entries?

And, also, is it possible to dynamically set the length (“Table size”) of the itable object, like it (sort of) is in function?

#44964
Jul 31, 2009 at 12:17pm
oivindi wrote on Fri, 31 July 2009 03:14
Is there a way to draw freehand in the function object, or is it locked to breakpoint entries?

Apart from clicking to make breakpoints? No.

Quote:
And, also, is it possible to dynamically set the length (“Table size”) of the itable object, like it (sort of) is in function?

Well, you can certainly use the “size ” message to change the number of horizontal entries, but that won’t make any change in what the table entries currently *are* – it’ll truncate the table if the size message is less than the current size, or fill any large number with zeros.

I believe that the funbuff object will interpolate over a range from a very small number of points, so perhaps you could combine that with a scale object and get what you’re looking for.

#161938
Jul 31, 2009 at 12:32pm

Looks like the interpolation stuff works in terms of adding points….

– Pasted Max Patch, click to expand. –
#161939
Jul 31, 2009 at 12:37pm

function object is for functions.. think about it. what you’re asking for is really the multibar object or the lcd object.

#161940
Jul 31, 2009 at 6:15pm

Some great suggestions to get me on the way there, Gregory – thanks!

Matthew: I know it’s a function, and I did do some thinking. I was thinking maybe there was a way to freely draw points in a more flowing matter, though with, say, a predefined distance between the points – thus keeping with the function’s interpolationary(!?) nature.

#161941
Jul 31, 2009 at 6:39pm

yes use [lcd] to draw – and then maybe use a [peek~], [buffer~]
and [play~] for your envelope, and not data at all.

for your “interpolation” – look into [curve]. use it with
[zl reg] to store the data.

-110

#161942
Jul 31, 2009 at 8:25pm

Roman: Won’t the use of LCD get too messy, particularly because you can draw so many parallell/conflicting lines? How would I ake sure lines I’ve drawn will be played back properly from the buffer?

I’m not that familiar with LCD, so I might be way off here.

#161943
Jul 31, 2009 at 8:59pm
Quote:
Won’t the use of LCD get too messy, particularly because you can draw so many parallell/conflicting lines?

i’d use the [waveform~] object for freehand drawing.
check ‘draw’ from the ‘click mode’ in the inspector to be able to draw directly to a buffer.
vb

#161944
Aug 1, 2009 at 5:55am

I’m guessing you want a function object that uses bezier curves, with control handles like this.

Does such an object exist?

#161945
Aug 1, 2009 at 9:43am

Emmanuel Jourdan’s ej.function [jsui] code is great. Take a look.

lh

#161946
Aug 1, 2009 at 1:26pm
/3r7ex wrote on Fri, 31 July 2009 23:55
I’m guessing you want a function object that uses bezier curves, with control handles like this.

Does such an object exist?

Well, you could certainly make yourself a nice NURBs surface and grab a cross-section of it to use for your curve. The advantage of that would be that you’d have quite a few cross-sections to use, you could play with the NURB to modify the curviness, etc. Not that I *ever* do this. Much.

#161947
Aug 1, 2009 at 6:56pm

I also came across Adam Murray’s multislider envelope, which I find very useful:

http://compusition.com/web/software/maxmsp/multislider-envelope

#161948
Aug 1, 2009 at 8:31pm

I finished it. UG!

#161949
Aug 1, 2009 at 9:20pm

oh screw it.

– Pasted Max Patch, click to expand. –
#161950
Aug 2, 2009 at 8:20am

Thanks for sharing, Matthew – screw it or not screw it! Wink

#161951
Aug 2, 2009 at 9:33am

sorry… That was edited weird. at first I gave you the pieces and told you to do the rest. then I got addicted and said “ah screw it.” and finished it.

Here’s an easier to understand version.

#161952
Aug 2, 2009 at 9:36am

#161953
Aug 2, 2009 at 9:37am

– Pasted Max Patch, click to expand. –
#161954
Aug 2, 2009 at 12:21pm

more interesting would be an effective way of having
a breakpoint envelope which can be modulated while its
been played. once gave up on it.

#161955
Aug 6, 2009 at 2:28pm

oivindi wrote on Fri, 31 July 2009 20:15I was thinking maybe there was a way to freely draw points in a more flowing matter, though with, say, a predefined distance between the points – thus keeping with the function’s interpolationary(!?) nature.

I just made this as a suggestion…

Stefan

– Pasted Max Patch, click to expand. –
#161956
Aug 6, 2009 at 3:36pm
stefantiedje wrote on Thu, 06 August 2009 23:28

I just made this as a suggestion…

Stefan

That is really elegant and works well. One of the things i miss about supercollider is the ability of hand draw in tables freehand and then smooth and filter the tables with the menu it had on the side. I am not sure this is clear, but old users of SC1 and SC2 will prolly know what i mean. That was pretty darned handy.

#161957

You must be logged in to reply to this topic.