-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconstants.py
28 lines (27 loc) · 2.5 KB
/
constants.py
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
TEXT_WELCOME = """
____ __ ____ __
/ __/__ ___ ___ ____/ / / __/__ __ _____ ___/ /
_\ \/ _ \/ -_) -_) __/ _ \ _\ \/ _ \/ // / _ \/ _ /
/___/ .__/\__/\__/\__/_//_/_/___/\___/\_,_/_//_/\_,_/
/_/ / _ | ___ ___ _/ /_ _____ ___ ____
/ __ |/ _ \/ _ `/ / // /_ // -_) __/
/_/ |_/_//_/\_,_/_/\_, //__/\__/_/
/___/
"""
TEXT_CLEAN = "✂️ cut <filename> [...filenames] ::: Removes non-speech parts of the selected soundwaves."
TEXT_HELP = "📜 help ::: Shows this menu."
TEXT_LIST = "💿 list [like] ::: Lists all loaded wavefiles. Optionally, list all waves with [like] in their name."
TEXT_LOAD = "📥 load <filename> [...filenames] ::: Loads each specified file from ./input/<filename>.wav."
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."
TEXT_QUIT = "🚪 quit ::: Closes the application."
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."
TEXT_NOT_LOADED = "🤔 I couldn't find sound wave \"%s\", did you load it? "
TEXT_INVALID_SYNTAX = "🤔 I couldn't understand that. Try this command:"
TEXT_INVALID_SYNTAX_PLOT_WINDOW_T = "🤔 Oops. If you specify -w, you need to enter a number, like so: -w 300."
TEXT_INVALID_SYNTAX_PLOT_WINDOW = "🤔 Oops, something went wrong. One or more sound waves specified are not available at the specified timestamp."
TEXT_INVALID_SYNTAX_PLOT_WINDOW_F = "🤔 Oops, %s is not a valid window function. Choose \"none\", \"hamming\" or \"hanning\"."
TEXT_INVALID_SYNTAX_PLOT_TYPE = "🤔 Oops, %s is not a valid plot type. Choose \"waveform\", \"spectrogram\" or \"histogram\"."
TEXT_ERROR_WRITING = "❌ There was an error while saving the wave "
TEXT_GENERATED = "💽 You're officially an artist. Here's your sound wave: "
TEXT_PLOTTING = "📈 Plotting..."
TEXT_INVALID_SYNTAX_PLOT_TOO_MANY = "🤔 Oops, %s only support plotting 1 sound wave at a time."