Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
jdrums
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jonas Blumer
jdrums
Commits
f78f4b22
Commit
f78f4b22
authored
9 years ago
by
Jonas Blumer
Browse files
Options
Downloads
Patches
Plain Diff
added sliders
parent
54e702c3
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
app.js
+0
-4
0 additions, 4 deletions
app.js
index.html
+5
-5
5 additions, 5 deletions
index.html
with
5 additions
and
9 deletions
app.js
+
0
−
4
View file @
f78f4b22
...
...
@@ -52,7 +52,3 @@ function getStepPos(){
}
http
.
listen
(
3000
,
function
(){
console
.
log
(
'
listening on *:3000
'
);
});
This diff is collapsed.
Click to expand it.
index.html
+
5
−
5
View file @
f78f4b22
...
...
@@ -2,8 +2,7 @@
<head>
<script
src=
"http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"
></script>
<script
src=
"/socket.io/socket.io.js"
></script>
<link
rel=
"stylesheet"
href=
"https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/themes/smoothness/jquery-ui.css"
>
<script
src=
"https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js"
></script>
<style
type=
"text/css"
>
#container
{
width
:
500px
;
...
...
@@ -41,15 +40,13 @@
var
stepPos
=
0
;
var
track1
,
track2
,
track3
,
track4
;
$
(
function
(){
/*
** SOUNDS
*/
var
bd
=
$
(
"
#bd
"
)[
0
];
//
var bd = $("#bd")[0];
generateSteps
();
...
...
@@ -116,6 +113,7 @@
'
<option value="snare">Snare</option>
'
+
'
</select>
'
);
$
(
'
#row
'
+
i
).
append
(
'
<input type="range" id="pitchRow
'
+
i
+
'
" min=".5" max="4" value="2" step=".1" name="power" list="powers">
'
);
$
(
'
#steps
'
).
append
(
'
</div>
'
);
}
else
{
...
...
@@ -135,6 +133,8 @@
console
.
log
(
sound
);
this
[
sound
].
pause
();
this
[
sound
].
currentTime
=
0
;
this
[
sound
].
playbackRate
=
$
(
'
#pitchRow
'
+
i
).
val
();
//this[sound].doperShift = 100;
this
[
sound
].
play
();
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment