• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • about this course
  • syllabus
  • rubric
  • labs
  • blog

HCI | TechX

August 12, 2020

Homework-day6-Sophie

import processing.sound.*;
SoundFile s;
Amplitude amp;
float a,b,c;

void setup()
{
size(800,800);
background(0);
s= new SoundFile(this,”westworld.mp3″);
amp= new Amplitude(this);
amp.input(s);
s.play();

}

void draw()
{

c=amp.analyze()*600;
translate(400,400);
rotate(radians(a=a+c));
rectMode(CENTER);
stroke(random(255),0,random(255));
strokeWeight(3);
noFill();

ellipse(0,0,c*2,c);

}

Filed Under: blog

Reader Interactions

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

Recent Posts

  • Homework Day 8 – Simon Hsieh
  • homework day 8 – Michael
  • Homework-day8-Sophie
  • Harry Hao HW DAY8
  • homework day 8 – dora

Copyright © 2025 HCI | TechX on the Brunch Pro Theme