Skip to content

Commit

Permalink
Before production version.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Myler committed May 13, 2012
1 parent 762a307 commit 9825faf
Show file tree
Hide file tree
Showing 17 changed files with 70 additions and 77 deletions.
46 changes: 0 additions & 46 deletions 404.html

This file was deleted.

8 changes: 1 addition & 7 deletions TODO.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
# List of TODOs
+ Jaka je maximalni velikost souboru, kterou muze nahrat FileReader, aby nespadlo nahraveni?
+ Pomocne ikonove menu do #editor-view (napr. lupa, vyber, atd.) – kde ukladat vybrany nastroj?
+ Maximalni velikost pameti pro zalozku prohlizece, hlaseni velikosti zabrane pameti v ramci sandboxu?
+ Zmena nastaveni vzorkovaci frekvence Audio API? [nelze]
+ Track analyser?

+ Prehravani od kurzoru pri loopu klipu obcas nefunguje spravne.
+ Predelani obrazku (favicon/apple icons).
+ About a help sekce v menu – dopsat texty.
+ Pri zmene hlasitosti u Tracku, zacne hrat (i kdyz je zvoleny jiny track jako solo)!
+ Track analyser?
Binary file modified apple-touch-icon-114x114-precomposed.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 modified apple-touch-icon-57x57-precomposed.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 modified apple-touch-icon-72x72-precomposed.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 modified apple-touch-icon-precomposed.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 modified apple-touch-icon.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 modified favicon.ico
Binary file not shown.
2 changes: 1 addition & 1 deletion humans.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

/* SITE */
Standards: HTML5, CSS3
Components: jQuery, Backbone.js, Require.js, LESS, Web Audio API
Components: jQuery, Backbone.js, Require.js, LESS, Web Audio API, Twitter Bootstrap
Software: Sublime Text 2

.o. .o8 o8o
Expand Down
26 changes: 16 additions & 10 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,26 @@
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif]-->
<!-- Consider adding a manifest.appcache: h5bp.com/d/Offline -->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<!--
.o. .o8 o8o
.888. "888 `"'
.8"888. oooo oooo .oooo888 oooo .ooooo. .ooooo.
.8' `888. `888 `888 d88' `888 `888 d88' `88b d88' `88b
.88ooo8888. 888 888 888 888 888 888ooo888 888ooo888
.8' `888. 888 888 888 888 888 888 .o 888 .o
o88o o8888o `V88V"V8P' `Y8bod88P" o888o `Y8bod8P' `Y8bod8P'
-->
<title>Audiee</title>
<meta name="description" content="Simple experimental web based audio editor.">
<meta name="author" content="Jan Myler">
<link rel="author" href="humans.txt">

<!-- Mobile viewport optimized: h5bp.com/viewport -->
<link rel="shortcut icon" href="favicon.ico">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width">

<link rel="stylesheet/less" href="less/style.less">
<script src="js/libs/less-1.2.2.js"></script>
<!-- Use SimpLESS (Win/Linux/Mac) or LESS.app (Mac) to compile your .less files
Expand Down Expand Up @@ -55,13 +62,12 @@
<!-- JavaScript at the bottom for fast page loading -->
<script data-main="js/main" src="js/libs/require/require.js"></script>

<!-- Grab Google CDN's jQuery, with a protocol relative URL; fall back to local if offline -->

