;****************************************
;	music data (format : mus)
;	converted by smf2mus Ver 1.4
;	Mon Jun  2 10:44:00 1997
;****************************************


;***************
;* GROOP TRACK *
;***************

    defpause	, $20
    pausevolume	,  70
    allocsub	,$007F
;    waitw	, 300		;initial dummy wait
_WR_PortPirates_Intro
    opensub ,  0, _WR_PortPirates_Intro_sub0
    opensub ,  1, _WR_PortPirates_Intro_sub1
    opensub ,  2, _WR_PortPirates_Intro_sub2
    opensub ,  3, _WR_PortPirates_Intro_sub3
    opensub ,  4, _WR_PortPirates_Intro_sub4
    opensub ,  5, _WR_PortPirates_Intro_sub5
    opensub ,  6, _WR_PortPirates_Intro_sub6
    volumechg	, 127
    tempochg	, 156
       gr_portread,0
       br0,@_Normal_Start
	volumechg,0
	tempochg,180		; please insert new tempo.
;	transchg,+1
	wait,1
        volumechg, 127		; please insert original volume.
       bra,_WR_PortPirates_song		; please insert song label name here.

@_Normal_Start
    wait	, 96
_WR_PortPirates_a
_WR_PortPirates_song
    opensub ,  0, _WR_PortPirates_song_sub0
    opensub ,  1, _WR_PortPirates_song_sub1
    opensub ,  2, _WR_PortPirates_song_sub2
    opensub ,  3, _WR_PortPirates_song_sub3
    opensub ,  4, _WR_PortPirates_song_sub4
    opensub ,  5, _WR_PortPirates_song_sub5
    opensub ,  6, _WR_PortPirates_song_sub6
    waitw	, 3744
    jump	, _WR_PortPirates_a
    deallocsub	, $007F
    fin

;***************
;* SUB TRACK   *
;***************

;*** block:Intro ***

_WR_PortPirates_Intro_sub0
    Bmode
    opennote,  0, _WR_PortPirates_Intro_sub0_note0
    priority	,   9
    prg 	,   0
    fxline      , 0
    fxmix       , 64
    wait	, 96
    fin

_WR_PortPirates_Intro_sub1
    prg 	,   1
    priority	,   9
    fxline      , 0
    fxmix       , 64
    wait	, 96
    fin

_WR_PortPirates_Intro_sub2
    prg 	,   2
    priority	,   9
    fxline      , 0
    fxmix       , 32
    wait	, 96
    fin

_WR_PortPirates_Intro_sub3
    prg 	,   3
    priority	,   9
    wait	, 96
    fin

_WR_PortPirates_Intro_sub4
    prg 	,   4
    priority	,  11
    wait	, 96
    fin

_WR_PortPirates_Intro_sub5
    prg 	,   5
    priority	,  11
    wait	, 96
    fin

_WR_PortPirates_Intro_sub6
    prg 	,   6
    priority	,  11
    wait	, 96
    fin

;*** block:a ***

;*** block:song ***

_WR_PortPirates_song_sub0
    opennote,  0, _WR_PortPirates_song_sub0_note0
    opennote,  1, _WR_PortPirates_song_sub0_note1
    waitw	, 3743
    fin

_WR_PortPirates_song_sub1
    Bmode
    opennote,  0, _WR_PortPirates_song_sub1_note0
    waitw	, 3744
    fin

_WR_PortPirates_song_sub2
    Bmode
    opennote,  0, _WR_PortPirates_song_sub2_note0
    opennote,  1, _WR_PortPirates_song_sub2_note1
    waitw	, 1344
    pitchbend	, -21
    wait	, 16
    pitchbend	, -10
    wait	, 16
    pitchbend	, 0
    wait	, 16
    pitchbend	, -21
    wait	, 16
    pitchbend	, 0
    wait	, 16
    pitchbend	, -21
    wait	, 16
    pitchbend	, 0
    wait	, 16
    pitchbend	, -10
    wait	, 16
    pitchbend	, 0
    wait	, 16
    pitchbend	, 31
    wait	, 16
    pitchbend	, 0
    waitw	, 2240
    fin

_WR_PortPirates_song_sub3
    Bmode
    opennote,  0, _WR_PortPirates_song_sub3_note0
    opennote,  1, _WR_PortPirates_song_sub3_note1
    opennote,  2, _WR_PortPirates_song_sub3_note2
    opennote,  3, _WR_PortPirates_song_sub3_note3
    waitw	, 3744
    fin

