-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathexport_sequence.rexx
executable file
·40 lines (35 loc) · 1.02 KB
/
export_sequence.rexx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/* Export block names in sequence*/
SAY "Sequence of blocks in OctaMED SS song, by names"
SAY "v1.0 - AreXX script by www.KONEY.org 2020"
SAY "-----------------------------------------------"
address OCTAMED_REXX
options results
/* Add libs. */
/*library = 'rexxmathlib.library'
IF ~SHOW( 'L', library ) THEN DO
IF ~ADDLIB( library, 0, -30, 0 ) THEN DO
SAY 'Failed to add library ' || library || '.'
EXIT 10
END
END*/
library = 'rexxsupport.library'
IF ~SHOW( 'L', library ) THEN DO
IF ~ADDLIB( library, 0, -30, 0 ) THEN DO
SAY 'Failed to add library ' || library || '.'
EXIT 10
END
END
P61_POS=0
/* CYCLE SEQUENCE */
ED_GETNUMPLAYSEQ var total_sequence_blocks
op_update off /* Thanks to AlphA202303 for this command! */
DO seq_pos = 1 to total_sequence_blocks
'ED_GETPLAYSEQBLOCK' seq_pos 'var cur_block'
'ED_GOTO b' cur_block
'ED_GETBLOCKNAME b' cur_block 'var block_name'
P61_POS=seq_pos-1
SAY P61_POS' 'cur_block': 'block_name
END /* BLOCK SEQ*/
op_update on
SAY '-----------------------'
'wi_showstring FINISH'