Feral Machines


yeggogological meditations

Home About Tags Links Storage RSS P'log License

Three New Bytebeat Tunes


Length: 465 words

Getting back into composing bytebeat tunes, lately, and I'm pretty happy with how these two turned out:

Chitauri Teeth

This one's a refinement of drone.c, and I think it's a significant improvement. I let GPT-2 name it (and the next one as well).

#include <stdio.h>

void main() {
  int t = 1;
  for (;;t++) {
    fprintf(stderr, "t = 0x%x\n", t);
    putchar(
        0xfa
        & ((
            (t 
             & t >> 6
             & ((t % (1 << 14)) < (1 << 13)? 
               t ^ t >> 8
               : t >> 8) 
             / (t <= 0? 1 : (1 + t % 32))
             ^ (t % 30)
            )
            | (((t >> 18) && (t <= (1 << 18) + (1 << 17))) * t << 1)
           )
          + ((t * (t >> 18)) & 0xe0)
          | ((t / 10) & (t >> 14) & (t >> 15) & 0xaa)
          )
        );
  }
}

A Tangerine Arm for Piercing

#include <stdio.h>

void main() {
  int t = 1;
  int s1 = 18;
  int s2 = 19;
  for (;;t++) {
    fprintf(stderr,"0x%x\n",t);
    putchar(
        ( 
         -t%20 
         + (
           t * 7 & t >> 5
           | t * (4 - (( t>> s2) & 0xF)) & t >> 9
           | t * 3 & t >> 8
           | t * (5 + (( t>> s1) & 0xFF)) & t >> 4
           )
         ^ (t%33) & (t%333)
         | t >> 5 
         | t >> 6 & (-t)
        )
        );
  }
}

Hornless Mouse

This one has a lot less temporal progression than the others, and is sampled at the lower rate of 5200Hz. Thinking about using it as a component in a more complex, not-purely-bb piece.

#include<stdio.h>

// Sample at 5200Hz

void main() {

  int t = 1;

  for (;;t++) {
    putchar(
        8 * (
          t
          | t>>9 & 0xf5
          | t>>6 & 0x8f
          | t>>7 
          + ((t&0x1000)? 
            0x00 : (t%128)) 
          )
        + 4 * (
          (t&0x1000)? (t*(t^t%255))
          : t>>4
          | t>>8

          )

        );

  }
}

And Who But

What got me tinkering with this sort of thing, again, was that my friend Andrew Glencross, operating under the name Pale Son, had dug up one of my earlier attempts at bytebeat -- a wav file just labelled "marm", for which I've either misplaced or overwritten the code, and produced this really interesting piece, layering his own ethereal electric organ work overtop the bytebeat, and weaving in elements of Greensleeves.