_WR_PortPirates_song_sub4
    Bmode
    opennote,  0, _WR_PortPirates_song_sub4_note0
    opennote,  1, _WR_PortPirates_song_sub4_note1
    opennote,  2, _WR_PortPirates_song_sub4_note2
    pitchbend	, 0
    wait	, 90
    pitchbend	, -46
    waith	, 3
    pitchbend	, -93
    waith	, 3
    pitchbend	, 0
    wait	, 90
    pitchbend	, -46
    waith	, 3
    pitchbend	, -93
    waith	, 3
    pitchbend	, 0
    wait	, 90
    pitchbend	, -46
    waith	, 3
    pitchbend	, -93
    waith	, 3
    pitchbend	, 0
    waitw	, 186
    pitchbend	, -46
    waith	, 3
    pitchbend	, -93
    waith	, 3
    pitchbend	, 0
    wait	, 90
    pitchbend	, -46
    waith	, 3
    pitchbend	, -93
    waith	, 3
    pitchbend	, 0
    wait	, 90
    pitchbend	, -46
    waith	, 3
    pitchbend	, -93
    waith	, 3
    pitchbend	, 0
    waitw	, 186
    pitchbend	, -46
    waith	, 3
    pitchbend	, -93
    waith	, 3
    pitchbend	, 0
    wait	, 90
    pitchbend	, -46
    waith	, 3
    pitchbend	, -93
    waith	, 3
    pitchbend	, 0
    wait	, 90
    pitchbend	, -46
    waith	, 3
    pitchbend	, -93
    waith	, 3
    pitchbend	, 0
    waitw	, 384
    pitchbend	, -31
    wait	, 16
    pitchbend	, -21
    wait	, 16
    pitchbend	, -10
    wait	, 16
    pitchbend	, 0
    wait	, 16
    pitchbend	, -10
    wait	, 16
    pitchbend	, 0
    wait	, 24
    vibdepth	,   3
    wait	, 24
    vibdepth	,   0
    wait	, 64
    pitchbend	, -10
    wait	, 16
    pitchbend	, 0
    wait	, 16
    vibdepth	,   7
    wait	, 64
    vibdepth	,   0
    waitw	, 144
    pitchbend	, -7
    waith	, 6
    pitchbend	, -15
    waith	, 6
    pitchbend	, -23
    waith	, 6
    pitchbend	, -31
    waith	, 6
    pitchbend	, -62
    waith	, 6
    pitchbend	, -77
    waith	, 4
    pitchbend	, -93
    waith	, 2
    pitchbend	, -108
    waith	, 6
    pitchbend	, 0
    waith	, 14
    vibdepth	,   3
    wait	, 24
    vibdepth	,   0
    wait	, 64
    pitchbend	, -10
    wait	, 16
    pitchbend	, 0
    wait	, 16
    vibdepth	,   7
    wait	, 64
    vibdepth	,   0
    waitw	, 144
    pitchbend	, -7
    waith	, 6
    pitchbend	, -15
    waith	, 6
    pitchbend	, -23
    waith	, 6
    pitchbend	, -31
    waith	, 6
    pitchbend	, -62
    waith	, 6
    pitchbend	, -77
    waith	, 4
    pitchbend	, -93
    waith	, 2
    pitchbend	, -108
    waith	, 6
    pitchbend	, 0
    wait	, 102
    pitchbend	, -31
    waith	, 4
    pitchbend	, -23
    waith	, 4
    pitchbend	, -15
    waith	, 4
    pitchbend	, -7
    waith	, 4
    pitchbend	, 0
    wait	, 16
    vibdepth	,  15
    wait	, 48
    vibdepth	,   0
    waitw	, 136
    pitchbend	, -7
    waith	, 6
    pitchbend	, -15
    waith	, 6
    pitchbend	, -46
    waith	, 6
    pitchbend	, -93
    waith	, 6
    pitchbend	, 0
    waitw	, 336
    vibdepth	,  15
    wait	, 60
    vibdepth	,   0
    pitchbend	, 21
    waith	, 12
    pitchbend	, 0
    waith	, 12
    pitchbend	, 21
    waith	, 12
    pitchbend	, 10
    waith	, 12
    pitchbend	, 0
    wait	, 24
    pitchbend	, 21
    waith	, 12
    pitchbend	, 0
    waith	, 12
    pitchbend	, 10
    waith	, 12
    pitchbend	, 0
    waith	, 12
    pitchbend	, 10
    waith	, 12
    pitchbend	, 0
    wait	, 24
    pitchbend	, -21
    waith	, 12
    pitchbend	, 0
    waith	, 12
    pitchbend	, -21
    waith	, 12
    pitchbend	, 0
    wait	, 24
    pitchbend	, -21
    waith	, 12
    pitchbend	, 0
    waith	, 12
    pitchbend	, -10
    waith	, 12
    pitchbend	, 0
    wait	, 36
    pitchbend	, 10
    waith	, 12
    pitchbend	, 0
    waitw	, 152
    pitchbend	, -20
    waith	, 4
    pitchbend	, -13
    waith	, 4
    pitchbend	, -9
    waith	, 4
    pitchbend	, -4
    waith	, 4
    pitchbend	, 0
    vibdepth	,  18
    wait	, 48
    vibdepth	,   0
    waitw	, 192
    fin

