nclslbrn / transcoded

A tool to create weird stuff with infrared spectrum data

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Transcoded

Transoded Logo

This project is a tool for reinterpreting, transcoding infrared analysis of various molecules into different medium:

  • light sequences
  • sounds
  • motion keys

Visit the website

Infrared spectrums come from NIST (National Institute of Standards and Technology - U.S. Department of Commerce), due to a server limitation we have to download files manually from nist.gov and put into a folder data/, and put each link into the <ul> index.html file like below.

<dl id="molecule-select" class="dropdown">
  <a href="#" class="dropdown-button" data-activate="dropdown-molecule">Select a molecule</a>
  <dd>
    <ul>
      <li><a class="link" href="#" data-file="data/{file-name.jdx}.jdx">Name of the molecule</a></li>
      ...
    </ul>
  </dd>
</dl>

Due to the loading of these by XMLHttpRequest, this script could work only on server (local or distant).

If you ar familiar with Pug and Gulp you can also link a new file with editing dev/views/index.pug and add an entry in the array named moleculeDataFile like below (you have to load every dependencies with npm install --save-dev)

  var moleculeDataFile = [
    {
      title: 'Name of the molecule',
      file: 'file_name.jdx'
    },
    ...
  ];

Then you have to build the html files with running gulp views.


Dependencies

Spectrum vizualisation (area chart) is made with D3.js v4.

Audio synthesis with Tone.js.

Light synthesis with Three.js.

Others features 'll come asap...


The purpose of this work

This project is produced within the framework of a part of the COSA research group, which studies relation between art and science.


Build with / Thanks

                   

About

A tool to create weird stuff with infrared spectrum data

License:MIT License


Languages

Language:JavaScript 56.2%Language:CSS 26.2%Language:HTML 17.6%