Skip to content

Commit f80ffb8

Browse files
committed
music as sequence
1 parent 1626459 commit f80ffb8

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

Diff for: tiles.ts

+10-1
Original file line numberDiff line numberDiff line change
@@ -325,8 +325,17 @@ namespace microcode {
325325
paint.defaultModifier = new IconEditor()
326326

327327
if (Options.melody) {
328-
const music = addActuator(TID_ACTUATOR_MUSIC, ["melody_editor", "loop"])
328+
const music = addActuator(TID_ACTUATOR_MUSIC, [
329+
"melody_editor",
330+
"loop",
331+
])
329332
music.priority = 11
333+
music.serviceClassName = "buzzer"
334+
music.serviceCommand = jacs.CMD_SET_REG | 0x2
335+
music.jdKind = JdKind.Sequence
336+
music.jdParam = "note_sequence"
337+
// music.jdParam2 = 6
338+
// music.defaultModifier = new MelodyEditor()
330339
}
331340

332341
const radio_send = addActuator(TID_ACTUATOR_RADIO_SEND, [

0 commit comments

Comments
 (0)