EVR.Sound.Prompt = function(sound)
{
   EVR.Animation.call(this, SOUND_PROMPT_FRAME_RATE);
   this.sound = sound;
   this.shifted = false;
   this.initialize();
   this.append();
   this.play();
}
EVR.Sound.Prompt.prototype = new EVR.Prompt;
EVR.inherit(EVR.Sound.Prompt, EVR.Animation);
EVR.Sound.Prompt.prototype.initialize = function()
{
   var container = this.sound;
   var text = SOUND_PROMPT_TEXT;
   var color = SOUND_PROMPT_COLOR;
   var size = SOUND_PROMPT_SIZE;
   var offset = SOUND_PROMPT_OFFSET;
   var spacing = SOUND_PROMPT_LETTER_SPACING;
   var height = SOUND_PROMPT_HEIGHT;
   EVR.Prompt.call(
      this, container, text, color, size, null, null, null, offset, spacing,
      height);
}
EVR.Sound.Prompt.prototype.sequence = function()
{
   var step = SOUND_PROMPT_STEP;
   var shifted = this.shifted;
   if (shifted)
   {
      this.move(step);
   }
   else
   {
      this.move(-step);
   }
   this.shifted = !shifted;
}
EVR.Sound.Prompt.prototype.hide = function()
{
   this.set_opacity(0);
}
EVR.Sound.Prompt.prototype.show = function()
{
   this.set_opacity(1);
}
EVR.Sound.Prompt.prototype.toString = function()
{
   return "[object EVR.Sound.Prompt]";
}
EVR.include("sound/audio/HTML5.js");
EVR.include("sound/audio/BGSound.js");
EVR.include("sound/audio/Embed.js");
EVR.Sound.Audio = function(container, type, format)
{
   EVR.Component.call(this, container, type);
   this.volume = SOUND_INITIAL_VOLUME;
   this.volume_step = SOUND_VOLUME_STEP;
   this.muted = true;
   this.format = format;
}
EVR.Sound.Audio.prototype = new EVR.Component;
EVR.Sound.Audio.prototype.set_song = function(name)
{
   this.song = name;
   this.set_path();
}
EVR.Sound.Audio.prototype.set_path = function()
{
   var root = SOUND_PATH;
   var song = this.song;
   var format = this.format;
   var quality = SOUND_QUALITY;
   var extension = format;
   var path = root + song + "/" + format + "/" + quality + "." + extension;
   this.element.setAttribute("src", path);
}
EVR.Sound.Audio.prototype.mute = function()
{
   if (this.muted)
   {
      this.muted = false;
      if (this.volume <= 0)
      {
	 this.increase_volume();
      }
   }
   else
   {
      this.muted = true;
   }
   this.set_volume();
}
EVR.Sound.Audio.prototype.increase_volume = function()
{
   var volume = this.volume + this.volume_step;
   if (volume > 1)
   {
      volume = 1.0;
   }
   if (this.muted)
   {
      this.mute();
   }
   this.volume = volume;
   this.set_volume();
}
EVR.Sound.Audio.prototype.decrease_volume = function()
{
   var volume = this.volume - this.volume_step;
   if (volume <= 0)
   {
      volume = 0;
      if (!this.muted)
      {
	 this.mute();
      }
   }
   else if (this.muted)
   {
      this.mute();
   }
   this.volume = volume;
   this.set_volume();
}
EVR.Sound.Audio.prototype.toString = function()
{
   "[object EVR.Sound.Audio]";
}
EVR.Sound.Audio.BGSound = function(container)
{
   EVR.Sound.Audio.call(this, container, "bgsound", "mp3");
   this.set_attributes();
   this.append();
}
EVR.Sound.Audio.BGSound.prototype = new EVR.Sound.Audio;
EVR.Sound.Audio.BGSound.prototype.set_attributes = function()
{
   var element = this.element;
   element.loop = -1;
   element.volume = -10000;
}
EVR.Sound.Audio.BGSound.prototype.set_volume = function()
{
   var element = this.element;
   if (this.muted)
   {
      element.volume = -10000;
   }
   else
   {
      element.volume = - parseInt((1 - this.volume) * 1500);
   }
}
EVR.Sound.Audio.BGSound.prototype.toString = function()
{
   return "[object EVR.Sound.Audio.BGSound]";
}
EVR.Sound.Audio.HTML5 = function(container)
{
   this.container = container;
   this.initialize_audio();
   this.volume = SOUND_INITIAL_VOLUME;
   this.volume_step = SOUND_VOLUME_STEP;
   this.set_attributes();
   this.append();
}
EVR.Sound.Audio.HTML5.prototype = new EVR.Sound.Audio;
EVR.Sound.Audio.HTML5.prototype.initialize_audio = function()
{
   var format = "ogg";
   if (!document.createElement("audio").canPlayType("audio/ogg"))
   {
      format = "mp3";
   }
   EVR.Sound.Audio.call(this, this.container, "audio", format);
}
EVR.Sound.Audio.HTML5.prototype.set_attributes = function()
{
   var element = this.element;
   element.volume = 0;
   element.addEventListener(
      "ended", function() { this.currentTime = 0; }, false);
}
EVR.Sound.Audio.HTML5.prototype.mute = function()
{
   EVR.Sound.Audio.prototype.mute.call(this);
   var element = this.element;
   if (element.paused)
   {
      element.play();
   }
}
EVR.Sound.Audio.HTML5.prototype.set_volume = function()
{
   var element = this.element;
   if (this.muted)
   {
      element.volume = 0;
   }
   else
   {
      element.volume = this.volume;
   }
}
EVR.Sound.Audio.HTML5.prototype.set_song = function(name)
{
   var element = this.element;
   var paused = element.paused;
   EVR.Sound.Audio.prototype.set_song.call(this, name);
   element.load();
   if (!paused && !this.muted)
   {
      element.play();
   }
}
EVR.Sound.Audio.HTML5.prototype.toString = function()
{
   return "[object EVR.Sound.Audio.HTML5]";
}
3.137.218.215
3.137.218.215
3.137.218.215
 
December 3, 2013

Where in the mind's prism does light shine, inward, outward, or backward, and where in a plane does it intersect, experientially and literally, while possessing itself in a dripping wet phantasm?


Fig 1.1 What happens after you turn on a video game and before it appears?

The taxonomy of fun contains the difference between gasps of desperation and exaltation, simultaneously identical and opposite; one inspires you to have sex, while the other to ejaculate perpetually. A destruction and its procession are effervescent, while free play is an inseminated shimmer hatching inside you. Unlikely to be resolved, however, in such a way, are the climaxes of transitions between isolated, consecutive game states.

You walk through a door or long-jump face first (your face, not Mario's) into a painting. A moment passes for eternity, viscerally fading from your ego, corpus, chakra, gaia, the basis of your soul. It happens when you kill too, and especially when you precisely maim or obliterate something. It's a reason to live, a replicating stasis.


Fig 1.2 Sequence in a video game

Video games are death reanimated. You recurse through the underworld toward an illusion. Everything in a decision and logic attaches permanently to your fingerprint. At the core, you use its energy to soar, comatose, back into the biosphere, possibly because the formal structure of a mind by human standards is useful in the next world.