Skip to content

Commit

Permalink
removed console log
Browse files Browse the repository at this point in the history
  • Loading branch information
Commanderk3 committed Jan 22, 2025
1 parent 1dbfa76 commit 3155a30
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions js/widgets/musickeyboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -911,8 +911,6 @@ function MusicKeyboard(activity) {
* @param {HTMLElement} playButtonCell - The HTML element representing the play button.
*/
this.playOne = function (counter, time, playButtonCell) {
//fix "time". I think it should hold same value as noteValue. But is does not. time < noteValue that,s why overlapping.
console.log("beat ->",selectedNotes);
setTimeout(() => {
let cell, eleid, ele, notes, zx, res, maxDuration;
if (counter < selectedNotes.length) {
Expand Down Expand Up @@ -984,7 +982,7 @@ function MusicKeyboard(activity) {
'&nbsp;&nbsp;<img src="header-icons/' +
"play-button.svg" +
'" title="' +
_("Play") +s
_("Play") +
'" alt="' +
_("Play") +
'" height="' +
Expand All @@ -999,7 +997,7 @@ function MusicKeyboard(activity) {
this._createKeyboard();
}
}
}, time * 1000 + 125);
}, time * 1000);
};

/**
Expand All @@ -1010,7 +1008,6 @@ function MusicKeyboard(activity) {
* @param {string[]} instruments - Array of instrument names or identifiers for each note.
*/
this._playChord = (notes, noteValue, instruments) => {
console.log("*");
if (notes[0] === "R") {
return;
}
Expand Down Expand Up @@ -1061,7 +1058,7 @@ function MusicKeyboard(activity) {

/**
* Fills chromatic gaps in a given list of notes by padding with missing notes.
*
*
* @param {Object[]} noteList - List of notes represented as dictionaries containing `noteName` and `noteOctave`.
* @returns {Object[]} A new list of notes with chromatic gaps filled.
*/
Expand Down

0 comments on commit 3155a30

Please sign in to comment.