Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ByronAmbright
Copy link

  • 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.

Copy link
Collaborator

@theeldestelder theeldestelder left a 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.

@@ -23,6 +23,8 @@
<button id='addElement'>Add element</button>
<br><br>
<button id='runShow' value='notPlaying'>Play</button>
<span>Repeat?</span>
Copy link
Collaborator

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?.

playShowInSequence(i);
}
if (repeat.checked && canPlay) {
const elementsLength = elements.map(x => x.elementLength);
Copy link
Collaborator

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants