Sand-dancer — 22 of 48

Aaron Reed and Alexei Othenin-Girard

Release 7

Section - Radio

An emergency radio is a fixed in place device in Break Room.

A frequency is a kind of value. 100.9kHz specifies a frequency. 100.9 kHz specifies a frequency. 100.9 specifies a frequency with parts integer and decimal.

The radio has a frequency called the frequency tuned to. The frequency tuned to of the radio is 77.2kHz. The radio has a frequency called the maximum frequency. The maximum frequency of the radio is 109.9kHz. The radio has a frequency called the minimum frequency. The minimum frequency of the radio is 67.0kHz.

The description of the emergency radio is "Vintage, man. A chrome switch on the side to turn it on and off, and a big fifties dial on the front. It looks like it's tuned to [the frequency tuned to of emergency radio] right now." Understand "dial/big/fifties/knob/switch" as emergency radio. Instead of turning or pushing or pulling emergency radio, say "It looks like you can TUNE it to a frequency.".

Tuning it to is an action applying to one thing and one frequency. Understand "tune [thing] to [frequency]" as tuning it to. Understand "turn [thing] to [frequency]" as tuning it to.

Understand "tune [thing] to [number]" as coarse tuning. Coarse tuning is an action applying to one thing and one number. Carry out coarse tuning: try tuning the noun to the frequency with integer part number understood decimal part 0. [This is necessary to understand a command like TUNE RADIO TO 100. Inform recognizes 100 as a number, not a frequency, which means we need a whole different action to understand.]

Understand the command "set" as something new. Understand the command "set" as "tune".

Check tuning when the noun does not provide a frequency tuned to: instead say "You can't tune that."

Check tuning when the frequency understood is less than the minimum frequency of the noun: instead say "[The noun] doesn't go any lower than [the minimum frequency of the noun]."

Check tuning when the frequency understood is greater than the maximum frequency of the noun: instead say "[The noun] doesn't go any higher than [the maximum frequency of the noun]."

Check tuning when the frequency understood is the frequency tuned to of the noun: instead say "[The noun] is already tuned to that frequency."

Check tuning when the radio is switched off: instead say "Not much point when it's not turned on."

The emergency frequency is a frequency variable. The emergency frequency is 102.3kHz.

Carry out tuning: now the frequency tuned to of the noun is the frequency understood.

Report tuning: say "You tune [the radio] to [the frequency tuned to of the radio][if the frequency tuned to of the radio is the emergency frequency], and the static resolves into a clear signal[otherwise if the frequency tuned to of the radio was the emergency frequency], and the voice dissolves into static[end if]."

Check switching on radio when emergency lights are switched off: instead say "You flip the switch back and forth, but there doesn't seem to be any power. Damn."

After switching on radio: say "You flip a bulky switch on the radio's side. A hiss of static pours from the speakers[one of], like tons of sand sliding over metal[or][stopping][if frequency tuned to of radio is emergency frequency], then quickly resolves into nothing more than a quiet hum[end if]."