_WR_PortPirates_song_sub5
    Bmode
    opennote,  0, _WR_PortPirates_song_sub5_note0
    opennote,  1, _WR_PortPirates_song_sub5_note1
    waitw	, 2640
    pitchbend	, -18
    waith	, 4
    pitchbend	, -17
    waith	, 4
    pitchbend	, -15
    waith	, 4
    pitchbend	, -10
    waith	, 4
    pitchbend	, -4
    waith	, 8
    pitchbend	, -12
    waith	, 4
    pitchbend	, -18
    waith	, 4
    pitchbend	, -18
    waith	, 4
    pitchbend	, -17
    waith	, 4
    pitchbend	, -15
    waith	, 4
    pitchbend	, -10
    waith	, 4
    pitchbend	, -4
    wait	, 24
    pitchbend	, -12
    waith	, 4
    pitchbend	, -18
    wait	, 20
    pitchbend	, -18
    waith	, 4
    pitchbend	, -17
    waith	, 4
    pitchbend	, -15
    waith	, 4
    pitchbend	, -10
    waith	, 4
    pitchbend	, -4
    waith	, 8
    pitchbend	, -12
    waith	, 4
    pitchbend	, -18
    waith	, 4
    pitchbend	, -18
    waith	, 4
    pitchbend	, -17
    waith	, 4
    pitchbend	, -15
    waith	, 4
    pitchbend	, -10
    waith	, 4
    pitchbend	, -4
    wait	, 24
    pitchbend	, -12
    waith	, 4
    pitchbend	, -18
    wait	, 20
    pitchbend	, -18
    waith	, 4
    pitchbend	, -17
    waith	, 4
    pitchbend	, -15
    waith	, 4
    pitchbend	, -10
    waith	, 4
    pitchbend	, -4
    waith	, 8
    pitchbend	, -12
    waith	, 4
    pitchbend	, -18
    waith	, 4
    pitchbend	, -18
    waith	, 4
    pitchbend	, -17
    waith	, 4
    pitchbend	, -15
    waith	, 4
    pitchbend	, -10
    waith	, 4
    pitchbend	, -4
    wait	, 24
    pitchbend	, -12
    waith	, 4
    pitchbend	, -18
    wait	, 20
    pitchbend	, -18
    waith	, 4
    pitchbend	, -17
    waith	, 4
    pitchbend	, -15
    waith	, 4
    pitchbend	, -10
    waith	, 4
    pitchbend	, -4
    waith	, 8
    pitchbend	, -12
    waith	, 4
    pitchbend	, -18
    waith	, 4
    pitchbend	, 0
    wait	, 16
    vibdepth	,  15
    wait	, 60
    vibdepth	,   0
    pitchbend	, 21
    waith	, 12
    pitchbend	, 0
    waith	, 12
    pitchbend	, 21
    waith	, 12
    pitchbend	, 10
    waith	, 12
    pitchbend	, 0
    wait	, 24
    pitchbend	, 21
    waith	, 12
    pitchbend	, 0
    waith	, 12
    pitchbend	, 10
    waith	, 12
    pitchbend	, 0
    waith	, 12
    pitchbend	, 10
    waith	, 12
    pitchbend	, 0
    wait	, 24
    pitchbend	, -21
    waith	, 12
    pitchbend	, 0
    waith	, 12
    pitchbend	, -21
    waith	, 12
    pitchbend	, 0
    wait	, 24
    pitchbend	, -21
    waith	, 12
    pitchbend	, 0
    waith	, 12
    pitchbend	, -10
    waith	, 12
    pitchbend	, 0
    wait	, 36
    pitchbend	, 10
    waith	, 12
    pitchbend	, 0
    waitw	, 152
    pitchbend	, -20
    waith	, 4
    pitchbend	, -13
    waith	, 4
    pitchbend	, -9
    waith	, 4
    pitchbend	, -4
    waith	, 4
    pitchbend	, 0
    vibdepth	,  18
    wait	, 48
    pitchbend	, -31
    waith	, 4
    pitchbend	, -46
    waith	, 4
    pitchbend	, -62
    waith	, 4
    pitchbend	, -93
    waith	, 4
    pitchbend	, -124
    waith	, 4
    pitchbend	, 0
    waith	, 12
    pitchbend	, -18
    waith	, 2
    pitchbend	, -17
    waith	, 2
    pitchbend	, -15
    waith	, 2
    pitchbend	, -10
    waith	, 2
    pitchbend	, -4
    waith	, 12
    pitchbend	, -9
    waith	, 4
    pitchbend	, -18
    waith	, 8
    pitchbend	, -18
    waith	, 2
    pitchbend	, -17
    waith	, 2
    pitchbend	, -15
    waith	, 2
    pitchbend	, -10
    waith	, 2
    pitchbend	, -4
    waith	, 12
    pitchbend	, -9
    waith	, 4
    pitchbend	, -18
    waith	, 8
    pitchbend	, -18
    waith	, 2
    pitchbend	, -17
    waith	, 2
    pitchbend	, -15
    waith	, 2
    pitchbend	, -10
    waith	, 2
    pitchbend	, -4
    wait	, 44
    pitchbend	, -9
    waith	, 4
    pitchbend	, -18
    wait	, 16
    pitchbend	, 0
    wait	, 24
    fin

_WR_PortPirates_song_sub6
    Bmode
    opennote,  0, _WR_PortPirates_song_sub6_note0
    opennote,  1, _WR_PortPirates_song_sub6_note1
    waitw	, 2304
    vibdepth	,   0
    pitchbend	, 0
    wait	, 96
    pitchbend	, -31
    waith	, 4
    pitchbend	, -23
    waith	, 4
    pitchbend	, -15
    waith	, 4
    pitchbend	, -7
    waith	, 4
    pitchbend	, 0
    wait	, 16
    vibdepth	,  15
    wait	, 48
    vibdepth	,   0
    waitw	, 136
    pitchbend	, -7
    waith	, 6
    pitchbend	, -15
    waith	, 6
    pitchbend	, -46
    waith	, 6
    pitchbend	, -93
    waitw	, 1110
    fin

;***************
;* NOTE TRACK  *
;***************

;*** block:Intro ***

_WR_PortPirates_Intro_sub0_note0
    ntrans, 12
    GN5B0	,   16, 127,  16
    GN5B2	      , 127,  16
    GN5B2	      , 127,  16
    GN5B2	      , 127,  16
    GN5B2	      , 127,  16
    GN5B1	,   15, 127
;steps:   95
    fin

;*** block:a ***

;*** block:song ***

