Sha256: 547fddf7ab050be77dc1684bd4306f4ff8809856b961937ca4c4b4ed45cb1f35
Contents?: true
Size: 926 Bytes
Versions: 1
Compression:
Stored size: 926 Bytes
Contents
/* * * * (c) 2009-2019 Øystein Moseng * * Instrument definitions for sonification module. * * License: www.highcharts.com/license * * */ 'use strict'; import Instrument from './Instrument'; import utilities from './utilities'; var instruments = {}; ['sine', 'square', 'triangle', 'sawtooth'].forEach(function (waveform) { // Add basic instruments instruments[waveform] = new Instrument({ oscillator: { waveformShape: waveform } }); // Add musical instruments instruments[waveform + 'Musical'] = new Instrument({ allowedFrequencies: utilities.musicalFrequencies, oscillator: { waveformShape: waveform } }); // Add scaled instruments instruments[waveform + 'Major'] = new Instrument({ allowedFrequencies: utilities.getMusicalScale([1, 3, 5, 6, 8, 10, 12]), oscillator: { waveformShape: waveform } }); }); export default instruments;
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
aw-highstock_rails-7.0.3 | vendor/assets/javascripts/highstock/es-modules/modules/sonification/instrumentDefinitions.js |