-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Iss84 SHOW - Allow infinite looping of sequences #86
base: master
Are you sure you want to change the base?
Conversation
ByronAmbright
commented
Apr 24, 2019
- Add checkbox to allow for infinite looping of shows
- Add functionality to infinite loop sequences
- Fix element length bug in case sequence does not have audio file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This works in that it repeats an element, but those elements take longer and longer every iteration. In the sequence I'm testing, the lights are on for half the time and off the other half. Each half increases in length. The timeouts fire every 5 seconds like they're supposed to, but the lights do not change that often. I'm not sure what the fix is, but this needs to be fixed.
app/html/show.html
Outdated
@@ -23,6 +23,8 @@ | |||
<button id='addElement'>Add element</button> | |||
<br><br> | |||
<button id='runShow' value='notPlaying'>Play</button> | |||
<span>Repeat?</span> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make this more descriptive. Repeat what? Something like Loop show continuously?
.
app/js/sendDMX.js
Outdated
playShowInSequence(i); | ||
} | ||
if (repeat.checked && canPlay) { | ||
const elementsLength = elements.map(x => x.elementLength); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we be using x.getElementLength()
here?
* Add checkbox to allow for infinite looping of shows * Add functionality to infinite loop sequences * Fix element length bug in case that sequence does not have audio file. * Change sendDMX.js functions into a module for more flexible use. * Rename sendDMX.js to ShowRunner.js to accurately describe functions.
679b9f9
to
b6b23ad
Compare