Skip to content

Commit

Permalink
Fix bug when recording track
Browse files Browse the repository at this point in the history
  • Loading branch information
Willena committed Oct 2, 2016
1 parent a7466fd commit 5864d05
Showing 1 changed file with 12 additions and 15 deletions.
27 changes: 12 additions & 15 deletions src/Track.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,16 @@
'use strict';

import _assign from 'lodash.assign';
import _forOwn from 'lodash.forown';

import uuid from 'uuid';
import h from 'virtual-dom/h';

import {secondsToPixels, secondsToSamples} from './utils/conversions';
import extractPeaks from 'webaudio-peaks';
import stateClasses from './track/states';

import CanvasHook from './render/CanvasHook';
import FadeCanvasHook from './render/FadeCanvasHook';
import VolumeSliderHook from './render/VolumeSliderHook';

import {FADEIN, FADEOUT} from 'fade-maker';
import _assign from "lodash.assign";
import _forOwn from "lodash.forown";
import uuid from "uuid";
import h from "virtual-dom/h";
import {secondsToPixels, secondsToSamples} from "./utils/conversions";
import extractPeaks from "webaudio-peaks";
import stateClasses from "./track/states";
import CanvasHook from "./render/CanvasHook";
import FadeCanvasHook from "./render/FadeCanvasHook";
import VolumeSliderHook from "./render/VolumeSliderHook";
import {FADEIN, FADEOUT} from "fade-maker";

const MAX_CANVAS_WIDTH = 1000;

Expand All @@ -24,6 +20,7 @@ export default class {

this.name = "Untitled";
this.gain = 1;
this.speed = 1;
this.fades = {};
this.peakData = {
type: "WebAudio",
Expand Down

0 comments on commit 5864d05

Please sign in to comment.