This project is a tool for reinterpreting, transcoding infrared analysis of various molecules into different medium:
- light sequences
- sounds
- motion keys
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
.
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...
This project is produced within the framework of a part of the COSA research group, which studies relation between art and science.