Skip to content

Commit 33c961d

Browse files
committed
ggmorse-gui : v1.3.4 + minor updates in ggmorse-to-file
1 parent 8a44485 commit 33c961d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

examples/ggmorse-gui/common.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,7 @@ void renderMain() {
640640

641641
if (windowId == WindowId::Settings) {
642642
ImGui::BeginChild("Settings:main", ImGui::GetContentRegionAvail(), true, ImGuiWindowFlags_NoScrollbar | ImGuiWindowFlags_NoScrollWithMouse);
643-
ImGui_TextCentered("GGMorse v1.3.3", false);
643+
ImGui_TextCentered("GGMorse v1.3.4", false);
644644
ImGui::PushFont(ImGui::GetIO().Fonts->Fonts.back());
645645
ImGui::Text("%s", "");
646646
ImGui_TextCentered("created by", true);

examples/ggmorse-to-file/main.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111

1212
int main(int argc, char** argv) {
1313
fprintf(stderr, "Usage: %s [-fN] -[wN] [-vN] [-sN]\n", argv[0]);
14-
fprintf(stderr, " -fN - frequency of the generated signal, N in [200, sampleRate/2], (default: 550)\n");
15-
fprintf(stderr, " -wN - speed of the transmission in words-per-minute, N in [5, 55], (default: 25)\n");
14+
fprintf(stderr, " -fN - frequency of the generated signal, N in [100, sampleRate/2], (default: 550)\n");
15+
fprintf(stderr, " -wN - speed of the transmission in words-per-minute, N in [5, 140], (default: 25)\n");
1616
fprintf(stderr, " -vN - output volume, N in (0, 100], (default: 50)\n");
1717
fprintf(stderr, " -sN - output sample rate, N in [%d, %d], (default: %d)\n", (int) 4000, (int) 96000, (int) GGMorse::kBaseSampleRate);
1818
fprintf(stderr, "\n");
@@ -32,12 +32,12 @@ int main(int argc, char** argv) {
3232
int volume = argm["v"].empty() ? 50 : std::stoi(argm["v"]);
3333
float sampleRateOut = argm["s"].empty() ? GGMorse::kBaseSampleRate : std::stof(argm["s"]);
3434

35-
if (frequency_hz < 200 || frequency_hz > sampleRateOut/2) {
35+
if (frequency_hz < 100 || frequency_hz > sampleRateOut/2 + 1) {
3636
fprintf(stderr, "Invalid frequency\n");
3737
return -1;
3838
}
3939

40-
if (speed_wpm < 5 || speed_wpm > 55) {
40+
if (speed_wpm < 5 || speed_wpm > 140) {
4141
fprintf(stderr, "Invalid speed\n");
4242
return -1;
4343
}

0 commit comments

Comments
 (0)