Friday, October 2, 2015

A Well Regulated Militia

I've been reading Barbara Tuchman's A Distant Mirror, which hasn't put me in any optimistic mood regarding the prospects for creating a society where wholesale violence is absent. All the same, there is clearly great variation across time and space in the frequency and scale of such violence. This variation must have causes and therefore be subject to some degree of control. Surely we can find a way to do better than we presently are!

It seems to me that the root of the problem is our gun culture. There is no way we are going to be able to divide people up into the good people who should be allowed or encouraged to own guns, and the bad people who should be discouraged or forbidden. It's not just that it is difficult to figure out who is good and who is bad; each of us is a complex evolving combination of good and bad elements. But again, this kind of variation opens the door to the possibility of steering the mix. I cannot imagine our gun culture evaporating over any small number of decades. But it is always changing. We can choose the sort of gun culture we want and take action to bring that about.

The constitutional objective of a well regulated militia points us along a viable path of responsible gun ownership. A gun is by design a lethal weapon. Gun owners need to be responsible users of lethal weapons. This clearly implies a level of training that is not trivial or elementary. Components of such a training regime could include:

  • psychological tools for managing anger and depression
  • dispute resolution
  • non-lethal self-defense
  • physical conditioning
  • laws regarding gun usage
  • target shooting
  • gun cleaning
  • gun storage and transport

Maintaining a permit to own guns could require regular continuing training and regular testing, e.g. a yearly course and a test every five years.

We can transform our gun culture from a national disgrace to a source of national pride. A culture of sober responsibility should spawn vastly fewer senseless mass killings.

Saturday, September 19, 2015

Fractal Music

Algorithmic methods for musical composition encompass a vast realm. The general pattern is that a person writes a computer program. When the program is executed, its output is a musical score. Such a program might be designed to generate scores that strongly resemble existing works by a particular composer, for example, or works of some specific musical genre. At the other extreme, the goal might be to create compositions quite unlike any previously existing music, compositions that even test the limits of what might be recognized as music, but preserving enough characteristics of conventional music to avoid violating those limits utterly.

Microtonality represents another vast realm. Microtonality can be used to give fresh expression to conventional musical compositions and structures. Microtonality also opens up musical spaces that push so far beyond conventionality as to degenerate into nonsense.

Algorithmic composition provides a tool for exploring microtonality in a way that avoids simply duplicating conventional tonal structures, while at the same time maintaining enough recognizable patterning so the result sounds at least a bit like music. The approach I have been exploring constructs a score from the very conventional musical intervals of octaves, fifths, and thirds. The rhythmic aspect is also generally built from simple conventional elements, but in the discussion here the rhythmic aspect is left at the most primitive level. What I want to focus on here is how the simple musical intervals are used to form combinations and sequences of pitches.

In the spring of 1977 I visited the University of Pennsylvania and heard a lecture by Richard Voss on the fractal structure of music. At that time he was calling it a 1/f structure, but that is just one example of a fractal. The key idea is that fluctuations in pitch happen over many different time scales, none of which dominate. Around the same time I was studying phase transitions, such as the transition of a material from a liquid to a gas. Some of these transitions are also characterized by fluctuations at many different scales. So the central idea here is to use a simulation of a phase transition to generate fractal fluctuations, but in pitch rather than e.g. material density.

So how can a computer program simulate a phase transition? I first read about this in 1975 when I was reading Introduction to Phase Transitions and Critical Phenomena by H. Eugene Stanley. The book included some wonderful pictures of two dimension systems at the critical point and their fractal fluctuations, though again the term fractal was not used then. Ever since reading about this, I have been fascinated by how long range order can abruptly emerge out of short range interactions. What is also fascinating is that these phenomena also exhibit universality, which is to say the coarse level behavior is only weakly dependent on the low level details. In other words, a very simple computer program can simulate some very complex behavior!

The foundation of such a simulation is a multidimensional array or network of some type. When simulating a physical system, the array corresponds to space, so typically one would use a three dimensional array. The value contained in each element the array corresponds to the physical state of the material in the spatial region represented by that element. For composing a musical score, each element of the array corresponds to a particular time interval and voice within the composition. The value contained in the element will then be the pitch to be played by that voice at that time.

