Giter VIP home page Giter VIP logo

lcjs-showcase-audio's Introduction

LightningChart JS Audio visualization showcase

Audio visualization application created using LightningChart JS.

More information about LightningChart® JS can be found from our website, https://www.arction.com/lightningchart-js/.

Description

The audio data is extracted in realtime using Web Audio API's.

The Web Audio API has an .createAnalyser() method that can be used to create a new AnalyzerNode. The AnalyzerNode has methods to get time-domain data (waveform) and frequency data which is data from Fast Fourier transform on the audio signal.

The time-domain data is shown as is on the Time Domain chart. That same data is also pushed to the Waveform history chart. This chart displays the last 1 million samples of the audio input.

The last chart, Spectrum, is used to display three different series.

  1. Spectrum of the latest samples.
  2. Maximum frequencies seen.
  3. Decaying frequency history.

Audio files licenses

File License Source
Truck_driving_by-Jason_Baker-2112866529.wav Public Domain http://soundbible.com/2097-Transfer-Truck-Drive-By.html
500_1000_10000.wav - https://github.com/Snekw

Getting Started

The application is hosted at:

https://arction.github.io/lcjs-showcase-audio/

To run the application locally with hot reload:

  1. Install Node.JS
  2. Run npm install
  3. Run npm start
  4. Open browser and navigate to http://localhost:8080

Support

If you notice an error in the example code, please open an issue on GitHub.

Official API documentation can be found on Arction website.

If the docs and other materials do not solve your problem as well as implementation help is needed, ask on StackOverflow (tagged lightningchart).

If you think you found a bug in the LightningChart JavaScript library, please contact [email protected].

Direct developer email support can be purchased through a Support Plan or by contacting [email protected].

© Arction Ltd 2009-2019. All rights reserved.

lcjs-showcase-audio's People

Contributors

ajay-koli avatar arctionheini avatar dependabot[bot] avatar niiloarction avatar snekw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

lcjs-showcase-audio's Issues

Upgrade to using new optimized heatmaps feature

LCJS v.3.1 introduced new optimized 2D heatmap series.
These are significantly more performant than the feature this showcase currently uses, also they interact with scrolling Axes logically, unlike the previous feature. While it might be a significant change in code, the result should be much better.

I'd also suggest using TimeTickStrategy instead of Numeric with customized formatting.

node-sass blocks npm install from working

error E:\projects\lcjs-showcase-audio\node_modules\node-sass: Command failed.
Exit code: 1
Command: node scripts/build.js
Arguments:
Directory: E:\projects\lcjs-showcase-audio\node_modules\node-sass
Output:
Building: C:\Program Files\nodejs\node.exe E:\projects\lcjs-showcase-audio\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [
gyp verb cli 'C:\Program Files\nodejs\node.exe',
gyp verb cli 'E:\projects\lcjs-showcase-audio\node_modules\node-gyp\bin\node-gyp.js',
gyp verb cli 'rebuild',
gyp verb cli '--verbose',
gyp verb cli '--libsass_ext=',
gyp verb cli '--libsass_cflags=',
gyp verb cli '--libsass_ldflags=',
gyp verb cli '--libsass_library='
gyp verb cli ]
gyp info using [email protected]
gyp info using [email protected] | win32 | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb check python checking for Python executable "python2" in the PATH
gyp verb which failed Error: not found: python2
gyp verb which failed at getNotFoundError (E:\projects\lcjs-showcase-audio\node_modules\which\which.js:13:12)
gyp verb which failed at F (E:\projects\lcjs-showcase-audio\node_modules\which\which.js:68:19)
gyp verb which failed at E (E:\projects\lcjs-showcase-audio\node_modules\which\which.js:80:29)
gyp verb which failed at E:\projects\lcjs-showcase-audio\node_modules\which\which.js:89:16
gyp verb which failed at E:\projects\lcjs-showcase-audio\node_modules\isexe\index.js:42:5
gyp verb which failed at E:\projects\lcjs-showcase-audio\node_modules\isexe\windows.js:36:5
gyp verb which failed at FSReqCallback.oncomplete (node:fs:198:21)
gyp verb which failed python2 Error: not found: python2
gyp verb which failed at getNotFoundError (E:\projects\lcjs-showcase-audio\node_modules\which\which.js:13:12)
gyp verb which failed at F (E:\projects\lcjs-showcase-audio\node_modules\which\which.js:68:19)
gyp verb which failed at E (E:\projects\lcjs-showcase-audio\node_modules\which\which.js:80:29)
gyp verb which failed at E:\projects\lcjs-showcase-audio\node_modules\which\which.js:89:16
gyp verb which failed at E:\projects\lcjs-showcase-audio\node_modules\isexe\index.js:42:5
gyp verb which failed at E:\projects\lcjs-showcase-audio\node_modules\isexe\windows.js:36:5
gyp verb which failed at FSReqCallback.oncomplete (node:fs:198:21) {
gyp verb which failed code: 'ENOENT'
gyp verb which failed }
gyp verb check python checking for Python executable "python" in the PATH
gyp verb which succeeded python C:\Program Files\Inkscape\bin\python.EXE
gyp ERR! configure error
gyp ERR! stack Error: Command failed: C:\Program Files\Inkscape\bin\python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack File "", line 1
gyp ERR! stack import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack ^
gyp ERR! stack SyntaxError: invalid syntax
gyp ERR! stack
gyp ERR! stack at ChildProcess.exithandler (node:child_process:399:12)
gyp ERR! stack at ChildProcess.emit (node:events:526:28)
gyp ERR! stack at maybeClose (node:internal/child_process:1092:16)
gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)
gyp ERR! System Windows_NT 10.0.18363
gyp ERR! command "C:\Program Files\nodejs\node.exe" "E:\projects\lcjs-showcase-audio\node_modules\node-gyp\bin\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd E:\projects\lcjs-showcase-audio\node_modules\node-sass
gyp ERR! node -v v16.14.1
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
Build failed with error code: 1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.