_WR_PortPirates_song_sub0_note0
    call	, _WR_PortPirates_song_sub0_note0_pat1
    call	, _WR_PortPirates_song_sub0_note0_pat7
    call	, _WR_PortPirates_song_sub0_note0_pat1
    call	, _WR_PortPirates_song_sub0_note0_pat7
    call	, _WR_PortPirates_song_sub0_note0_pat1
    call	, _WR_PortPirates_song_sub0_note0_pat7
    call	, _WR_PortPirates_song_sub0_note0_pat1
    ntrans, 12
    GN5B0	,   16, 127,  16
    GN5B2	      , 127,  16
    GN5B2	      , 127,  16
    GN5B2	      , 127,  16
    GN5B2	      , 127,  16
    GN5B2	      , 127,  16
    GN5B2	      , 127,  16
    GN5B2	      , 127,  16
    GN5B2	      , 127,  16
    GN5B2	      , 127,  16
    GN5B2	      , 127,  16
    GN5B2	      , 127,  16
    call	, _WR_PortPirates_song_sub0_note0_pat1
    call	, _WR_PortPirates_song_sub0_note0_pat61
    call	, _WR_PortPirates_song_sub0_note0_pat1
    call	, _WR_PortPirates_song_sub0_note0_pat61
    ntrans,  0
    GN3B0	,   32, 127, 160
    GN3B0	,   16, 127,  64
    ntrans, 12
    GN5B0	,    8, 127,  32
    GN5B2	      , 100,  32
    GN5B0	,   16,  80,  16
    GN5B0	,   48, 127, 128
    GN2B2	      , 127, 192
    GN5B0	,   16, 127,  16
    GN5B2	      , 127,  16
    GN5B2	      , 127,  16
    GN5B0	,   48, 127,  91
    GN2B0	,   64, 127, 208
    GN5B0	,   32, 127,  64
    GN2B0	,   64, 127, 208
    GN5B0	,   32, 127,  64
    GN2B0	,   64, 127, 208
    GN5B0	,   32, 127,  64
    GN2B0	,   64, 127, 208
    GN5B0	,   32, 127,  64
    GN2B0	,   48, 127, 192
    GN2B0	,   16, 127,  64
    GN5B0	,   48, 127, 128
    call	, _WR_PortPirates_song_sub0_note0_pat1
    call	, _WR_PortPirates_song_sub0_note0_pat1
    call	, _WR_PortPirates_song_sub0_note0_pat7
    ntrans, 12
    GN5B0	,   32, 127,  64
    GN5B0	,    8, 127,  32
    GN5B2	      , 127,  32
    GN5B0	,   16, 127,  16
    GN5B2	      , 127,  16
    GN5B1	,   15, 127
;steps: 3743
    fin

_WR_PortPirates_song_sub0_note1
    XXXw	, 2400
    GN3B0W	,  144, 127, 234
    GN3B1	,   12, 127
    XXX	, 3
;steps: 2559
    fin

_WR_PortPirates_song_sub1_note0
    call	, _WR_PortPirates_song_sub1_note0_pat1
    call	, _WR_PortPirates_song_sub1_note0_pat5
    call	, _WR_PortPirates_song_sub1_note0_pat1
    call	, _WR_PortPirates_song_sub1_note0_pat5
    call	, _WR_PortPirates_song_sub1_note0_pat1
    call	, _WR_PortPirates_song_sub1_note0_pat5
    DN4B0	,   48, 100,   6
    DN4B2	      , 120,   6
    DN4B2	      , 100,   6
    DN4B0W	,  240, 127, 206
    call	, _WR_PortPirates_song_sub1_note0_pat1
    call	, _WR_PortPirates_song_sub1_note0_pat1
    call	, _WR_PortPirates_song_sub1_note0_pat1
    call	, _WR_PortPirates_song_sub1_note0_pat1
    DN4B0	,   32, 127,   8
    DN4B0	,   64, 127,   4
    DN4B0	,   32, 127,   8
    DN4B0	,  112, 127,   3
    DN4B0	,   32, 127,   8
    DN4B0	,   64, 127,   4
    DN4B0	,   32,  80,   8
    DN4B0	,   64, 127,   4
    DN4B0	,   32,  80,   8
    DN4B0	,   64, 127,   4
    DN4B0	,   32,  80,   8
    DN4B0	,   64, 127,   4
    DN4B0	,   32,  80,   8
    DN4B0	,   64, 127,   4
    DN4B0	,   48, 120,   6
    call	, _WR_PortPirates_song_sub1_note0_pat1
    call	, _WR_PortPirates_song_sub1_note0_pat1
    DN4B0	,   48, 100,   6
    DN4B2	      , 120,   6
    DN4B0	,   32,  80,   8
    DN4B2	      , 127,   8
    DN4B2	      , 127,   8
    DN4B1	,   95, 127
    XXX	, 1
;steps: 3744
    fin

_WR_PortPirates_song_sub2_note0
    call	, _WR_PortPirates_song_sub2_note0_pat1
    call	, _WR_PortPirates_song_sub2_note0_pat5
    call	, _WR_PortPirates_song_sub2_note0_pat1
    call	, _WR_PortPirates_song_sub2_note0_pat5
    call	, _WR_PortPirates_song_sub2_note0_pat1
    call	, _WR_PortPirates_song_sub2_note0_pat5
    ntrans,-12
    CN2B0	,   32, 127,  64
    CN2B0W	,  160, 127, 230
    GN2B1	,   48, 127
    CN3B1	,   32, 127
    FN3B2	      , 120,   0
    GN3B2	      , 110,   0
    GN3B2	      , 100,   0
    DS4B1	,   16, 120
    call	, _WR_PortPirates_song_sub2_note0_pat36
    call	, _WR_PortPirates_song_sub2_note0_pat44
    call	, _WR_PortPirates_song_sub2_note0_pat36
    call	, _WR_PortPirates_song_sub2_note0_pat44
    ntrans,  0
    AS2B1	,   32,  90
    CN3B0	,   16,  90,  64
    CN3B2	      ,  90,   0
    AS2B2	      ,  90,   0
    GN2B2	      ,  90,   0
    FN3B1	,   32,  90
    DS3B0	,   48,  90,  43
    DS3B1	,   16,  90
    CN3B2	      ,  90,   0
    AS2B2	      ,  90,   0
    GN2B2	      ,  90,   0
    CN3B1	,   32,  90
    DS2B1	,   64,  90
    ntrans,-12
    DS2B1	,   32, 127
    CS2B0	,   64, 127,  32
    CS2B1	,   32, 127
    CN2B0	,   64, 127,  32
    CN2B1	,   32, 127
    AS1B0	,   64, 127,  32
    AS1B1	,   32, 100
    FN2B0	,   48, 120,  54
    FN2B0	,   16, 120, 160
    FN2B0	,   32, 120, 160
    FN2B0	,   16, 120, 160
    FN2B0	,   32, 120, 160
    FN2B0	,   16, 120, 160
    FN2B0	,   32, 120, 160
    FN2B0	,   16, 120, 160
    FN2B0	,   32, 127, 160
    FN2B0	,   16, 120, 160
    FN2B0	,   32, 120, 160
    FN2B0	,   16, 120, 160
    FN2B0	,   32, 120, 160
    FN2B0	,   16, 120, 160
    FN2B0	,   32, 120, 160
    FN2B0	,   16, 120, 160
    EN2B0	,   32, 127, 160
    EN2B0	,   16, 127, 160
    EN2B0	,   32, 127, 160
    EN2B0	,   16, 127, 160
    EN2B0	,   32, 127, 160
    EN2B0	,   16, 127, 160
    EN2B0	,   32, 127, 160
    EN2B0	,   16, 127, 160
    EN2B0	,   32, 127, 192
    FS3B2	      ,  90,  24
    FS3B2	      ,  90,  24
    FS3B1	,   47,  90
