Saturday, March 5, 2016

Electronic Music Equipment Gear Review


This year I have picked up lots of different gear for making electronic music.  Far more than is required to make interesting sounds, but maybe enough for an interesting comparative review.

My output so far is on Soundcloud, as erollins with the frog.

This write-up is from the context of "what is the minimum needed to get started?"  And that, in turn, depends on how you want to make the music.  Just on the computer?  Just with external instruments fed to the computer as a recording device?  Or some mixture?  Also, live performance? Or pure studio composition?  And even in the studio, "live" recording versus note-at-a-time entry?

All the above options start with DAW, Digital Audio Workstation, software.  This software both drives and records external hardware and internal software (VST plugins) instruments.  It provides a MIDI piano-roll interface for composition, and often comes with its own libraries of recorded sounds and MIDI software instruments.  There are two basic styles of DAWs, Ableton-style versus the rest.  DAWs were originally created for studio recording and composition, but Ableton Live pioneered a DAW design that could be used in live performance.  Rather than just pressing PLAY on a single track (instrument) or all the tracks in the "Arrangement View", Ableton Live allows the creation of short "Clips" that can be independently triggered (on the correct downbeat!) within the "Session View".  This way a live musician using the DAW for accompaniment can choose when to move to different sections of a song (chorus vs verse, etc.) rather than being locked to a prerecorded linear sequence.  Numerous hardware devices have been created to control this triggering (such as the upper buttons on the AKAI APC Key 25) to avoid the use of the computer mouse during performance.  The downside of having two different modes and interfaces (Session versus Arrangement view) is the additional complexity of the interface when only doing studio work.  OTOH even in the studio live clip launch sequences can be recorded -- this is how I created "Polyplexed" in Bitwig Studio.


Bitwig Studio is a much more recent DAW, created by ex-Ableton employees, that also follow's Ableton's clip launching design.  It has some support for third-party clip launching hardware (AKAI APC Key 25), and also supports using the Microsoft Surface Book touchscreen as a launcher.   Bitwig also does the best job of sandboxing VSTs -- the Twist synthesizer insists on shrinking its display because it doesn't understand high-(retina/4K)-resolution, and only Bitwig prevents it from messing up the entire DAW.  It may also provide better CPU isolation between VSTs, though it may itself be more of a CPU hog.

PreSonus Studio One is a more traditional DAW which does not do clip launching. It provides more facilities useful for recording and mastering rock-band music.

All 3 DAWs come in intro/demo versus full versions.  The intro "Ableton Live Lite" is free with many hardware devices such as the AKAI APC Key 25.  The full versions of all three come with reasonable integrated MIDI software synthesizers and sampled sound sets (drums, pianos, etc).  The full Ableton Live Suite comes with the most sounds and instruments (though some are legacy redundant) and is the most expensive ($749 full, $649 with upgrade from Lite).  The other two full version DAWs are about half as expensive.

When making electronic music everything besides the DAW is optional.  Some artists such as deadmau5 appear to compose whole songs purely using the computer keyboard or mouse for note-by-note entry into the piano roll and plunking the on-screen virtual piano keys. Alternately any MIDI keyboard (today MIDI over USB) can be attached to the computer for note entry.

A real analog synthesizer such as the Moog Sub 37 will only have analog outputs.  Recording this output on a computer will require analog-to-digital conversion using an audio interface.  I chose the Native Instruments Komplete Audio 6 because besides analog inputs and outputs it provides digital output, and my audio amplifier only accepts digital inputs.   The Roland System-1m is a digital emulation of an analog synthesizer, and provides USB digital audio output.  Ableton could handle USB digital audio input, but Bitwig studio requires all external inputs pass through an audio interface so I had to use the analog output of the Roland.  Also once an audio interface is being used for audio input, it must also be used for audio output.

Originally analog hardware synthesizers were "modular":  each function (oscillator, filter, etc.) was a separate physical module, and these were externally wired together using physical patch cords.  Any keyboard was also a separate add-on, and pre-MIDI used CV (Control Voltage) plus Gate for control signals.  Later analog synthesizers integrated all the modules plus the keyboard into a single physical unit, with most of the connections internal and hard-wired but with a digital subsystem that supported saving configuration information.  These saved configurations were called "patches", and included both factory settings and user saved settings.  Many songs are created simply using factory patch (preset) sounds, while others involve creating entirely new sounds or varying existing sounds by twisting the knobs while playing. This live knob twisting is how I created "All The Knobs" on the Moog Sub 37.

