Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split logic of NoiseModule into different files #14

Merged
merged 60 commits into from
Jun 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
639ed11
Created new noise-module.js for changes
Nov 5, 2019
c42d89b
Added .editorconfig
Nov 5, 2019
dd12b55
Moved NoiseModuleNode into different file
Nov 5, 2019
05af350
Moved OscilatorModuleNode into different file
Nov 5, 2019
a318e73
Moved LiveInputModuleNode into different file
Nov 5, 2019
d048445
Moved RadioModuleNode into different file
Nov 5, 2019
0015ea2
Moved SoundCloud and BiquadFilter into different files
Nov 5, 2019
07685b1
Moved EqualizerModuleNode into different file
Nov 5, 2019
090b0df
Moved DelayModuleNode into different file
Nov 5, 2019
1325b5d
Moved KingTubbyModuleNode into different file
Nov 5, 2019
3909fca
Moved Convolver and MoogFilter into different file
Nov 5, 2019
6040ca6
Moved DynamicsCompressor into different file
Nov 5, 2019
db147a8
Moved Gain into different file
Nov 5, 2019
639fa1a
Moved Gain into different file
Nov 5, 2019
44931d6
Moved stereopanner into different file
Nov 5, 2019
ef7d1f6
Moved WaveShapper into different file
Nov 5, 2019
5a2ca3a
Moved PeriodWave into different file
Nov 5, 2019
0b02a64
Moved Analyser into different file
Nov 5, 2019
2b8d3cb
Moved Recorder into different file
Nov 5, 2019
e66d860
Code reformat
Nov 5, 2019
c38fdc4
Created NoiseModuleBuilder file
Nov 5, 2019
b33b49d
Moved registration on nodes in module builder
Nov 5, 2019
121011c
Moved all default settings for each node respectivly
Nov 6, 2019
ff02303
Move generic methods to correct node impl
Nov 6, 2019
19add45
Code reformat
Nov 6, 2019
90a3327
Moved all node impl to folder nodes/
Nov 6, 2019
9467f74
Changes in module node registration
Nov 6, 2019
22506cd
Code reformat
Nov 6, 2019
e5e2e63
Changes and comments in main lib
Nov 8, 2019
e67ddc9
Split UI from code
Nov 8, 2019
328643a
More in ui
stolosapo Nov 8, 2019
b4b7fdf
Refactor module nodes to have factory methods
Nov 11, 2019
0a3c1fc
More in refactoring register logic
Nov 11, 2019
fd438c9
Clean un needed methods
Nov 11, 2019
550c02a
More in UI
Nov 11, 2019
49b5256
Change the module ui creation way
stolosapo Nov 11, 2019
33bba0d
More in cleaning implementations
stolosapo Nov 11, 2019
edead41
More in cleaning implementations
stolosapo Nov 11, 2019
763ec9c
More in cleaning implementations
stolosapo Nov 11, 2019
ec7cbe8
Fix suspented problem for chrome browser
Nov 12, 2019
b53b670
Minimum ui changes
Nov 12, 2019
bc8ca0f
Make modules draggable
Nov 12, 2019
386b404
First connection draw
Nov 12, 2019
cc8b339
Fix king tubby module and some in lines
Nov 12, 2019
37fbdba
Created logic for export settings
Nov 13, 2019
20a87c5
Move some default settings into modules
Nov 14, 2019
8b2f848
More in export options from module
Nov 14, 2019
4d066ca
More in export module settings
Nov 14, 2019
f13ad13
Added exportSettings in analyser, biquadfilter modules
Nov 20, 2019
3321f57
Changes in export analyser module
Nov 21, 2019
a11bd5b
Added export methods for all modules
Nov 21, 2019
a9539f6
Css changes
Nov 22, 2019
18dd2c2
Some ui changes
Nov 22, 2019
6ec8773
Seperate modules from UI (#15)
Apr 13, 2022
7ae4935
Clean up comments
Apr 18, 2022
7de45b7
Extracted buildUI public method
Apr 18, 2022
34d2c15
Removed unneeded files and updated readme
Apr 18, 2022
f9adfec
Fixed noise-radio
Dec 29, 2022
56100a0
Start AudioContext uppon click
stolosapo May 24, 2024
a7a9612
Fixed bypass functionality
stolosapo Jun 1, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Editor configuration, see http://editorconfig.org
root = true

[*]
charset = utf-8
indent_style = space
indent_size = 4
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
max_line_length = off
trim_trailing_whitespace = false
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Changelog
All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## 2.0.0
### Changed
- `NoiseModule` class to not use at all `jQuery`
- `NoiseModule` to seperate UI from class implementation
### Added
- Different node classes for each one of the different module node that `NoiseModule` uses

## 1.0.0
### Added
- Initial version
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# NoiseModule
A JQuery library for playing with Web Audio API
A JavaScript library for playing with Web Audio API

you can view a demo [here](https://stolosapo.github.io/NoiseModule/)

or in fileMode demo [here](https://stolosapo.github.io/NoiseModule/index.html?fileMode=true)
you can view a demo [here](https://stolosapo.github.io/NoiseModule/)
181 changes: 58 additions & 123 deletions css/noise-module.css
Original file line number Diff line number Diff line change
@@ -1,101 +1,81 @@
body {
background-image: url("../img/blueprint-dark.png");
}


.noise-module-container {
font-family: 'ProximaNovaRgRegular', 'Helvetica Neue', Helvetica, Arial, sans-serif;
color: #4c4c4c;
}

.noise-module {
.noise-module-node {
border-radius: 5px;
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
margin: 10px;
display: inline-block;
/*position: absolute;*/
position: relative;
/* position: absolute; */
/* position: relative; */
z-index: 9;
}

.noise-module img.nm-bypass {
background: url("../img/bypass_16.png") 0 0 no-repeat;
height: 16px;
width: 16px;
text-indent: -999em;
position: absolute;
left: 8px;
top: 8px;
cursor: pointer;
.noise-module-node header {
background-color: #F8F8F8;
border-bottom: 1px solid #DBDBDB;
/* font-size: 9px; */
overflow: hidden;
padding: 0em 0.4em 0.1em;
cursor: move;
z-index: 10;
}

.noise-module img.nm-reset {
background: url("../img/reset_16.png") 0 0 no-repeat;
height: 16px;
width: 16px;
text-indent: -999em;
position: absolute;
right: 8px;
top: 8px;
cursor: pointer;
.noise-module-node header h6 {
text-decoration: none;
border-radius: 5px 5px 0 0;
padding-bottom: 5px;
font-size: 11px;
margin-top: 8px;
margin-bottom: 8px;
text-align: center;
text-transform: uppercase;
}

.noise-module .nm-content {
.noise-module-node section {
background: #fff;
width: 162px;
overflow: hidden;
padding: 16px 20px 20px 20px;
position: relative;
}

.noise-module .nm-content-title {
text-decoration: none;
border-bottom: 1px solid #dbdbdb;
border-radius: 5px 5px 0 0;
padding-bottom: 5px;
font-size: 11px;
margin: 0 0 11px;
text-align: center;
text-transform: uppercase;
}

.noise-module .nm-content.bypassed .nm-content-title {
text-decoration: line-through;
.noise-module-node section input[type="range"] {
-webkit-appearance: none;
background-color: #303030;
height: 2px;
display: block;
margin-left: 0px;
margin-right: 0px;
margin-top: 5px;
margin-bottom: 15px;
width: 100%;
}

.nm-slider-info {
.noise-module-node div.nm-slider-info {
font-size: 10px;
margin-bottom: 1px;
overflow: hidden;
padding-bottom: 3.4px;
position: relative;
}

.nm-label {
.noise-module-node .nm-slider-info span.nm-label {
font-size: 10px;
display: inline;
float: left;
text-transform: uppercase;
width: 49%;
}

.nm-label.info {
width: 98%;
}

.nm-label.info.link {
cursor: pointer;
}

.nm-label.nm-list {
list-style-type: none;
padding: 0px;
margin-top: 0px;
margin-bottom: 0px;
}

.nm-slider-info .nm-label {
display: inline;
float: left;
text-transform: uppercase;
width: 49%;
}

.nm-slider-info .nm-value {
.noise-module-node .nm-slider-info span.nm-value {
display: inline;
float: right;
font-weight: bold;
Expand All @@ -104,51 +84,49 @@
width: 49%;
}

.noise-module .nm-content input[type="range"] {
-webkit-appearance: none;
background-color: #303030;
height: 2px;
display: block;
margin-left: 0px;
margin-right: 0px;
margin-top: 5px;
margin-bottom: 15px;
width: 100%;
}

.noise-module .nm-content img.nm-play-button {
.noise-module-node section img.nm-play-button {
display: block;
margin: 0 auto;
height: 48px;
width: 48px;
cursor: pointer;
}

.noise-module .nm-content img.nm-play-button.play {
.noise-module-node section img.nm-play-button.play {
background-image: url("../img/play_48.png");
}

.noise-module .nm-content img.nm-play-button.stop {
.noise-module-node section img.nm-play-button.stop {
background-image: url("../img/stop_48.png");
}

.noise-module .nm-content img.nm-play-button.pause {
.noise-module-node section img.nm-play-button.pause {
background-image: url("../img/pause_48.png");
}

.noise-module .nm-content canvas {
.noise-module-node header img.nm-bypass-button {
background: url("../img/bypass_16.png") 0 0 no-repeat;
height: 16px;
width: 16px;
position: relative;
left: 8px;
top: 8px;
cursor: pointer;
}

.noise-module-node section canvas {
background-image: url("../img/blueprint-dark.png");
display: inline-block;
width: 100%;
}


.noise-module .nm-content .pre-amp input[type="range"],
.noise-module .nm-content .eq-band input[type="range"] {
.noise-module-node section .pre-amp input[type="range"],
.noise-module-node section .eq-band input[type="range"] {
/*transform: rotate(90deg);*/
}

.noise-module footer.nm-footer {
.noise-module-node footer {
background-color: #F8F8F8;
border-top: 1px solid #DBDBDB;
font-size: 9px;
Expand All @@ -157,46 +135,3 @@
overflow: hidden;
padding: 0em 0.4em 0.1em;
}

.noise-module .nm-footer .nm-direction {
display: inline;
text-transform: lowercase;
height: 100%
}

.noise-module .nm-footer .direction-from {
float: left;
width: 49%;
}

.noise-module .nm-footer .direction-to {
float: right;
text-align: right;
width: 49%;
}

.noise-module .nm-footer img {
background-image: url("../img/right_16.png");
height: 16px;
width: 16px;
text-indent: -999em;
position: relative;
display: inline-block;
cursor: pointer;
}

.noise-module.begin-out-connection .nm-footer img.icon-to {
background-color: red;
}

.noise-module.begin-in-connection .nm-footer img.icon-from {
background-color: green;
}

.noise-module .nm-footer .nm-direction .nm-list {
list-style-type: none;
padding: 0px;
margin-top: 0px;
margin-bottom: 0px;
position: relative;
}
74 changes: 0 additions & 74 deletions data/modules.example.json

This file was deleted.

Loading