This module contains a few parameters, especially the sampling frequency and the temporal step.
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
real(kind=wp), | public, | parameter | :: | PI | = | 4.0_wp*atan(1.0_wp) | |
integer, | public, | parameter | :: | RATE | = | 44100 | |
real(kind=wp), | public, | parameter | :: | dt | = | 1.0_wp/RATE | |
integer, | public, | parameter | :: | wp | = | REAL64 |
The default working precision wp is REAL64. REAL32 can be set: it will accelerate computations and give good results most of the time. But in certain situations, for example drone music, it can introduce artefacts. |
A WAV file contains 64, 32 and 16 bits data or metadata, so we need those kinds.