Skip to content

Commit

Permalink
fixed singer issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mohitvdx committed Feb 8, 2024
1 parent d76bc37 commit ba0b76f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion modules/singer/playground/pages/Voice.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Voice } from '@/core/voice';
import SynthUtils from '@/core/synthUtils';
import * as Tone from 'tone';
import { _state, noteValueToSeconds, _defaultSynth, _polySynth } from '@/singer';
import { _state, noteValueToSeconds, _defaultSynth, /*_polySynth*/ } from '@/singer';
import { setupSynthUtils } from '@/core/synthUtils';
import { injected } from '@/index';

Expand Down
4 changes: 2 additions & 2 deletions modules/singer/src/singer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const currentpitch = new CurrentPitch(testKeySignature, new Temperament(), 1, 4)
const _stateObj = { ..._defaultSynthStateValues };

/** Proxy to the synth state parameters. */
const _state = new Proxy(_stateObj, {
export const _state = new Proxy(_stateObj, {
set: (_, key, value) => {
if (key === 'beatsPerMinute') {
_stateObj.beatsPerMinute = value;
Expand All @@ -37,7 +37,7 @@ const _state = new Proxy(_stateObj, {
});

/** Default synth **/
const _defaultSynth = new Tone.Synth().toDestination();
export const _defaultSynth = new Tone.Synth().toDestination();

// -- private functions ----------------------------------------------------------------------------

Expand Down

0 comments on commit ba0b76f

Please sign in to comment.