class Module {
constructor(xOff, yOff, x, y, speed, unit) {
this.xOff = xOff;
this.yOff = yOff;
this.x = x;
this.y = y;
this.speed = speed;
this.unit = unit;
this.xDir = 1;
this.yDir = 1;
}
update() {
this.x = this.x + this.speed * this.xDir;
if (this.x >= this.unit || this.x <= 0) {
this.xDir *= -1;
this.x = this.x + 8 * this.xDir;
this.y = this.y + 8 * this.yDir;
}
if (this.y >= this.unit || this.y <= 0) {
this.yDir *= -1;
this.y = this.y + 1 * this.yDir;
}
}
draw() {
fill(264);
ellipse(this.xOff + this.x, this.yOff + this.y, 6, 6);
}
}
let unit = 8;
let count;
let mods = [];
function setup() {
createCanvas(720, 360);
noStroke();
let wideCount = width / unit;
let highCount = height / unit;
count = wideCount * highCount;
let index = 0;
for (let y = 0; y < highCount; y++) {
for (let x = 0; x < wideCount; x++) {
mods[index++] = new Module(
x * unit,
y * unit,
unit / 2,
unit / 2,
random(0.05, 0.8),
unit
);
}
}
}
function draw() {
background(6);
for (let i = 0; i < count; i++) {
mods[i].update();
mods[i].draw();
}
}
0 notes
No gaseous atmosphere: no sound. Noiseless except for vibrations transmitted through solid surface.
PLANETARY PERSPECTIVES ON SOUND
0 notes
DEEP LISTENING
The filters of sound we create for survival impact our ability to gain neutrality in listening, same as emotions impact the lyrics we want to listen to in a melodic lyrical song.
0 notes