Equation Composer

Documentation and Examples

Quick Start

Once you have installed the Arduino software and downloaded the Equation Composer files, the fastest way to enter your own bytebeat equations is as follows:

  1. In the Arduino IDE, open EquationComposer.ino.
  2. Using the tab selector on the right of the Arduino IDE interface, select EquationsBankKhepri.cpp.
  3. You will see the equations listed in a select statement:

    switch(equation_number)
    {
    
      case 0: // Arpeggiation
        p = t/(1236+p1)%128 & ((t>>(p3>>5))*232);
        q = t/(t/(500*p2) % 5 + 1)%p;
        w = (t>>q>>(p1>>5)) + (t/(t>>((p3>>5)&12))>>p);
        break;
    
        case 1: // Landing Gear
        w = ((p1&t^(t>>2)%p2)&w+1393+p3);
        break;
    
        case 2: // Alpha
        w= (((t^(p1>>3)-456)*(p2+1))/(((t>>(p3>>3))%14)+1))
       +(t*((182>>(t>>15)%16))&1);
        break;
    

    Add your new equation(s) to this list or modify an existing equation. If you add an additional equation, make sure to update the number_of_equations variable at the top of that document:

    EquationBankKhepri::EquationBankKhepri()
    {
      number_of_equations = 20;
    }			
    
  4. Compile and upload the revised code to the module. The revised code should start running automatically immediately after being uploaded.

For Clickers and Drum Selektor, follow the same steps, but open ModuleEqDrum.cpp and add your equations there. You'll also need to modify the line at the top of ModuleEqDrum.cpp, which looks like:

// Change the "13" to the number of equations in the file
drum_selection = readInput(drum_selection_input, 0, 13);