Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2,276 changed files
with
26,552 additions
and
26,091 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
======= TABLE 101 size: 8 values ====== | ||
flen: 8 | ||
lenmask: 7 | ||
lobits: 27 | ||
lomask: 134217727 | ||
lodiv: 0.000000 | ||
cvtbas: 0.000000 | ||
cpscvt: 0.000000 | ||
loopmode1: 0 | ||
loopmode2: 0 | ||
begin1: 0 | ||
end1: 0 | ||
begin2: 0 | ||
end2: 0 | ||
soundend: 0 | ||
flenfrms: 8 | ||
nchnls: 1 | ||
fno: 101 | ||
gen01args.gen01: 0.000000 | ||
gen01args.ifilno: 0.000000 | ||
gen01args.iskptim: 0.000000 | ||
gen01args.iformat: 0.000000 | ||
gen01args.channel: 0.000000 | ||
gen01args.sample_rate: 44100.000000 | ||
---------END OF HEADER-------------- | ||
0.000000 | ||
0.707107 | ||
1.000000 | ||
0.707107 | ||
0.000000 | ||
-0.707107 | ||
-1.000000 | ||
-0.707107 | ||
0.000000 | ||
---------END OF TABLE--------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
tmp | ||
generate.js | ||
__pycache__ | ||
*.pyc | ||
*.ftsave | ||
!include/* | ||
include/*.pvx | ||
opcodes/pvsfwrite/mypvs.pvx | ||
opcodes/monitor/fout_aif.aiff |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
i1 0.000023 0.000023 192 1 0 0 | ||
i1 0.000023 0.000023 192 4 0 0 | ||
i1 0.000045 0.000023 176 1 7 100 | ||
i1 0.000045 0.000023 176 4 7 100 | ||
i1 0.000068 0.000023 176 1 10 64 | ||
i1 0.000068 0.000023 176 4 10 64 | ||
i1 0.000091 0.000023 176 1 93 0 | ||
i1 0.000091 0.000023 176 4 93 0 | ||
i1 0.000113 0.000023 176 1 91 0 | ||
i1 0.000113 0.000023 176 4 91 0 | ||
i1 0.000136 0.000023 144 1 60 127 | ||
i1 0.000136 0.000023 192 2 0 0 | ||
i1 0.000159 0.000023 192 4 0 0 | ||
i1 0.000159 0.000023 176 2 7 100 | ||
i1 0.000181 0.000023 176 4 7 100 | ||
i1 0.000181 0.000023 176 2 10 64 | ||
i1 0.000204 0.000023 176 4 10 64 | ||
i1 0.000204 0.000023 176 2 93 0 | ||
i1 0.000227 0.000023 176 4 93 0 | ||
i1 0.000227 0.000023 176 2 91 0 | ||
i1 0.000249 0.000023 176 4 91 0 | ||
i1 0.000249 0.000023 192 3 0 0 | ||
i1 0.000272 0.000023 192 2 0 0 | ||
i1 0.000272 0.000023 176 3 7 100 | ||
i1 0.000295 0.000023 176 2 7 100 | ||
i1 0.000295 0.000023 176 3 10 64 | ||
i1 0.000317 0.000023 176 2 10 64 | ||
i1 0.000317 0.000023 176 3 93 0 | ||
i1 0.000340 0.000023 176 2 93 0 | ||
i1 0.000340 0.000023 176 3 91 0 | ||
i1 0.000363 0.000023 176 2 91 0 | ||
i1 0.000385 0.000023 192 3 0 0 | ||
i1 0.000408 0.000023 176 3 7 100 | ||
i1 0.000431 0.000023 176 3 10 64 | ||
i1 0.000454 0.000023 176 3 93 0 | ||
i1 0.000476 0.000023 176 3 91 0 | ||
i1 0.400023 0.000023 128 1 60 127 | ||
i1 2.000023 0.000023 144 4 62 127 | ||
i1 2.400023 0.000023 128 4 62 127 | ||
i1 3.000023 0.000023 144 2 55 127 | ||
i1 3.400023 0.000023 128 2 55 127 | ||
i1 5.000023 0.000023 144 3 72 127 | ||
i1 5.400023 0.000023 128 3 72 127 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# Soak tests | ||
|
||
The soak tests are a series of reproduceable tests for a continuous integration coverting (hopefully) of all core opcodes and operators. | ||
|
||
|
||
## opcodes | ||
|
||
The opcodes directory is organized by opcode name (with the exception on operators and statements) and test. For a test to be included in the test-coverage, the directory name needs to match with the name of the opcode being tested. | ||
|
||
The tests are based on the manual examples, but many have been modified for reproduceability and for brevity (test should preferable not exceed 5-10 seconds). A test in the opcodes directory must produce audio to make sense, since these tests are based on checksum match of the .wav output and an expected checksum. | ||
|
||
To add or modify a test, make sure to include a foo.csd file and a matching foo.csd.json, where foo.csd.json is a json map containing 3 keys `"sha256"` for the expected checksum, `"os"` for the operating system the expected sha was generated from and `"git_commit"` for the git revision of the csound build used to produce the audio binary. | ||
|
||
## dryruns [wip] | ||
|
||
Dryruns is a collection of opcodes organized in the same way as the opcodes directory but containing opcodes and operators that are better tested in other ways than the audio they may or may nor manipulate. A good example of these are array and disk i/o operators. | ||
|
||
|
||
## resources and include | ||
|
||
The include directory contains all binary artifacts needed to run the test suite except for .pvx binaries. They need to be generated each time csound is changed. To do this, open the include directory in the terminal and run the following: | ||
|
||
``` | ||
csound -U pvanal flute.aiff flute.pvx | ||
csound -U pvanal mary.wav mary.pvx | ||
csound -U pvanal beats.wav beats.pvx | ||
``` | ||
|
||
And make sure to reference this directory when running a soak test which includes an include. For example: | ||
|
||
``` | ||
SSDIR=../../include INCDIR=../../include SADIR=../../include csound loscil.csd -o loscil.wav | ||
``` | ||
|
||
|
||
## helpful commands(dev) | ||
|
||
- replace the sha256sum with bash and npm's json package quickly (install json with `npm i json -g`) | ||
|
||
```bash | ||
file=vbap8move && sha256sum $(echo $file.wav) | cut -d " " -f 1 | cat | { read sha256 ; json -I -f $file.csd.json -e "this.sha256="'"'$sha256'"';} | ||
``` | ||
|
||
- quickly test the sha256sum and see if multiple invocations produce the same sha | ||
|
||
```bash | ||
file=0dbfs && SSDIR=../../include INCDIR=../../include SADIR=../../include csound $file.csd -o $file.wav --logfile=null -W -m0 && sha256sum $(echo $file.wav) | cut -d " " -f 1 | ||
``` |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.