diff -ruN TiMidity++-1.3.7/ChangeLog TiMidity++-1.3.8/ChangeLog --- TiMidity++-1.3.7/ChangeLog Tue Mar 30 19:49:31 1999 +++ TiMidity++-1.3.8/ChangeLog Tue Apr 6 01:00:40 1999 @@ -1,3 +1,41 @@ +-- 1.3.8 +Tue Apr 6 1999 +Summary: + * Fixed some bugs or probrems. + +Date: Sun, 4 Apr 1999 18:14:43 +1000 (EST) +From: David Gibson +Files: timidity/linux_a.c + The two bugs are both in the linux audio driver. Firstly, the driver opens + /dev/dsp for both reading and writing, where only writing is necessary. + Secondly, the code uses hard coded constants 8 and 16 to set the output + format on /dev/dsp. This fails on big-endian machines such as the PowerPC. + This patch makes the code use constants #defined by glibc. + +Date: Sun Apr 4 21:05:37 JST 1999 +From: Masanao Izumo +Files: interface/x_wrdwindow.c + Fixed to change undefined color code to default color (white). + +Date: Sat, 03 Apr 1999 22:07:45 +0900 (JST) +From: Yoshishige ARAI +Files: interface/xaw_i.c doc/C/README.xaw doc/ja_JP.ujis/README.xaw + Fixed XAW bug. + Chnaged some discriptions for XAW document. + +Date: Wed Mar 31 1999 +From: Masanao Izumo +Files: timidity/playmidi.c + Fixed bug of drumpart recognization. +Files: interface/ncurs_c.c + Fixed bug about buffer over-running of comment_indicator_buffer. + +From: Takaya Nogami +Date: Sat, 27 Mar 1999 10:38:11 +0900 +Files: interface/VTPrsTbl.c timidity/output.c + Enabled clear screen with @esc(2j) command for MIMPI WRD. + Included from output.c + -- 1.3.7 Summary: Tue Mar 30 1999 diff -ruN TiMidity++-1.3.7/NEWS TiMidity++-1.3.8/NEWS --- TiMidity++-1.3.7/NEWS Tue Mar 30 19:49:35 1999 +++ TiMidity++-1.3.8/NEWS Tue Apr 6 00:42:04 1999 @@ -1,3 +1,7 @@ +* 4/6, 1999 + Released TiMidity++ v1.3.8. + * Fixed some bugs or probrems. + * 3/30, 1999 Released TiMidity++ v1.3.7. * Fixed some bugs or probrems. diff -ruN TiMidity++-1.3.7/configure TiMidity++-1.3.8/configure --- TiMidity++-1.3.7/configure Tue Mar 30 19:10:11 1999 +++ TiMidity++-1.3.8/configure Tue Apr 6 00:04:29 1999 @@ -836,7 +836,7 @@ PACKAGE=TiMidity++ -VERSION=1.3.7 +VERSION=1.3.8 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } diff -ruN TiMidity++-1.3.7/configure.in TiMidity++-1.3.8/configure.in --- TiMidity++-1.3.7/configure.in Tue Mar 30 18:57:08 1999 +++ TiMidity++-1.3.8/configure.in Tue Apr 6 00:04:09 1999 @@ -54,7 +54,7 @@ AC_INIT(timidity/timidity.c) AC_CANONICAL_SYSTEM -AM_INIT_AUTOMAKE(TiMidity++, 1.3.7, no-define) +AM_INIT_AUTOMAKE(TiMidity++, 1.3.8, no-define) dnl To use CONTAINS() macro (See acinclude.m4) CONTAINS_INIT diff -ruN TiMidity++-1.3.7/doc/C/README.xaw TiMidity++-1.3.8/doc/C/README.xaw --- TiMidity++-1.3.7/doc/C/README.xaw Mon Mar 8 09:58:49 1999 +++ TiMidity++-1.3.8/doc/C/README.xaw Mon Apr 5 02:22:28 1999 @@ -13,6 +13,9 @@ - Supported Drag and Drop used on OffiX application - Added function to load and/or delete MIDI file entries - Enabled to modify some of extended option settings +- Enabled to save the current playing lists into ~/.xtimidity +- Menu and dialog messages were Internationalized +- Resource files were attached * USAGE @@ -42,7 +45,7 @@ Toggle auto-start flag. AUTO-EXIT - Toggle auto-exit flag to exit or not after all songs are over + Toggle auto-exit flag to exit or not after all songs are over. FILE LIST Popup the playing file list window. @@ -50,6 +53,9 @@ EXTEND MODES Popup the extend mode control window. + ABOUT + Information about Xaw interface of TiMidity++. + QUIT terminate timidity. @@ -60,7 +66,7 @@ The shortcut key actions on each window are as follows:
- [Enter] or [R] : Start Playing + [Enter] or [r] : Start Playing [Space] : Pause / Start Again [s] : Stop Playing [q] : Quit TiMidity++ @@ -89,12 +95,12 @@ [q] : Quit TiMidity++ [c] : Close the window - + [c] : Close the window [q] : Quit TiMidity++ - [Tab] : File or directory comletion + [Tab] : File or directory completion [Enter] : Select the directory entries. [Escape] or [CTRL]+[g] : Cancel and close the window [Ctrl-a] : Move the cursor to the top @@ -137,6 +143,21 @@ in xaw.h manually. +!!! NOTE !!! +Some resource files were attached to TiMidity++1.3.6 or later. +If you create a resource file of another locale except English or +Japanese, please mail it to Yoshishige Arai or +to Masanao Izumo . +After building TiMidity++, put TiMidity.ad into the resources directory +such as; + $(X11R6)/lib/X11/app-defaults +And put TiMidity-uj.ad, which is the Japanese-EUC resource file into; + $(X11R6)/lib/X11/$(LANG)/app-defaults +For example, those are as follows if the Japanese-EUC locale of your +system is ja_JP.EUC as FreeBSD; + # cp TiMidity.ad /usr/X11R6/lib/X11/app-defaults/TiMidity + # cp TiMidity-uj.ad /usr/X11R6/lib/X11/app-defaults/ja_JP.EUC/TiMidity + * RESOURCES @@ -175,12 +196,23 @@ Volume Label font. tracefont TraceFont -*-*-medium-r-normal--14-*-*-*-*-*-*-* Trace window font. +textfontset TextFontSet -*-*-medium-r-normal--14-*-*-*-*-*-*-* + Text font for message box and so on. +ttitlefont TtitleFont -*-fixed-medium-r-normal--14-*-*-*-*-*-*-* + MIDI title font at the bottom of trace window. + +Note that you have to specify FontSet style for font resources +of TiMdifity*textfontset and/or TiMidity*ttitlefont if you are using +executables compiled with -DI18N on the internationalized X server. + +* REPORTS -* BUGS +Please send problems concerning Xaw interface, feature requests, +bug reports or comments to either Yoshishige Arai +or to the TiMidity mailing list . -Present Xaw interface doesn't verifies the existence or file type of -each MIDI file before playing, sorry. + Regards, - Yoshishige Arai + Yoshishige Arai diff -ruN TiMidity++-1.3.7/doc/ja_JP.ujis/README.xaw TiMidity++-1.3.8/doc/ja_JP.ujis/README.xaw --- TiMidity++-1.3.7/doc/ja_JP.ujis/README.xaw Mon Mar 8 09:58:49 1999 +++ TiMidity++-1.3.8/doc/ja_JP.ujis/README.xaw Mon Apr 5 02:22:28 1999 @@ -6,7 +6,7 @@ す。 -* WHAT'S NEW in 1.3 +* バージョン 1.3 での変更 - ショートカットキーの導入 - キーボード表示を含むトレースウィンドウ @@ -14,9 +14,12 @@ - OffiX アプリケーションのドラッグアンドドロップがサポートされた - 起動後に MIDI ファイルの追加/削除ができるようになった - 起動後に timidity の拡張オプション設定を変更できるようにした +- 演奏曲リストを ~/.xtimidity にできるようにした。 +- メニューやダイアログラベルも国際化され、日本語表示も可能となった。 +- リソースファイルを付属するようになった。 -* USAGE +* 使用法 新 Xaw インタフェースには以下のファイルメニューがあります。 @@ -51,19 +54,21 @@ EXTEND MODES 拡張モード制御ウィンドウの表示 + ABOUT + TiMidity++ の Xaw インターフェースについて + QUIT timidityの終了 - ver.1.3 から、ファイルの Load メニューと File List ウィンドウから演奏ファイル の追加と削除ができるようになっています。演奏ファイルの選択は、タイトルボタ ンからのプルダウンメニューと File List ウィンドウの両方でできます。 各ウィンドウにおけるキーボードショートカットは以下のようになっています: 《メインウィンドウ》 - [Enter] : 演奏開始 + [Enter] or [r] : 演奏開始 [Space] : 一時停止 / 演奏再開 - [c] : 停止 + [s] : 停止 [q] : TiMidity++ の終了 [p] or [Left] : 前の曲 [n] or [Right] : 次の曲 @@ -110,11 +115,11 @@ 各 MIDI チャンネル毎のボリューム、Expression, パンポット、ピッチベンド、リ バーブ、コーラスの動きやインストルメント指定をリアルタイムに見ることができ、 各チャンネルの演奏はキーボード上に表示されます。トレース画面上でマウス左ボ -タンをクリックすると、「ピッチベンド、楽器名」と「トーンバンク、リバーブ、」 +タンをクリックすると、「ピッチベンド、楽器名」と「トーンバンク、リバーブ、 コーラス」の表示を切り替えることができます。 -* INSTALLATION +* インストール方法 TiMidity++ では GNU configure でソースの build を行ないますが、libXaw3d が システムに存在すると、デフォルトでそれを使うようになります。Xaw を使いたい @@ -126,23 +131,40 @@ 行が有効になるようにコメント(/* */)を外してから make clean, make して下さ い。 -localeのサポートが無いシステムで、かつ X が国際化されていない(X_LOCALE無しでコ -ンパイルされている Xサーバを使っている)場合は、xaw.h の +localeのサポートが無いシステムで、かつ X が国際化されていない (X_LOCALE +無しでコ ンパイルされている Xサーバを使っている)場合は、xaw.h の #define I18N を #undef I18N に書き換えてから TiMidity++ をコンパイルして下さい。 -初期設定ファイルはデフォルトで $(HOME)/.xtimidity となっていますが、このファイ -ル名を変えたい場合は、 +初期設定ファイルはデフォルトで $(HOME)/.xtimidity となっていますが、 +このファイル名を変えたい場合は、 #define INITIAL_CONFIG ".xtimidity" 行を変更して下さい。 + ******** + * 注意 * + ******** +バージョン 1.3.6 から、Xaw interface にリソースファイルが付きました。 +現在英語と日本語のリソースしかないので、他の言語についてリソースファイル +を作られた方がいれば、荒井 または出雲 +まで連絡をいただけるとありがたいです。 +ソースをコンパイルした後、例えば、英語リソース TiMidity.ad は、 + $(X11R6)/lib/X11/app-defaults のような X のリソースファイル置場に、 +日本語リソース TiMidity-uj.ad は、 + $(X11R6)/lib/X11/$(LANG)/app-defaults のような国際化クライアントの +リソース置場に置いて下さい。 +例えば、日本語 locale が ja_JP.EUC の場合(FreeBSD等) + # cp TiMidity.ad /usr/X11R6/lib/X11/app-defaults/TiMidity + # cp TiMidity-uj.ad /usr/X11R6/lib/X11/app-defaults/ja_JP.EUC/TiMidity +することになります。 -* RESOURCES -アプリケーションクラス名は TiMidity ですので、ホームディレクトリの +* リソース + +アプリケーションクラス名は TiMidity です。ホームディレクトリの .Xdefaults または .Xresource の中で、以下の例のような指定ができます。 TiMidity*textbackground: LemonChiffon @@ -177,12 +199,21 @@ volume ラベルのフォント tracefont TraceFont -*-*-medium-r-normal--14-*-*-*-*-*-*-* トレース画面のフォント +textfontset TextFontSet -*-*-medium-r-normal--14-*-*-*-*-*-*-* + メッセージ欄のフォントなど +ttitlefont TtitleFont -*-fixed-medium-r-normal--14-*-*-*-*-*-*-* + トレース画面最下行の MIDI タイトル表示用フォント + +国際化された X 上で、コンパイル時に -DI18N を付けた TiMidity++ の Xaw イ +ンタフェースを使う場合、フォントリソース textfontset と ttitlefont は +FontSet で指定することに気をつけて下さい。 -* BUGS +* 連絡先 -現在の Xaw インタフェースでは、MIDI ファイルのリスト表示の際に、ファイル -の有無や MIDI ファイルであるかどうかのチェックをしていません。 +Xaw インターフェースに関する動作の不具合や要望、バグ報告、御意見などがあ +れば、TiMidityメーリングリスト timidity@goice.co.jp または、私まで連絡し +て下さい。 荒井良重 (Yoshishige Arai) diff -ruN TiMidity++-1.3.7/interface/Makefile.in TiMidity++-1.3.8/interface/Makefile.in --- TiMidity++-1.3.7/interface/Makefile.in Tue Mar 30 19:50:12 1999 +++ TiMidity++-1.3.8/interface/Makefile.in Tue Apr 6 02:58:57 1999 @@ -430,6 +430,10 @@ ../timidity/output.h ../timidity/controls.h \ ../timidity/instrum.h ../timidity/playmidi.h \ ../timidity/readmidi.h +dynamic_c.o: dynamic_c.c ../config.h ../timidity/timidity.h \ + ../timidity/common.h ../libarc/url.h ../utils/mblock.h \ + ../timidity/output.h ../timidity/controls.h \ + ../timidity/dlutils.h emacs_c.o: emacs_c.c ../config.h ../timidity/timidity.h \ ../timidity/common.h ../libarc/url.h ../utils/mblock.h \ ../timidity/output.h ../timidity/controls.h \ diff -ruN TiMidity++-1.3.7/interface/VTPrsTbl.c TiMidity++-1.3.8/interface/VTPrsTbl.c --- TiMidity++-1.3.7/interface/VTPrsTbl.c Sun Feb 21 20:11:05 1999 +++ TiMidity++-1.3.8/interface/VTPrsTbl.c Mon Apr 5 03:27:14 1999 @@ -510,7 +510,11 @@ /* h i j k */ CASE_SET, CASE_GROUND_STATE, +#ifndef BUGGY_VTPARSE CASE_GROUND_STATE, +#else +CASE_ED, +#endif CASE_GROUND_STATE, /* l m n o */ CASE_RST, diff -ruN TiMidity++-1.3.7/interface/ncurs_c.c TiMidity++-1.3.8/interface/ncurs_c.c --- TiMidity++-1.3.7/interface/ncurs_c.c Tue Mar 30 17:28:08 1999 +++ TiMidity++-1.3.8/interface/ncurs_c.c Wed Mar 31 14:19:10 1999 @@ -412,6 +412,10 @@ #else waddch(dftwin, '_'); #endif + + indicator_width = COLS - 2; + if(indicator_width < 40) + indicator_width = 40; if(comment_indicator_buffer == NULL) { memset(comment_indicator_buffer = @@ -449,10 +453,6 @@ #endif for(i = 0; i < 16; i++) init_bitset(channel_program_flags + i, 128); - - indicator_width = COLS - 2; - if(indicator_width < 40) - indicator_width = 40; } N_ctl_refresh(); } @@ -1384,8 +1384,10 @@ while (strchr(lyric, '\r')) { *(strchr(lyric, '\r')) = ' '; } - while (strchr(lyric, '\n')) { - *(strchr(lyric, '\n')) = '\r'; + if (ctl.trace_playing) { + while (strchr(lyric, '\n')) { + *(strchr(lyric, '\n')) = '\r'; + } } } @@ -2388,7 +2390,7 @@ } else { -#if defined(__WIN32__) && !defined(__CYGWIN32__) +#if defined( __BORLANDC__) || (defined(__WIN32__) && !defined(__CYGWIN32__)) nl(); #endif if(ctl.trace_playing) diff -ruN TiMidity++-1.3.7/interface/wrdt_mac.c TiMidity++-1.3.8/interface/wrdt_mac.c --- TiMidity++-1.3.7/interface/wrdt_mac.c Sun Feb 21 20:11:05 1999 +++ TiMidity++-1.3.8/interface/wrdt_mac.c Mon Apr 5 03:11:07 1999 @@ -682,8 +682,7 @@ { start: switch(esccode){ - case 0: - case DEFAULT: + case default: esccode=37; goto start; case 17: esccode=31; goto start; diff -ruN TiMidity++-1.3.7/interface/x_wrdwindow.c TiMidity++-1.3.8/interface/x_wrdwindow.c --- TiMidity++-1.3.7/interface/x_wrdwindow.c Sun Feb 28 21:43:39 1999 +++ TiMidity++-1.3.8/interface/x_wrdwindow.c Mon Apr 5 03:05:56 1999 @@ -1697,8 +1697,7 @@ int i; for(i=0;icmsg(CMSG_ERROR, VERB_NORMAL, "%s: %s", @@ -196,11 +196,11 @@ /* Set sample width to whichever the user wants. If it fails, try the other one. */ - i=tmp=(dpm.encoding & PE_16BIT) ? 16 : 8; + i=tmp=(dpm.encoding & PE_16BIT) ? AFMT_S16_NE : AFMT_U8; if (ioctl(fd, SNDCTL_DSP_SAMPLESIZE, &tmp)<0 || tmp!=i) { /* Try the other one */ - i=tmp=(dpm.encoding & PE_16BIT) ? 8 : 16; + i=tmp=(dpm.encoding & PE_16BIT) ? AFMT_U8 : AFMT_S16_NE; if (ioctl(fd, SNDCTL_DSP_SAMPLESIZE, &tmp)<0 || tmp!=i) { ctl->cmsg(CMSG_ERROR, VERB_NORMAL, diff -ruN TiMidity++-1.3.7/timidity/playmidi.c TiMidity++-1.3.8/timidity/playmidi.c --- TiMidity++-1.3.7/timidity/playmidi.c Sat Mar 27 16:30:22 1999 +++ TiMidity++-1.3.8/timidity/playmidi.c Tue Apr 6 00:29:59 1999 @@ -1779,10 +1779,11 @@ channel[ch].pitchfactor = 0; break; } - if(drumflag && midi_drumpart_change(ch, 1) && update_now) + if(drumflag && midi_drumpart_change(ch, 1)) { midi_program_change(ch, channel[ch].program); - ctl_prog_event(ch); + if(update_now) + ctl_prog_event(ch); } }