Analog modular synthesizers are making a comeback in a new smaller rack format -- the Eurorack standard.  The Roland System-1m, while an all-digital unit that supports patches and downloaded emulation of classic Roland analog synths such as the SH-2, does provide analog input and output of various patch points so it could be integrated into a Eurorack system.

Native Instruments Reaktor is a software synthesizer construction kit that runs as a VST plugin inside a DAW.  It has been used to create many different interesting (sold separately) synthesizers, such as the Polyplex drum sampler I used in "Polyplexed".  Originally creating your own synthesizer using Reaktor was quite complex, involving a visual programming environment plus scripting language much like National Instruments LabView for scientists and EEs.  Recently the new Blocks layer was added, resembling a set of Eurorack modules.  This makes creating new synthesizers much simpler, and looks like a fun way to both learn visual programming and create music.  The examples are also playable out of the box, and the online user community is creating more Blocks.  Reaktor instruments (such as Polyplex) can consume a ridiculous amount of CPU, even shutting themselves down when run on the Surface Book laptop instead of a high-end desktop, but this can be improved by reducing the sample rate.  One other caveat -- I wouldn't try to figure out "what is a synthesizer" starting with Reaktor or most Reaktor-based synths.

The Moog Sub 37 does traditional analog "subtractive" synthesis, and the Roland System-1m emulates the same. Other types of synthesis include additive, FM, and wavetable.  I have been trying other interesting software synthesizers with these techniques, including Native Instruments (Reaktor) Rounds, Future Audio Workshop Circle2, Xfer Records Serum, and Ableton Live Studio's Operator.  Also Sonic Charge Microtonic for drums. 

My first purchase was the Roland System-1m, and I learned some by twisting its knobs, but I learned a lot more from the Moog Sub 37 because it comes with a real manual.  Both have a traditional left-to-right subtractive synthesis architecture with 1 or 2 LFOs, 2 oscillators, mixer, filter, amplifier and filter ADSR envelopes, and amplifier.  In a software synthesizer it is probably easiest to learn one that mimics this architecture.  Ableton Live's Operator has a different layout and is FM, but Ableton has the best tutorial of the three DAWs including an Operator tutorial (Operator comes as part of $749 Live Studio, or is available as a $99 add-on to Live Lite).  The Mai Tai synth in Studio One looks the most conventional (i.e. resembling the knobs and layout of a hardware synth), while Polysynth and FM-4 in Bitwig are closer to Operator in appearance (and  probably too basic). Another conventional-appearing synth is AIR Hybrid 3 (came free with AKAI APC Key 25).  Others "close enough" may be Circle2 and Serum.  Lots of other companies sell conventional-appearing software subtractive synthesis VSTs, but I haven't tried them since I already have the hardware.  I was actually more interested in "unconventional" software UI presentations such as Circle2 and Rounds, which aren't bound to emulate a physical faceplate.

All the DAWs provide digital audio effects such as compressors, delay, and reverb that can be added to each track.  This is great for recording, but in live performance requires feeding the audio into a computer with the DAW.  For a pure-analog performance (fed directly to a powered speaker like a QSC K-10) analog guitar effects pedals can actually be used.  I used a Moog MF Delay pedal on "All The Knobs".  With an attached expression pedal the last note can be "trapped" to resonate indefinitely inside the MF Delay.

USB MIDI input devices include keyboards and drum pads.  Keyboards with traditional MIDI outputs can also be attached to keyboardless synthesizers like the Roland System-1m, and keyboards with CV/Gate outputs can be attached to old-school Eurorack modules.  The AKAI APC Key 25 provides 2 shiftable octaves of keyboard (too small for live performance, but fine for composing) plus 8 tracks * 5 scenes of Ableton clip launching, plus 8 mappable knobs (I used a mapped knob to vary the BPM in "Polyplexed").  The  AKAI MPD 226 provides a 4x4 drum pad grid plus mappable knobs.  It has pre-programmed and user-programmable mappings of the pads to entries in the different DAW drum racks, which is very useful because every DAW maps the drums to different MIDI notes (sometimes even differing between drum kits in the same DAW).

In summary:

1) Decide on live performance versus studio-only.
2) Choose input device (hardware synth keyboard, USB MIDI keyboard, or only computer keyboard plus mouse).
3) Pick a DAW.
4) Did (2) or (3) come with a simple synth?  If not, pick a VST synth.
5) Make some music.

