|
SAL
A C++ library for spatial audio.
|
Functions | |
| subplot (3, 1, 1) | |
| plot (t', sine_original) | |
| plot (t', sine_doppler) | |
| plot (t(1:end-1), diff(sine_doppler)) | |
| subplot (3, 1, 2) | |
| plot (f, 20 *log10(abs(H_original))) | |
| plot (f, 20 *log10(abs(H_doppler))) | |
| subplot (3, 1, 3) | |
| plot (diff(current_latency(1:end-1))) | |
| pause | sound (sine_doppler, FS) |
Variables | |
| load sine_original | txt |
| sine_doppler = sine_doppler | |
| FS = 44100 | |
| t = linspace(0,length(sine_original)/FS, length(sine_original)) | |
| hold | on |
| hold | off |
| sine_freq = 1000 | |
| v = 343 | |
| sound speed | vs = 171.5 |
| source speed | doppler_shift |
| plot | ( | t' | , |
| sine_original | |||
| ) |
| plot | ( | t' | , |
| sine_doppler | |||
| ) |
| plot | ( | t(1:end-1) | , |
| diff(sine_doppler) | |||
| ) |
| plot | ( | f | , |
| 20 * | log10abs(H_original) | ||
| ) |
| plot | ( | f | , |
| 20 * | log10abs(H_doppler) | ||
| ) |
| plot | ( | diff(current_latency(1:end-1)) | ) |
| pause sound | ( | sine_doppler | , |
| FS | |||
| ) |
| subplot | ( | 3 | , |
| 1 | , | ||
| 1 | |||
| ) |
| subplot | ( | 3 | , |
| 1 | , | ||
| 2 | |||
| ) |
| subplot | ( | 3 | , |
| 1 | , | ||
| 3 | |||
| ) |
| FS = 44100 |
| hold off |
| hold on |
| sine_doppler = sine_doppler |
| sine_freq = 1000 |
| t = linspace(0,length(sine_original)/FS, length(sine_original)) |
| load current_latency txt |
| v = 343 |
| sound speed vs = 171.5 |
1.8.2