1
0
mirror of https://github.com/psychopy/psychojs.git synced 2025-05-11 16:18:10 +00:00

sound/TonePlayer: replace $.isNumeric

This commit is contained in:
Sotiri Bakagiannis 2021-07-08 17:52:36 +01:00
parent c2b38cb550
commit b02d907964

View File

@ -8,6 +8,7 @@
*/
import * as Tone from 'tone';
import { isNumeric } from "../util/Util.js";
import {SoundPlayer} from './SoundPlayer';
@ -74,7 +75,7 @@ export class TonePlayer extends SoundPlayer
static accept(sound)
{
// if the sound's value is an integer, we interpret it as a frequency:
if ($.isNumeric(sound.value))
if (isNumeric(sound.value))
{
return new TonePlayer({
psychoJS: sound.psychoJS,