Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
circuit-web-synth-editor
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pumpkin
circuit-web-synth-editor
Compare Revisions
00ce8baf64c6d296240ec6f36d0790f382c6d932...b5fe8b862f2137a3ffb8332947e2fbdc5fc93f20
Source
b5fe8b862f2137a3ffb8332947e2fbdc5fc93f20
Select Git revision
...
Target
00ce8baf64c6d296240ec6f36d0790f382c6d932
Select Git revision
Compare
Commits (2)
Display input range values.
· 03a6dfd0
pumpkin
authored
Jul 17, 2018
03a6dfd0
Change label menu.
· b5fe8b86
pumpkin
authored
Jul 17, 2018
b5fe8b86
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
821 additions
and
414 deletions
+821
-414
events.js
assets/events.js
+7
-0
functions.js
assets/functions.js
+12
-0
circuit-web-synth-editor.html
circuit-web-synth-editor.html
+802
-414
No files found.
assets/events.js
View file @
b5fe8b86
...
...
@@ -5,8 +5,15 @@ for (let input of allInputs) {
input
.
addEventListener
(
'input'
,
function
(
event
)
{
let
item
=
event
.
target
;
setBadgeValue
(
item
,
item
.
value
);
sendMessage
(
item
.
name
,
item
.
value
);
});
// Initialize badges
if
(
input
.
type
=
"range"
)
{
setBadgeValue
(
input
,
input
.
getAttribute
(
'default'
));
}
}
for
(
let
select
of
allSelects
)
{
...
...
assets/functions.js
View file @
b5fe8b86
...
...
@@ -213,6 +213,18 @@ function sendMessage(control, value) {
}
}
function
setBadgeValue
(
inputRange
,
value
)
{
if
(
inputRange
.
getAttribute
(
"zero"
))
{
value
=
value
-
inputRange
.
getAttribute
(
"zero"
);
}
try
{
inputRange
.
previousElementSibling
.
previousElementSibling
.
innerText
=
value
;
}
catch
(
err
)
{
console
.
log
(
err
);
}
}
function
setLFO
(
data
,
lfo
)
{
// Fade mode
var
fadeOut
=
16
;
...
...
circuit-web-synth-editor.html
View file @
b5fe8b86
This source diff could not be displayed because it is too large. You can
view the blob
instead.