Skip to content

Commit

Permalink
Some adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
Oystein Holmen committed Mar 5, 2023
1 parent 8b51eae commit c976574
Show file tree
Hide file tree
Showing 8 changed files with 53 additions and 53 deletions.
20 changes: 10 additions & 10 deletions compiled/modular/multiSequenceTriggerCompiled.lua
Original file line number Diff line number Diff line change
Expand Up @@ -446,16 +446,9 @@ function startPlaying()
if isPlaying == true then
return
end
seqIndex = gem.inc(seqIndex)
spawn(pageRunner, seqIndex)
playingIndex = {}
for i=1,numParts do
--print("Start playing", i)
playIndex = gem.inc(playIndex)
table.insert(playingIndex, playIndex)
spawn(arpeg, i, playIndex)
end
isPlaying = true
seqIndex = gem.inc(seqIndex)
run(pageRunner, seqIndex)
end

function stopPlaying()
Expand Down Expand Up @@ -1075,6 +1068,13 @@ footerPanel.y = paramsPerPage[1].sequencerPanel.y + paramsPerPage[1].sequencerPa
--------------------------------------------------------------------------------

function pageRunner(uniqueId)
playingIndex = {}
for i=1,numParts do
--print("Start playing", i)
playIndex = gem.inc(playIndex)
table.insert(playingIndex, playIndex)
spawn(arpeg, playIndex, i)
end
local rounds = 0
while isPlaying and seqIndex == uniqueId do
rounds = rounds + 1
Expand All @@ -1096,7 +1096,7 @@ function pageRunner(uniqueId)
end
end

function arpeg(part, uniqueId)
function arpeg(uniqueId, part)
local index = 0
local partDirectionBackward = false
while isPlaying and playingIndex[part] == uniqueId do
Expand Down
2 changes: 1 addition & 1 deletion compiled/modular/rythmicFragmentsTriggerCompiled.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1495,7 +1495,6 @@ local function sequenceRunner(uniqueId)
local partInfo = nil
local startEvolve = false -- Can be set by part order
local beatCounter = 1 -- Holds the beat count
isPlaying = true
initVoices()
while isPlaying and seqIndex == uniqueId do
print("Playing beat", beatCounter)
Expand Down Expand Up @@ -1561,6 +1560,7 @@ local function startPlaying()
if isPlaying then
return
end
isPlaying = true
seqIndex = gem.inc(seqIndex)
run(sequenceRunner, seqIndex)
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1495,7 +1495,6 @@ local function sequenceRunner(uniqueId)
local partInfo = nil
local startEvolve = false -- Can be set by part order
local beatCounter = 1 -- Holds the beat count
isPlaying = true
initVoices()
while isPlaying and seqIndex == uniqueId do
print("Playing beat", beatCounter)
Expand Down Expand Up @@ -1561,6 +1560,7 @@ local function startPlaying()
if isPlaying then
return
end
isPlaying = true
seqIndex = gem.inc(seqIndex)
run(sequenceRunner, seqIndex)
end
Expand Down
20 changes: 10 additions & 10 deletions compiled/modular/sequenceTriggerCompiled.lua
Original file line number Diff line number Diff line change
Expand Up @@ -446,16 +446,9 @@ function startPlaying()
if isPlaying == true then
return
end
seqIndex = gem.inc(seqIndex)
spawn(pageRunner, seqIndex)
playingIndex = {}
for i=1,numParts do
--print("Start playing", i)
playIndex = gem.inc(playIndex)
table.insert(playingIndex, playIndex)
spawn(arpeg, i, playIndex)
end
isPlaying = true
seqIndex = gem.inc(seqIndex)
run(pageRunner, seqIndex)
end

function stopPlaying()
Expand Down Expand Up @@ -1075,6 +1068,13 @@ footerPanel.y = paramsPerPage[1].sequencerPanel.y + paramsPerPage[1].sequencerPa
--------------------------------------------------------------------------------

function pageRunner(uniqueId)
playingIndex = {}
for i=1,numParts do
--print("Start playing", i)
playIndex = gem.inc(playIndex)
table.insert(playingIndex, playIndex)
spawn(arpeg, playIndex, i)
end
local rounds = 0
while isPlaying and seqIndex == uniqueId do
rounds = rounds + 1
Expand All @@ -1096,7 +1096,7 @@ function pageRunner(uniqueId)
end
end

function arpeg(part, uniqueId)
function arpeg(uniqueId, part)
local index = 0
local partDirectionBackward = false
while isPlaying and playingIndex[part] == uniqueId do
Expand Down
20 changes: 10 additions & 10 deletions compiled/sequencers/stochasticDrumSequencerCompiled.lua
Original file line number Diff line number Diff line change
Expand Up @@ -446,16 +446,9 @@ function startPlaying()
if isPlaying == true then
return
end
seqIndex = gem.inc(seqIndex)
spawn(pageRunner, seqIndex)
playingIndex = {}
for i=1,numParts do
--print("Start playing", i)
playIndex = gem.inc(playIndex)
table.insert(playingIndex, playIndex)
spawn(arpeg, i, playIndex)
end
isPlaying = true
seqIndex = gem.inc(seqIndex)
run(pageRunner, seqIndex)
end

