{
   "author" : "Bruno Ruviaro",
   "name" : "Fifths (QuNeo demo)",
   "description" : "playing Pbinds with a MIDI controller (QuNeo, etc).",
   "ancestor_list" : [],
   "labels" : [
      "pbind",
      "midi",
      "quneo"
   ],
   "is_private" : null,
   "id" : "1-4Z6",
   "code" : "// Running Fifths\r\n// (QuNeo demo)\r\n//\r\n//\r\n// Ctrl + A, then Ctrl + Enter\r\n\r\ns.waitForBoot({\r\n\r\n\tMIDIIn.connectAll;\r\n\r\n\ta = Array.fill(8, {arg count; [count, count+7]  });\r\n\r\n\tf = {arg velocity, midinote;\r\n\t\tvar notes = if(midinote>=44, {a.reverse+midinote}, {a+midinote});\r\n\t\tp = Pbind(\r\n\t\t\t\\midinote, Pstutter(Pwrand([1, 3, 5], [0.1, 0.8, 0.1], inf), Pseq(notes)),\r\n\t\t\t\\dur, 0.1,\r\n\t\t\t\\amp, velocity/127 * 0.8,\r\n\t\t\t\\legato, 0.1,\r\n\t\t\t\\ctranspose, Pstutter(8, Pwhite(0, 36))\r\n\t\t).play(quant: 0.1);\r\n\t};\r\n\r\n\tMIDIdef.noteOn(\\test, { arg vel, note; /*note.postln;*/ f.value(vel, note) });\r\n\r\n});"
}
