Skip to content

Commit

Permalink
Updated dependencies, fixed version in package.json, fixed typo in Ti…
Browse files Browse the repository at this point in the history
…pPrompt.
  • Loading branch information
johnnesky committed Nov 6, 2021
1 parent 7bce911 commit 5c57650
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 49 deletions.
4 changes: 2 additions & 2 deletions editor/ExportPrompt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ function lerp(low: number, high: number, t: number): number {
}

function save(blob: Blob, name: string): void {
if (navigator.msSaveOrOpenBlob) {
navigator.msSaveOrOpenBlob(blob, name);
if ((<any>navigator).msSaveOrOpenBlob) {
(<any>navigator).msSaveOrOpenBlob(blob, name);
return;
}

Expand Down
2 changes: 1 addition & 1 deletion editor/TipPrompt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ export class TipPrompt implements Prompt {
case "echoSustain": {
message = div(
h2("Echo Volume"),
p("The echo effect repeats the instrument's sound after a delay. Each echo is a little big quieter than the last, and this setting controls how much quieter."),
p("The echo effect repeats the instrument's sound after a delay. Each echo is a little bit quieter than the last, and this setting controls how much quieter."),
);
} break;
case "echoDelay": {
Expand Down
86 changes: 43 additions & 43 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "BeepBox",
"version": "4.0",
"version": "4.0.0",
"description": "BeepBox is an online tool for sketching and sharing instrumental music.",
"author": "John Nesky",
"license": "MIT",
Expand Down
4 changes: 2 additions & 2 deletions synth/synth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ export class FilterSettings {
for (const pointObject of filterObject) {
const point: FilterControlPoint = new FilterControlPoint();
point.type = Config.filterTypeNames.indexOf(pointObject["type"]);
if (point.type == -1) point.type = FilterType.peak;
if (<any>point.type == -1) point.type = FilterType.peak;
if (pointObject["cutoffHz"] != undefined) {
point.freq = FilterControlPoint.getRoundedSettingValueFromHz(pointObject["cutoffHz"]);
} else {
Expand Down Expand Up @@ -1157,7 +1157,7 @@ export class Instrument {
if (instrumentObject == undefined) instrumentObject = {};

let type: InstrumentType = Config.instrumentTypeNames.indexOf(instrumentObject["type"]);
if (type == -1) type = isNoiseChannel ? InstrumentType.noise : InstrumentType.chip;
if (<any>type == -1) type = isNoiseChannel ? InstrumentType.noise : InstrumentType.chip;
this.setTypeAndReset(type, isNoiseChannel);

if (instrumentObject["preset"] != undefined) {
Expand Down

0 comments on commit 5c57650

Please sign in to comment.