MCPcopy Create free account
hub / github.com/audacity/audacity / PrintHelp

Function PrintHelp

libraries/lib-import-export/riff-test-util/RiffTestUtil.cpp:25–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23namespace
24{
25void PrintHelp(const char* const* argv)
26{
27 std::cout
28 << std::endl
29 << "Test utility to tag files either the SoundForge or the MuseHub way."
30 << std::endl;
31 std::cout
32 << "(SoundForge prioritizes number-of-beats over tempo, and the other way round for MuseHub.)"
33 << std::endl
34 << std::endl;
35 std::cout
36 << "Usage: " << argv[0]
37 << " <outputFile> <duration (s)> [ MuseHub [ one-shot | <tempo (bpm)> ] | SoundForge [ one-shot | loop <num. beats> ] ]"
38 << std::endl
39 << std::endl;
40 std::cout << "Examples:" << std::endl << std::endl;
41
42 std::cout
43 << "Create a 10-second file and add 60 BPM information (MuseHub style):"
44 << std::endl;
45 std::cout << "riff-test-util output.wav 10.0 MuseHub 60.0" << std::endl
46 << std::endl;
47
48 std::cout
49 << "Create a 10-second file and specify 16 beats (SoundForge style):"
50 << std::endl;
51 std::cout << "riff-test-util output.wav 10.0 SoundForge 16.0" << std::endl
52 << std::endl;
53
54 std::cout << "Create a 3-second one-shot file:" << std::endl;
55 std::cout << "riff-test-util output.wav 3.0 SoundForge one-shot" << std::endl
56 << std::endl;
57}
58} // namespace
59
60int main(int argc, char* const* argv)

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected