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:
parent
c2b38cb550
commit
b02d907964
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user