[PD] Binary - integer conversion

Steffen Leve Poulsen slagmark at worldonline.dk
Sun Mar 18 21:35:54 CET 2007


Hi David

I sometimes use constructs like attached patch. Its just a bitmask.
Quite effektive for eventfiltering, beatcuts and patterncreation.

more xor!

Interesting that you persue this.

mvh Steffen Leve Poulsen

David Powers skrev:
> Hello,
>
> Is it possible to somehow convert back and forth between integer and
> binary in PD?
>
> My idea, is to represent simple drum machine style rhythms as binary
> numbers. [101010001011]. Ok, so if this were a float, it would be
> trivial to do a common task and shift the rhythm left or right. I
> think, that other rhythmic variations would also be quite fast to
> implement using this system, you can do binary math instead of list
> operations which should be much faster, I assume.
>
> ~David
>
> _______________________________________________
> PD-list at iem.at mailing list
> UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
>
>
>   

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: bitmask.pd
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20070318/3d2c84b2/attachment.asc>


More information about the Pd-list mailing list