UNPKG

@chayns/react-audio-editor

Version:

Tool to edit audio tracks.

79 lines (72 loc) 2.23 kB
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _Track = require('../utils/Track'); var _Track2 = _interopRequireDefault(_Track); var _formatters = require('../utils/formatters'); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var filters = [// filter data { type: _Track2.default.filterTypes.GAIN, id: _Track2.default.filterIds.GAIN, options: [{ argumentName: _Track2.default.filterOptions.GAIN, min: 0, max: 1.5 }] }, { type: _Track2.default.filterTypes.BIQUAD, id: _Track2.default.filterIds.LOW_PASS, showName: 'Low-Pass Filter', options: [{ argumentName: _Track2.default.filterOptions.FREQUENCY, showLabel: true, valueFormatter: _formatters.frequencyFormatter, min: 20, max: 2000, labelStyle: { width: '110px' } }, { argumentName: _Track2.default.filterOptions.PEAK, showLabel: true, valueFormatter: _formatters.peakFormatter, min: 0, max: 20, labelStyle: { width: '110px' } }, { argumentName: _Track2.default.filterOptions.DETUNE, showLabel: true, valueFormatter: _formatters.detuneFormatter, min: 0, max: 1000, labelStyle: { width: '110px' } }] }, { type: _Track2.default.filterTypes.BIQUAD, id: _Track2.default.filterIds.HIGH_PASS, showName: 'High-Pass Filter', options: [{ argumentName: _Track2.default.filterOptions.FREQUENCY, showLabel: true, valueFormatter: _formatters.frequencyFormatter, min: 20, max: 2000, labelStyle: { width: '110px' } }, { argumentName: _Track2.default.filterOptions.PEAK, showLabel: true, valueFormatter: _formatters.peakFormatter, min: 0, max: 20, labelStyle: { width: '110px' } }, { argumentName: _Track2.default.filterOptions.DETUNE, showLabel: true, valueFormatter: _formatters.detuneFormatter, min: 0, max: 1000, labelStyle: { width: '110px' } }] }]; exports.default = filters; module.exports = exports.default;