pmetronome /

Filename Size Date modified Message
17.6 KB
1.4 KB
271 B
990 B
3.8 KB
238 B
8.8 KB
3.0 KB
4.8 KB
2.6 KB
3.3 KB
1.8 KB
3.5 KB
399 B
1.8 KB
497 B
ctronome v0.5.3

GNU/GPL copying rules apply, see COPYING

DISCLAIMER:
 THIS SOFTWARE COMES AS-IS. ALTHOUGH THE AUTHOR DOES ITS BEST TO MAKE
 THIS PROGRAM SAFE TO USE, MISTAKE HAPPENS. USE IT AT YOUR OWN RISK.

 THE AUTHOR DOES NOT TAKE ANY RESPONSIBILITY FOR WHAT THIS SOFTWARE
 DOES TO YOUR PC. BACKUP FREQUENTLY.

INTRODUCTION:
 Ctronome is a very-very simple programmable metronome for Linux console,
 with /dev/dsp audio output. BPM ranges from 30 to 250, tacts like 3/4, 7/8
 etc. are possible. It Uses plays external WAV files, so one could use custom
 sound samples.

 Aim is to keep it as simple as it can be so dummies like me may understand
 and modify it. (The source code looks ugly though;)

COMPILE-TIME CONFIGURATION:
 edit ctronome.h for defaults, the most important ones are:
 metronomewav1 = "/usr/share/ctronome/metronome1.wav\0";
 metronomewav2 = "/usr/share/ctronome/metronome2.wav\0";
 dspdev = "/dev/dsp\0";

 They speak for themselves.
 
COMPILATION:
 Only the very basic C libraries are needed that I believe to exist
 on virtally all Linuxes. You need to have Linux kernel header
 files installed (they come with the Linux kernel source), and OSS
 (or OSS compatible) soundcard support.

 Go into ctronome source directory and type 'make'.
 It should compile whithout errors.

INSTALLATION:
 Ctronome is a single binary. You can put it anywhere you want in
 your local or remote filesystem. You need two, preferably short
 WAV files as metronome sample, put in the place you specified in
 ctronome.h, or specified on the command line.

 There are two one-channel and two two-channel (both channels are the same)
 included, recorded from a real metronome. You have to install the one that
 fits your sound system (see NOTES)

RUNNING:
 ctronome -b <bpm> -t <bpt> -c <count> -w1 <wav1> -w2 <wav2> -d <dsp_device> \
          -p <program> -h -v
    -b <bpm>            beat per minute default: 60/4, range: 30-250/1-20
    -t <bpt>            beat per tact default: 1/4, range: 1-50/1-50
    -p <filename>       program file
    -c <count>          play tact/program <count> times then exit
    -w1 <filename>      wav to use for first beat of tact
                         default: /usr/share/ctronome/metronome1.wav
    -w2 <filename>      wav to use for other beat of tact
                         default: /usr/share/ctronome/metronome2.wav
    -d <device>         dsp device, default /dev/dsp
    -h                  display help screen
    -debug              display debug messages

   See prog_example.txt to learn how to program ctronome.

   For BPM you can specify the base note. E.g. 60/4 means:
   60 1/4 notes per minute -> length of 1/4 note is 1 second.

   For BPT you can also define the base note. E.g. 4/4 means:
   4 1/4 notes per tact -> length of a tact is 4 seconds.

   As you can see, it is now possible to specify the BPM in 1/4 notes,
   and then you can use BPT like 7/8, ctronome calculates lenght of 1/8 note
   (which is half of the 1/4 in this example) and plays seven of them for a
   tact.

   If the base note for BPM is not specified, it defaults to the base note
   of the tact.

   It requires two 16 bit per sample WAV format, mono or stereo, and preferably
   at least 44100Hz sample rate. *The two WAV formats must be the same!*
   Please note that if your sound system does not support the exact format
   provided by the WAV files, it will try its best to play it anyway, but
   the result will be unpredictable. Debug mode will tell you the details.

SEND BUGREPORTS TO:
   ctronome at kign dot org

CREDITS:
 dsp code is based on gTick by Alex Roberts <bse@dial.pipex.com>,
          and also the OSS Programmers Guide

 Patch to eliminate warnings with Gcc4, and included WAV samples digitally
 remastered to be more pronounced and precise by Martin Tarenskeen.

 and help from my friends: Zola & Arpy.

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.