<!-- <script>
var _gaq=[['_setAccount','UA-XXXXX-X'],['_trackPageview']];
<!-- Google Analytics -->
<script>
var _gaq=[['_setAccount','UA-31648389-1'],['_trackPageview']];
(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js';
s.parentNode.insertBefore(g,s)}(document,'script'));
</script> -->
</script>
</body>
</html>
10 changes: 10 additions & 0 deletions js/Audiee/Collections.Tracks.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,16 @@ define([

getIndexCount: function() {
return this.indexCount;
},

isAnySolo: function() {
var soloTracks = this.filter(
function(model) {
return model.get('solo') === true;
}
);

return soloTracks.length > 0;
}
});
});
10 changes: 5 additions & 5 deletions js/Audiee/Helpers.Player.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ define([
cursor = Audiee.Views.Editor.getCursor();

if (trackPosition + clip.clipLength() <= cursor)
return; // clip is before a cursor's position
return; // clip is before the cursor position
else if (trackPosition < cursor && trackPosition + clip.clipLength() > cursor) {
// virtually splits the clip
startTime = (startTime + cursor - trackPosition) % duration;
Expand All @@ -90,19 +90,19 @@ define([
node = that.context.createBufferSource();
that.nodes.push(node);
node.buffer = clip.get('buffer');
node.connect(gainNode); // bude gainNode pro track
node.connect(gainNode); // connects node to track's gain node

// clip offset and duration times
if (loop > 0) {
if (i === 0) {
if (i === 0) { // first subclip
offset = startTime;
duration = duration - offset;
} else if (i === loop) {
} else if (i === loop) { // last subclip
offset = 0;
duration = endTime;
} else {
offset = 0;
duration = duration;
duration = clip.get('buffer').duration;
}
} else { // loop === 0
offset = startTime;
Expand Down
1 change: 1 addition & 0 deletions js/Audiee/Views.Menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ define([
$tpl = $(tpl);

$tpl.on('hide', function() { $tpl.remove() })
.width(680).css('max-height', 530 + 'px')
.modal(); // show the modal window
}
});
Expand Down
12 changes: 9 additions & 3 deletions js/Audiee/Views.TrackControls.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,16 @@ define([
var volume = $('input.volume', this.el).val() / 100,
cid = $(this.el).parents('.track').data('cid');

// sets the new volume value into the model
this.model.set('gain', volume);

Audiee.Player.volumeChange(volume, cid); // zmenit v souvislosti se solo

// change GainNode's volume only
// + if there are no solo tracks
// + or there are solo tracks and this track is one of them
if (!Audiee.Collections.Tracks.isAnySolo() || this.model.get('solo'))
Audiee.Player.volumeChange(volume, cid);

// disables the mute if it was activated
if ($('button.mute', this.el).hasClass('active')) {
$('button.mute', this.el).button('toggle');
this.mute();
Expand All @@ -69,7 +75,7 @@ define([
this.model.set('muted', !muted);
if (muted) {
// track was muted -- restores previous gain value
if (!this.model.get('solo'))
if (!Audiee.Collections.Tracks.isAnySolo() || this.model.get('solo'))
Audiee.Player.volumeChange(this.model.get('gain'), this.model.cid);
} else {
// track is beeing muted (only if is not set as solo track)
Expand Down
21 changes: 18 additions & 3 deletions js/templates/AboutAudiee.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
** about me
<p>This application has been created as bachelor's thesis at Brno University of Technology, Faculty of Information Technology.</p>

** technology used
<p>This version is more or less experimental and has only limited functionality.</p>

** info links
<h4>Tools making this app cool:</h4>
<ul>
<li><a href="http://www.w3.org/TR/webaudio/">Web Audio API</a>
<li><a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap</a>
<li><a href="http://jquery.com/">jQuery</a>
<li><a href="http://backbonejs.org/">Backbone.js</a>
<li><a href="http://requirejs.org/">RequireJS</a>
<li><a href="http://lesscss.org/">LESS</a>
</ul>
<h4>Contact me:</h4>
<ul>
<li>honza.myler@gmail.com
<li><a href="http://twitter.com/janmyler">@janmyler</a>
</ul>

<img class="audiee-logo" src="apple-touch-icon-114x114-precomposed.png" alt="Audiee logo">
3 changes: 2 additions & 1 deletion js/templates/HelpAudiee.html
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
<p>Help contents!</p>
<p>For help please watch this short tutorial video.</p>
<iframe width="640" height="360" src="http://www.youtube.com/embed/l67Jk9Vbms8?rel=0" frameborder="0" allowfullscreen></iframe>
8 changes: 7 additions & 1 deletion less/style.less
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,13 @@ body {
background: @gray;
}


/* Audiee logo */
.audiee-logo {
position: absolute;
bottom: 90px;
right: 30px;
border-radius: 100px;
}



Expand Down

0 comments on commit 9825faf

Please sign in to comment.