;steps: 3695
    fin

_WR_PortPirates_song_sub2_note1
    XXXw	, 2640
    DS2B1	,   32, 100
    CS2B0	,   64, 100,  32
    CS2B1	,   32, 100
    CN2B0	,   64, 100,  32
    CN2B1	,   32, 100
    ntrans,-12
    AS2B0	,   64, 100,  32
    AS2B0W	,  656, 100, 243
    FS2B0	,   32, 127,  24
    FS2B2	      , 127,  24
    FS2B1	,   47, 127
;steps: 3695
    fin

_WR_PortPirates_song_sub3_note0
    XXX	, 48
    EN4B0	,   96,  90, 128
    EN4B2	      ,  90, 128
    call	, _WR_PortPirates_song_sub3_note0_pat3
    call	, _WR_PortPirates_song_sub3_note0_pat6
    EN4B0	,   80,  90, 102
    DN4B0	,   32,  90,  16
    DN4B0	,   80,  90, 160
    call	, _WR_PortPirates_song_sub3_note0_pat6
    call	, _WR_PortPirates_song_sub3_note0_pat3
    AS4B0W	,  336,  90,   1
    call	, _WR_PortPirates_song_sub3_note0_pat17
    call	, _WR_PortPirates_song_sub3_note0_pat24
    call	, _WR_PortPirates_song_sub3_note0_pat17
    call	, _WR_PortPirates_song_sub3_note0_pat24
    GN4B0	,   96,  70,   3
    FN4B0W	,  144,  70,  24
    FN4B1	,   32,  70
    AS4B0	,   64,  70,   4
    DS4B1	,   32, 100
    CS4B0	,   64,  80,   8
    FN4B1	,   32, 100
    EN4B0	,   64,  80,   8
    GN4B1	,   32, 100
    FN4B0	,   64,  80,   8
    AN4B1	,   32, 100
    GN4B0W	,  400,  80,   1
    CS5B0W	,  224,  80,  24
    GS4B0	,   32, 110,  24
    GS4B2	      , 110,  24
    GS4B0	,   36, 110,   8
    CS5B0	,    6, 100,  43
    GS4B2	      , 100,  43
    DS4B2	      , 100,  43
    AS3B2	      , 100,  43
    FS3B2	      , 100,  43
    CS3B2	      , 100,  43
    GS2B2	      , 100,  43
    DS2B1	,    5, 100
    XXX	, 3
;steps: 3734
    fin

_WR_PortPirates_song_sub3_note1
    XXX	, 48
    AS4B0	,   96,  90, 128
    AS4B2	      ,  90, 128
    call	, _WR_PortPirates_song_sub3_note1_pat3
    call	, _WR_PortPirates_song_sub3_note1_pat6
    AS4B0	,   80,  90, 102
    GS3B0	,   32,  90,  16
    CS5B0	,   80,  90, 160
    call	, _WR_PortPirates_song_sub3_note1_pat6
    call	, _WR_PortPirates_song_sub3_note1_pat3
    EN4B0W	,  432,  90,  58
    call	, _WR_PortPirates_song_sub3_note1_pat17
    GN4B1	,   32,  80
    GN4B0W	,  208,  80, 118
    call	, _WR_PortPirates_song_sub3_note1_pat17
    GN4B1	,   32,  80
    GN4B1	,  112,  80
    CN4B0	,   96,  70,   3
    DS4B0W	,  144,  70,  24
    GN4B1	,   32,  70
    FN4B0	,   64,  70,   4
    AS3B1	,   32,  80
    FN4B0	,   64, 100,   8
    GS3B1	,   32,  80
    GN4B0	,   64, 100,   8
    CN4B1	,   32,  80
    AN4B0	,   64, 100,   8
    FN4B1	,   32,  80
    BN4B0W	,  400,  80,   1
    AN4B0W	,  224,  80,  24
    AS3B0	,   32, 110,  24
    AS3B2	      , 110,  24
    AS3B0	,   36, 110,   8
    GS4B0	,    6, 100,  43
    DS4B2	      , 100,  43
    AS3B2	      , 100,  43
    FS3B2	      , 100,  43
    CS3B2	      , 100,  43
    GS2B2	      , 100,  43
    DS2B2	      , 100,  43
    AS1B1	,    5, 100
;steps: 3731
    fin