The multidimensionality of a musical score is not immediately obvious. But on second thought, the musical structure of theme and variation is almost universal. Music consists of phrases that are varied and repeated. The pitch to be played during one statement of a phrase is very closely related to the pitch to be played at a later statement of the phrase in the same position within the phrase.

Given such an array of elements, each of which consists of a pitch value, how should a computer algorithm simulate a phase transition with its fractal fluctuations? The core idea is to repeatedly pick a single array element, reassign its pitch value, then pick a different array element, reassign that pitch value, doing this again and again so that every array element gets many different values over the course of the program’s execution. Each array element has a small set of neighboring elements in the array. When assigning a new pitch value for a particular array element, the pitch values of the neighboring elements are examined. The pitch value is chosen so that it has some good harmonic relationship with the pitches of those neighboring array elements. Each time an array element is assigned a fresh pitch value, that new value can differ from the old value for two reasons: the pitch values for the neighboring array elements may have changed in the intervening time, so a different pitch value is needed to maintain a good harmonic relationship with the new neighboring pitches; and a weighted randomization method is used, where more closely related pitches are preferentially selected, but sometimes a pitch is assigned that is not the best possible.

Harmonic distances are given fixed numerical values which correspond to the energy contributions of microscopic interactions in a physical system. Just as the total energy of a macroscopic physical system, such as a cup of water, consists of the sum of all the microscopic energies from the interactions of the water molecules in the cup, the total energy of a musical score can be computed by adding up all the individual contributions from the harmonic relationships between pitches assigned to neighboring array elements.

The degree of bias toward close harmonic relationships is governed by a top level control variable that corresponds to the temperature of a physical system. When the temperature is high, there is little preference for selecting pitches with close harmonic relationships. As the temperature is lowered, the degree of preference is gradually increased. What is quite remarkable about the behavior of such a simulation is that an abrupt drop in the total system energy arises, despite the gradual increase in preference for individual lower energy relationships.

This abrupt drop in energy corresponds to a phase transition and the emergence of long range order. Musically, a tonal center spontaneously arises! As the temperature drops, the score changes from highly disordered to highly ordered. With luck, a sweet spot will emerge where there is enough disorder to make the composition interesting, but enough order so it still makes some sense. This transition from disorder to order can be illustrated by four scores.

The first score, prw691, was built at a temperature of 6.91. From the above energy graph, this is clearly below the transition point. To my ear, this music is too disorderly to make much sense of. But a histogram of pitch class occurrences shows that a tonal center is already becoming clear:

Of the 53 pitch classes in the microtonal system in use here, many do not occur at all, and just few are dominating.

The next score, prw542, is from temperature 5.42. The pitch class histogram now shows a clear tonal center:

I must confess, the tonal center being around the pitch class 0 makes me suspect that there is a bug somewhere in my code. A very slight consistent bias to any particular pitch class will strongly bias the emergence of the tonal center to land on the preferred pitch class. I am still trying to find out how my code is creating a bias. The fact that a clear phase transition emerges does seem to indicate, though, that this bias is not too strong. In any case, despite the tonal center's clear presence in the pitch class histogram, this score still sounds overly disordered to my ear.

The next score, prw392, sounds close to the sweet spot. Perhaps a slightly higher temperature than 3.92 would be a bit better. Still, this score sounds interesting to me, despite the highly dominant tonal center shown in the pitch class histogram:

The final score, prw246, from temperature 2.46, does sound too orderly to be interesting enough. The total number of array elements in this structure is 8748. Of these, prw246 has assigned 8221 to pitch class 0:

Wednesday, August 26, 2015

Twisted Telemann

My friend J.-S. Truchy pointed me to some interesting microtonal software: tune.js. This software got me thinking in several directions.

The first puzzle for me was: what is a .js file? What programming language is that? Easy enough to do a quick search and discover that it is java script. I have heard of java script! But I have never looked at any! This really underscored for me my situation. I have been writing computer programs since 1970, i.e. for 45 years. My first programs were in IBM 1401 Autocoder. The first programs I ran were in IITRAN (from the Illinois Institute of Technology). From there I got into Fortran, IBM 360 Assembler, etc. In short, I am a dinosaur! I can still read JCL in my sleep, but this was my first look at java script!

