Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: [chap-midi] src/sys/dev



Module Name:    src
Committed By:   chap
Date:           Fri Jun  9 17:05:28 UTC 2006

Modified Files:
        src/sys/dev [chap-midi]: midisyn.c midisynvar.h
        src/sys/dev/ic [chap-midi]: opl.c
        src/sys/dev/isa [chap-midi]: cms.c midi_pcppi.c

Log Message:
Bit of housecleaning.

"miditune" wasn't a good name for the pitch representation (even if it
did come from the MIDI Tuning Specification) because for too many people
a 'tune' is a little ditty, not a single pitch. Changed the name to
midipitch and added a typedef midipitch_t; renamed the associated macros
consistently.

The type and operations on it are now in <sys/midiio.h> because they could
show up in userland for manipulation of the MIDI Tuning messages that
RP-012 defines. The macro MIDIPITCH_TO_HZ18 expands in userland to
ordinary libm calls, and in-kernel to the no-floating-point version in
midisyn. A few more operations are defined in userland where libm is
available.

At the same time, made midipitch_t signed. It has the bits to spare,
and such manipulations as adding several corrections and clamping the
result will be simpler with it signed.


To generate a diff of this commit:
cvs rdiff -r1.17.2.16 -r1.17.2.17 src/sys/dev/midisyn.c
cvs rdiff -r1.9.14.15 -r1.9.14.16 src/sys/dev/midisynvar.h
cvs rdiff -r1.24.2.4 -r1.24.2.5 src/sys/dev/ic/opl.c
cvs rdiff -r1.11.14.2 -r1.11.14.3 src/sys/dev/isa/cms.c
cvs rdiff -r1.12.14.2 -r1.12.14.3 src/sys/dev/isa/midi_pcppi.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index