Skip to content

Commit

Permalink
Merge pull request #7 from lilyvanoekel/issue/1
Browse files Browse the repository at this point in the history
Fix clicking on voice stealing add test workflow
  • Loading branch information
lilyvanoekel authored Oct 7, 2024
2 parents 796a9ae + 5594c20 commit 522d33f
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 3 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/run-tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Run Tests

on:
pull_request:
branches:
- main

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "20.x"

- name: Install dependencies
working-directory: ./view
run: npm ci

- name: Run tests
working-directory: ./view
run: npm test -- --run
5 changes: 2 additions & 3 deletions dsp/Common/ADSR.cmajor
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ namespace Common
sustainLevel = max(minimumLevel, sustain);
}

// @todo: fix issue with long release times and plops
event release (float release) {
releaseSeconds = max(0.01f, release);
}
Expand Down Expand Up @@ -79,7 +78,7 @@ namespace Common

// Attack
int32 attackSamples = int32(attackSeconds * float32(processor.frequency));
currentLevel = minimumLevel;
currentLevel = max(minimumLevel, currentLevel);
float target = keyDownVelocity;
float stepSize = 0.0f;

Expand Down Expand Up @@ -137,7 +136,7 @@ namespace Common
advance();
}

gainOut <- 0;
gainOut <- currentLevel;
advance();
}
}
Expand Down

0 comments on commit 522d33f

Please sign in to comment.