_WR_PortPirates_song_sub3_note2
    XXX	, 48
    DS5B0	,   96,  90, 128
    DS5B2	      ,  90, 128
    call	, _WR_PortPirates_song_sub3_note2_pat3
    call	, _WR_PortPirates_song_sub3_note2_pat6
    DS5B0	,   80,  90, 102
    CS5B0	,   32,  90,  16
    GS3B0	,   80,  90, 160
    call	, _WR_PortPirates_song_sub3_note2_pat6
    call	, _WR_PortPirates_song_sub3_note2_pat3
    AN5B0W	,  432,  90,  58
    call	, _WR_PortPirates_song_sub3_note2_pat17
    CN5B1	,   32, 100
    DS5B0W	,  208, 100, 118
    call	, _WR_PortPirates_song_sub3_note2_pat17
    CN5B1	,   32, 100
    DS5B1	,  112, 100
    FN4B0	,   96,  70,   3
    AS4B0W	,  144,  70,  24
    CN4B1	,   32,  70
    DS4B0	,   64,  70,   4
    GN3B1	,   32,  80
    GS3B0	,   64,  80,   8
    CS4B1	,   32,  80
    CN4B0	,   64,  80,   8
    EN4B1	,   32,  80
    CN4B0	,   64,  80,   8
    CN4B1	,   32,  80
    DN4B0W	,  400,  80,   1
    EN4B0W	,  224,  80,  24
    DS4B0	,   32, 110,  24
    EN3B2	      , 110,  24
    DS4B0	,   39, 110,  27
    AS4B0	,    6, 100,  43
    FS4B2	      , 100,  43
    CS4B2	      , 100,  43
    GS3B2	      , 100,  43
    DS3B2	      , 100,  43
    FS2B2	      , 100,  43
    FS2B2	      , 100,  43
    CS2B1	,    5, 100
;steps: 3734
    fin

_WR_PortPirates_song_sub3_note3
    XXXw	, 1712
    DS5B0W	,  384, 100, 245
    DS5B0W	, 1488, 100, 253
    EN3B0	,   32, 110,  24
    DS4B2	      , 110,  24
    EN3B0	,   39, 110,  27
    FS4B0	,    6, 100,  43
    CS4B2	      , 100,  43
    GS3B2	      , 100,  43
    DS3B2	      , 100,  43
    AS2B2	      , 100,  43
    CN4B2	      , 100,  43
    CS2B2	      , 100,  43
    GS1B1	,    5, 100
    XXX	, 9
;steps: 3743
    fin

_WR_PortPirates_song_sub4_note0
    call	, _WR_PortPirates_song_sub4_note0_pat1
    FS2B0	,   16, 117, 208
    CN3B2	      , 117, 176
    FS2B2	      , 117, 144
    AS2B1	,   48,  90
    FS2B0	,   16, 117, 160
    CN3B2	      , 117, 160
    GN2B0	,   32,  80,  16
    GN2B2	      ,  80,  16
    call	, _WR_PortPirates_song_sub4_note0_pat1
    FS2B0	,   16, 117, 208
    CN3B2	      , 117, 176
    FS2B2	      , 117, 144
    AS2B1	,   48,  90
    FS2B0	,   16, 117, 160
    CN3B2	      , 117, 160
    DN2B0	,   32,  80,  16
    DN2B2	      ,  80, 232
    call	, _WR_PortPirates_song_sub4_note0_pat1
    FS2B0	,   16, 117, 208
    CN3B2	      , 117, 176
    FS2B2	      , 117, 144
    AS2B1	,   48,  90
    FS2B0	,   16, 117, 160
    CN3B2	      , 117, 160
    GN2B0	,   32,  80,  16
    GN2B0W	,  158,  80, 207
    BN1B1	,    6, 127
    CS2B2	      , 127,   0
    DS2B2	      , 127,   0
    DS3B2	      , 127,   0
    CS3B2	      , 127,   0
    BN2B2	      , 127,   0
    AN2B2	      , 127,   0
    GN2B2	      , 127,   0
    FN2B2	      , 127,   0
    DS2B2	      , 127,   0
    CS2B2	      , 127,   0
    FN2B1	,   16, 127
    FS2B2	      , 127,   0
    GN2B0	,   32, 127,  96
    CN3B2	      , 127,  96
    GS3B1	,   16, 127
    GS3B2	      , 127,   0
    GS3B0	,   32, 127,  96
    GS3B2	      , 127,  96
    call	, _WR_PortPirates_song_sub4_note0_pat68
    call	, _WR_PortPirates_song_sub4_note0_pat74
    call	, _WR_PortPirates_song_sub4_note0_pat68
    call	, _WR_PortPirates_song_sub4_note0_pat74
    FN4B1	,   32, 100
    GN4B2	      , 100,   0
    AS4B2	      , 127,  96
    FN5B2	      , 127,   0
    DS5B0	,   48, 127,   6
    DS5B0	,   32, 127,  96
    AS4B0	,   16, 127,  16
    GN4B0	,   48, 127,   6
    DS4B0	,   64, 127,   4
    DS5B0	,   32, 127,   8
    FN5B0	,   48, 127,   6
    CS1B0	,   16, 127,  16
    FN5B0	,   32, 127,   8
    GN5B0	,   48, 127,   6
    CS1B0	,   16, 127,  16
    GN5B0	,   32, 127,   8
    AN5B0	,   48, 127,   6
    CS1B0	,   16, 127,  16
    AN5B0	,   32, 127,   8
    BN5B0	,   76, 127,  37
    GN5B0	,   24, 110,  11
    DN5B0	,   36, 110,   8
    CN5B0	,   12, 110,  22
    GN4B0	,   24, 110,  11
    DN4B2	      , 110,  11
    BN3B2	      , 110,  11
    DN4B0	,   12, 110,  22
    AN4B0	,   24, 110,  11
    CS5B2	      , 110,  11
    DS5B0	,   12, 110,  22
    CS5B0	,   24, 110,  11
    CN5B2	      , 110,  11
    BN4B2	      , 110, 139
    AN4B2	      , 110,  11
    GS4B0	,   44, 110, 192
    GN4B0	,   16, 110,  16
    EN5B2	      , 110,  16
    CN5B2	      , 110,  16
    DS5B2	      , 110,  16
    CS5B0	,   32, 110, 136
    DN5B0	,   96,  70,  88
    DS5B0	,   32, 127,  32
    DS5B2	      , 127,  32
    DS5B1	,   59, 127