The second puzzle was: what exactly does this tune.js program do? I see that I can click on the image of the keyboard and adjust its tuning. But that seems to be merely the tip of the iceberg! Somehow there are many microtonal scales made available by this program, but I can't fathom how to access them!

Rather than getting stuck in my frustration over things I can't figure out how to do, I often like simply to forge ahead with things that I can figure out how to do! With luck I can pick up a little inspiration from the abandoned route whose first handhold proved already beyond my grasp.

So, in this case, what might I do to adapt my current favorite scale, Hanson[11], to a conventional keyboard? To start with, a conventional keyboard really wants 12 notes per octave. Hanson[11] can easily be extended to Hanson[12], so that is easy. What would that look like, just to put that scale on the keys? The only issue is, which note of the Hanson[12] scale to assign to the keyboard C? Here is what I came up with:

The numbers on the keys are based on the equal division of the octave into 53 equal parts, the microtonal system that I have been exploring and in which the Hanson[12] scale works well. The particular numbers are not meaningful: it is the differences between the numbers that matter. So, for example, the lowest C has the number 0 and the lowest D has the number 11. So the frequency ratio between D and C is 2^(11/53). This doesn't correspond very well to any just tuned interval. The truth is, this is a rather warped tuning for a conventional keyboard! But it might be fun, anyway!

The Hanson scales are based on minor thirds. Dividing an octave into 53 equal parts gives a good approximation for a minor third of 14 microsteps. This is to say that 6/5, the frequency ratio of a just tuned minor third, is very close to 2^(14/53). Almost every key on the keyboard has some other key which is 14 microsteps higher and another key which is 14 microsteps lower. Only the E has no key 14 microsteps lower, and only the Eb has no key 14 microsteps higher. These are the notes at the two ends of the stack of minor thirds from which the Hanson[12] scale is constructed.

These minor third relationships can be marked on the keyboard:

Most of the 14 microstep minor thirds appear where they should on a conventional keyboard. For example, C to Eb is a conventional minor third, and with this tuning the notes are indeed 14 microsteps apart. But the fit is not perfect. Some intervals of 3 conventional half-steps are not 14 microsteps apart, e.g. D to F. Instead, it is D to F# that is 14 half-steps. In the above diagram, I used dashed arrows to indicate intervals of 14 microsteps that do not appear 3 conventional half steps apart on the keyboard.

What makes the Hanson scale interesting is that it takes advantage of the tempering of the Kleisma by the underlying microtonal system. Even though the Hanson scale is built out of minor thirds, intervals of a perfect fifth appear. When the octave is divided into 53 equal parts, a perfect fifth is represented as 31 microsteps. It is the very close approximation of 3/2 by 2^(31/53) that makes 53 interesting musically.

The perfect fifths in the Hanson scale appear as follows on the keyboard:

Here again solid arrows are used when the perfect fifth appears in a conventional way, i.e. separated by 7 conventional half steps. Dashed arrows are used when a perfect fifth appears unconventionally.

Given a conventional keyboard, conventional music can easily be played in this unconventional tuning, e.g. a minuet.

Wednesday, June 17, 2015

Identity

I haven't been following the details of the Rachel Dolezal affair, so I have no useful opinions to offer on the specifics. But the framework of ideas in which the issues unfold is quite fascinating. The Buddhist traditions have explored many of these ideas in a deep and rich way and should be able to contribute constructively to the discussion.

Perhaps, though, I should rather say, contribute deconstructively. So much of the problem here is that we often think we mean something specific but the ranges of possible meaning are so wide and so poorly demarcated that ambiguity and misunderstanding are rife. Mapping out a bit of this terrain would seem to be a useful preliminary.

Rachel Dolezal is reported as saying, "I identify as black." What layers of potential meaning are packed into this?

