Skip to content

Commit 6cbeaf1

Browse files
committed
Fix automatic instrument number changing, and bump the version to 4.2.
1 parent 3036910 commit 6cbeaf1

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

editor/EditorConfig.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export function prettyNumber(value: number): string {
2222
}
2323

2424
export class EditorConfig {
25-
public static readonly version: string = "4.1.1";
25+
public static readonly version: string = "4.2";
2626

2727
public static readonly versionDisplayName: string = "BeepBox";
2828
public static readonly releaseNotesURL: string = "https://github.com/johnnesky/beepbox/releases/tag/v" + EditorConfig.version;

editor/Selection.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export class Selection {
101101
this._changeTrack.append(new ChangeChannelBar(this._doc, channelIndex, bar));
102102
// @jummbus - changing current viewed instrument to the first for the current pattern if the viewedInstrument is not in the pattern
103103
const pattern: Pattern | null = this._doc.getCurrentPattern(0);
104-
if (pattern != null) {
104+
if (pattern != null && this._doc.song.patternInstruments) {
105105
if (pattern.instruments.indexOf(this._doc.viewedInstrument[this._doc.channel]) == -1) {
106106
this._doc.viewedInstrument[this._doc.channel] = pattern.instruments[0];
107107
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "BeepBox",
3-
"version": "4.1.1",
3+
"version": "4.2",
44
"description": "BeepBox is an online tool for sketching and sharing instrumental music.",
55
"author": "John Nesky",
66
"license": "MIT",

0 commit comments

Comments
 (0)