Fix up X32 displaying and Main LR info

This commit is contained in:
2022-02-17 09:13:18 -06:00
parent e6afd15db5
commit 9a97a92d97
3 changed files with 58 additions and 27 deletions
+4 -4
View File
@@ -13,9 +13,9 @@
</tr>
<tr>
<td width="40px">LR</td>
<td width="100px"><div class="color color-8">MAIN OUT</div></td>
<td width="100px"><div class="color color-<%= data.stereoColor %>"><%- data.stereoName%></div></td>
<td><div class="fader-mute mute-<%=data.stereoMute%>">M</div></td>
<td><%- formatAsDB(data.stereoFaderDB) %></td>
<td><%= formatAsDB(data.stereoFaderDB) %></td>
<td>
<input
type="range"
@@ -34,7 +34,7 @@
</div>
</td>
<td><div class="fader-mute mute-<%=data.channelMutes[i]%>">M</div></td>
<td><%- formatAsDB(data.channelFadersDB[i]) %></td>
<td><%= formatAsDB(data.channelFadersDB[i]) %></td>
<td>
<input
type="range"
@@ -47,5 +47,5 @@
<% } %>
</table>
<% function formatAsDB(val){ if(val==-90){ return "-&infin;"; } if(val>0){
<% function formatAsDB(val){ if(val==-90){ return '-<span class="infin">&infin;</span>'; } if(val>0){
return "+"+val.toFixed(1); } return val.toFixed(1); } %>