;steps: 3707
    fin

_WR_PortPirates_song_sub4_note1
    XXX	, 48
    DS3B0	,   96, 100, 128
    DS3B2	      , 100, 128
    DS3B0	,   80, 100, 102
    FS3B0	,   32, 100,  16
    FS3B0	,   80, 100, 160
    call	, _WR_PortPirates_song_sub4_note1_pat6
    DS3B0	,   80, 100, 102
    CS3B0	,   32, 100,  16
    CS3B0	,   80, 100, 160
    call	, _WR_PortPirates_song_sub4_note1_pat6
    DS3B0	,   80, 100, 102
    FS3B0	,   32, 100,  16
    FS3B0W	,  272, 100, 227
    AS2B0	,   32, 127, 128
    DS3B0	,   64, 127, 192
    AS3B0	,   32, 127, 128
    DS3B1	,   16, 127
    call	, _WR_PortPirates_song_sub4_note1_pat20
    call	, _WR_PortPirates_song_sub4_note1_pat25
    call	, _WR_PortPirates_song_sub4_note1_pat20
    call	, _WR_PortPirates_song_sub4_note1_pat25
    AS4B1	,   32, 127
    CN5B0	,   16, 127,  64
    CN5B0	,   32, 127, 128
    GN4B0	,  112, 127, 228
    CN5B0	,   48, 127, 176
    CN5B1	,   32, 127
    AS4B0W	,  912, 100, 238
    GN5B1	,   63, 110
    XXX	, 1
;steps: 3552
    fin

_WR_PortPirates_song_sub4_note2
    XXXw	, 320
    CS4B0	,   32,  70,  16
    CS4B0W	,  352,  70, 234
    GS3B0	,   32,  70,  16
    GS3B0W	,  352,  70, 234
    CS4B0	,   32,  70,  16
    CS4B1	,   30,  70
    XXX	, 1
;steps: 1151
    fin

_WR_PortPirates_song_sub5_note0
    XXXw	, 2640
    DS5B0	,   32, 100,   8
    FN5B0	,   64, 100,  68
    FN5B0	,   32, 100,   8
    GN5B0	,   64, 100,  68
    GN5B0	,   32, 100,   8
    AN5B0	,   64, 100,  68
    AN5B0	,   32, 100,   8
    BN5B0	,   76,  80,  37
    GN5B0	,   24,  80,  11
    DN5B0	,   36,  80,   8
    CN5B0	,   12,  80,  22
    GN4B0	,   24,  80,  11
    DN4B2	      ,  80,  11
    BN3B2	      ,  80,  11
    DN4B0	,   12,  80,  22
    AN4B0	,   24,  80,  11
    CS5B2	      ,  80,  11
    DS5B0	,   12,  80,  22
    CS5B0	,   24,  80,  11
    CN5B2	      ,  80,  11
    BN4B2	      ,  80, 139
    AN4B2	      ,  80,  11
    GS4B0	,   44,  80, 192
    GN4B0	,   16,  80,  16
    EN5B2	      ,  80,  16
    CN5B2	      ,  80,  16
    DS5B2	      ,  80,  16
    CS5B0	,   32,  80, 136
    DN5B0	,   96,  60,  88
    DS5B0	,   32, 127,  32
    DS5B2	      , 127,  32
    DS5B1	,   59, 127
;steps: 3707
    fin

_WR_PortPirates_song_sub5_note1
    XXXw	, 3488
    GN5B1	,   63,  80
;steps: 3551
    fin

_WR_PortPirates_song_sub6_note0
    XXXw	, 2304
    FN4B1	,   32,  90
    GN4B2	      ,  90,   0
    AS4B2	      , 110,  96
    FN5B2	      , 110,   0
    DS5B0	,   48, 110,   6
    DS5B0	,   32, 110,  96
    AS4B0	,   16, 110,  16
    GN4B0	,   48, 110,   6
    DS4B1	,   63, 110
;steps: 2639
    fin

_WR_PortPirates_song_sub6_note1
    XXXw	, 2304
    AS4B1	,   32, 110
    CN5B0	,   16, 110,  64
    CN5B0	,   32, 110, 128
    GN4B0	,  112, 110, 228
    CN5B0	,   48, 110, 176
    CN5B1	,   32, 110
    AS4B1	,   63,  90
;steps: 2639
    fin

;*************
;*  PATTERN  *
;*************


_WR_PortPirates_song_sub0_note0_pat1
    ntrans,  0
    GN3B0	,   32, 127, 160
    GN3B0	,   16, 127,  64
    ntrans, 12
    GN5B0	,   48, 127, 128
    GN2B0	,   32, 127, 160
    GN2B0	,   16, 127,  64
    GN5B0	,   48, 127, 128
    fin

_WR_PortPirates_song_sub0_note0_pat7
    ntrans,  0
    GN3B0	,   32, 127, 160
    GN3B0	,   16, 127,  64
    ntrans, 12
    GN5B0	,   48, 127, 128
    GN2B0	,   32, 127, 160
    GN5B2	      , 127,  64
    GN5B2	      , 127,  64
    fin

