Skip to content

Commit

Permalink
kria, tune probabilities to 25% 50%
Browse files Browse the repository at this point in the history
  • Loading branch information
tehn committed Apr 20, 2017
1 parent 239acc3 commit a9f294a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 59 deletions.
23 changes: 0 additions & 23 deletions src/ansible_arc.c
Original file line number Diff line number Diff line change
@@ -1,26 +1,3 @@
/*
ii/levels
preset
*reset
pattern
loop.st
loop.len
pos
ii/cycles
preset
*reset 0/1-4
position 0/1-4 SET
*reverse 0/1-4
brake 0/1-4 SET
accelerate 0/1-4 SET
range 0/1-4 SET
*/

#include <string.h> //memset
#include <stdlib.h> //abs

Expand Down
39 changes: 3 additions & 36 deletions src/ansible_grid.c
Original file line number Diff line number Diff line change
@@ -1,36 +1,3 @@
/*
KRIA
pattern play mode
loop helper display for oct/dur and probs
ext clock mul fix
II/kria
preset
pattern
scale
period
position tr param SET
loop.st tr param SET
loop.len tr param SET
*reset 0/1-4
II/mp
preset
*reset 0/1-8
*stop 0/1-8
scale
period
*/

#include "string.h"

#include "print_funcs.h"
Expand Down Expand Up @@ -436,11 +403,11 @@ bool kria_next_step(uint8_t t, uint8_t p) {
case 0:
return false;
case 1:
// ~25%
return (rnd() & 0xff) > 192;
case 2:
// ~50%
return (rnd() & 0xff) > 128;
case 2:
// ~75%
return (rnd() & 0xff) > 64;
case 3:
return true;
default:
Expand Down

0 comments on commit a9f294a

Please sign in to comment.