Old music boxes turn up in the island's lost places: a gnome's in the diggings, a brass one in the workshops' vaults, one of moonsilver behind the moon seal and a little wooden one in old chests. Hold one and Interact looking at the sky to wind it, and it plays its tune for everyone near.
| 1 | name = "Music boxes" |
| 2 | by = "Potluck" |
| 3 | kind = "mod" |
| 4 | about = "Old music boxes turn up in the island's lost places: a gnome's in the diggings, a brass one in the workshops' vaults, one of moonsilver behind the moon seal and a little wooden one in old chests. Hold one and Interact looking at the sky to wind it, and it plays its tune for everyone near." |
| 5 | main = "main.luau" |
| 6 | version = 1 |
| 7 | license = "CC-BY-4.0" |
| 8 | |
| 9 | [needs] |
| 10 | world = "0.27" |
| 11 | ui = "0.2" |
| 12 | sound = "0.2" |
| 13 | |
| 14 | # Each box plays its tune in two halves, a sound each: the tune's notes over |
| 15 | # a low part, plucked like a music box's comb. Remix them for tunes of your |
| 16 | # own (32 notes a layer at most, 3 seconds a sound). |
| 17 | |
| 18 | [sounds.brass_a] |
| 19 | caption = "A music box plays Island waltz" |
| 20 | wave = "triangle" |
| 21 | notes = ["E5", "G5", "C6", "B5", "G5", "E5", "D5", "F5", "A5", "G5", "-", "-", "E5", "G5", "C6"] |
| 22 | each = 0.2 |
| 23 | attack = 0.003 |
| 24 | decay = 0.32 |
| 25 | lowpass = 4200 |
| 26 | |
| 27 | [[sounds.brass_a.layers]] |
| 28 | wave = "sine" |
| 29 | notes = ["E5", "G5", "C6", "B5", "G5", "E5", "D5", "F5", "A5", "G5", "-", "-", "E5", "G5", "C6"] |
| 30 | each = 0.2 |
| 31 | gain = 0.25 |
| 32 | highpass = 900 |
| 33 | |
| 34 | [[sounds.brass_a.layers]] |
| 35 | wave = "sine" |
| 36 | notes = ["C4", "-", "-", "C4", "-", "-", "D4", "-", "-", "G3", "-", "-", "C4", "-", "-"] |
| 37 | each = 0.2 |
| 38 | gain = 0.5 |
| 39 | |
| 40 | [sounds.brass_b] |
| 41 | caption = "A music box plays Island waltz" |
| 42 | wave = "triangle" |
| 43 | notes = ["D6", "C6", "A5", "G5", "E5", "C5", "D5", "E5", "F5", "E5", "D5", "B4", "C5", "-", "-"] |
| 44 | each = 0.2 |
| 45 | attack = 0.003 |
| 46 | decay = 0.32 |
| 47 | lowpass = 4200 |
| 48 | |
| 49 | [[sounds.brass_b.layers]] |
| 50 | wave = "sine" |
| 51 | notes = ["D6", "C6", "A5", "G5", "E5", "C5", "D5", "E5", "F5", "E5", "D5", "B4", "C5", "-", "-"] |
| 52 | each = 0.2 |
| 53 | gain = 0.25 |
| 54 | highpass = 900 |
| 55 | |
| 56 | [[sounds.brass_b.layers]] |
| 57 | wave = "sine" |
| 58 | notes = ["F3", "-", "-", "C4", "-", "-", "D4", "-", "-", "G3", "-", "-", "C4", "-", "-"] |
| 59 | each = 0.2 |
| 60 | gain = 0.5 |
| 61 | |
| 62 | [sounds.gnome_a] |
| 63 | caption = "A music box plays Digger's jig" |
| 64 | wave = "triangle" |
| 65 | notes = ["C5", "D5", "E5", "C5", "G5", "E5", "C5", "-", "D5", "E5", "F5", "D5", "A5", "F5", "D5", "-", "E5", "D5", "C5", "-"] |
| 66 | each = 0.15 |
| 67 | attack = 0.003 |
| 68 | decay = 0.24 |
| 69 | lowpass = 4200 |
| 70 | |
| 71 | [[sounds.gnome_a.layers]] |
| 72 | wave = "sine" |
| 73 | notes = ["C5", "D5", "E5", "C5", "G5", "E5", "C5", "-", "D5", "E5", "F5", "D5", "A5", "F5", "D5", "-", "E5", "D5", "C5", "-"] |
| 74 | each = 0.15 |
| 75 | gain = 0.25 |
| 76 | highpass = 900 |
| 77 | |
| 78 | [[sounds.gnome_a.layers]] |
| 79 | wave = "sine" |
| 80 | notes = ["C4", "-", "G3", "-", "C4", "-", "G3", "-", "D4", "-", "A3", "-", "D4", "-", "A3", "-", "C4", "-", "G3", "-"] |
| 81 | each = 0.15 |
| 82 | gain = 0.5 |
| 83 | |
| 84 | [sounds.gnome_b] |
| 85 | caption = "A music box plays Digger's jig" |
| 86 | wave = "triangle" |
| 87 | notes = ["G5", "F5", "E5", "D5", "C5", "D5", "E5", "C5", "A4", "B4", "C5", "D5", "E5", "D5", "C5", "-", "G4", "-", "C5", "-"] |
| 88 | each = 0.15 |
| 89 | attack = 0.003 |
| 90 | decay = 0.24 |
| 91 | lowpass = 4200 |
| 92 | |
| 93 | [[sounds.gnome_b.layers]] |
| 94 | wave = "sine" |
| 95 | notes = ["G5", "F5", "E5", "D5", "C5", "D5", "E5", "C5", "A4", "B4", "C5", "D5", "E5", "D5", "C5", "-", "G4", "-", "C5", "-"] |
| 96 | each = 0.15 |
| 97 | gain = 0.25 |
| 98 | highpass = 900 |
| 99 | |
| 100 | [[sounds.gnome_b.layers]] |
| 101 | wave = "sine" |
| 102 | notes = ["C4", "-", "G3", "-", "C4", "-", "G3", "-", "F3", "-", "C4", "-", "G3", "-", "C4", "-", "G3", "-", "C4", "-"] |
| 103 | each = 0.15 |
| 104 | gain = 0.5 |
| 105 | |
| 106 | [sounds.moonsilver_a] |
| 107 | caption = "A music box plays Lullaby of the deep" |
| 108 | wave = "triangle" |
| 109 | notes = ["A4", "C5", "E5", "D5", "C5", "B4", "A4", "-", "E5", "-"] |
| 110 | each = 0.3 |
| 111 | attack = 0.003 |
| 112 | decay = 0.48 |
| 113 | lowpass = 4200 |
| 114 | |
| 115 | [[sounds.moonsilver_a.layers]] |
| 116 | wave = "sine" |
| 117 | notes = ["A4", "C5", "E5", "D5", "C5", "B4", "A4", "-", "E5", "-"] |
| 118 | each = 0.3 |
| 119 | gain = 0.25 |
| 120 | highpass = 900 |
| 121 | |
| 122 | [[sounds.moonsilver_a.layers]] |
| 123 | wave = "sine" |
| 124 | notes = ["A3", "-", "-", "-", "F3", "-", "E3", "-", "-", "-"] |
| 125 | each = 0.3 |
| 126 | gain = 0.5 |
| 127 | |
| 128 | [sounds.moonsilver_b] |
| 129 | caption = "A music box plays Lullaby of the deep" |
| 130 | wave = "triangle" |
| 131 | notes = ["F5", "E5", "D5", "C5", "B4", "G4", "A4", "-", "-", "-"] |
| 132 | each = 0.3 |
| 133 | attack = 0.003 |
| 134 | decay = 0.48 |
| 135 | lowpass = 4200 |
| 136 | |
| 137 | [[sounds.moonsilver_b.layers]] |
| 138 | wave = "sine" |
| 139 | notes = ["F5", "E5", "D5", "C5", "B4", "G4", "A4", "-", "-", "-"] |
| 140 | each = 0.3 |
| 141 | gain = 0.25 |
| 142 | highpass = 900 |
| 143 | |
| 144 | [[sounds.moonsilver_b.layers]] |
| 145 | wave = "sine" |
| 146 | notes = ["D3", "-", "-", "-", "E3", "-", "A3", "-", "-", "-"] |
| 147 | each = 0.3 |
| 148 | gain = 0.5 |
| 149 | |
| 150 | [sounds.wooden_a] |
| 151 | caption = "A music box plays Potluck polka" |
| 152 | wave = "triangle" |
| 153 | notes = ["C5", "A4", "C5", "F5", "-", "A5", "G5", "F5", "E5", "G5", "C5", "-", "E5", "G5", "C6", "A5", "G5", "F5", "-", "-"] |
| 154 | each = 0.15 |
| 155 | attack = 0.003 |
| 156 | decay = 0.24 |
| 157 | lowpass = 4200 |
| 158 | |
| 159 | [[sounds.wooden_a.layers]] |
| 160 | wave = "sine" |
| 161 | notes = ["C5", "A4", "C5", "F5", "-", "A5", "G5", "F5", "E5", "G5", "C5", "-", "E5", "G5", "C6", "A5", "G5", "F5", "-", "-"] |
| 162 | each = 0.15 |
| 163 | gain = 0.25 |
| 164 | highpass = 900 |
| 165 | |
| 166 | [[sounds.wooden_a.layers]] |
| 167 | wave = "sine" |
| 168 | notes = ["F3", "-", "C4", "-", "F3", "-", "C4", "-", "C3", "-", "G3", "-", "C3", "-", "G3", "-", "F3", "-", "C4", "-"] |
| 169 | each = 0.15 |
| 170 | gain = 0.5 |
| 171 | |
| 172 | [sounds.wooden_b] |
| 173 | caption = "A music box plays Potluck polka" |
| 174 | wave = "triangle" |
| 175 | notes = ["D5", "F5", "A5", "D6", "C6", "A5", "F5", "D5", "C5", "E5", "G5", "C6", "A5", "F5", "-", "F5", "-", "F4", "-", "-"] |
| 176 | each = 0.15 |
| 177 | attack = 0.003 |
| 178 | decay = 0.24 |
| 179 | lowpass = 4200 |
| 180 | |
| 181 | [[sounds.wooden_b.layers]] |
| 182 | wave = "sine" |
| 183 | notes = ["D5", "F5", "A5", "D6", "C6", "A5", "F5", "D5", "C5", "E5", "G5", "C6", "A5", "F5", "-", "F5", "-", "F4", "-", "-"] |
| 184 | each = 0.15 |
| 185 | gain = 0.25 |
| 186 | highpass = 900 |
| 187 | |
| 188 | [[sounds.wooden_b.layers]] |
| 189 | wave = "sine" |
| 190 | notes = ["D3", "-", "A3", "-", "D3", "-", "A3", "-", "C3", "-", "G3", "-", "F3", "-", "C4", "-", "F3", "-", "F3", "-"] |
| 191 | each = 0.15 |
| 192 | gain = 0.5 |
| 193 | |
| 194 | # plays Island waltz |
| 195 | [items.brass_music_box] |
| 196 | name = "Brass music box" |
| 197 | stack = 1 |
| 198 | colors = { k = "#5a3a1a", a = "#d8a840", b = "#b88a30", t = "#f0d070", c = "#7a5a20", d = "#f0d070", h = "#c0c4c8" } |
| 199 | picture = """ |
| 200 | ................ |
| 201 | ................ |
| 202 | ................ |
| 203 | .............hh. |
| 204 | ............h... |
| 205 | ...kkkkkkkkkkh.. |
| 206 | ..kaaaaaaaaaak.. |
| 207 | .kaaaaaaaaaaakk. |
| 208 | .kbbbbbbbbbbbbk. |
| 209 | .kbtbbbbbbbbtbk. |
| 210 | .kbbbbccccbbbbk. |
| 211 | .kbbbbcddcbbbbk. |
| 212 | .kbbbbccccbbbbk. |
| 213 | .kbtbbbbbbbbtbk. |
| 214 | .kkkkkkkkkkkkkk. |
| 215 | ................ |
| 216 | """ |
| 217 | |
| 218 | # plays Digger's jig |
| 219 | [items.gnome_music_box] |
| 220 | name = "Gnome music box" |
| 221 | stack = 1 |
| 222 | colors = { k = "#3a2a1a", a = "#a83a30", b = "#6a4a2a", t = "#e8d060", c = "#3a5a30", d = "#e8e0c8", h = "#a87040" } |
| 223 | picture = """ |
| 224 | ................ |
| 225 | ................ |
| 226 | ................ |
| 227 | .............hh. |
| 228 | ............h... |
| 229 | ...kkkkkkkkkkh.. |
| 230 | ..kaaaaaaaaaak.. |
| 231 | .kaaaaaaaaaaakk. |
| 232 | .kbbbbbbbbbbbbk. |
| 233 | .kbtbbbbbbbbtbk. |
| 234 | .kbbbbccccbbbbk. |
| 235 | .kbbbbcddcbbbbk. |
| 236 | .kbbbbccccbbbbk. |
| 237 | .kbtbbbbbbbbtbk. |
| 238 | .kkkkkkkkkkkkkk. |
| 239 | ................ |
| 240 | """ |
| 241 | |
| 242 | # plays Lullaby of the deep |
| 243 | [items.moonsilver_music_box] |
| 244 | name = "Moonsilver music box" |
| 245 | stack = 1 |
| 246 | colors = { k = "#3a3e4a", a = "#c8d4e8", b = "#8a96aa", t = "#9ff0ec", c = "#5a6478", d = "#9ff0ec", h = "#e0e8f0" } |
| 247 | picture = """ |
| 248 | ................ |
| 249 | ................ |
| 250 | ................ |
| 251 | .............hh. |
| 252 | ............h... |
| 253 | ...kkkkkkkkkkh.. |
| 254 | ..kaaaaaaaaaak.. |
| 255 | .kaaaaaaaaaaakk. |
| 256 | .kbbbbbbbbbbbbk. |
| 257 | .kbtbbbbbbbbtbk. |
| 258 | .kbbbbccccbbbbk. |
| 259 | .kbbbbcddcbbbbk. |
| 260 | .kbbbbccccbbbbk. |
| 261 | .kbtbbbbbbbbtbk. |
| 262 | .kkkkkkkkkkkkkk. |
| 263 | ................ |
| 264 | """ |
| 265 | |
| 266 | # plays Potluck polka |
| 267 | [items.wooden_music_box] |
| 268 | name = "Wooden music box" |
| 269 | stack = 1 |
| 270 | colors = { k = "#4a2e18", a = "#a8763e", b = "#8a5a2a", t = "#e8c070", c = "#6a3a1a", d = "#e86a20", h = "#a8763e" } |
| 271 | picture = """ |
| 272 | ................ |
| 273 | ................ |
| 274 | ................ |
| 275 | .............hh. |
| 276 | ............h... |
| 277 | ...kkkkkkkkkkh.. |
| 278 | ..kaaaaaaaaaak.. |
| 279 | .kaaaaaaaaaaakk. |
| 280 | .kbbbbbbbbbbbbk. |
| 281 | .kbtbbbbbbbbtbk. |
| 282 | .kbbbbccccbbbbk. |
| 283 | .kbbbbcddcbbbbk. |
| 284 | .kbbbbccccbbbbk. |
| 285 | .kbtbbbbbbbbtbk. |
| 286 | .kkkkkkkkkkkkkk. |
| 287 | ................ |
| 288 | """ |