This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | |
| <html> | |
| <head> | |
| <meta http-equiv="content-type" content="text/html; charset=UTF-8"> | |
| <title> | |
| Javascript Audio Processing | |
| </title> | |
| <script src="https://cdn.jsdelivr.net/gh/google/code-prettify@master/loader/run_prettify.js?autoload=true&skin=sunburst&lang=css" defer="defer"></script> | |
| <!-- show all line numbers--> | |
| <style type="text/css"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # GRAMMAR FOR GODTI LANGUAGE | |
| # (Godti? it's from Transmetropolitan) | |
| # Lexer [or tokenizer] definition with language lexemes [or tokens] | |
| # number: /([0-9]+\.?[0-9]*)|(\.[0-9]+)/, (//doen't work) | |
| @{% | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [[t >> 9] & 50] * t >> [c>>2] << 24-> seq1; | |
| [[t >> 8] & 39] * t >> [c>>8] << 22 -> seq2; | |
| seq1 + seq2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ; divide a bar into 13 beats and play seven of them, evenly(ish) spaced | |
| (d1 (euclid bar 13 7)) | |
| ; an even 4-4 beat | |
| (d2 (euclid bar 16 4)) |
OlderNewer