Skip to content

Commit

Permalink
Updated Play command to correctly extend the note duration when "." i…
Browse files Browse the repository at this point in the history
…s encountered
  • Loading branch information
boxgaming committed Jan 20, 2025
1 parent c9771c9 commit b563c31
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@
<div>
<img id="logo" src="logo.png" onclick="window.open('https://github.com/boxgaming/qbjs/wiki', '_blank')">
<p>QBJS - QBasic for the Web!</p>
<p>Version: <a href="https://github.com/boxgaming/qbjs/releases" target="_blank">0.9.0</a></p>
<p>Version: <a href="https://github.com/boxgaming/qbjs/releases" target="_blank">0.9.1</a></p>
<p></p>
<p>
QBJS brings the fun and accessibility of QBasic to the browser.<br/>
Expand All @@ -186,7 +186,7 @@
<li><a href="javascript:IDE.showHelp('samples')">Samples</a></li>
</ul>
</p>
<p>Copyright (c) 2022-2023 boxgaming</p>
<p>Copyright (c) 2022-2024 boxgaming</p>
<div>
<a href="javascript:IDE.closeDialog()" style="display:block; float:right">Close</a>
</div>
Expand Down
5 changes: 3 additions & 2 deletions qb.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,10 @@ var QB = new function() {

if (noteValue !== null) {
const noteDuration = (60000 * 4 / this.tempo);
const duration = temporaryLength
let duration = (temporaryLength
? noteDuration / temporaryLength
: noteDuration / this.noteLength;
: noteDuration / this.noteLength);
if (longerNote) { duration *= 1.5; }
const C6 = 1047;
const freq = noteValue == 0
? 0
Expand Down
2 changes: 1 addition & 1 deletion service-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
// Names of the two caches used in this version of the service worker.
// Change to v2, etc. when you update any of the local resources, which will
// in turn trigger the install event again.
const PRECACHE = 'precache-v22';
const PRECACHE = 'precache-v23';
const RUNTIME = 'runtime';
const PREFIX = (self.location.origin.indexOf("github.io") == -1) ? "/" : "/qbjs/";

Expand Down

0 comments on commit b563c31

Please sign in to comment.