-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Configure audio pickup in demo config
- Loading branch information
1 parent
12c8add
commit 52b420e
Showing
9 changed files
with
180 additions
and
54 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 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 @@ | ||
// Damping | ||
*mul *= 1 - 0.0001; | ||
|
||
// Emitter | ||
let emitter = vec2<f32>(f32(ctx.width) / 2.0, f32(ctx.height) / 2.0); | ||
*distance = distance(vec2<f32>(f32(x), f32(y)), emitter); | ||
|
||
// Boundary conditions | ||
*wall = x != 240; |
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,17 @@ | ||
size = [1920, 1080] | ||
reflective_boundary = false | ||
|
||
shader = "shader.wgsl" | ||
|
||
dx = 0.0810 | ||
dt = 0.0625 | ||
|
||
v = 340.29 | ||
amplitude = 1.0 | ||
frequency = 4.0 # in x100 Hz | ||
|
||
[audio] | ||
input = "../reverb/input.wav" | ||
output = "output-left.wav" | ||
pickup = [959, 540] # left | ||
# pickup = [961, 540] # right |
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 @@ | ||
// Damping | ||
*mul = 1 - 0.001; | ||
|
||
// Emitter | ||
let emitter = vec2<f32>( | ||
f32(ctx.width) / 2.0 + 100.0 * cos(0.00000314159265358979323846 * f32(ctx.tick)), | ||
f32(ctx.height) / 2.0 + 100.0 * sin(0.00000314159265358979323846 * f32(ctx.tick)) | ||
); | ||
*distance = distance(vec2<f32>(f32(x), f32(y)), emitter); |
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 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 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 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 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