function stopPlaying()
Expand Down Expand Up @@ -1075,6 +1068,13 @@ footerPanel.y = paramsPerPage[1].sequencerPanel.y + paramsPerPage[1].sequencerPa
--------------------------------------------------------------------------------

function pageRunner(uniqueId)
playingIndex = {}
for i=1,numParts do
--print("Start playing", i)
playIndex = gem.inc(playIndex)
table.insert(playingIndex, playIndex)
spawn(arpeg, playIndex, i)
end
local rounds = 0
while isPlaying and seqIndex == uniqueId do
rounds = rounds + 1
Expand All @@ -1096,7 +1096,7 @@ function pageRunner(uniqueId)
end
end

function arpeg(part, uniqueId)
function arpeg(uniqueId, part)
local index = 0
local partDirectionBackward = false
while isPlaying and playingIndex[part] == uniqueId do
Expand Down
20 changes: 10 additions & 10 deletions compiled/util/noteTriggerCompiled.lua
Original file line number Diff line number Diff line change
Expand Up @@ -446,16 +446,9 @@ function startPlaying()
if isPlaying == true then
return
end
seqIndex = gem.inc(seqIndex)
spawn(pageRunner, seqIndex)
playingIndex = {}
for i=1,numParts do
--print("Start playing", i)
playIndex = gem.inc(playIndex)
table.insert(playingIndex, playIndex)
spawn(arpeg, i, playIndex)
end
isPlaying = true
seqIndex = gem.inc(seqIndex)
run(pageRunner, seqIndex)
end

function stopPlaying()
Expand Down Expand Up @@ -1075,6 +1068,13 @@ footerPanel.y = paramsPerPage[1].sequencerPanel.y + paramsPerPage[1].sequencerPa
--------------------------------------------------------------------------------

function pageRunner(uniqueId)
playingIndex = {}
for i=1,numParts do
--print("Start playing", i)
playIndex = gem.inc(playIndex)
table.insert(playingIndex, playIndex)
spawn(arpeg, playIndex, i)
end
local rounds = 0
while isPlaying and seqIndex == uniqueId do
rounds = rounds + 1
Expand All @@ -1096,7 +1096,7 @@ function pageRunner(uniqueId)
end
end

function arpeg(part, uniqueId)
function arpeg(uniqueId, part)
local index = 0
local partDirectionBackward = false
while isPlaying and playingIndex[part] == uniqueId do
Expand Down
2 changes: 1 addition & 1 deletion modular/rythmicFragmentsTrigger.lua
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,6 @@ local function sequenceRunner(uniqueId)
local partInfo = nil
local startEvolve = false -- Can be set by part order
local beatCounter = 1 -- Holds the beat count
isPlaying = true
initVoices()
while isPlaying and seqIndex == uniqueId do
print("Playing beat", beatCounter)
Expand Down Expand Up @@ -301,6 +300,7 @@ local function startPlaying()
if isPlaying then
return
end
isPlaying = true
seqIndex = gem.inc(seqIndex)
run(sequenceRunner, seqIndex)
end
Expand Down
20 changes: 10 additions & 10 deletions sequencers/stochasticDrumSequencer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -107,16 +107,9 @@ function startPlaying()
if isPlaying == true then
return
end
seqIndex = gem.inc(seqIndex)
spawn(pageRunner, seqIndex)
playingIndex = {}
for i=1,numParts do
--print("Start playing", i)
playIndex = gem.inc(playIndex)
table.insert(playingIndex, playIndex)
spawn(arpeg, i, playIndex)
end
isPlaying = true
seqIndex = gem.inc(seqIndex)
run(pageRunner, seqIndex)
end

function stopPlaying()
Expand Down Expand Up @@ -736,6 +729,13 @@ footerPanel.y = paramsPerPage[1].sequencerPanel.y + paramsPerPage[1].sequencerPa
--------------------------------------------------------------------------------

function pageRunner(uniqueId)
playingIndex = {}
for i=1,numParts do
--print("Start playing", i)
playIndex = gem.inc(playIndex)
table.insert(playingIndex, playIndex)
spawn(arpeg, playIndex, i)
end
local rounds = 0
while isPlaying and seqIndex == uniqueId do
rounds = rounds + 1
Expand All @@ -757,7 +757,7 @@ function pageRunner(uniqueId)
end
end

function arpeg(part, uniqueId)
function arpeg(uniqueId, part)
local index = 0
local partDirectionBackward = false
while isPlaying and playingIndex[part] == uniqueId do
Expand Down

0 comments on commit c976574

Please sign in to comment.