mirror of
https://github.com/Tonejs/Tone.js
synced 2025-01-13 20:39:06 +00:00
moved MobileStart to within the TopBar function
This commit is contained in:
parent
99d2b00b34
commit
6f7dd09d26
17 changed files with 10 additions and 16 deletions
|
@ -246,6 +246,8 @@ GUI.TopBar = function(Tone){
|
|||
Tone.Master.connect(this.meter);
|
||||
this.meterGUI = new GUI.LevelMeter(this.element, this.meter);
|
||||
this.makeDropDown();
|
||||
//and the mobile start button
|
||||
new GUI.MobileStart(Tone.startMobile);
|
||||
};
|
||||
|
||||
GUI.TopBar.prototype.makeDropDown = function(){
|
||||
|
|
|
@ -48,7 +48,6 @@
|
|||
// GUI //
|
||||
|
||||
new GUI.TopBar(Tone);
|
||||
new GUI.MobileStart(Tone.startMobile);
|
||||
|
||||
var container = $("#Content");
|
||||
|
||||
|
|
|
@ -64,7 +64,6 @@
|
|||
|
||||
// GUI //
|
||||
|
||||
new GUI.MobileStart(Tone.startMobile);
|
||||
new GUI.TopBar(Tone);
|
||||
|
||||
var content = $("#Content");
|
||||
|
|
|
@ -61,7 +61,6 @@
|
|||
// GUI //
|
||||
|
||||
new GUI.TopBar(Tone);
|
||||
new GUI.MobileStart(Tone.startMobile);
|
||||
|
||||
$("#tabs").tabs();
|
||||
|
||||
|
|
|
@ -45,7 +45,6 @@
|
|||
$(function(){
|
||||
var container = $("#Content");
|
||||
|
||||
new GUI.MobileStart(Tone.startMobile);
|
||||
new GUI.TopBar(Tone);
|
||||
|
||||
//sliders for the envelope controls
|
||||
|
|
|
@ -62,7 +62,6 @@
|
|||
// GUI //
|
||||
|
||||
new GUI.TopBar(Tone);
|
||||
new GUI.MobileStart(Tone.startMobile);
|
||||
|
||||
$("#tabs").tabs();
|
||||
|
||||
|
|
|
@ -58,6 +58,7 @@
|
|||
};
|
||||
|
||||
var synth = new Tone.MonoSynth(synthOptions);
|
||||
synth.setVolume(-10);
|
||||
synth.toMaster();
|
||||
|
||||
var synthPart = [["0", "C2"], ["1*8n", "C4"], ["2*8n", "E4"], ["3*8n", "B3"],
|
||||
|
@ -78,7 +79,6 @@
|
|||
// GUI //
|
||||
|
||||
new GUI.TopBar(Tone);
|
||||
new GUI.MobileStart(Tone.startMobile);
|
||||
|
||||
var content = $("#Content");
|
||||
|
||||
|
|
|
@ -50,7 +50,6 @@
|
|||
var content = $("#Content");
|
||||
|
||||
new GUI.TopBar(Tone);
|
||||
new GUI.MobileStart(Tone.startMobile);
|
||||
|
||||
new GUI.Checkbox(content, function(on){
|
||||
if (on){
|
||||
|
|
|
@ -59,7 +59,6 @@
|
|||
// GUI //
|
||||
|
||||
new GUI.TopBar(Tone);
|
||||
new GUI.MobileStart(Tone.startMobile);
|
||||
|
||||
$("#tabs").tabs();
|
||||
|
||||
|
|
|
@ -57,7 +57,6 @@
|
|||
|
||||
// GUI //
|
||||
|
||||
new GUI.MobileStart(Tone.startMobile);
|
||||
new GUI.TopBar(Tone);
|
||||
|
||||
new GUI.Momentary($("#Button"), function(){
|
||||
|
|
|
@ -43,7 +43,6 @@
|
|||
|
||||
$(function(){
|
||||
var content = $("#Content");
|
||||
new GUI.MobileStart(Tone.startMobile);
|
||||
new GUI.TopBar(Tone);
|
||||
new GUI.Checkbox(content, function(on){
|
||||
if (on){
|
||||
|
|
|
@ -44,7 +44,6 @@
|
|||
|
||||
// GUI //
|
||||
|
||||
new GUI.MobileStart(Tone.startMobile);
|
||||
new GUI.TopBar(Tone);
|
||||
|
||||
new GUI.Momentary($("#Content"), function(on){
|
||||
|
|
|
@ -43,7 +43,6 @@
|
|||
|
||||
// GUI //
|
||||
|
||||
new GUI.MobileStart(Tone.startMobile);
|
||||
new GUI.TopBar(Tone);
|
||||
|
||||
new GUI.Momentary($("#Content"), function(on){
|
||||
|
|
|
@ -98,7 +98,6 @@
|
|||
// GUI //
|
||||
|
||||
var content = $("#Content");
|
||||
new GUI.MobileStart(Tone.startMobile);
|
||||
new GUI.TopBar(Tone);
|
||||
|
||||
//the transport controls
|
||||
|
|
|
@ -76,7 +76,6 @@
|
|||
// GUI //
|
||||
|
||||
new GUI.TopBar(Tone);
|
||||
new GUI.MobileStart(Tone.startMobile);
|
||||
|
||||
var container = $("#Content");
|
||||
|
||||
|
|
|
@ -98,7 +98,6 @@
|
|||
}
|
||||
}
|
||||
|
||||
new GUI.MobileStart(Tone.startMobile);
|
||||
new GUI.TopBar(Tone);
|
||||
|
||||
var startButton = $("#StartButton");
|
||||
|
|
|
@ -4,6 +4,12 @@
|
|||
user-select: none;
|
||||
}
|
||||
|
||||
textarea {
|
||||
-webkit-user-select: text!important;
|
||||
-moz-user-select: text!important
|
||||
user-select: text!important
|
||||
}
|
||||
|
||||
#Container {
|
||||
text-size-adjust: none;
|
||||
-webkit-text-size-adjust: none;
|
||||
|
@ -34,7 +40,7 @@
|
|||
position: relative;
|
||||
margin: auto;
|
||||
margin-top: 60px;
|
||||
margin-bottom: 80px;
|
||||
margin-bottom: 120px;
|
||||
width: 200px;
|
||||
height: auto;
|
||||
z-index: 0;
|
||||
|
|
Loading…
Reference in a new issue