Sunday, July 29, 2012

Bumpass Hell

(Sulphur Works)

Bumpass Hell is a part of Lassen Volcanic National Park in northern California. It is named for the unfortunate guide Mr. Bumpass, who lost his leg after he broke through the crust on a boiling mud pot. Today this area is being used as a natural laboratory to investigate conditions for the original origin of life on Earth. David Deamer, author of First Life: Discovering the Connections between Stars, Cells, and How Life Began is one such researcher.

Friday, July 6, 2012

Backpacking Gear Test 2012


Earlier this year I purchased a day pack and lightweight hiking boots for a trip to Europe, so for this year's gear test I decided to see if they would be suitable for an overnight backpack. For last year's Backpacking Gear Test I had a base weight (without fuel, water, fuel) of 14 lbs and a total pack weight of 19 lbs. This year I had a base weight of 12 lbs and a total pack weight of 17 lbs: a reduction of 9%.
Gear Weights
I took the 2012 gear on an overnight hike from Bottchers Gap to Jackson Camp in the Ventana Wilderness, 5 miles each way.
Mountain Hardware Hueco 34

The Hueco is a climbing pack. At 34 liters is is much smaller than my previous packs, and because of this it is almost a pound lighter than my previous lightest pack even though it is not an "ultralight" pack. With a new down sleeping bag (below) I was just barely able to squeeze in all my overnight gear. While the pack is hydration reservoir compatible it would not fit with my other stuff, so I am back to carrying two cycling water bottles externally. Unlike the Granite Gear Escape the external bottle pockets are not reachable while the pack is worn.
The Hueco does not have a proper hip belt; instead it simply has a 1.5 inch web belt (probably to keep the pack in place while climbing). I was curious to try a pack without a hip belt, as I have found that with each lighter pack in my progression I have gotten less "lift" from the hip belt, and have noticed that many leading-edge ultralight pack vendors (such as Gossamer Gear) also often omit hip belts. A hip belt would not work with a pack as short as the Hueco, and I found that with a load of 17 lbs I was ok without one. Of course on a longer or multi-day hike I might feel differently.
REI Igneo Sleeping Bag
This is an 800-fill down bag, rated to 19 degrees, long length. It has a waterproof+ breathable coating on the shell, which got me past my previous concerns about a wet down bag. Note the seams are not taped, so a waterproof bivy is still required. And they recommend stuffing the bag inside out (probably to avoid damaging the waterproof coating while stuffing), so a hydration reservoir leak in the pack could still be a serious problem. At 2.2 lbs it is only 9% lighter than my synthetic North Face Orion (20 degrees, regular length) bag, but as a down bag it compresses much smaller.
With one night's use in a bivy I found the Igneo much more comfortable than the Orion. The long length was more amiable to side sleeping, and the down felt more "fluffy" than the Orion which always seemed sparse. I felt warm all night, though it may not have been as cold as my previous trips. In the morning the only water I found in the bivy was underneath the sleeping pad, and the bag was dry, so I guess the waterproof+breathable coating worked.
Durham Cloud Hiking Boot
Durham is also made by New Balance, and comes in narrow widths. They have apparently stopped making my previous Rainier Hiking Boots; if so I should have stocked up. The Cloud is comfortable, and a pair is almost a pound lighter than the Rainier. They worked fine for carrying my light 17 lb load, but I would want my Rainiers for carrying 40+ lbs for a week in the Sierras.

Thursday, June 7, 2012

Authority and Politics

“Politics makes strange bedfellows” is the non-explanation for peculiar alliances often found in politics. A current example worth considering is between business elites and creationists. At first glance this doesn’t make much sense. Wouldn’t business leaders want a scientifically literate workforce for competitive reasons? A standard explanation is a short-sighted pandering for votes. But why this particular combination? A different understanding can be reached via a longer historical view. Historically the same combinations appear over and over, in diverse places such as the factions in the Spanish Civil War, back to the origins of what we today call “conservatism” and “liberalism”.

