-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSequenceTester
58 lines (50 loc) · 1.46 KB
/
SequenceTester
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
-- KODE ER FULDT FUNKTIONEL
function print (msg)
gma.feedback(msg)
gma.echo(msg)
end
function main()
local colors = {
'White', 'Red', 'Orange', 'Yellow', 'Lime', 'Green',
'Coral', 'Turquoise', 'LightBlue', 'Blue', 'Purple',
'Pink', 'Magenta',}
--giving color info
seqNum = 0
for j = 1, 3, 1 do -- need better way to denote number of groups
local groupNum = j
for i = 1, 13, 1 do
local colorNum = i
seqNum = seqNum + 1
print(seqNum)
gma.cmd('Group '..groupNum)
gma.cmd('At Preset 4.'..colorNum)
-- if loop sørger for at der bliver talt rigtigt
if seqNum < 10 then
gma.cmd('Store Sequence 1.80'..seqNum)
else
gma.cmd('Store Sequence 1.8'..seqNum)
end
-- renaming of sequence
-- if loop sørger for at der tælles rigtigt
if seqNum < 10 then
gma.cmd('Label Sequence 1.80'..seqNum..' \"'..colors[i]..'\"')
else
gma.cmd('Label Sequence 1.8'..seqNum..' \"'..colors[i]..'\"')
end
print('Inner loop '..i..' done')
end
end
end
return main
--[[ KODE DER VIRKER
seqNum = 0
for j = 1, 3, 1 do
for i = 1, 13, 1 do
local colorNum = i
seqNum = seqNum + 1
print('seqNum = '..seqNum)
print('colorNum = '..colorNum)
print('Inner loop '..i..' done')
end
end
]]--