// import { InvalidInput } from '../Exceptions'; // import { isDuration, isNote } from '../utilities/PureMusicUtils'; // /** // * Validates an argument is an array, fails if not. // * @throws InvalidInput // * @param arg // * @returns {boolean} // */ // export function validateArray(arg: any) { // if(!Array.isArray(arg)) { // throw new InvalidInput(`expected ${arg} to be an array`); // } // return true; // } // export function validateNumber(val: any) { // if(typeof val !== 'number') { // throw new InvalidInput(`expected ${val} to be a number`); // } // return true; // } // /** // * Validate that a string is a valid representation of a raw note. // * @param str // * @returns {boolean} // */ // export function validateNote(str: string) { // if(!isNote(str)) { // throw new InvalidInput(`Expected ${str} to be a string representing a note`); // } // return true; // } // export function validateDuration(str: string) { // if(!isDuration(str)) { // throw new InvalidInput(`Expected ${str} to be a string representing note duration.`); // } // return true; // }