Forums > MaxMSP

locked phasor~ and change~ bug

November 1, 2008 | 10:01 pm

It seems that when I use the lock attribute on a phasor~, it makes change~ react poorly. I’m guessing this is because phasor~ is constantly re-adjusting to keep in sync.

Unfortunately, this breaks a lot of the cool sample and hold ideas I’d been coming up with. :

– Pasted Max Patch, click to expand. –

November 1, 2008 | 10:07 pm

for the record, I’m using this simple patch as a workaround. However the OCD part of me doesn’t want to :0

– Pasted Max Patch, click to expand. –

November 1, 2008 | 10:09 pm

On 1 nov. 08, at 23:01, Nick Inhofe wrote:

> It seems that when I use the lock attribute on a phasor~, it makes
> change~ react poorly. I’m guessing this is because phasor~ is
> constantly re-adjusting to keep in sync.
>
> Unfortunately, this breaks a lot of the cool sample and hold ideas
> I’d been coming up with. :

I would suggest using another strategy to find when the phasor start,
using delta~ and < ~. If the delta~ is negative it's because it went
back to 0.

Best,
ej

———-begin_max5_patcher———-
829.3ocwWksbaBCE8Y6uBFl9niGtZgkN4k9OzouzISGYrrCsfjGPzl1LIe6E
jXy1wDB3PdQVaV5bO5bW3wkKr2HefmYa8YquasXwiKWrPOU4DKpFuvNg8PXL
KSuMakb+9Xt8JyRh7jHQLWoWCZmTlqNc1CLU38Qh8+HkGpL2HhhW6rxh3T1h
ZZstq5uDsUekxM+7F25azbxp+dfaNC6HQwocW4hOsbYYypAZIB9eJN45yUwe
PYLvTlH6fLUUuxNoPkE8O88AnBP9BlN5EM8fW0z8fxV.40msS5hDAKQiD6uj
Fwh6kUV07ytXI6BcdocMN9LTljvEpyHzauw5XQyPHzZUytz8aLljyZvABbgU
k8P.0MP2yCQIE8fNT2wOBNW9Qf5pYeZYK0uum.bOOAWOo2sOaciyZ5zEd83y
gMtYf9GRPeFMLFgWVzdQwxWSOxs7XE64wnddirB3p4CBoWVAOyrx0Lhasc95
AbQ3qeD2DdVFaO+rG3XY3ur9DLC5dBpU1C9WvxgQ7.ONBIKTdf2nr2juqwr8
IUSFxhCCk4BsY.f+vIidB7AXcBGLxj9oRUfujhOXTw3xS1vSmtWKpmjnHpI8
oNWJsW8L3O9rnaXh8iLh16OI.TxvIAuOBR3CVkC9NCQk6eESje3dVlL84YHf
lmNTFs2LV34NOddQcf40m7uYoMWYJS0D8+PpTIKuvlU+ZTB25ar37huHoZSr
3BXbT8fcoRm0DL00stL6HEOo5aYrAQolcUYCpsKosqeaWvssOtytc6rc.U7G
5Vg44drk1R00egRQw8nUc67oPlZQuT9IfNdm3yqtWeC1wQhS+LPMHKm+3G5L
YdZX8oVWknUKP2xyTQBlJRJ5tofi1z8Qa2xEcceSh1dPV.xJPfCVSKxOAFhf
31L5B5wACV7P.K4sA1IhI7fHP7rhoxZfdULgmWdBMj2tS.96MlJ8EsfqLOAA
5pTc0wBLdBtNSV5OHYl+XbSgpui13lpGMUZ0efXEFNVQXhFdtlbkTulQSErd
WehsLcPKXqY14Bru0n0mfVj4miFgBpp9Be9HLPNJLOYdzOZqb7BHOuNVY0HL
30QboGMQKwc.FxTBCWL3ok+Gs6o9h.
———–end_max5_patcher———–


November 1, 2008 | 10:24 pm

On 1 nov. 08, at 23:09, Emmanuel Jourdan wrote:

> I would suggest using another strategy to find when the phasor
> start, using delta~ and < ~. If the delta~ is negative it's because
> it went back to 0.

Although, it appears that change~ works fine if overdrive, and
scheduler in audio interrupt are both one. And that’s probably what
you want anyway if you want to have a tight synchronisation.

ej

———-begin_max5_patcher———-
1027.3ocyX0zjahCD8r8uBJp8nGWnO.DakbH+GRsWRkJkLViGxBRt.wtSRpL
+1CRBLvL1fLlgYt.RBQyqe5otazuVuxcm3QVgqye67EmUq905UqzCoFXUc+U
tYzGiSoE5o4tqTJEb2MlGcLmUv3RpLQv+VNKVZLkOZq2FGT.Qcyq9hyWqeId
YVBOkI0FDzNnnT97QORkwOjvOzw1.OsAQgZiC8Ztdx7I60.Ur662E0fSiok+
3HyXD2cT9AWmupd5uWuVcYikD.m8+UltwvR1iZb4x1ef8Tyn2K3xhjep+X.X
EBGjsPZOAgBmJaAGmsvZiiwCwV.ut3mSyz328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———–


November 2, 2008 | 12:59 am

Thanks ej, the delta~ patch is a clever one, and fixed my problem.

However, I have overdrive and AI on I still have the change~ problem. This is really not a big deal since I’m going to switch to using the delta method.


Viewing 5 posts - 1 through 5 (of 5 total)