line object

Sep 28, 2012 at 11:15pm

line object

Hi,

I’ve tried every solutions that were described in the help patches, but my line object keeps jumping almost directly to a value, although I assigned it a ramp time of at least 2000 ms. My patch is quite complex, so I wouldn’t attach it but maybe someone has a clue about what’s wrong. I’m not really new anymore to programming and I know that beginners errors are always possible, but I’m sure I haven’t made any mistake.
Thanks for your help !!

Coralie

#64543
Sep 29, 2012 at 2:58am

Extract the section that is problematic, and post that. line works, so there must be a bug somewhere.

#232809
Sep 29, 2012 at 8:48am

Hi Chris
Thanks for your answer. Here is an extract. I’ve tried to document it the best I could so you could have a look at it.

Attachments:
  1. Lineproblem.maxpat
#232810
Sep 29, 2012 at 12:53pm

hi coralie, you don’t stop [line]s in ‘return301′ subpatcher, so two [line]s send messages to one gain~.
imho generally it’s better to have one [line] for a destination.

#232811
Sep 29, 2012 at 1:21pm

Hi Andrzej,

thanks for your answer. I don’t quite understand. The subpatcher stops the line and resets the gain~ level to it’s original value. It is triggered only after the metro is started. But I guess you pointed out a recursion problem. Any way, even if I suppress the link in the sbpatch, the line object keeps on jumping. It does so even if you trigger it manually from the main patch, or from the subpatch.

#232812
Sep 29, 2012 at 1:54pm

Well, I found a solution, but I’ll have to replace all my subpatches :-(
In case you’re interested, I’ll post it.

Line always needs a start value when it doesn’t start from 0, from what I understood. I didn’t want to do it that way, but I had no other choice.

Thanks for your help anyway.

Attachments:
  1. Lineproblem.maxpat
#232813
Sep 29, 2012 at 2:04pm

That’s what I thought looking at your patch but I didn’t have time to investigate it. So you introduced a starting point as a variable ?

#232814
Sep 29, 2012 at 4:14pm

open this patcher in parallel with your project, wave your ‘conduite’ slider and look at gain~ in my patcher. Is this what you are after?

– Pasted Max Patch, click to expand. –

BTW. Edit -> Copy compressed. Way faster for both sides.

#232815
Sep 29, 2012 at 5:22pm

@ Stephane
Yes, I thought I had to do that yesterday, but I acutally have many many cycles, so I thought there would be a quicker solution. I just don’t understand this special feature of the line object… So you have to “tell” it : first, you go from the start value to the next value, then you go up and down and do use the first ramp until you’re not “told” it’s done… But it’s an important complication…
@ Andrzej, yes, it actually works ! There’s objects I don’t know, so I should have a look at this more deeply. Meanwhile, I’ll see what solution, yours or mine is easier to integrate…. Thanks a lot !

#232816
Sep 29, 2012 at 5:58pm

My solution is just your original one minus some redundancy. :-)

#232817

You must be logged in to reply to this topic.