The common attractor combining many otherwise disparate interests is the argument from authority plus essentialism. As discussed earlier essentialist arguments about “noble blood” were originally used to defend the authority and property of kings and aristocrats. The church, which supported the “divine right of kings”, justified both its power and theology through argument from authority and an essentialist worldview. American conservatism, while of course not supporting monarchy, has often served to defend the privilege of old and new aristocracy. This then is the commonality between aristocratic business elite and creationists: both see their interests advanced by the more general acceptance of essentialism and argument from authority. In general the “conservative” wing of politics will accumulate all those groups dependent on essentialism and argument from authority. Also note a "strict father" often argues from authority, matching Lakoff's metaphorical model of the family in politics and religion.

The historical tie between conservatism and argument from authority is natural. In the past almost all argument was done via appeal to authority, so an ideology that is trying to preserve systems from the past will naturally be more bound to use this type of argument. In practice this often becomes circular: old authorities are cited to “prove” that old sources and methods are best or authoritative. This type of argument only began to be discarded during the enlightenment, and amusingly some of their progress came from ignoring sources in the recent past and instead going back to older Greek sources. One can also imagine a dark post-apocalyptic future where the scientific method [or constitutional representative democracy?] is nearly forgotten, and the golden past that is surreptitiously cited and preserved is our scientific present. In that scenario I would call myself a “conservative”. For now we use the expression “reality has a liberal bias”, because science has shown that essentialism has no scientific basis and appeal to authority does not prove anything.

David Brin often discusses this in terms of time orientation. Conservatives seek absolute truths in the past, in old books and cultural norms. Liberals seek provisional truths in the future, in new scientific experiments yet to be performed. Evolution as scientific method is a mixture of old and new, preserving what works while trying new experiments.

Appeal to authority is of course not limited to the conservative side. Marxism, while starting from flawed economic/scientific premises, quickly solidified into doctrinaire arguments from authority of a few documents and leaders. On the libertarian side, Ayn Rand’s objectivism also started from flawed essentialist assumptions, and quickly became driven by argument from authority.

Breaking out from the control of the argument from authority is difficult. As discussed, many institutions depend on it, and others question whether most people are capable of functioning civilly without it. And almost by definition this cannot be taught. Every individual must figure it out for themselves. Like the immortal dialog from Monty Python’s “Life of Brian”:
Brian: Look, you've got it all wrong! You don't need to follow me. You don't need to follow anybody! You've got to think for yourselves! You're all individuals! 
Crowd: [in unison] Yes! We're all individuals! 
Brian: You're all different! 
Crowd: [in unison] Yes, we are all different! 
Man in crowd: I'm not... 
Crowd: Shhh!

Sunday, October 2, 2011

Evolution as Scientific Method, and Vice Versa

