Skip to content

Commit

Permalink
s/gain/gain.value/g
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Solomon committed Oct 27, 2021
1 parent 4f03c7f commit 5e221af
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.5.6] - 2021-10-27

### Fixed

- sets value instead of main for `gain`.

## [0.5.5] - 2021-10-20

### Added
Expand Down
8 changes: 4 additions & 4 deletions src/WAGS/Interpret.js
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,7 @@ exports.makeInput_ = function (ptr) {
input: a,
};
connectXToY(false)(a)(ptr)(state.parent)(state)();
state.units[ptr].main.gain = 1.0;
state.units[ptr].main.gain.value = 1.0;
};
};
};
Expand Down Expand Up @@ -749,7 +749,7 @@ exports.makeSubgraph_ = function (ptr) {
isSubgraph: true,
scenes: scenes,
};
state.units[ptr].main.gain = 1.0;
state.units[ptr].main.gain.value = 1.0;
for (var i = 0; i < scenes.length; i++) {
var applied = funk(envM(i)(vek[i]))(scenes[i]);
for (var j = 0; j < applied.instructions.length; j++) {
Expand Down Expand Up @@ -805,7 +805,7 @@ exports.makeTumult_ = function (ptr) {
isTumult: true,
scenes: scenes,
};
state.units[ptr].main.gain = 1.0;
state.units[ptr].main.gain.value = 1.0;
for (var i = 0; i < scenes.length; i++) {
var curScene = arrMaker(scenes[i])(nothing);
for (var j = 0; j < curScene.length; j++) {
Expand Down Expand Up @@ -1112,7 +1112,7 @@ exports.setInput_ = function (ptr) {
}
state.units[ptr].input = a;
connectXToY(false)(a)(ptr)(state.parent)(state)();
state.units[ptr].main.gain = 1.0;
state.units[ptr].main.gain.value = 1.0;
};
};
};
Expand Down

0 comments on commit 5e221af

Please sign in to comment.