People seem to carry in their minds, in their perceptions, some kind of tribal classification system. When we see someone or meet someone, we tend to situate them as members of some group or other. This classification system tends to be factored into several dimensions, such as gender, class, ethnicity, and race. This classification system is not entirely conscious. It changes and evolves with our experience in the world. And of course if and as we get to know a person, our initial classification of them will both shift and tend to recede into the background.

We never encounter ourselves in the way we encounter others, but still, we will generally situate ourselves in our own tribal classification system. We may come to realize, as we get to know another person, that they are not very comfortable with the identity that others ascribe to them. And of course we ourselves may struggle with the way we fit into the tribal classification system. We may start to see that other people have their own classification systems that might not always line up so well with our own system. And even when the systems are well aligned, we may come to realize that others situate us in a place where we don't see ourselves properly fitting.

These classification systems are also created and enforced by our social institutions. Having one restroom for men and one restroom for women enforces a binary gender system. There is intense pressure for people to conform to one standard gender or the other. In various times and places there have also been racially segregated restrooms, with even less tolerance for nonconformity.

Nowadays there are various documents on which one is asked to mark boxes that correspond to various classification schemes, including especially gender and race. Sometimes the marks in the boxes are just used to gather statistical data. Other times the marks have consequences specific to the individual, e.g. what kind of job they may be able to get, etc.

Why do we ask people to indicate their own gender and racial identity? The whole history of gender and racial bias is filled with such brutal injustice, and that bias is based on discrimination, i.e. on one person classifying another person, especially a more powerful person classifying a less powerful person. If are working to eliminate that unjust bias, it would seem effective to stamp it out wherever possible. So we can let each person indicate their own identity, rather than imposing it.

I am quite unambiguously a white male, so perhaps I can be a good example to use in exploring what it might mean for me to say, "I am a white male."

When I say that I am a white male, do I intend to subscribe to some racial classification system that divides people into white and non-white, and a gender classification system that divides people into male and non-male? I hereby declare that I do not subscribe to any such systems. I think the whole system of racial classification is one of the stupidest and most pernicious heaps of pseudo-science of our modern age. Gender seems not to be such utter pseudo-science, but I know very well that the closer a person looks into reality, the more complex things get. And anyway biology is just one layer of the puzzle.

When I say that I am a white male, mostly what I am saying is that, in the shared tribal classification system that is most common in the society in which I live, most folks encountering me will quickly and easily sort me into the "white, male" pigeon hole.

Sometimes people get caught up in puzzling about, "Who am I really, essentially, under my skin?" Furthermore, a person might try to answer this question in terms of gender and racial labels. One way to go about this might be: given my deep essential qualities, what social identity would give me the best opportunity to express those qualities? With this approach, the question isn't whether deep down inside am I black or am I white? But perhaps because deep down inside I feel very devoted to the Buddha Dharma, maybe I would have been more able to express that devotion had I been born Asian. That is still a very different thing than saying that deep down inside I am Asian.

But what is the point of classifying oneself in terms of gender and race on e.g. a job application? Is this meant to be a question of my deep inner essence? I rather doubt it. A lot of it has to do with measuring how well an employer is doing at overcoming the gender and racial biases that have plagued our recent past. Probably most applicants know very well how others tend to see them and don't have a problem marking the right box. But that easy answer hides so much that deserves to be examined.

For example, our racial and gender roles have a history, a personal, family, and social history. To understand how a person came to be where they are, it is useful to understand the road they walked to get there. Each person's social context has many facets. A person may well be classified one way in one context, and a different way in some other context. To some extent a person can control, by choice of hairstyle or clothing or language training or cosmetic surgery, how others classify them. To what extent is how others classify a person a matter of that person's choice?

I don't really expect to make any actual dent in these tough social problems. My hope is that maybe I can help connect the rich resources of the living Buddhist traditions to the difficult problems of our time.

Thursday, June 11, 2015

The Superpower Trap

At the Dharma Teacher Gathering last week, one day was devoted to "Responding to the World's Needs". A major focus of the presentations was climate change - certainly a crucial issue of our time. At a lunch discussion on our final day we were talking about other needs of the world that deserve our response, and the gun culture of the USA was brought up. I connected this to the role of our military in the world. Upon further reflection, it seems that climate change and military power are deeply intertwined.