Evolution can be viewed as an implementation of the scientific method by nature. In each generation mutation and genetic recombination produce varied hypothesis (individuals), and these hypothesis are tested in the environment [sample hypothesis: a small-beaked Darwin's Finch is better suited to the food available on this island]. Those hypothesis which best survive this natural selection will produce new generations of hypothesis to be tested (differential reproduction). Hypothesis which are unsuccessful in the natural environment will die out.

Alternately the scientific method can be viewed as an implementation of evolution by man. Scientists generate variations of existing hypothesis, and subject these individual hypothesis to testing in the laboratory environment. The hypothesis which survive this testing will be used to generate new hypothesis. Hypothesis which are unsuccessful in the laboratory environment will die out.

This duality is most clearly seen in the use of techniques such as genetic algorithms in computer programming. Here analogues to mutation and genetic recombination are used to automatically generate new hypothesis from previous generations, and the "environment" consists of a fitness function that represents whatever problem is being optimized.

Tuesday, August 30, 2011

Ayn Rand, Authoritarian

"If the Rand line was totalitarian, encompassing all of one’s life, then, even when all the general premises were agreed upon and Randians checked with headquarters to see who was In or Out, there was still need to have some "judicial" mechanism to resolve concrete issues and to make sure that every member toed the line on that question. No one was ever allowed to be neutral on any issue. The judicial mechanism to resolve such concrete disputes was, as usual in cults, the rank one enjoyed in the Randian hierarchy. By definition, so to speak, the higher-ranking Randian was right, the lower one wrong, and everyone accepted this Argument from Authority that might have seemed not exactly consonant with the explicit Randian devotion to Reason."

Murray N. Rothbard, The Sociology of the Ayn Rand Cult

Saturday, July 30, 2011

Dueling Metaphors

As discussed earlier, much of our advanced, abstract thinking is grounded in the use of metaphors from basic physical experience. George Lakoff has presented two basic alternative moral frameworks, both drawn from the family: the strict father model, and the nurturant parent model. He sees conservative politics and religion as based on the strict father metaphor, and liberal politics and religion as based on the nurturant parent metaphor. Currently another family metaphor is in the news: the family budget. Must a nation, like a family, balance its budget? This dispute is fascinating in the ways it both matches and reverses the Lakoffian metaphorical expectations.

As expected, the "strict father" conservatives insist the nation, like a family, must balance its budget. The liberals are viewed as overly indulgent parents who allow their children to overspend. The interesting part is the second metaphor in the conflict: money. In a world of fiat currency, what is money? Is it a placeholder for a finite, non-renewable resource? Is it a nebulous, re-evaluable abstraction? Liberals insist the current U.S. debt situation is not a cause for concern. Unlike Greece, the U.S. has its own currency. Unlike other wrecked nations from the past, the U.S. debt is in its own currency, which is also the world reserve currency. Liberals insist the conservatives are being thick, not understanding the new economics of the unique U.S. situation.

Now this makes for an interesting reversal. Conservatives, who normally insist on American exceptionalism, say in this case the U.S. is not exceptional. More basically, the members of the conservative "faith based community" don't have faith in a deficit-spending fiat currency, while members of the liberal "reality based community" want everyone to have faith in the long-term stability of a fiat currency of a big deficit spender. The conservative metaphor, of the family with a balanced budget, is easy for everyone to understand. While the liberal idea of continuous deficit spending seems more like magical thinking.

Of course there are many other complexities and Machiavellian motivations behind the current impasse. And it will unfortunately probably be a fair while before the world revisits a core mistake that led to the current economic situation: the idea that bondholders can't be allowed to take a loss.

Thursday, June 30, 2011

Progress in Programming Languages

Many people recognize one form of progress in programming language design: the addition of new features, usually forming higher levels of abstraction. Less recognized is the dual of this form of progress: the removal of older, usually lower level, features and freedoms. Paradoxically the removal of language freedoms frees the mind to concentrate on more important parts of the problem at hand.

The earliest programming languages, assembly languages, provided unlimited freedom at a micro level. As an example, each developer was able (actually required) to invent their own conventions for calling subroutines. They could pass parameters in (their own choice of) processor registers, or on a stack (ascending or descending), or in memory structures on a heap. Each of these techniques had benefits and drawbacks, but in the end it was more important to standardize so that developers could share libraries of common modules and free up cognitive space for other issues.

At a higher level, the C programming language (plus the operating system binary formats) standardized routine calling conventions, but left freedoms as to where variables are located and how they are passed. C provides primitive types and records, locates them on the stack or heap, and supports direct memory pointers and pointer manipulation. C++ adds slightly safer references, while retaining pointers. Java, safer and at a higher level, takes away pointers and leaves only references. Much of the safety becomes possible (and necessary) once memory garbage collection is added and low-level memory control is taken away.

Other higher-level languages continue this pattern of addition and subtraction. Python and Ruby add lists and dictionaries as built-in types, and take away direct use of native hardware types.

Perl (yes, the topic of this post) is the oddball. It added many beneficial higher-level features later found in Python and Ruby, but did not remove the low-level freedoms of C++ or even assembly. Like assembly, Perl does not have a single built-in way to pass arguments to functions; instead "there's more than one way to do it" (the Perl motto) so users of CPAN libraries need to pay attention to the calling conventions for each library [and the common ways to do it, @_ and shift, are ridiculous]. Like C++, Perl has references. It needs these because it allows objects to reside on either the stack or heap. But there is no good reason for this distinction in a high-level garbage collected language, and it forces the programmer to explicitly reference (take address-of) and dereference using \, $, etc. (like & and * for C pointers!). Even Java references don't require explicit dereferencing and disallow address-of.

Perl has these issues partly because it was an early introducer of new higher-level features, and didn't want to break compatibility with older Perl programs by removing lower-level functionality and freedoms. But this means the language requires much more cognitive space to understand than newer languages like Python and Ruby, and leaves less cognitive space available for solving the problem at hand.

Wednesday, June 29, 2011

Backpacking Gear Test 2011



For last year's Backpacking Gear Test I had a base weight (without fuel, water, fuel) of 16 lbs and a total pack weight of 22 lbs. This year I experimented with some different equipment for a base weight of 14 lbs and a total pack weight of 19 lbs: a reduction of 11%.

Gear Weights

I took the 2011 gear on an overnight hike from Old Coast Road to Pico Blanco Camp in the Ventana Wilderness, 6 miles each way. This trail is NOT recommended, as it is very rough and difficult to follow.

Osprey Variant 52 Pack



This pack is slightly heavier than last year's Granite Gear pack, and should be more durable. With metal framing instead of just plastic, it better supports loads. It is actually intended for ski mountaineering/rock climbing, and was quite maneuverable when crawling over and under logs. The external gear attachment points were useful for boots for wading water crossings. The external pockets are too small for water bottles, so I carried all water and everything else inside the pack. This was important when crashing through tall brush. At 52 L the capacity is smaller than my other packs, but I was only carrying a bivy instead of a tent. With the expansion collar extended it has plenty of capacity for Jeep trips, though it isn't well balanced when packed that tall.

Marmot Alpinist Bivy



Sleeping under the stars was enjoyable in the bivy, though I might have a different opinion if it had rained. In the morning there was a small amount of condensation on the outside of the sleeping bag and inside of the bivy, and this condensation may have contributed to an early morning chill greater than the temperature warranted. Both did dry quickly once the sun rose.

As seen on the spreadsheet the other big weight savings was from omitting all the cooking gear and dehydrated food, and only bringing Powerbars. This is tolerable for an overnight, but would not be for longer. I may experiment next with other varieties of uncooked food for short trips. Hiking with the low weight was enjoyable, and this trail would have been even more difficult with my usual heavier load.

Saturday, June 18, 2011

Trust

What do pensions and nuclear power have in common? Both require managers empowered to make prudent, long-term safety decisions. In the case of pensions the basic principles are well-known; this isn't "nuclear science". But in both cases public pressure for short-term pain aversion make safe operation impossible, independent of the selflessness of management. And incompetent, corrupt, or untrustworthy management makes it much worse.

The list of other systems and institutions incompatible with the current environment is probably quite long...

Thursday, May 19, 2011

Geometry and Experience

"As far as the laws of mathematics refer to reality, they are not certain; and as far as they are certain, they do not refer to reality."

Albert Einstein, Geometry and Experience, 1921

Thursday, May 12, 2011

The conflict between science and religion

The unrecognized heart of the conflict between science and religion is the appeal to authority.  Science does not recognize an appeal to authority as a valid argument, while most religious argument is ultimately based on appeal to religious authority.  This has left people divided into three basic camps:

1)  Those who believe appeal to religious authority can provide true answers in all areas, not just religion.

