Calculates the dissonance function for two sine waves
Usage
sine_dissonance(freq1, freq2, loud1, loud2)
Arguments
- freq1
frequency in Hertz of the first sine wave
- freq2
frequency in Hertz of the second sine wave
- loud1
loudness of the first sine wave
- loud2
loudness of the second sine wave
Value
the dissonance value
Details
This algorithm comes from Appendix E of
(Sethares 2013)
References
Sethares WA (2013).
Tuning, Timbre, Spectrum, Scale, Second Edition.
Springer London.
ISBN 9781447141778.