android/ringlibsdl/project/jni/libmodplug-0.8.8.4/src/load_abc.cpp
static void abc_MIDI_beat(ABCHANDLE *h, const char *p)
{
	int i,j;
	h->beat[0] = 127;
	h->beat[1] = 125;
	h->beat[2] = 110;
	h->beat[3] = 1;
	for( j=0; j<4; j++ ) {
		while( isspace(*p) ) p++;
		if( *p ) {
			p += abc_getnumber(p, &i);
			if( i < 0   ) i = 0;
			if( i > 127 ) i = 127;
			h->beat[j] = i;
		}
	}
	if( h->beat[3] == 0 ) h->beat[3] = 1; // BB Ruud says: do not let you make mad
}
// %%MIDI beat a b c n
//
// controls the way note velocities are selected. The first note in a bar has
// velocity a. Other "strong" notes have velocity b and all the rest have velocity
// c. a, b and c must be in the range 0-128. The parameter n determines which
// notes are "strong". If the time signature is x/y, then each note is given
// a position number k = 0, 1, 2 .. x-1 within each bar. Note that the units for
// n are not the unit note length. If k is a multiple of n, then the note is
// "strong". The volume specifiers !ppp! to !fff! are equivalent to the
// following :
//
// !ppp! = %%MIDI beat 30 20 10 1
// !pp!  = %%MIDI beat 45 35 20 1
// !p!   = %%MIDI beat 60 50 35 1
// !mp!  = %%MIDI beat 75 65 50 1
// !mf!  = %%MIDI beat 90 80 65 1
// !f!   = %%MIDI beat 105 95 80 1
// !ff!  = %%MIDI beat 120 110 95 1
// !fff! = %%MIDI beat 127 125 110 1
%%MIDI beat a b c n
controls the way note velocities are selected. The first note in a bar has
velocity a. Other "strong" notes have velocity b and all the rest have velocity
c. a, b and c must be in the range 0-128. The parameter n determines which
notes are "strong". If the time signature is x/y, then each note is given
a position number k = 0, 1, 2 .. x-1 within each bar. Note that the units for
n are not the unit note length. If k is a multiple of n, then the note is
"strong". The volume specifiers !ppp. to !fff. are equivalent to the
following .

ppp.
%%MIDI beat a b c n controls the way note velocities are selected . The first note in a bar has velocity a . Other " strong " notes have velocity b and all the rest have velocity c . a b and c must be in the range 0 - 128 . The parameter n determines which notes are " strong " . If the time signature is x / y then each note is given a position number k = 0 1 2 .. x - 1 within each bar . Note that the units for n are not the unit note length . If k is a multiple of n then the note is " strong " . The volume specifiers !ppp . to !fff . are equivalent to the following . ppp .
static void abc_MIDI_beat(ABCHANDLE *h, const char *p)
{
	int i,j;
	h->beat[0] = 127;
	h->beat[1] = 125;
	h->beat[2] = 110;
	h->beat[3] = 1;
	for( j=0; j<4; j++ ) {
		while( isspace(*p) ) p++;
		if( *p ) {
			p += abc_getnumber(p, &i);
			if( i < 0   ) i = 0;
			if( i > 127 ) i = 127;
			h->beat[j] = i;
		}
	}
	if( h->beat[3] == 0 ) h->beat[3] = 1; 
}
static void abc_MIDI_beat ( ABCHANDLE * h , const char * p ) { int i , j ; h -> beat [ 0 ] = 127 ; h -> beat [ 1 ] = 125 ; h -> beat [ 2 ] = 110 ; h -> beat [ 3 ] = 1 ; for ( j = 0 ; j < 4 ; j ++ ) { while ( isspace ( * p ) ) p ++ ; if ( * p ) { p += abc_getnumber ( p , & i ) ; if ( i < 0 ) i = 0 ; if ( i > 127 ) i = 127 ; h -> beat [ j ] = i ; } } if ( h -> beat [ 3 ] == 0 ) h -> beat [ 3 ] = 1 ; }
%%MIDI beat a b c n
controls the way note velocities are selected.
%%MIDI beat a b c n controls the way note velocities are selected .
// BB Ruud says: do not let you make mad