On the Subject of Not Piano Keys

We should really stop dropping modules down mine shafts.

There will be a layout of white and black keys with three musical symbols on the top. The keys are separated into 7 white and 5 black keys. Note that the larger group of black keys is to the left of the smaller group.

Obtaining the Black Key Sequence

  • Take the musical symbols on the module and use them in the below tables from top to bottom to obtain a sequence of 3 distinct keys, referred to by their position from left to right.
  • If the serial number contains a 0 or 5, add the remaining two keys from right to left. Otherwise add them from left to right.
315425415
514221425
433231341
512113155
221354333
235144424
244435355
412334331
255231113
544245523
333152422
445311335
415422542
243414143
333312125
445425312
352254544

Obtaining the White Key Sequence

  • Take a sequence of the numbers from 1 to 7. These represent the white keys from left to right. Based on the three symbols shown, perform 4 swaps on this sequence.
  • The first symbol on the module corresponds to a 2×2 quadrant of a 3×3 grid, as depicted to the right.
  • Find the intersection of the 2nd and 3rd symbols on the below page to get a cell within a 3×3 grid. The intersection will always be within the quadrant specified by the first symbol. Take the 4 pairs of numbers within that quadrant and order them in clockwise order starting with the intersection.
  • For each pair of numbers, swap the numbers in those positions in the sequence.
677215513623421524
214631172664715213
142153754112263762
521774432531612416
316512217156124521
765137422141212663
763242246327151351
251361165271342147
125427321545236372

Interweaving the Sequences

  • Once the black and white sequences have been obtained, they need to be ordered.
  • Use the order according to the last digit of the bomb’s serial number and press the keys in that order.
    • B# represents the #th key of the black sequence.
    • W# represents the #th key of the white sequence.
#Sequence
0W1, B1, W2, B2, W3, B3, W4, B4, W5, B5, W6, W7
1B2, W2, W3, B3, W1, W6, B5, W4, B1, W5, W7, B4
2W5, W4, W1, B2, W3, B1, W7, W2, B3, W6, B4, B5
3W2, B2, W6, B1, W4, W7, W5, B4, W1, B5, W3, B3
4W6, B5, W1, W5, B3, W7, B2, W3, B1, W4, W2, B4
5W6, B1, W1, B2, B5, B4, W2, W5, W7, B3, W3, W4
6W3, W5, W2, B5, B2, W1, B1, B3, W6, W4, B4, W7
7B4, W7, W1, W3, B2, B3, W4, B5, W5, W2, B1, W6
8W7, B1, W3, B5, W1, W4, B4, W5, W2, W6, B2, B3
9W6, W3, W2, W4, B1, B3, B4, W1, W7, B2, B5, W5