Skip to content

m-2k/display

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Display

High-quality copy of display of Panasonic sound system.

Dependencies

Usage

  • Set Canvas node for rendering display
  • Set SVG-file location for loading
  • Attach Audio node for analyse audio data
window.onload = function() {
    var onLoad = function(e) { e.setText('    TAPE 1'); };
    var canvas = document.getElementById('canvas'); // HTML5 Canvas Node
    var dispLocation = '/display-sa-ak28.svg'; // Path to SVG file
    
    var disp = new Display();
    disp.init(canvas, dispLocation, onLoad);
    disp.attachStream(document.getElementById('audio')); // HTML5 Audio Node
};
   

Licence

MIT Licence

Authors