2)  Those who believe appeal to authority is never a valid argument, in religion or any other area.

3)  Those who believe appeal to authority is a valid argument in areas traditionally or currently demarcated as "religion", but not a valid argument in areas demarcated as "science".  This demarcation would match Stephen Jay Gould's "Non-overlapping Magisteria", although (at least in his short article) he doesn't rationalize it in terms of validity of argument from authority.  I think camp (1) is actually in a stronger position, in asking why if argument from religious authority is considered valid in the "magisteria" of religion why it is not valid everywhere.  After all, the religious works they are referencing do not contain disclaimers to this effect.

Essentialism and Authority

When disputing game rules, or rules in general, one often hears the phrase "according to Hoyle".  This is an appeal to authority, to a book of game rules first compiled by Edmund Hoyle.  These games, such as chess, existed in earlier forms long before he compiled the rules.   One might argue that there is an "essence" of chess, and a platonic form or ideal of chess, which pre-existed its discovery by humans.   If this were true, how close are we to the ideal?  Does it include a modern powerful queen? Castling?  Of course, this kind of essentialism sounds silly.  We understand the rules of chess were made up by humans, and that appeals to the authority of Hoyle are a matter of convention.  There is no possibility of a science of empirical "discovery" of the rules of chess.  Note observation of games also would not arrive at the rules, since for instance castling may never occur in the set of observed games.  So statements about chess are not provisionally true, pending additional observations.

Geometry can also be viewed as a game played with specified rules.  An initial set of postulates is chosen, and from them new theorems are derived.  Euclid codified the first set of postulates, and for centuries Euclid was cited as the authority.  Geometric figures became key examples in essentialism.  Much later, with the invention of non-Euclidean geometry, it was discovered other starting postulates were possible.

