胆小:没有乐器映射到音色库0,不知道缺少哪一个


9

我正在尝试播放从此处下载的midi文件,但得到:

$ timidity --verbose marivonnig1\ \(1\).mid 
Requested buffer size 32768, fragment size 8192
ALSA pcm 'default' set buffer size 32768, period size 8192 bytes
Playing marivonnig1 (1).mid
MIDI file: marivonnig1 (1).mid
Format: 1  Tracks: 2  Divisions: 192
Sequence: Marivonnig
Text: By Traditionnel
Text: Generated by NoteWorthy Composer
Time signature: 2/4 24 clock 8 q.n.
Time signature: 3/4 24 clock 8 q.n.
Time signature: 2/4 24 clock 8 q.n.
Time signature: 3/4 24 clock 8 q.n.
Time signature: 2/4 24 clock 8 q.n.
Time signature: 3/4 24 clock 8 q.n.
Time signature: 2/4 24 clock 8 q.n.
Time signature: 3/4 24 clock 8 q.n.
Time signature: 2/4 24 clock 8 q.n.
Time signature: 3/4 24 clock 8 q.n.
Time signature: 2/4 24 clock 8 q.n.
Track name: Staff
364 supported events, 3413810 samples, time 1:17
No instrument mapped to tone bank 0, program 41 - this instrument will not be heard
No pre-resampling cache hit

根本没有声音

还有一个链接,即同一文本的不同旋律。

对于从该网站的一些MIDI文件,我听到一些声音,但我仍然得到消息没有仪器映射到音银行0 - 该仪器将不会被听到,我怀疑是我所听到的是不是我应该听到的。

也许它需要一些音效,但并没有告诉我哪一个。

我如何听到旋律?

Answers:


14

timidity 是一个midi渲染器,但它本身并没有附带乐器定义。

似乎您缺少一些音标(至少对于program而言41)。为了解决此问题,您可能需要安装/启用另一套仪器。例如,fluid-GM似乎很完整。一旦安装,请确保启用它。如下内容应该有所帮助(以开头的行$是要执行的命令;以开头的行#仅是注释):

 $ sudo apt-get install fluid-soundfont-gm
 # then edit your /etc/timidity/timidity.cfg to activate the new soundfont
 # (and deactivate the old ones), e.g.:
 $ sudo sed -e 's|^source|#source|' -e '$a source /etc/timidity/fluidr3_gm.cfg' -i /etc/timidity/timidity.cfg
 # restart timidity
 $ sudo /etc/init.d/timidity restart
 # and play your file
 $ timidity --verbose marivonnig1\ \(1\).mid 

这行得通,但似乎乐器映射到不同的种类,Midi Random Trance音乐生成器仅在标准时听起来正确source /etc/timidity/freepats.cfg
rubo77 '19

1

安装eawpatches

胆小是freepats默认使用的,请尝试eawpatches以其他方式安装:

sudo su
echo "deb https://www.fbriere.net/debian stable misc" > /etc/apt/sources.list.d/midi-fbriere.net.list
wget -q -O- 'https://www.fbriere.net/public_key.html' | sudo apt-key add -
wget -q -O- 'http://pool.sks-keyservers.net/pks/lookup?op=get&search=0x96B4BF71E4D7FB01' | sudo apt-key add -
apt install eawpatches-package
make-eawpatches-package
chmod 777 ./eawpatches_12-10+local_all.deb
sudo apt-get install ./eawpatches_12-10+local_all.deb
# then edit your /etc/timidity/timidity.cfg to activate the new soundfont
# (and deactivate the old ones) with:
sudo sed -e 's|^source|#source|' -e '$a source /etc/timidity/eawpatches.cfg' -i /etc/timidity/timidity.cfg

Source Enable eawpatches midi soundfont作为freepats的替代

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.