; DikuMUD NES - sound effects (tools/gen_music.py).  "sfx NAME prio=P" then p2: and/or noise:
; parts in the score language at speed 1 (a 16th = 1 frame: c4 = 4 frames; c:N = N frames).
; An effect takes pulse 2 and/or the noise from the music while it plays; a new effect replaces
; the one on its channel unless that one's priority is higher.

sfx move prio=1                 ; cursor moves: a short tick
p2: @sxblip o6 a:4

sfx select prio=2               ; choice confirmed: two notes up
p2: @sxsel o5 g:3 > d:9

sfx cancel prio=1               ; back out: two notes down
p2: @sxblip o5 d:3 < a:6

sfx ring prio=2                 ; the ring of icons opens: a quick rising arpeggio
p2: @sxsel o5 c:2 e:2 g:2 > c:8

sfx hit prio=3                  ; a blow lands: a thump
noise: @nkick n9:6
p2: @sxrumble o3 c:5

sfx miss prio=2                 ; a swing through the air: a whoosh
noise: @sxwhoosh n11:12

sfx hurt prio=4                 ; the player is hit: a sharp falling note and a crack
p2: @sxlaser o5 c:8
noise: @nsnare n6:8

sfx gold prio=3                 ; coins: "ting-ting"
p2: @sxcoin o6 e:3 > c:6 < e:3 > c:12

sfx cast prio=4                 ; a spell: a shimmering rise
p2: @sxsweep o4 c:14 @sxwarp o6 c:18

sfx door prio=2                 ; a door or gate: a creak and a knock
p2: @sxbuzz o2 c:8
noise: @sxtick n8:4

sfx kill prio=5                 ; a monster dies: a falling rumble with a blast
noise: @sxboom n7:40
p2: @sxrumble o3 g:30

sfx error prio=4                ; not possible: two low buzzes
p2: @sxbuzz o2 g+:8 r:4 g+:10

sfx step prio=1                 ; walking into a room: a soft footfall
noise: @nsoft n10:3

sfx thunder prio=3              ; thunder after a lightning flash: a long low rumble
noise: @sxboom n14:60
