diff --git a/src/conio/cterm.c b/src/conio/cterm.c index 51865fe9d5bfaef3d229a552563adf47aa921262..8318dae288ffbedd263dca96431924fc40e4b1f4 100644 --- a/src/conio/cterm.c +++ b/src/conio/cterm.c @@ -275,6 +275,17 @@ void play_music(void) if(cterm.octave>6) cterm.octave=6; break; + case 'L': + out=numbuf; + while(isdigit(*(p+1))) + *(out++)=*(++p); + *out=0; + cterm.notelen=atoi(numbuf); + if(cterm.notelen<1) + cterm.notelen=1; + if(cterm.notelen>64) + cterm.notelen=64; + break; case 'N': /* Note by number */ if(isdigit(*(p+1))) { out=numbuf; diff --git a/src/conio/cterm.txt b/src/conio/cterm.txt index 5113510ceebde096d6695ea7152ba81a281dfd11..fa091cac1d0ca777c2d2f12ec38b0aa03fadd3eb 100644 --- a/src/conio/cterm.txt +++ b/src/conio/cterm.txt @@ -514,6 +514,10 @@ A, B, C, D, E, G, or P Plays the named note or pause from the current ### - Notelength as a reciprical of the fraction of a whole note to play the note for. For example, 4 would indicate a 1/4 note. The default note length is 4. +L### Set the notelength parameter for all following notes which do not have + one specified (ie: override the quarter-note default) Leval note lengths + are 1-64 indicating the recibrical of the fraction (ie: 4 indicates a 1/4 + note). < Move the the next lowest octave. Octave cannot go above six or below zero. > Move to the next highest octave.