Skip to content

Commit ea38c1f

Browse files
committed
prettier
1 parent 8167df7 commit ea38c1f

File tree

2 files changed

+9
-12
lines changed

2 files changed

+9
-12
lines changed

analytics.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ namespace microcode {
2323

2424
/**
2525
* Sends an analytics message
26-
* @param msg
26+
* @param msg
2727
*/
2828
//% shim=TD_NOOP
2929
function report(msg: AnalyticsEvent) {

assets.ts

+8-11
Original file line numberDiff line numberDiff line change
@@ -220,11 +220,11 @@ function melodyToImage(melody: microcode.Melody) {
220220
const ret = image.create(16, 16)
221221
ret.fill(1)
222222
for (let col = 0; col < 8; col++) {
223-
if (melody.notes[col] === ".")
224-
continue
223+
if (melody.notes[col] === ".") continue
225224
const row = parseInt(melody.notes[col])
226225
const color = 15
227-
const ncol = col << 1, nrow = row << 1
226+
const ncol = col << 1,
227+
nrow = row << 1
228228
ret.setPixel(ncol, nrow, color)
229229
ret.setPixel(ncol + 1, nrow, color)
230230
ret.setPixel(ncol, nrow + 1, color)
@@ -233,7 +233,6 @@ function melodyToImage(melody: microcode.Melody) {
233233
return ret
234234
}
235235

236-
237236
// - upscale 5x5 image to 16 x 16
238237
function scaleUp(led55: Image) {
239238
const ret = image.create(16, 16)
@@ -265,7 +264,7 @@ namespace icondb {
265264

266265
export const melodyEditor = melodyToImage({
267266
notes: "76543210",
268-
tempo: 0
267+
tempo: 0,
269268
})
270269

271270
export const MISSING = img`
@@ -1356,7 +1355,7 @@ namespace icondb {
13561355
. . . . . . . . . . . . . . . .
13571356
`
13581357

1359-
export const note_on = img`
1358+
export const note_on = img`
13601359
. f f f f f f f .
13611360
f f f f f f f f f
13621361
f f f f f f f f f
@@ -1366,8 +1365,8 @@ f f f f f f f f f
13661365
f f f f f f f f f
13671366
. f f f f f f f .
13681367
`
1369-
1370-
export const note_off = img`
1368+
1369+
export const note_off = img`
13711370
. f f f f f f f .
13721371
f 1 1 1 1 1 1 1 f
13731372
f 1 1 1 1 1 1 1 f
@@ -1377,9 +1376,7 @@ f 1 1 1 1 1 1 1 f
13771376
f 1 1 1 1 1 1 1 f
13781377
. f f f f f f f .
13791378
`
1380-
1381-
1382-
1379+
13831380
export const accelerometer = img`
13841381
. . . . . . . . . . . . . . . .
13851382
. . . . . . . . 8 . . . . . . .

0 commit comments

Comments
 (0)