Sponsored Content
Full Discussion: A metronome...
Operating Systems OS X (Apple) A metronome... Post 302947214 by bakunin on Tuesday 16th of June 2015 12:01:21 PM
Old 06-16-2015
You use "tick" and "tock" alternating. My suggestion is to introduce another parameter "bar". It should be able to take values 2-13. Have the "tick" only on beat 1 for every bar, e.g.:

Bar=2 tick tock tick tock ....
Bar=3 tick tock tock tick tock tock ...
Bar=4 tick tock tock tock tick tock tock tock ....

etc..

The rationale is that any "bar" has some "inner structure". For instance a 4/4 bar is not just a sequence of 4 equal beats but in fact the first and third beats are stronger than 2 and 4 and 1 is even stronger than 3. For this reason "3/4" and "6/8" may look like the same fracture but in fact the beats are sounding quite differently (when higher numbers denote more stress on a beat 3/4 is "2 1 1 2 1 1 ..." whereas 6/8 is usually "3 1 1 2 1 1 3 1 1 2 1 1 ...". It makes sense to help the user of the metronome recognize the 1-beat (usually the stroke with the most significance) in every bar by making it sound differently.

Why 2-13: the longest metrum of any significance in practical music is 13/8, used for instance in "Blue Rondo à la Turk" by the Dave Brubeck Quartet (it is sometimes denoted as 9/8 // 4/4 alternating metrum, but i think it is a genuine 13-stroke bar structure). 12/8 is commonly used for slow Blues with the "triplet shuffle" feeling,

I hope this helps.

bakunin
These 3 Users Gave Thanks to bakunin For This Post:
 
XmScaleSetTicks(library call)											     XmScaleSetTicks(library call)

NAME
XmScaleSetTicks -- A Scale function that controls tick marks SYNOPSIS
#include <Xm/Scale.h> void XmScaleSetTicks( Widget scale, int big_every, Cardinal num_medium, Cardinal num_small, Dimension size_big, Dimension size_medium, Dimension size_small); DESCRIPTION
XmScaleSetTicks controls the number, location, and size of the tick marks on a Scale. Each tick mark is a SeparatorGadget oriented perpen- dicular to the Scale's orientation. For example, if the Scale is oriented horizontally, the tick marks will be oriented vertically. If you specify tick marks for a Scale and then change the Scale's orientation, you will have to do the following: o Remove all the tick marks. To remove tick marks from a Scale, you must destroy (with XtDestroyChildren) the SeparatorGadget tick marks. The first two children of a Scale are its title and scroll bar, and all additional children are tick marks. o Recreate the tick marks by calling XmScaleSetTicks. scale Specifies the Scale widget ID that is getting the tick marks. big_every Specifies the number of scale values between big ticks. num_medium Specifies the number of medium ticks between big values. num_small Specifies the number of small ticks between medium values. size_big Specifies the size (either width or height) of the big ticks. size_medium Specifies the size (either width or height) of the medium ticks. size_small Specifies the size (either width or height) of the small ticks. For a complete definition of Scale and its associated resources, see XmScale(3). RELATED
XmScale(3). XmScaleSetTicks(library call)
All times are GMT -4. The time now is 07:58 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy