-
Notifications
You must be signed in to change notification settings - Fork 0
/
tunes_nokia_ringtone.cfg
66 lines (65 loc) · 2.18 KB
/
tunes_nokia_ringtone.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
#############################################################################################################################
# The original NOKIA Tune -- Explanation of the Syntax
#############################################################################################################################
#
# PLEASE NOTE: that the tune in this file is derived from the repo of Robson Couto on GitHub, https://github.com/robsoncouto
#
# Connected notes:
# _NOTE_E5 # Tone
# _D_08 # Duration
# _NOTE_D5 # Tone
# _D_08 # Duration
# SET_PIN PIN=buzzer VALUE=0 # Always end with this statement
#
# Separated notes:
# _NOTE_E5 # Tone
# _D_08 # Duration
# SET_PIN PIN=buzzer VALUE=0 # Stop and separate Tone from the mext
# _NOTE_D5 # Tone
# _D_08 # Duration
# SET_PIN PIN=buzzer VALUE=0 # Always end with this statement
#
# Separate notes by a pause:
# _NOTE_E5 # Tone
# _D_08 # Duration
# SET_PIN PIN=buzzer VALUE=0 # Stop Tone
# _D_08 # Duration of silence (pause)
# _NOTE_D5 # Tone
# _D_08 # Duration
# SET_PIN PIN=buzzer VALUE=0 # Always end with this statement
#
# Remark:
# You always need to end a note / a melody with the 'SET_PIN PIN=buzzer VALUE=0' statement.
# If you don't, the tone won't stop and your printer is sounding the tone until you intervene.
# (And that's quit iritating)
#############################################################################################################################
[gcode_macro PLAY_NOKIA_TUNE]
description: Play Nokia Tune
gcode:
_NOTE_E5 # Tone
_D_08 # Duration
_NOTE_D5 # Tone
_D_08 # Duration
_NOTE_FS4
_D_04
_NOTE_GS4
_D_04
_NOTE_CS5
_D_08
_NOTE_B4
_D_08
_NOTE_D4
_D_04
_NOTE_E4
_D_04
_NOTE_B4
_D_08
_NOTE_A4
_D_08
_NOTE_CS4
_D_04
_NOTE_E4
_D_04
_NOTE_A4
_D_02
SET_PIN PIN=buzzer VALUE=0