_WR_PortPirates_song_sub0_note0_pat61
    ntrans,  0
    GN3B0	,   32, 127, 160
    GN3B0	,   16, 127,  64
    ntrans, 12
    GN5B0	,   32, 127,  64
    GN2B0	,   48, 127, 192
    GN2B0	,   16, 127,  64
    GN5B0	,   48, 127, 128
    fin

_WR_PortPirates_song_sub1_note0_pat1
    DN4B0	,   48, 100,   6
    DN4B2	      , 120,   6
    DN4B2	      , 100,   6
    DN4B2	      , 120,   6
    fin

_WR_PortPirates_song_sub1_note0_pat5
    DN4B0	,   48, 100,   6
    DN4B2	      , 120,   6
    DN4B0	,   32, 100,   8
    DN4B2	      , 120,   8
    DN4B2	      , 127,   8
    fin

_WR_PortPirates_song_sub2_note0_pat1
    ntrans,  0
    ntrans,-12
    CN2B0	,   32, 127,  64
    CN2B0	,   64, 127, 192
    CN2B0	,   32, 127,  64
    CN2B0	,   64, 127, 192
    fin

_WR_PortPirates_song_sub2_note0_pat5
    ntrans,  0
    ntrans,-12
    CN2B0	,   32, 127,  64
    CN2B0	,   64, 127, 192
    GN2B0	,   32, 127, 112
    GN2B2	      , 127,  64
    GN2B2	      , 127,  64
    fin

_WR_PortPirates_song_sub2_note0_pat36
    ntrans,  0
    ntrans,-12
    AS2B1	,   32, 120
    CN3B0	,   16, 120, 128
    CN3B2	      , 120,   0
    AS2B2	      , 120,   0
    GN2B2	      , 100, 128
    FN3B1	,   32, 110
    DS3B0	,   48, 120,  43
    DS3B1	,   16, 120
    fin

_WR_PortPirates_song_sub2_note0_pat44
    ntrans,  0
    CN2B1	,   16, 120
    ntrans,-12
    AS2B2	      , 120,   0
    GN2B2	      , 120,   0
    CN3B1	,   32, 120
    DS2B0	,  112, 127,  73
    fin

_WR_PortPirates_song_sub3_note0_pat3
    EN4B0	,   80,  90, 102
    GN4B0	,   32,  90,  16
    GN4B0	,   80,  90, 160
    fin

_WR_PortPirates_song_sub3_note0_pat6
    EN4B0	,   96,  90, 128
    EN4B2	      ,  90, 128
    fin

_WR_PortPirates_song_sub3_note0_pat17
    AS4B0	,   32, 100,  32
    CN5B0	,   16, 100,  16
    CN5B2	      , 100,   0
    AS4B2	      , 100,   0
    GN4B2	      , 100,   0
    AN4B1	,   32,  80
    GN4B1	,   64,  80
    fin

_WR_PortPirates_song_sub3_note0_pat24
    CN5B1	,   16, 100
    AS4B2	      , 100,   0
    GN4B2	      , 100,   0
    EN4B1	,   32,  80
    AS4B1	,  112,  80
    fin

_WR_PortPirates_song_sub3_note1_pat3
    AS4B0	,   80,  90, 102
    CS4B0	,   32,  90,  16
    FS5B0	,   80,  90, 160
    fin

_WR_PortPirates_song_sub3_note1_pat6
    AS4B0	,   96,  90, 128
    AS4B2	      ,  90, 128
    fin

_WR_PortPirates_song_sub3_note1_pat17
    FN5B1	,   32, 100
    AS4B0	,  112,  80, 110
    fin

_WR_PortPirates_song_sub3_note2_pat3
    DS5B0	,   80,  90, 102
    FS5B0	,   32,  90,  16
    CS4B0	,   80,  90, 160
    fin

_WR_PortPirates_song_sub3_note2_pat6
    DS5B0	,   96,  90, 128
    DS5B2	      ,  90, 128
    fin

_WR_PortPirates_song_sub3_note2_pat17
    CN5B1	,   32,  80
    DS5B0	,  112, 100, 110
    fin

_WR_PortPirates_song_sub4_note0_pat1
    FS2B0	,   16, 117, 208
    CN3B2	      , 117, 176
    FS2B2	      , 117, 144
    AS2B1	,   48,  90
    FS2B0	,   16, 117, 208
    CN3B2	      , 117, 176
    FS2B2	      , 117, 144
    AS2B1	,   48,  90
    fin

_WR_PortPirates_song_sub4_note0_pat68
    FN3B0	,   48, 100,  43
    CN3B1	,   16, 127
    AS2B0	,   32, 127,  96
    CN4B2	      , 100,   0
    AS3B0	,   48, 100,   6
    AS2B1	,   16, 127
    fin

_WR_PortPirates_song_sub4_note0_pat74
    CN3B1	,   16, 127
    AS2B0	,   32, 127,  96
    GN3B2	      , 100,   0
    DS3B0	,  112, 127,  14
    fin

_WR_PortPirates_song_sub4_note1_pat6
    DS3B0	,   96, 100, 128
    DS3B2	      , 100, 128
    fin

_WR_PortPirates_song_sub4_note1_pat20
    AS2B0	,   32, 127,  32
    CN3B0	,   48, 127, 192
    GN2B0	,   16, 127,  64
    FN3B1	,   32, 127
    DS3B0	,   96, 127,  85
    fin

_WR_PortPirates_song_sub4_note1_pat25
    GN2B1	,   16, 127
    CN3B1	,   32, 127
    AS2B0	,  112, 100,  14
    fin

