Skip to content

Commit

Permalink
fixed color wheel pixelation
Browse files Browse the repository at this point in the history
  • Loading branch information
lshap committed Apr 17, 2014
1 parent 0a800d2 commit 91324ad
Show file tree
Hide file tree
Showing 20 changed files with 16,222 additions and 33 deletions.
Binary file modified .DS_Store
Binary file not shown.
Binary file added .jquery-ui-1.10.4.custom.css.swp
Binary file not shown.
Binary file modified .soundscene.css.swp
Binary file not shown.
Binary file modified .soundscene.html.swp
Binary file not shown.
Binary file added images/buttons.psd
Binary file not shown.
Binary file added images/colorwheelsmall.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/convolveslider.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/filterBtn.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/filterBtn_selected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/pauseBtn.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/pauseBtn_selected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/pencilBtn.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/pencilBtn_selected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/pencilBtn_selected.psd
Binary file not shown.
Binary file added images/playbackslider.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/slider.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1,177 changes: 1,177 additions & 0 deletions jquery-ui-1.10.4.custom.css

Large diffs are not rendered by default.

15,009 changes: 15,009 additions & 0 deletions jquery-ui-1.10.4.custom.js

Large diffs are not rendered by default.

23 changes: 16 additions & 7 deletions soundscene.css
Original file line number Diff line number Diff line change
Expand Up @@ -128,22 +128,29 @@ body {
margin-top:0px;
//margin-left:100px;
}
.buttons {
display:inline;
}

#pause {
margin-top:40px;
width:75px;
height:75px;
margin-top:50px;
width:60px;
height:60px;
position:relative;
}
#penimage {
// position:relative;
margin-top:35px;
margin-bottom:100px;
margin-top:50px;
width:60px;
height:60px;
// padding-left: 15%;
}

#filterimage {
// position:relative;
margin-top:30px;
margin-bottom:100px;
margin-top:50px;
width:60px;
height:60px;
}

#wheelcanvas {
Expand All @@ -164,6 +171,7 @@ body {
width:150px;
}


#wavedistoriton {
padding-top:100px;

Expand All @@ -189,3 +197,4 @@ body {
.tiny {
width:40px;
}

46 changes: 20 additions & 26 deletions soundscene.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<script src="js/ColorWheel.js"></script>
<script src="http://connect.soundcloud.com/sdk.js"></script>
<link rel='stylesheet' href='bootstrap.css'>
<link rel='stylesheet' href='jquery-ui-1.10.4.custom.min.css'>
<link rel='stylesheet' href='jquery-ui-1.10.4.custom.css'>
<script type="text/javascript">

// init sound cloud api
Expand Down Expand Up @@ -875,31 +875,31 @@
if (paused) {
playSound(soundbuffer, pausetime);
paused = false;
this.src = "images/pause.png";
this.src = "images/pauseBtn.png";
}
else {
audioSource.stop();
paused = true;
pausetime = audioContext.currentTime;
this.src = "images/play.png";
this.src = "images/pauseBtn_selected.png";
}
});

$("#penimage").click(function(){
switch(drawmode){
case DrawMode.PEN:
this.src = "images/pen.png"
this.src = "images/pencilBtn.png"
drawmode = DrawMode.NONE;
break;
case DrawMode.NONE:
this.src = "images/pen_selected.png"
this.src = "images/pencilBtn_selected.png"
drawmode = DrawMode.PEN;
break;
case DrawMode.FILTER:
var filt = $($("#filterimage"))[0];
filt.src = "images/filter.png";
filt.src = "images/filterBtn.png";

this.src = "images/pen_selected.png"
this.src = "images/pencilBtn_selected.png"
drawmode = DrawMode.PEN;
default:
}
Expand All @@ -908,17 +908,17 @@
$("#filterimage").click(function(){
switch(drawmode){
case DrawMode.FILTER:
this.src = "images/filter.png"
this.src = "images/filterBtn.png"
drawmode = DrawMode.NONE;
break;
case DrawMode.NONE:
this.src = "images/filter_selected.png"
this.src = "images/filterBtn_selected.png"
drawmode = DrawMode.FILTER;
break;
case DrawMode.PEN:
var pen = $($("#penimage"))[0];
pen.src = "images/pen.png";
this.src = "images/filter_selected.png"
pen.src = "images/pencilBtn.png";
this.src = "images/filterBtn_selected.png"
drawmode = DrawMode.FILTER;
default:
}
Expand Down Expand Up @@ -946,8 +946,8 @@
whiteNoise.start(0);

var whiteNoisefreqDomain = new Float32Array(whiteNoiseAnalyser.frequencyBinCount);
whiteNoiseAnalyser.getTimeDomainData(whiteNoisefreqDomain);
//console.log(whiteNoisefreqDomain);
whiteNoiseAnalyser.getByteTimeDomainData(whiteNoisefreqDomain);
console.log(whiteNoisefreqDomain);
}

else if (drawmode == DrawMode.FILTER){
Expand Down Expand Up @@ -1081,7 +1081,7 @@
<!--<input id="convolve" type="file" accept=".wav"/>-->
<canvas id="backgroundcanvas"></canvas>
<span id="header">SOUND SKETCH</span>
<img id="colorwheel" src="images/colorwheel.png"></img>
<img id="colorwheel" src="images/colorwheelsmall.png"></img>
<div id="dragDiv" class="row" ondragover="allowDrop(event)" ondrop="drop(event)">
<!--<image id="playIm" src="images/draganddroppurple.png"/>-->
<input id="filepicker" type="file" accept=".mp3"/>
Expand All @@ -1098,21 +1098,15 @@
<button type = "back" id="backBtn">back</button>
<!--</div>-->
<div id="menucontainer" class = "container">
<div id="menu" class="row">
<div class="col-md-2 col-md-offset-1">
<div id="menu" class="row buttons">
<div class="col-md-2 col-md-offset-3">
<div class="row"><!--<img src="images/convolve.png" class="tiny"/>--><div id="wavedistortion" class="slider" ></div></div>
<div class="row"><!--<img src="images/playback.png" class="tiny"/>--><div id="playbackspeed" class="slider" ></div></div>
</div>
<div class="col-md-2">
<img id="pause" src = "images/pause.png"></image>
</div>
<div class="col-md-2">
<image id="penimage" src="images/pen.png"></image>
</div>
<div class="col-md-2">
<image id="filterimage" src="images/filter.png"></image>
</div>
<div class="col-md-2">
<img id="pause" src = "images/pauseBtn.png"></image>
<image id="penimage" src="images/pencilBtn.png"></image>
<image id="filterimage" src="images/filterBtn.png"></image>
<div class="col-md-2 wheeldiv">
<canvas id="wheelcanvas"></canvas>
</div>
</div>
Expand Down

0 comments on commit 91324ad

Please sign in to comment.