/src/sys/dev/ |
spkr.c | 118 #define MIN_TEMPO 32 /* minimum tempo */ 119 #define DFLT_TEMPO 120 /* default tempo */ 120 #define MAX_TEMPO 255 /* max tempo */ 246 int sustain, timeval, tempo; local in function:playstring 380 GETNUM(cp, tempo); 381 if (tempo < MIN_TEMPO || tempo > MAX_TEMPO) 382 tempo = DFLT_TEMPO; 383 sc->sc_whole = (hz * SECS_PER_MIN * WHOLE_NOTE) / tempo;
|
spkr.c | 118 #define MIN_TEMPO 32 /* minimum tempo */ 119 #define DFLT_TEMPO 120 /* default tempo */ 120 #define MAX_TEMPO 255 /* max tempo */ 246 int sustain, timeval, tempo; local in function:playstring 380 GETNUM(cp, tempo); 381 if (tempo < MIN_TEMPO || tempo > MAX_TEMPO) 382 tempo = DFLT_TEMPO; 383 sc->sc_whole = (hz * SECS_PER_MIN * WHOLE_NOTE) / tempo;
|
/src/usr.bin/midirecord/ |
midirecord.c | 73 static int tempo = 120; variable in typeref:typename:int 157 decode_int(optarg, &tempo); 232 /* set the tempo */ 233 if (ioctl(midifd, SEQUENCER_TMR_TEMPO, &tempo) < 0) { 235 warn("SEQUENCER_TMR_TIMEBASE: tempo %d", tempo); 237 err(1, "SEQUENCER_TMR_TIMEBASE: tempo %d", tempo); 245 fprintf(stderr, "tempo=%d notes_per_beat=%u\n", 246 tempo, notes_per_beat) [all...] |
midirecord.c | 73 static int tempo = 120; variable in typeref:typename:int 157 decode_int(optarg, &tempo); 232 /* set the tempo */ 233 if (ioctl(midifd, SEQUENCER_TMR_TEMPO, &tempo) < 0) { 235 warn("SEQUENCER_TMR_TIMEBASE: tempo %d", tempo); 237 err(1, "SEQUENCER_TMR_TIMEBASE: tempo %d", tempo); 245 fprintf(stderr, "tempo=%d notes_per_beat=%u\n", 246 tempo, notes_per_beat) [all...] |