At the most basic level, military operations directly consume vast quantities of fossil fuels and other resources. The use of powerful bombs, incendiaries, defoliants, etc. inflict substantial damage to the ecological network along with vast human suffering. The work to reconstruct cities and villages then consumes further resources.

Apart from these direct costs, military power enforces a system of global production and trade driven by remote concentrated centers of power rather than sensitivity to local needs and costs. Regimes are propped up that serve the needs of these remote powers, at great costs to the land and people of the region.

In addition to this, a system of global consumerism is cultivated in order to promote industrial productivity and technological progress, which are the cornerstones of modern military power. The culture of guns and violence seems to work to maintain a population ready to go to war.

Such self-reinforcing destructive patterns do not require any evil genius or conspiracy behind them. It's just the nature of things, like the way thunderstorms arise spontaneously. Understanding these patterns, though, may well lead us to find ways to disentangle ourselves from them!

Saturday, June 6, 2015

Gathering Thoughts

This past week I attended a Dharma Teacher Gathering at the Omega Institute in Rhinebeck. That's close enough to home that I could ride my bike to get there and back, which was delightful! I think the last time I was at Omega was in 1990. The place hasn't changed so much over those years... the food is still great!

The gathering included around 240 teachers. It was really an amazing group of people! During the various sessions there were many opportunities for small group conversations and explorations, and of course many more during breaks and meals. I had only met previously a few of the attendees, so the week was just packed with discovery! Most folks were from the USA but also quite a few from Canada and Europe. I think most people came from big cities. The largest contingents seemed to be from the Triratna and Insight Meditation organizations. There were also many teachers from various Zen lineages. Hard to be sure but I think the number of teachers from Tibetan traditions was probably around twenty. But one interesting facet of the group was the way folks participated in multiple traditions. For example, a Zen teacher from Toledo, Ohio told me how he was also teaching Lam Rim, having studied with Gelek Rinpoche. Or a teacher from a Japanese temple in California was also working with Chetsang Rinpoche from the Drikung Kagyu tradition.

With such a short meeting bringing together so many teachers from so many traditions and also covering such a wide range of issues, we could never explore very deeply. But perhaps the point of this kind of meeting is just to start conversations. Certainly doors were opened on important topics!

Our first day was on "Growing as Teachers". I think of myself primarily as someone who practices the Buddha Dharma, or at least I try to keep my practice as a top priority. The teaching I do is a part of my practice, in part a way to practice generosity, but even more a kind of mirror in which to discover my limits and inspire my further efforts to let go of my own rigidity, delusion, etc. So my inclination was to interpret the topic of the day more as "Growing as a Practitioner". Either way, a challenge with such a topic is to establish some kind of reference framework in which growth can be measured or evaluated. The challenge of setting up such a framework came up, too, in several meal-time conversations.

Over the years, I have talked with folks interested in a scientific approach to Buddhism. Can't we measure the processes of the mind and use those measurements to refine our methods of practice to make them more effective, to become better able to liberate ourselves and all beings? How can that not be a worthwhile project and even an urgent project?

But maybe the project is not as straightforward as we'd like it to be. Frameworks of reference have their use, but every such framework casts shadows even as it illuminates. This is the nature of relative or conventional reality. This nature is, indeed, the ultimate reality, the realization of which liberates us. The project of measuring our progress toward liberation is entangled with deep paradox. And of course Buddhist literature is filled with expressions and exploration of that paradox. Frameworks are constructed and deconstructed with amazing alacrity.

Our modern age is characterized by large scale bureaucratic institutions. Probably religious institutions have the longest track record for such bureaucracies. How can all the rules and procedures serves to enhance the effectiveness of the institution, instead of serving to rigidify and corrupt? What resources does Buddhism have to help tackle this problem generally as well as for the institutions that embody the Buddhist tradition itself?

Our second day was was focused on the issue of diversity. This issue was framed primarily in terms of the polarity between white and, uh, PoC, People of Color. (This whole business of ethnic, national, racial, etc. identity - and labels! - it really is problematic. No doubt there is value in identity at a relative level. But all the politics! Violent battles over labels! Wow!) In one presentation one question was resolved, something that has puzzled me for years. Why are white people called "Caucasian"? What is the link between white people and the Caucasian region, between the Black and Caspian seas? White people seem to come from Northern Europe, which is not so close to the Caucasus.

