Skip to content

Instantly share code, notes, and snippets.

View automata's full-sized avatar

Vilson Vieira automata

View GitHub Profile
@automata
automata / gist:2248496
Created March 30, 2012 07:17
hello meemoo!
{
"info": {
"title": "hello meemoo!",
"author": "automata",
"description": "testing simple modules",
"url": "hellomeemoo"
},
"nodes": [
{
"src": "http://automata.github.com/meemoo-modules/bang.html",
@automata
automata / gist:2248582
Created March 30, 2012 07:20
changing the bpm
{
"info": {
"title": "changing the bpm",
"author": "automata",
"description": "enter some numeric value on the evaluator and press start",
"url": "hellomeemoo"
},
"nodes": [
{
"src": "http://automata.github.com/meemoo-modules/evaluator.html",
@automata
automata / gist:2280632
Created April 2, 2012 04:06
simple osc with audio data api
var output = new Audio();
output.mozSetup(1, 44100);
var samples = new Float32Array(22050);
for(var i=0; i< samples.length; i++){
samples[i] = Math.sin(i/20);
}
@automata
automata / gist:2306646
Created April 4, 2012 23:49
testing simple audio nodes a.k.a boring alarm =)
{
"info": {
"title": "testing simple audio nodes a.k.a boring alarm =)",
"author": "automata",
"description": "testing simple audio nodes or my sweet boring noizy alarm",
"url": "cam2gif"
},
"nodes": [
{
"src": "http://automata.github.com/meemoo-modules/audio-oscillator.html",
@automata
automata / scraper.py
Created April 20, 2012 23:27
simple scraper
# -*- coding: utf-8 -*-
import urllib
import urllib2
import string
import sys
from bs4 import BeautifulSoup
# faking a browser
user_agent = "Mozilla/5.0 (Linux x86_64) Gecko/20120324 Firefox/14.0a1"
@automata
automata / gist:2564785
Created May 1, 2012 03:47
livecoding three.js
{
"info": {
"title": "livecoding three.js",
"author": "automata",
"description": "livecoding three.js",
"url": "cam2gif"
},
"nodes": [
{
"src": "http://automata.github.com/meemoo-modules/lived.html",
@automata
automata / gist:2573034
Created May 2, 2012 02:01
three.js example
var c = document.getElementById("threejsCanvas");
var cContext = c.getContext("2d");
scene = new THREE.Scene();
camera = new THREE.PerspectiveCamera( 60,
window.innerWidth / window.innerHeight, 1, 10000 );
camera.position.z = 500;
camera.target = new THREE.Vector3();
@automata
automata / gist:2644999
Created May 9, 2012 14:43
first test of a Meemoo module for supershape.js
{
"info": {
"title": "testing supershape.js module",
"author": "automata",
"description": "first test of a Meemoo module for supershape.js",
"url": "supershape.js"
},
"nodes": [
{
"src": "http://automata.github.com/meemoo-supershape.js/",
@automata
automata / gist:2728285
Created May 19, 2012 00:19
tutorial web audio api: tocando arquivo em tempo
// criamos um "contexto sonoro", objeto que permite acessar a placa de áudio
var context = new webkitAudioContext();
// carregaremos um buffer de áudio nessa variável
var som = null;
function carregaSom(url) {
// cria uma requisição assíncrona para carregar o arquivo de áudio de uma url
var request = new XMLHttpRequest();
request.open('GET', url, true);
@automata
automata / gist:2739659
Created May 20, 2012 03:22
tutorial gibber
// controles
// use ctrl + enter para avaliar a linha (ou o que vc selecionar)
// use ctrl + shift + enter para avaliar no próximo compasso somente
// use ctrl + ` para limpar o grafo de síntese
// osciladores
// args => frequencia=440, amplitude=.25
s = Sine();
s = Tri(440, .1);
s = Square(440, .1);