-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
110 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,18 @@ | ||
name: Node.js CI | ||
|
||
on: | ||
pull_request: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [main] | ||
|
||
jobs: | ||
build: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Use Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '18.x' | ||
- run: npm ci | ||
- run: npm run build --if-present | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Use Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '18.x' | ||
- run: npm ci | ||
- run: npm run build --if-present |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
@tailwind base; | ||
@tailwind components; | ||
@tailwind utilities; | ||
@tailwind utilities; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<span class="border border-slate-900" /> | ||
<span class="border border-slate-900" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import type ChannelRow from './channel-row'; | ||
|
||
export default class Channel { | ||
channelRows: ChannelRow[]; | ||
channelRows: ChannelRow[]; | ||
|
||
constructor(channelRows: ChannelRow[] = []) { | ||
this.channelRows = channelRows; | ||
} | ||
constructor(channelRows: ChannelRow[] = []) { | ||
this.channelRows = channelRows; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,12 @@ | ||
import NoteData, { Note } from "./note-data"; | ||
import NoteData, { Note } from './note-data'; | ||
|
||
export default function toModuleNote(noteString: string) { | ||
if (noteString.length < 3) return new NoteData(Note.None, 0); | ||
if (noteString.length < 3) return new NoteData(Note.None, 0); | ||
|
||
const noteLabel = noteString.substring(0, 2); | ||
const noteLabel = noteString.substring(0, 2); | ||
|
||
const note = | ||
Object.values(Note).find((value) => value === noteLabel) || Note.None; | ||
const note = Object.values(Note).find((value) => value === noteLabel) || Note.None; | ||
|
||
const octave = Number(noteString.substring(2)) || 0; | ||
return new NoteData(note, octave); | ||
const octave = Number(noteString.substring(2)) || 0; | ||
return new NoteData(note, octave); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,32 @@ | ||
export default class NoteData { | ||
note: Note; | ||
octave: number; | ||
note: Note; | ||
octave: number; | ||
|
||
constructor(note: Note, octave: number) { | ||
this.note = note; | ||
this.octave = octave; | ||
} | ||
constructor(note: Note, octave: number) { | ||
this.note = note; | ||
this.octave = octave; | ||
} | ||
|
||
toString() { | ||
return `${this.note}${ | ||
this.note === Note.None || this.note === Note.Off ? "-" : this.octave | ||
}`; | ||
} | ||
toString() { | ||
return `${this.note}${ | ||
this.note === Note.None || this.note === Note.Off ? '-' : this.octave | ||
}`; | ||
} | ||
} | ||
|
||
export enum Note { | ||
None = "--", | ||
C = "C-", | ||
Csharp = "C#", | ||
D = "D-", | ||
Dsharp = "D#", | ||
E = "E-", | ||
F = "F-", | ||
Fsharp = "F#", | ||
G = "G-", | ||
Gsharp = "G#", | ||
A = "A-", | ||
Asharp = "A#", | ||
B = "B-", | ||
Off = "R-", | ||
None = '--', | ||
C = 'C-', | ||
Csharp = 'C#', | ||
D = 'D-', | ||
Dsharp = 'D#', | ||
E = 'E-', | ||
F = 'F-', | ||
Fsharp = 'F#', | ||
G = 'G-', | ||
Gsharp = 'G#', | ||
A = 'A-', | ||
Asharp = 'A#', | ||
B = 'B-', | ||
Off = 'R-' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
export default class PatternRow { | ||
envelopeValue = 0; | ||
noiseValue = 0; | ||
envelopeValue = 0; | ||
noiseValue = 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters