Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Mar 1997 14:36:03 -0500 (EST)
From:      lee@man-as1s61.erols.com
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   kern/3054: OPL3 sound off by one note
Message-ID:  <199703211936.OAA00912@man-as1s61.erols.com>
Resent-Message-ID: <199703211940.LAA07640@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         3054
>Category:       kern
>Synopsis:       OPL3 sound off by one note
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Mar 21 11:40:01 PST 1997
>Last-Modified:
>Originator:     Lee Cremeans
>Organization:
>Release:        FreeBSD 2.2-RELEASE i386
>Environment:

Standard 2.2-R environment

>Description:

Sound played through the OPL2/3 sequencer is high by one note, for example
if you tell the sequencer to play an A, it actually plays a B.

>How-To-Repeat:

Play any MIDI file on the FM system with playmidi or another .mid player.

>Fix:
	
Apply this patch to /sys/i386/isa/sequencer.c:

--- sequencer.c.orig	Fri Mar 21 14:29:58 1997
+++ sequencer.c	Fri Mar 21 14:30:58 1997
@@ -1845,7 +1845,8 @@
   };
 
 #define BASE_OCTAVE	5
-
+  
+  note_num += 2;  
   octave = note_num / 12;
   note = note_num % 12;
 
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199703211936.OAA00912>