Alternative use of binary numbers

steve_j's icon

Hi

Am looking to use binary numbers to create rythm sequences. Say i have binary numbers comming in between a value of 8 to 15 this will give me 4 digit numbers 1000 to 1111

Say each number is a 1/4 note and a value of 1 = note on and 0 note off.

ie 9 = 1001 = on/off/off/on

Idealy i would like to be using binary numbers in the 8 digit range, any thoughts or ideas?

Eddy's icon

Here's a patch I wrote recently which converts between a binary display and decimal. You might find it useful for unpacking the bits in an incoming value to do something based on the value of each bit.

It has a presentation mode.

Max Patch
Copy patch and select New From Clipboard in Max.

Eddy

steve_j's icon

Thanks Eddy thats great, just what i was looking for

Eddy's icon

You're welcome. Actually, I rather like your idea by the way. Packing beats into binary numbers is the kind of thinking I like. I'm working on an open-ended musical project at the moment (which is intended to be a suite of apps - www.xstremetouch.com, incidentally) and I'd quite like to do something based on the 'beats in binary' concept.

With some creative filtering/masking you could create a drum track which can have the rhythm dynamically varied using a controller, yet stay in time and operate within defined constraints. A kind of 'realtime loop remix' ... food for thought :)

Luke Hall's icon

Here's a more compact decimal > binary (as list) > decimal conversion patch you might find useful.

Max Patch
Copy patch and select New From Clipboard in Max.

lh

steve_j's icon

Thanks luke, have modified Eddies patch and its working well.

"With some creative filtering/masking you could create a drum track which can have the rhythm dynamically varied using a controller, yet stay in time and operate within defined constraints. A kind of 'realtime loop remix' ... food for thought :)"

Nice idea, am looking to work on the dynamics next but plan to generate eveything (including the velocities) from a realtime stream of pulse data. Although, from the rythms being generated ( am using 3 sets of binaries) it is very tempting to get my hands involved, could be alot of fun.