User Tools

Site Tools


cs276:extremities

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
cs276:extremities [2012/11/07 16:18]
scarl created
cs276:extremities [2012/11/07 16:19] (current)
scarl
Line 2: Line 2:
   // NOTE: saveSound always saves to Applications folder (oddly enough) ​   // NOTE: saveSound always saves to Applications folder (oddly enough) ​
   // unless given a full pathname   // unless given a full pathname
 +  ​
   import krister.Ess.*;​   import krister.Ess.*;​
 +  ​
   AudioChannel myChannel;   AudioChannel myChannel;
 +  ​
   void setup() {   void setup() {
     size(256,​200);​     size(256,​200);​
     background(0,​ 0, 50);     background(0,​ 0, 50);
 +  ​
     // start up Ess     // start up Ess
     Ess.start(this);​     Ess.start(this);​
Line 16: Line 16:
     // load fileinto a new AudioChannel     // load fileinto a new AudioChannel
     myChannel=new AudioChannel("​thisisatest.wav"​);​     myChannel=new AudioChannel("​thisisatest.wav"​);​
-    //​myChannel=new AudioChannel("​test.wav"​);​ 
-    //​myChannel=new AudioChannel("​bassoon-g4.wav"​);​ 
   ​   ​
     for (int i=0;​i<​myChannel.size;​i++) {     for (int i=0;​i<​myChannel.size;​i++) {
Line 24: Line 22:
   ​   ​
     extreme(myChannel);​     extreme(myChannel);​
-  ​ 
     myChannel.saveSound("/​home/​scarl/​sketchbook/​Audio/​extreme/​extreme.wav"​);​     myChannel.saveSound("/​home/​scarl/​sketchbook/​Audio/​extreme/​extreme.wav"​);​
-    //​myChannel.saveSound("/​home/​scarl/​sketchbook/​Audio/​extreme/​extreme-bassoon.wav"​);​ 
-  ​ 
     ​     ​
     // start the sound      // start the sound 
     myChannel.play();​     myChannel.play();​
   }   }
-  ​+    ​
   void extreme(AudioChannel chan) {   void extreme(AudioChannel chan) {
     for (int i = 0; i < chan.size; i++) {     for (int i = 0; i < chan.size; i++) {
cs276/extremities.1352326700.txt.gz ยท Last modified: 2012/11/07 16:18 by scarl