The rules of mathematics are much more closely tied to science than the rules of chess, and seem much less arbitrary.  Mathematical theorems are not provisionally true in the sense that new experimental data could overturn them.  But they are provisionally true in the sense that errors could always be found in the proofs.  And a connection between any particular mathematical system and the physical world is always provisional, pending new observations.  The most prominent dispute, from the theory of general relativity, is whether the large scale geometry of spacetime is flat (Euclidean geometry) or curved (non-Euclidean).   And this contradicts Kant's primary example of synthetic apriori knowledge -- things we know to be true independent of any observation of the world.

Sunday, March 27, 2011

Where's Eric?

I recently investigated CB radios for use on an upcoming Jeep Jamboree. On the forums I saw some folks also using ham radios. This looked interesting, so I studied for and obtained an amateur radio license, and got a Yaesu VX-8GR 144/430 MHz handheld. This handheld also has a GPS, and supports APRS (Automatic Packet Reporting System). With APRS enabled the radio will regularly broadcast its current position and status to nearby APRS enabled receivers.

My last reported position and status is available mapped at http://aprs.fi/?call=kj6njo-7

While the web display is similar to position displays enabled via smart phones, it differs in fundamental ways. APRS is peer-to-peer over radio, so each station is communicating directly with other nearby stations. Each handheld is able to directly generate and display the list of nearby stations, without using internet connectivity. This means a group of APRS users outside cell range can operate independently.



Sunday, December 26, 2010

Precognition and 5%

Many areas of scientific research such as psychology, medicine, and economics make heavy use of tests of statistical significance. A popular significance level is 5%; this means that the experiment results are less than 5% likely to have occurred by random chance. While these tests are arguably valid and useful, with the wide availability of automated experimentation and computerized data mining they become ever easier to unintentionally and intentionally game.

One well-known mistake is to omit necessary corrections when using the same data set to test multiple hypothesis. If a single hypothesis is 5% likely to be true by random chance, then by testing 14 hypothesis against the same data set it is over 50% likely [1 - (1 - .05)^14 = 0.51] to find at least one false positive result. Besides correction factors, a common solution is to have two separate data sets, where one set is used for data mining for possible hypothesis, and a second set is used to verify the result. On a large scale, however, poor hypothesis can still pass this second filter. This is especially true when the hypothesis themselves are being automatically generated and not based on any previously known plausible physical mechanisms.

A related problem is known as the "file drawer effect": positive results are published, while negative results remain in the "file drawer". This creates a serial version of the problem above, where if the same hypothesis is tested 14 times then by random chance it is over 50% likely to be confirmed at least once. The negative results are never published. There is a movement to publish negative results, but this is also problematic because the negative results may be due to recognized poor experimental procedure. These problems reduce the usefulness of meta-studies, since they are summarizing and aggregating the results of positive studies without having accurate information about how many other negative studies were never published.

These issues are becoming more well known, as problematic results in areas such as clinical drug trials are found. A useful "canary in the coal mine" for statistical techniques is parapsychology. While confirmation of abilities such as precognition (seeing the future) is possible, it is much more likely to indicate that statistical standards for research and publication in a field (in this case psychology) have fallen too low. Recently the paper "Feeling the Future: Experimental Evidence for Anomalous Retroactive Influences on Cognition and Affect" by Daryl J. Bem was accepted for publication in a prominent psychology journal. Critics claim the author has made numerous mistakes, including those discussed above. Bem found subjects could predict a future result correctly 53.1% of the time (where random chance was 50%). But as Wagenmakers, etc. have have pointed out a similar large-scale test has been running for a long time: casino roulette. In European roulette the house edge is 2.7% [36 to 1 odds against winning; 35 to 1 payout], so gamblers with Bem's 3.1% edge would have cleaned out the casinos already. It is suspicious that in most studies which do find psychic abilities it hovers at the edge of the statistical significance value chosen for the study.

Bem's response to critics is amusing. A major part of his defense is appeal to authority: the referees of his paper accepted it for publication in a prominent journal, and his statistical techniques are commonly accepted in psychology. He defers to another author (Radin) for defense of the historical record of parapsychological research. Radin cites meta-studies and makes an even more dubious appeal to authority: the U.S. patent office.

Friday, December 17, 2010

Poor Pluto

