[beats] fixes according to plantain-00's feedback

This commit is contained in:
Uri Shaked 2017-11-20 22:11:50 +02:00
parent 42832414db
commit ffb71cb8f9
2 changed files with 2 additions and 4 deletions

View File

@ -1,4 +1,4 @@
import * as beats from 'beats';
import beats = require('beats');
const bins: beats.Bin[] = [
{ lo: 0, hi: 512, threshold: 0, decay: 0.005 },

View File

@ -5,9 +5,7 @@
export = beats;
type DetectFunction = (frequencies: Uint8Array | Float32Array | ReadonlyArray<number>, dt?: number) => Float32Array;
declare function beats(bins: ReadonlyArray<beats.Bin>, minSeparation?: number): DetectFunction;
declare function beats(bins: ReadonlyArray<beats.Bin>, minSeparation?: number): (frequencies: Uint8Array | Float32Array | ReadonlyArray<number>, dt?: number) => Float32Array;
declare namespace beats {
interface Bin {