You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: constants.py
+12-8Lines changed: 12 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -9,15 +9,19 @@
9
9
/___/
10
10
11
11
"""
12
-
TEXT_CLEAN="✂️ cut <filename> [...filenames] ::: Removes non-speech parts of the selected soundwaves"
13
-
TEXT_HELP="📜 help ::: Shows this menu."
14
-
TEXT_LIST="💿 list [like] ::: Lists all loaded wavefiles. Optionally, list all waves with [like] in their name"
15
-
TEXT_LOAD="📥 load <filename> [...filenames] ::: Loads each specified file from ./input/<filename>.wav"
16
-
TEXT_PLOT="📈 plot [waveform|spectogram|histogram] [...filenames] ::: Plots the selected wavefile on the selected type of graph. Multiple wavefiles may be plotted. If no file is specified, plots all loaded."
17
-
TEXT_QUIT="🚪 quit ::: Closes the application"
18
-
TEXT_NOT_LOADED="🤔 I couldn't find this sound wave, did you load it? "
12
+
TEXT_CLEAN="✂️ cut <filename> [...filenames] ::: Removes non-speech parts of the selected soundwaves."
13
+
TEXT_HELP="📜 help ::: Shows this menu."
14
+
TEXT_LIST="💿 list [like] ::: Lists all loaded wavefiles. Optionally, list all waves with [like] in their name."
15
+
TEXT_LOAD="📥 load <filename> [...filenames] ::: Loads each specified file from ./input/<filename>.wav."
16
+
TEXT_PLOT="📈 plot [-t <waveform|spectrogram|histogram>] [-w <window beginning timestamp in ms>-<window ending timestamp in ms>] [-f <none|hamming|hanning>] [...filenames] ::: Plots the selected wavefile on the selected type of graph. Multiple wavefiles may be plotted. If no file is specified, plots all loaded. If spectrogram or histogram specified, use -w to specify window length and -f to specify the window function."
17
+
TEXT_QUIT="🚪 quit ::: Closes the application."
18
+
TEXT_GEN="🎧 gen [name] [harmonics] [duration] ::: Generates a sound wave with the given name and number of harmonics, lasting [duration] ms. If no name provided, name will be generated. Harmonics number equals 10 by default. Duration equals 100 (ms) by default."
19
+
TEXT_NOT_LOADED="🤔 I couldn't find sound wave \"%s\", did you load it? "
19
20
TEXT_INVALID_SYNTAX="🤔 I couldn't understand that. Try this command:"
20
-
TEXT_GENERATE="🎧 gen [name] [harmonics] [duration] ::: Generates a sound wave with the given name and number of harmonics, lasting [duration] ms. If no name provided, name will be generated. Harmonics number equals 10 by default. Duration equals 100 (ms) by default."
21
+
TEXT_INVALID_SYNTAX_PLOT_WINDOW_T="🤔 Oops. If you specify -w, you need to enter a starting and ending timestamp, like so: -t 200-500. Ending timestamp must be larger than starting timestamp."
22
+
TEXT_INVALID_SYNTAX_PLOT_WINDOW="🤔 Oops, something went wrong. One or more sound waves specified are not available at the specified timestamp."
23
+
TEXT_INVALID_SYNTAX_PLOT_WINDOW_F="🤔 Oops, %s is not a valid window function. Choose \"none\", \"hamming\" or \"hanning\"."
24
+
TEXT_INVALID_SYNTAX_PLOT_TYPE="🤔 Oops, %s is not a valid plot type. Choose \"waveform\", \"spectrogram\" or \"histogram\"."
21
25
TEXT_ERROR_WRITING="❌ There was an error while saving the wave "
22
26
TEXT_GENERATED="💽 You're officially an artist. Here's your sound wave: "
0 commit comments