[PD] xeq & bending
Mathieu Bouchard
matju at sympatico.ca
Sun Oct 27 16:30:35 CET 2002
On Sat, 26 Oct 2002, Michal Seta wrote:
> On Sat, 26 Oct 2002 02:07:58 -0500
> Michal Seta <mis at creazone.com> wrote:
> > When I print from the [xeq_parse]'s 6th outlet I get: 14401
> > and I don't understand why...
> I do understand:
> 112 --> [<< 7] --> [| 65] --> 14401
> I've got to learn a bit about bit twiddling.
> So, how do I do the reverse?
(x<<n)|y is the same as (x<<n)+y when y is smaller than 1<<n (and not
negative). in a more general situation, however, ORing would not be
inversible. (I don't know why | was used instead of + here; + is clearer)
z = (x<<7)|65
z = (x<<7)+65
z-65 = x<<7
(z-65)>>7 = x
matju
More information about the Pd-list
mailing list