{
   "is_private" : null,
   "id" : "1-4X0",
   "code" : "Ndef(\\oneLine).play\r\n(\r\nNdef(\\oneLine,{\r\n\tvar t, x, y, z, exp = 11, length;\r\n\tlength = 2.pow( exp );\r\n\r\n\tt = PulseCount.ar( Impulse.ar( 8000 ) );\r\n\r\n\ty = InFeedback.ar( 16, 2 );\r\n\r\n\tx = ( t >> 6 | ( y * 2 << 3 ) );\r\n\t// x = ( t * 5 >>  12  ).bitXor( y * 3 << 6  & ( [ 16, 18 ] * t ) );\r\n\r\n\tOut.ar( 16, x);\r\n\r\n\tx % length / ( length - 1 ) * 2 -1  * 0.5;\r\n}\r\n)\r\n)\r\n\r\n(\r\nvar voices = 5;\r\nNdef(\\oneLine).clear;\r\nNdef(\\oneLine, {\r\n\tvar t, x, y, z, exp = 11, length;\r\n\tlength = 2.pow( exp );\r\n\tt = PulseCount.ar( Impulse.ar( 8000 ) );\r\n\r\n\ty = InFeedback.ar( 16, voices );\r\n\r\n\tx = ( t * 5 >>  12  )\r\n\t.bitXor( \r\n\t\ty * 3 << Demand.kr(\r\n\t\t\tImpulse.kr( 0.1 ! voices ) , \r\n\t\t\t0, \r\n\t\t\tDrand( (3..11), inf ) \r\n\t\t) & ( \r\n\t\t\t(13..17).choose.postln * t \r\n\t\t) \r\n\t);\r\n\r\n\tOut.ar( 16, x);\r\n\r\n\tx % length / ( length - 1 ) * 2 - 1  * voices.reciprocal;\r\n}\r\n);\r\n\r\nNdef(\\y, { Splay.ar( LeakDC.ar( Ndef.ar(\\oneLine, voices) ) ) } ).play\r\n)",
   "labels" : [
      "bitwise",
      "algorithmic"
   ],
   "ancestor_list" : [],
   "description" : "Based on the examples and references from \r\nhttp://new-supercollider-mailing-lists-forums-use-these.2681727.n2.nabble.com/one-liner-C-code-in-SC-td6854421.html#a6903794",
   "author" : "ttsesmetzis",
   "name" : "Three one liners ( or, better, many liners )"
}
