brunchboy on master
Document the beat pattern MIDI … Start explaining the MIDI-relat… (compare)
brunchboy on master
Explain how the beat pattern UI… Add MIDI mapped show, to be doc… (compare)
brunchboy on master
Clarify how the set expression … (compare)
brunchboy on v0.7.0-SNAPSHOT
brunchboy on master
Start documenting Beat Pattern … (compare)
brunchboy on guide-0.5.3
brunchboy on v0.6.3-SNAPSHOT
brunchboy on guide-0.6.3
Add branch of user guide for re… (compare)
brunchboy on master
Fix site URL for embedded user … Release 0.6.3 (compare)
brunchboy on v0.6.3
brunchboy on v0.6.3
brunchboy on master
Release 0.6.3 Stop using obsolete Github Acti… (compare)
<!--
This is an example of how you can explicitly pull out information for specific players,
but generally you will want to use the loop approach below to get all players found on
the network.
<p>
Player 1: {{players.1.track.title}}—{{players.1.track.artist}}.
<img src="artwork/1?icons=true" width="80" height="80">
</p>
<p>
Player 2: {{players.2.track.title}}—{{players.2.track.artist}}.
<img src="artwork/2?icons=true" width="80" height="80">
</p>
-->
{% for number player in players|sort %}
<p>
<!-- if (players{{number}}.is-tempo-master == true) { -->
<img id="art-{{number}}" src="artwork/{{number}}?icons=true" width="80" height="80" align="left">
<script>animateImage('art-{{number}}', 1000);</script>
<span id="title-{{number}}" style="font-size:30px" style="font-family:Titillium Web">{{master.track.title}}</span>
<br>
<span id="artist-{{number}}" style="font-size:20px" style="font-family:Titillium Web">{{master.track.artist}}.</span>
<br><br>
<!-- }-->
</p>
{% endfor %}
</body>
</html>
I've left the part i'm struggling with in here commented out. I have a statement
if (players{{number}}.is-tempo-master == true) {
thinking that i want this thing to loop through players (i only have 2, but hey, why not loop through all) and determine if it's the master, then i want it to show the coverart and track title, artist name. and when i switch to the next track, it would update all three without me having to rerun it.
I realize i've written this wrong, but i left it in to give direction of what i'm attempting to do. the formatting and HTML stuff I consider good-to-go
I have never been successful in ONLY showing the master track and not showing the non-master tracks information. that's as close as I can get so far. I also attempted to use something like this:
{% if players{{number}}.is-temp-master == true %}
But it flat out ignores this...just shows everything still
{% if … %}
Selmer expresson written, it could control which player information got written to the page.
{% if players.number.is-tempo-master %}
but it’s not worth nailing down because we don’t want to do it that way.
players
variable at all! I created a master
variable for that purpose, see Table 1 in the Variables section of the User Guide: https://blt-guide.deepsymmetry.org/beat-link-trigger/obsoverlay#variables
master.track.title
for example. And wait, I just noticed that you already figured that out @supersport05 so you just need to eliminate the number
loop entirely.
number
available any more for requesting the album art. But that is not a problem, because the master
variable has as number
property which reports the channel number of the current master player, so we can ask for its art using the URL "artwork/{{master.number}}"
.
updateState
function, to fetch the current JSON information from BLT so we can find the current tempo master, and load the appropriate image there. Working on it…
Yes, you were very much on the right track @supersport05, there are just so many layers to worry about and integrate properly. Thanks for letting me know! I think I will start a Wiki page with alternate overlay examples, may I include yours?
@brunchboy Sure if you like, feel free. I reckon it'll likely be a rather commonly requested layout tbh thanks again :D