Skip to content

Commit

Permalink
fix: remove useless (for now) logs
Browse files Browse the repository at this point in the history
  • Loading branch information
domi7777 committed Nov 29, 2024
1 parent 97a8dc0 commit 85f8e4d
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion src/Loop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ export class Loop {
const {callback, time} = this.events[this.currentLoopIndex];
const previousTime = this.currentLoopIndex === 0 ? 0 : this.events[this.currentLoopIndex - 1].time;
this.loopTimeout = setTimeout(() => {
this.log(`Playing event ${callback} after ${time}ms`);
// this.log(`Playing event ${callback} after ${time}ms`);
if (callback !== 'endOfLoop') {
callback();
} else {
Expand Down
2 changes: 0 additions & 2 deletions src/scenes/DaftSynthScene.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import {allFrequencies} from '../samples/synth-frequencies.ts';
import {createAudioContext} from '../samples/sample-utils.ts';
import {logger} from '../utils/logger.ts';
import {SimpleSynthScene} from './SimpleSynthScene.ts';
import Phaser from 'phaser';
import {PadsSceneSettings} from './PadsScene.ts';
Expand All @@ -20,7 +19,6 @@ export class DaftSynthScene extends SimpleSynthScene {
playSound(index: number): void {
index += this.getNoteIndexOffset();
const note = allFrequencies[index].freq;
logger.log('Playing note', note);
return playDaftPunkSynth({
frequency: note,
...this.settings
Expand Down
2 changes: 0 additions & 2 deletions src/scenes/SimpleSynthScene.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import {PadsScene, PadsSceneSettings, Setting} from './PadsScene.ts';
import {allFrequencies} from '../samples/synth-frequencies.ts';
import {createAudioContext} from '../samples/sample-utils.ts';
import Phaser from 'phaser';
import {logger} from '../utils/logger.ts';

const numberOfNotes = 12;
const maxNumberOfOctaves = 6;
Expand Down Expand Up @@ -51,7 +50,6 @@ export class SimpleSynthScene extends PadsScene {
playSound(index: number): void {
index += this.getNoteIndexOffset();
const note = allFrequencies[index].freq;
logger.log('Playing note', note);
// play the sound
return playPianoTone({
frequency: note,
Expand Down

0 comments on commit 85f8e4d

Please sign in to comment.