Tests and results
Chapter 8 Future work
Replacingfiddle˜in the implementation by a custom object designed for the spe-cific purpose of retrieving from incoming signals only information about fundamental, partials and their amplitudes could mean a significative reduction in calculation time.
Besides that, although the Hanning window used in fiddle˜ reduces the effects of
FFT leakage, it can also reduce the frequency resolution. The reasons for choosing a Hanning window in fiddle˜ are unknown to the author, but the effect of others windowing artifacts (like Blackman, Flat top, Hamming, etc.) should be studied to compare which of them offers better frequency resolution in a real-time implementa-tion.
The audio signal concurrency problem suggests the implementation of a program using parallel computing techniques, such as POSIXthreads standard (Pthreads) [53].
Flext [54] is a C++ layer for cross-platform development of Max/MSP and pd exter-nals. This tool brings mechanisms to access threads encapsulating low-level imple-mentation details, so it can be used for parallelize the patch presented in this thesis. In a very simplified scenario, on the event of a new signal, one thread could write it into the matrices (Amplitudes and Timbre), and raise a flag for another thread in charge of calculating the dissonance-minimized versions of the incoming signals. This thread in turns should drop whatever partial result it had at the moment the flag is raised and start to calculate it again with the newly arrived data. The scheduling for this parallel ver-sion is not trivial, since it has to control the release time of the processes, commit the deadlines for audio outputs, assure that threads are started in a precise order, manage exceptions such as dead threads, prevent dead-locks, etc.
Another source of parallelism is the calculation of the dissonance itself. The pre-sented problems, calculating the frequencies that belong to the vicinity of the originals offer a minimum dissonance by using brute-force, can be easily circumvented using parallel processes (preferable in several processors), one for each timbre.
The values of the damping constants were calculated by trial and error, and al-though this is a valid technique, a more sophisticated method for tuning them could be employed. In the same way that genetic algorithms are used to train neural net-works, using such meta-algorithms to find more appropriated constant values inSPSA
were not included in the present work, and this exploration can be addressed in further investigations.
In the SPSA implementation, the Bernoulli distribution was used for simplicity,
but other probability distributions might produce vectors with the same properties than those presented in the current implementation (vector entries independent and symmet-rically distributed about 0 with finite inverse moment) could produce different results, perhaps reducing the convergence time.
As explained by Watkinson [55] “The [excited] area of the [basilar] membrane in-volved will increase as the sound level rises,” However, in the model ofERB used in our implementation, the intensity of the aural stimulus is not considered in the expres-sion. Such factor could presumably increase the accuracy of the system, although this extra complication should be weighted against the real-time constraints to determine if it should to be included.
The correctness of the model from a physiological perspective (i.e. that it effec-tively reduces the perceived dissonance of the input signals) was not proven in the present thesis as such a proof is a complicated problem. No formal validation was offered; instead, our results prove that the proposed system is self-consistent and also consistent with the consonance paradigms selected for the implementation. Among other possible tests, one could conduct subjective tests in which non-processed audio is compared with the output of the proposed system. This experiment, though, could potentially be biased by other factors, such the inability of the listener to distinguish between different tuning systems.
Other explorations include the application of the system to non-harmonic sounds, as presented earlier. Only sounds with high energy partials and small overall duration lead the system to unpredictable results, so the dissonance of combinations of some non-western instruments (like the Indonesian gamelan), artificially elaborated sounds,1 and traditional instruments, can be minimized.
1such the harmonically stretched versions produced by the Helical Keyboard when operating with its internal synthesizer [56]
Chapter 9 Conclusions
A novel approach to generate dissonance minimized version of concurrent sounds in realtime based on the tonotopic theory was presented and analyzed. Goldenear re-duces heuristically the dissonance of sound sources in realtime conserving their origi-nal character linked to a vicinity in ¢ which can defined by the user in the interface.
The proposed model can be applied with no modifications to any kind of sound-sources (harmonic and non-harmonic spectra).
Although no subjective tests were conducted to validate the presented model from a perceptual approach (linking estimation of dissonance with experimental phenomena), the results are in agreement with previous researches, and the convergence time of the algorithm for the chosen platform make it adequate for several real-time applications.
It would be na¨ıve to conclude that such a complex phenomenon as the subjective degree of pleasantness experienced by music perception can be explained by a sin-gle theory; some of the examples presented in this thesis refer almost exclusively to harmonic music, and their results cannot be extended to other genres. There is some evidence that tonotopic dissonance could explain consonance in some ethnic expres-sions, so the presented application could be used to corroborate it. Nevertheless, there are still several unaddressed aspects that should be studied to complement the approach presented here.
Practical application of the model presented in this thesis include using it to process the performance of traditional instruments (with harmonic spectra) in conjunction with instrument with no harmonic spectra like bonang and saron from the Indonesian tradi-tion, as a ‘tutor’ to learn ‘better’ positions in instruments with no fix tuning (strings, trombone, etc.), for learning harmony and the origin of musical scales, as replacement of tunings so instruments can play in whatever tuning they have letting the software to adjust their pitches and achieve better results in terms of consonance, as a musical effect by using non-usual vicinities, etc.
References
[1] G. Eskelin, Lies My Music Teacher Told Me: Music Theory for Grownups, Stage Three Enterprises, 1994, ISBN1886209111.
[2] E. Roseman, Edly’s Music Theory for Practical People, Musical Ed Ventures, ii edition, 1999, ISBN0966161602.
[3] Higgins, Barry, Torch, Gray, McLennen, and Powell, “Believe (sang by Cher),”
1998, Track 1.
[4] David Huron, “Music cognition handbook: A dictionary of concepts,” 2006,
http://musiccog.ohio-state.edu/Resources/Handbook/index.html.
[5] R. Plomp and W. Levelt, “Tonal consonance and critical bandwidth,” J. Acousti-cal Society of America, pp. 548–560, October 1965, Volume 38, Issue 4.
[6] L. Euler, Tentamen novae theoriae musicae ex certissismis harmo-niae principiis dilucide expositae, Saint Petersburg Academy, 1739, www.math.dartmouth.edu/˜euler/pages/E033.html.
[7] Hans Straub, “Music Theory/Music and
Math-ematics: Frequently Asked Questions,” 2006,
http://home.datacomm.ch/straub/mamuth/mamufaq.html.
[8] D. Greenwood, “Critical bandwidth and the frequency coordinates of the basilar membrane,” J. Acoustical Society of America, 33 (4), pp. 1344–1356, 1961,
ISBN3-540-76173-X.
[9] H. v. Helmholtz, On the Sensations of Tone as a Physiological Basis for the Theory of Music, chapter VIII, On the beats of simple tones, Dover Publications, ii english edition, 1954.
[10] Max Mathews, Music, Cognition, and Computerized Sound, chapter The Ear and How It works, The MIT Press, Cambridge, Masachusetts, 2001, ISBN 0-262-53190-9.
[11] E. Zwicker, G. Flottorp, and S. Stevens, “Critical bandwidth in loudness summa-tion,” J. Acoustical Society of America 29 (5), pp. 548–557, 1957.
[12] W. Sethares, “Adaptive tuning for musical scales,” J. Acoustical Society of Amer-ica 96(1), pp. 10–18, 1994.
[13] W. Sethares, “Local consonance and the relationship between timbre and scale,”
J. Acoustical Society of America 94(3), pp. 1218–1228, 1993.
[14] Gregory J. Sandell, “SHARC - Sandell harmonic archive. release 0.921,” 1994, www.tnt.uni-hannover.de/js/soft/audio/packages/shark.html.
[15] E. W. Weisstein, “Kissing number from mathworld – a wolfram web resource,”
2006, http://mathworld.wolfram.com/KissingNumber.html.
[16] W. Sethares, Tuning, Timbre, Spectrum, Scale, Springer, 1998, ISBN 3-540-76173-X.
[17] Tufts University Gregory Crane, Editor-in-Chief, “The perseus digital library,”
2006, www.perseus.tufts.edu/.
[18] William M. Hartmann, Signals, Sound, and Sensation, AIP Press, 1997, ISBN 1-56396-283-7.
[19] C. Schmidt-Jones, “Tuning systems, [connexions web site],” 2006, http://cnx.org/content/m11639/1.13/.
[20] J. Bach, The Well-Tempered Clavier: Books I and II, Complete, Dover Publica-tions, 1984, ISBN0486245322.
[21] W. Heisenberg, Physics and Philosophy, chapter IV. Quantum Theory and the roots of atomic science, Penguin classics, 2000, ISBN0-14-118215-6.
[22] D.M. Howard, “A capella satb quartet in-tune singing: Evidence of intonation shift,” in Proc. Stockholm Music Acoustics Conf. Computational Modeling and Problem Solving in the Networked World, August 2003, pp. Vol. 2, 462–466, SMAC-03.
[23] N. Vicentino, “L’antica musica ridotta alla moderna prattica,” 2006,
http://visualiseur.bnf.fr/CadresFenetre?O=NUMM-58223&M=telecharger&Y=Image. [24] D. Benson, Mathematics and Music, chapter 4.
Conso-nance and dissonance, Cambridge University Press, 2005, www.maths.abdn.ac.uk/˜bensondj/html/maths-music.html. [25] S. Wilkinson, Tuning in, chapter 5. Alternate tunings and Scales, Hal Leonard
Books, 1988, ISBN0-88188-633-5.
[26] MIDI Manufacturers Association, The Complete MIDI 1.0 Detailed Specifica-tion, chapter Section 2, MIDI Manufacturers AssociaSpecifica-tion, 2001.
[27] J. deLaubenfels, “Studio j: John deLaubenfels’ basement project,” 2006,
http://personalpages.bellsouth.net/j/d/jdelaub/jstudio.htm.
[28] W. Sethares, “Real-time adaptive tunings using Max,” J. New Music Research Vol. 31 No. 1, pp. 1–7, 2002.
[29] James C. Spall, “An overview of the simultaneous perturbation method for effi-cient optimization,” Johns Hopkins APL Technical Digest Vol. 19, p. 482 492, 1998, www.jhuapl.edu/SPSA/Pages/References-Intro.htm.
[30] James C. Spall, “Stochastic optimization: Stochastic ap-proximation and simulated annealing,” Encyclopedia of Elec-trical and Electronics Engineering, p. 529 542, 1999,
www.jhuapl.edu/SPSA/Pages/References-Intro.htm.
[31] William Sethares, “Adaptun,” 2002, http://eceserv0.ece.wisc.edu/˜sethares/adaptun/.
[32] B. Moore, B. Glasberg, and T. Baer, “A model for the prediction of thresholds, loudness, and partial loudness,” J. Audio Engineering Society 45 (4), pp. 224–40, 1997.
[33] Antares Audio Technologies, “Auto-tune 4,” 2006,
www.antarestech.com/products/auto-tune4.shtml.
[34] R. Parncutt, Harmony: A Psychoacoustical Approach, Springer Series in Infor-mation Sciences. Springer-Verlag, 1989, ISBN0387512799.
[35] Keith Mashinter, “Calculating sensory dissonance: Some discrepancies arising from the models of kameoka & kuriyagawa, and hutchinson & knopoff,” Empir-ical Musicology Review 1 (2), pp. 65–84, 2006, ISSN1559-5749.
[36] D. Greenwood, “Auditory masking and the critical band,” J. Acoustical Society of America 33 (4), pp. 484–502, 1961.
[37] D. Greenwood, “Critical bandwidth and the frequency coordinates of the basilar membrane,” J. Acoustical Society of America 33 (4), pp. 1344–1356, 1961.
[38] David M. Howard and James Angus, Eds., Acoustics and Psychoacoustics, Focal Press, Oxford, England, 1996, ISBN0-240-51428-9.
[39] John Pierce, Music, Cognition, and Computerized Sound, chapter Consonance and Scales, The MIT Press, Cambridge, Masachusetts, 2001, ISBN 0-262-53190-9.
[40] Miller Puckette, “Theory and techniques of electronic music,” 2005,
www.crca.ucsd.edu/˜msp/techniques/latest/book-html.
[41] Miller Puckette, “Software by Miller Puckette,” 2006, www-crca.ucsd.edu/˜msp/software.html.
[42] Miller Puckette, “Pd documentation,” 2006,
www-crca.ucsd.edu/˜msp/Pd_documentation/index.htm.
[43] J. Zm¨olnig, “HOWTO write an external for puredata,” 2006, www.iem.at/pd/externals-HOWTO/.
[44] M. Puckette, T. Apel, and D. Zicarelli, “Real-time audio analy-sis tools for pd and msp,” Proc. Int. Computer Music Conf., 1998, www-crca.ucsd.edu/˜tapel/icmc98.pdf.
[45] Rabiner L. R. and Schafer R. W., Digital Processing of Speech Signals, Prentice-Hall Series in Signal Processing No. 7. Prentice Prentice-Hall, 1978, ISBN0132136031.
[46] Mathworks, “Single sideband modulation via the Hilbert transform,” 2006,
www.mathworks.com/products/demos/shipping/signal/hilberttransformdemo.html?product=SG. [47] Sanjit K. Mirta and James F. Kaiser, Eds., Handbook for Digital Signal
Process-ing, John Wiley & Sons, Inc., New York, NY, USA, 1993.
[48] Mathworks, “MATLAB,” 2006, www.mathworks.com/.
[49] J. C. Spall, “Multivariate stochastic approximation using a simultaneous pertur-bation gradient approximation,” IEEE Transactions on Automatic Control, vol.
37, pp. 332–341, 1992.
[50] S. Wolfram, The Mathematica Book, Wolfram Media, fifth edition, 2003,
ISBN1579550223.
[51] Roland, “Edirol ua-101,” 2006, www.rolandus.com.
[52] Pd List, “Pd mailing list,” 2006, http://lists.puredata.info.
[53] The Open Group, “IEEE std 1003.1, 2004 edition,” 2004, www.unix.org/version3/ieee_std.html.
[54] Thomas Grill, “flext – c++ layer for cross-platform development of max/msp and pd externals,” 2005, http://grrrr.org/ext/flext/.
[55] J. Watkinson, Convergence in Broadcast and Communications Media, chapter Sound, Focal Press, 2001, ISBN0240515099.
[56] J. Villegas, Y. Kawano, and M. Cohen, “Harmonic stretching with the Helical Keyboard,” J. of Three-Dimensional Images Vol. 20 No. 1, pp. 29–34, March 2006, ISSN1342-2189.