The demotion of Pluto from planet to dwarf planet (or planetoid) provides another example of the themes of my previous posts. Like the definition of "species", the definition of "planet" is vague, man-made, and changes over time. Scientific authorities also alter the membership of the category based on new information. These changes make many people (especially children) upset. I suspect changes to the planets also cause cognitive dissonance due to their ancient connections to astrology, mythology, and religion. The unchanging nature of heavenly objects was a bedrock belief: "as sure as the sun will rise." Yes, Pluto was not one of the original planets visible to the naked eye, but like the others on discovery it was given the name of a Roman (formerly Greek) god. Today people don't consciously remember how much of our daily language is based on past mythology. My favorite example (besides the planets) is the English names of the days of the week:

Sunday : Sun
Monday : Moon
Tuesday : Tyr (Norse god)
Wednesday : Woden / Odin (Norse god)
Thursday : Thor (Norse god)
Friday : Freya (Norse goddess)
Saturday : Saturn (Roman god)

Sunday, December 12, 2010

Darwinism and Authority

American critics of evolutionary theory often prefer to use the term "Darwinism". In doing so they reveal the philosophical, psychological, and theological underpinnings of their world-view: the argument from authority
Appeal to authority is a fallacy of defective induction, where it is argued that a statement is correct because the statement is made by a person or source that is commonly regarded as authoritative.
Scientists don't believe the theory of evolution is correct because it was originally formulated by Charles Darwin, or because it was presented in his book "The Origin of Species by Means of Natural Selection".

Scientific presentations of new theories consist of two parts: the theory itself, and the gathered data which this theory explains. The availability of the gathered data means other scientists can check its validity and see whether it actually supports the proposed theory, or matches some other theory better. For example, the finches Darwin gathered in the Galapagos islands are actually still stored in the bird collection of the British Natural History Museum. Additionally, future scientists can gather additional data and perform new experiments to confirm, expand on, or refute Darwin's original theories. So far new gathered data has confirmed Darwin's basic theories, and vastly expanded on them (understandable, since Darwin was not even aware of Mendelian genetics, let alone DNA). But this new research is not being done to defend Darwin's legacy. Young scientists would be overjoyed to discover a radical new experimental finding or theory which overturns Darwin, and are feverishly looking for this. This very possibility of being wrong is what makes evolution a scientific theory.

An earlier post quoted Dawkins on how children are natural essentialists. I argue children are also, both by nature and nurture, believers in the argument from authority. Children want all statements to have invariant mappings to the categories "true" or "false". The vague category "as best we can tell right now, pending future information" is confusing and upsetting. Teachers and parents are also natural authority figures, and don't have the time (and often background) to explain the rationale behind all their instructions. Elementary memorization is useful, and a child which questioned everything would be impossible to teach. But for many students this attitude continues to their study of science, so Newton, and Einstein, and Darwin become unquestioned authority figures. They don't go back to see that these scientist's work consisted of the same type of presentation discussed above: theories with supporting evidence.

Critics of "Darwinism" are often actually modeling their critique on their early childhood religious upbringing. Early authority figures in their life (their parents) presented additional authority figures (church leaders) whose authority is ultimately derived from an unquestionable final authority figure (the religion's founder(s)). The founders words are contained in unquestionable texts (the revealed sacred documents), and all necessary truths can be obtained through detailed study of those texts. This technique of finding truths through interpretation of texts written by founders (and later texts written about texts written by founders) can arguably be useful in some fields such as law. But it is of only historical interest in science. The correctness of modern evolutionary theory is not bound up in the life of Darwin or the text of "The Origin of Species."

An amusing collision between intelligent design "science" and argument from religious authority is here. Dembski is at risk of being "Expelled"...

Monday, November 1, 2010

OpenCL GPGPU real-time ray tracing

OpenCL is the new open standard for GPGPU (general-purpose computing on graphics processing units) programming. It supports both graphics cards and multi-core processors with the same C99-based source code. I've re-written the NVIDIA CUDA version of my real-time ray tracer using OpenCL, and run it on an ATI/AMD Radeon HD 5870 GPU. For comparison I also ran it in CPU mode on the Intel i7-980X (6 core, hyperthreaded) processor.



The OpenCL CPU version provided similar results to the pthreads-generic version tested earlier. With 10 objects in the scene the GPU performance was only slightly better than the CPU version. But as the number of objects increased the GPU version maintained performance much better than the CPU version. This indicates that with low object counts the actual work done by each GPU core is small relative to the setup and copying results back overheads. Yes, a realistic ray tracer would be culling the scene graph so fewer objects would be evaluated for each point. And the GPU version ran out of constant memory above 800 objects. But this is much better scaling and performance than the NVIDIA CUDA test I did a few years ago.