Changeset - 45fe2cdf6018
[Not reviewed]
default
0 1 0
drewp@bigasterisk.com - 7 years ago 2018-06-09 18:41:38
drewp@bigasterisk.com
scale down seq bar chart
Ignore-this: 29df9f969e267f2601f139a698cc2dad
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
light9/effect/sequencer.html
Show inline comments
 
@@ -109,13 +109,13 @@
 
             var source = new EventSource('updates');
 
             source.addEventListener('message', (e) => {
 
               const report = JSON.parse(e.data);
 
               report.roundT = Math.floor((report.t || 0) * 1000) / 1000;
 
               report.recentFps = Math.floor((report.recentFps || 0) * 10) / 10;
 
               report.recentDeltasStyle = (report.recentDeltas || []).map((dt) => {
 
                 const height = Math.min(40, dt / 0.025 * 20);
 
                 const height = Math.min(40, dt / 0.085 * 20);
 
                 return `height: ${height}px;`
 
               });
 

	
 
               const fakeUris = (report.songNotes || []).map((obj) => { return {value: obj.note, orig: obj} });
 
               const s = this.graph.sortedUris(fakeUris);
 
               report.songNotes = s.map((u) => { return u.orig; });
0 comments (0 inline, 0 general)