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@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
#N canvas 452 124 801 312 12; #X obj 409 157 & 1; #X obj 369 157 & 2; #X obj 329 157 & 4; #X obj 289 157 & 8; #X floatatom 99 42 5 0 0 0 - - -; #X obj 239 157 & 16; #X obj 192 157 & 32; #X obj 149 157 & 64; #X obj 99 157 & 128; #X obj 99 221 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 128; #X obj 119 221 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 64; #X obj 139 221 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 32; #X obj 159 221 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 16 16; #X obj 179 221 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 8; #X obj 199 221 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 4 4; #X obj 219 221 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 2 2; #X obj 239 221 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 1; #X text 157 39 <- scroll this; #X floatatom 30 188 5 0 0 0 - - -; #X connect 0 0 16 0; #X connect 1 0 15 0; #X connect 2 0 14 0; #X connect 3 0 13 0; #X connect 4 0 2 0; #X connect 4 0 3 0; #X connect 4 0 1 0; #X connect 4 0 0 0; #X connect 4 0 5 0; #X connect 4 0 6 0; #X connect 4 0 7 0; #X connect 4 0 8 0; #X connect 5 0 12 0; #X connect 6 0 11 0; #X connect 7 0 10 0; #X connect 8 0 9 0; #X connect 8 0 18 0;