Apparently, back in the eighteenth Century when the first anthropological theories about race were being formulated, a very large old skull was unearthed in the Caucasus. Such a large skull must have come from a superior human. Since white people are superior, that skull must have been from a white person, and so white people must have come from the Caucasian region. Whether or not the white-Caucasian link really started with this bit of history, without a doubt commonly held ideas very often start from such odd accidents and then somehow snowball and stick.

The strange paradox here is that the polarity between white and PoC is really a product of white supremacy thinking. It is certainly a polarity that needs to be confronted. We have to take our ideas seriously in order to examine them thoroughly so we can see their limits or their utter delusiveness. But in Buddhist institutions, the connections between race and power are particularly diverse. The notion of race and the white-PoC polarity, these are products of European and Euro-American thinking. Buddhism developed quite independently of any of that. Of course, most every society has some way of dividing up people into groups that tend to track along family lines, and power tracks within group boundaries. These boundaries get scrambled across history: Buddhism can provide many examples of this kind of scrambling, as well as method for understanding the scrambling.

Certainly in the USA today, the white-PoC polarity still has great weight. Addressing the suffering that creates is both a challenge and an opportunity for Buddhism here today. I do wonder if stepping back and seeing the broader picture might not be useful in meeting that challenge. Then again, my typical pattern is stepping back and avoiding intimate engagement, so perhaps I am just avoiding a real confrontation with my own white privilege!

Our third day was devoted to "Responding to the World's Needs". There was some discussion about the spread of Mindfulness cultivation beyond Buddhism, but at least for me the topic of high impact was climate change. We heard some very frightening figures on carbon dioxide and methane emissions. On the other hand, we were encouraged to be confident that a solution could be found if the appropriate will could be summoned to the task.

I had volunteered to lead a breakout discussion on how Buddhism might address this challenge. Putting together an outline for the discussion did give me a good opportunity to think through many aspects of the topic beforehand. I was hoping to hear and learn from other participants, but there were so many other fascinating breakout sessions... oh, well!

I do think, though, that Buddhism has a tremendous amount to offer here, a middle way between the extremes of a solution and an apocalypse. Just as reflection on the inevitability of death can serve to inspire a deep sense of responsibility, contemplating the profound disruptions the world will undergo as the encounters with resource limits accelerate can help us see how our actions now are of crucial import for future generations.

With so much left to explore, I hope such gatherings of teachers can continue to dig deeper and keep our various institutions vital, to benefit both their own memberships and all sentient beings!

Saturday, April 25, 2015

Technology and Distraction

His Holiness Karmapa taught recently in Kingston, NY. He answered a few questions at the end of the afternoon. One question dealt with the relationship between science and meditation:
Q. Can neuroscience open a new door for meditation?

A. The benefit of neuroscience for meditators, by which I mean not only Buddhists but everyone interested in meditation, is that neuroscience can actually map and reveal, visually, changes in the brain caused by meditation, which naturally increases our confidence in the practice of meditation. When we meditate, we don’t directly see evidence of a result, which used to not be a problem, but now in the 21st Century we’re all in such a hurry and so lacking time that we have neither the patience nor the time that Jetsun Milarepa did. So it’s easy for us to become discouraged or disheartened by a lack of evidence of improvement. Because neuroscience can literally show the results of meditation practice, it increases one’s confidence. Nevertheless we are just beginning to study this. Neuroscientists are really just beginning the active experimental study of meditators. As the technology develops further and is constantly updated, evidence of the results of meditation, more specific results and so forth, will no doubt increase.

However there is one problem, which is that generally where there are great meditators, there is no technology, and where there is technology, there are no great meditators. In the past, for example in Tibet, there were lots of great meditators because there was no technology so therefore there were no distractions. There was nothing to do other than meditate, so they meditated very well. On the other hand, now, when we have all of this technology that would enable neuroscience to examine great meditators, we’re all too distracted and entertained by the technology to be great meditators.