-
Notifications
You must be signed in to change notification settings - Fork 9
/
musical_notify.cfg
80 lines (73 loc) · 1.57 KB
/
musical_notify.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
[gcode_macro _SOUND_YES]
gcode:
{% if printer["gcode_macro M300.1"] %}
M300.1 C4 L4
M300.1 C4 L4
M300.1 G4 L1
{% elif printer["gcode_macro M300"] %}
M300
{% else %}
{ action_respond_info("BEEP!")}
{% endif %}
[gcode_macro _SOUND_NO]
gcode:
{% if printer["gcode_macro M300.1"] %}
M300.1 A3
M300.1 C4 L4
M300.1 A3 L4
M300.1 C4 L4
{% elif printer["gcode_macro M300"] %}
M300 P50
G4 P40
M300 P100
{% else %}
{ action_respond_info("BEEP!")}
{% endif %}
[gcode_macro _SOUND_ALARM]
gcode:
{% if printer["gcode_macro M300.1"] %}
M300.1 C4 L1
M300.1 C4 L2
M300.1 C4 L4 P4
M300.1 B4 L4
M300.1 AB4 L4
M300.1 F4 L4
M300.1 AB L4
M300.1 B4 L4
M300.1 AB4 L4
M300.1 F4 L4
M300.1 AB L4
M300.1 B4 L4
M300.1 F4 L4
M300.1 D4 L2
M300.1 B4 L4
M300.1 F4 L4
M300.1 D4 L2
M300.1 B3 L4
M300.1 B3 L1.5
{% elif printer["gcode_macro M300"] %}
M300 V 255
G4 P 50
M300 V 255
G4 P 50
M300 V 255
G4 P 50
M300 V 255
G4 P 50
M300 V 255
G4 P 50
M300 V 255
G4 P 50
M300 V 255
G4 P 50
M300 V 255
G4 P 50
M300 V 255
G4 P 50
M300 V 255
G4 P 50
M300 V 255
G4 P 50
{% else %}
{ action_respond_info("BEEP! Something Alarming happened")}
{% endif %}