Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update env file path in docker compose #383

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion app/env/.env.development
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
// Configuration preset file number to enable
# Configuration preset file number to enable
VITE_CONFIG_PRESET = 0

2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ services:
build: ./
image: ghcr.io/sugarlabs/musicblocks:4-dev
env_file:
- ./env/development.env
- ./app/env/.env.development
ports:
- '5173:5173' # development server
- '4173:4173' # production preview server
Expand Down
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