个人工具

“UbuntuHelp:HowToCompressedSoundFonts”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
(New page: {{From|https://help.ubuntu.com/community/HowToCompressedSoundFonts}} {{Languages|php5}} Sometimes you download a Sound``Font and it is compressed as a .sfArk or a .sfpack file. This page s...)
 
 
(未显示2个用户的4个中间版本)
第1行: 第1行:
 
{{From|https://help.ubuntu.com/community/HowToCompressedSoundFonts}}
 
{{From|https://help.ubuntu.com/community/HowToCompressedSoundFonts}}
{{Languages|php5}}
+
{{Languages|UbuntuHelp:HowToCompressedSoundFonts}}
Sometimes you download a Sound``Font and it is compressed as a .sfArk or a .sfpack file. This page shows you how to de-compress these files.
+
Sometimes you download a SoundFont and it is compressed as a .sfArk or a .sfpack file. This page shows you how to de-compress these files.
 
+
 
==== Decompressing .sfArk Files ====
 
==== Decompressing .sfArk Files ====
 
+
You can extract .sfArk files using the command-line application called <code><nowiki>sfarkxtc</nowiki></code>.
You can extract .sfArk files using the command-line application called sfArkXTc.
+
 
+
 
First, download and extract the utility:
 
First, download and extract the utility:
 +
<pre><nowiki>
 
  cd ~/Studio/Sound``Fonts/
 
  cd ~/Studio/Sound``Fonts/
 
  mkdir sfark
 
  mkdir sfark
 
  cd sfark
 
  cd sfark
  wget http://www.rivironline.com/ubuntu/uploads/sfarkxtc.bz2
+
  wget http://www.melodymachine.com/files/sfarkxtc_lx86.tar.gz
  bunzip2 sfarkxtc.bz2
+
  tar -xzf sfarkxtc_lx86.tar.gz
chmod 755 sfarkxtc
+
</nowiki></pre>
 
+
 
You will also require the older libstdc++5, so install that:
 
You will also require the older libstdc++5, so install that:
sudo apt-get install libstdc++5
+
<code><nowiki>sudo apt-get install libstdc++5</nowiki></code>
 
+
Now, change to your SoundFonts directory, and then extract all of the .sfArk files.
Now, change to your Sound``Fonts directory, and then extract all of the .sfArk files.
+
<pre><nowiki>
 
  cd ~/Studio/Sound``Fonts/
 
  cd ~/Studio/Sound``Fonts/
 
  for i in *.sf[Aa]rk ; do sfark/sfarkxtc "$i" && rm "$i" ; done
 
  for i in *.sf[Aa]rk ; do sfark/sfarkxtc "$i" && rm "$i" ; done
 
+
</nowiki></pre>
 
That's all there is to it!
 
That's all there is to it!
 
 
==== Decompressing .sfpack Files ====
 
==== Decompressing .sfpack Files ====
 
 
Unfortunately, we don't know of a way to extract these SFPack compressed Sound``Font files in Linux without resorting to Wine.
 
Unfortunately, we don't know of a way to extract these SFPack compressed Sound``Font files in Linux without resorting to Wine.
 
+
Download the [http://www.personalcopy.com/sfpack.htm SFPack Win32] utility, and put it in its own directory.
Download the SFPack Win32 utility, and put it in its own directory.
+
cd ~/Studio/Sound``Fonts/
 
+
wget ftp://ftp.personalcopy.net/pub/SFPack.zip
cd ~/Studio/Sound``Fonts/
+
unzip SFPack.zip
wget http://www.rivironline.com/ubuntu/uploads/sfpack.zip
+
rm SFPack.zip
unzip sfpack.zip
+
rm sfpack.zip
+
 
+
 
Install Wine, if you haven't got it installed already.
 
Install Wine, if you haven't got it installed already.
sudo apt-get install wine
+
sudo apt-get install wine
 
+
 
You will need to configure it so that you have access to your ~/Studio/Sound``Fonts directory, or anywhere higher up than this.
 
You will need to configure it so that you have access to your ~/Studio/Sound``Fonts directory, or anywhere higher up than this.
winecfg
+
winecfg
 
+
 
I recommend you add a drive letter specifically for your ~/Studio directory.
 
I recommend you add a drive letter specifically for your ~/Studio directory.
 
 
After this, launch the SFPack utility:
 
After this, launch the SFPack utility:
wine sfpack/SFPACK.EXE
+
wine sfpack/SFPACK.EXE
 
+
 
* Click on the '''Add Files''' button.
 
* Click on the '''Add Files''' button.
 
* Select '''SFPack Files (*.SFPack)''' from the Files of Type dropdown.
 
* Select '''SFPack Files (*.SFPack)''' from the Files of Type dropdown.
第51行: 第39行:
 
* Double-click on it.
 
* Double-click on it.
 
* Finally, click on the '''Go!''' button on the toolbar.
 
* Finally, click on the '''Go!''' button on the toolbar.
 
 
Once this is complete, you will have the uncompressed file in the same directory as the .sfpack file.
 
Once this is complete, you will have the uncompressed file in the same directory as the .sfpack file.
  
 
[[category:UbuntuHelp]]
 
[[category:UbuntuHelp]]

2009年5月18日 (一) 16:10的最新版本

Sometimes you download a SoundFont and it is compressed as a .sfArk or a .sfpack file. This page shows you how to de-compress these files.

Decompressing .sfArk Files

You can extract .sfArk files using the command-line application called sfarkxtc. First, download and extract the utility:

 cd ~/Studio/Sound``Fonts/
 mkdir sfark
 cd sfark
 wget http://www.melodymachine.com/files/sfarkxtc_lx86.tar.gz
 tar -xzf sfarkxtc_lx86.tar.gz

You will also require the older libstdc++5, so install that: sudo apt-get install libstdc++5 Now, change to your SoundFonts directory, and then extract all of the .sfArk files.

 cd ~/Studio/Sound``Fonts/
 for i in *.sf[Aa]rk ; do sfark/sfarkxtc "$i" && rm "$i" ; done

That's all there is to it!

Decompressing .sfpack Files

Unfortunately, we don't know of a way to extract these SFPack compressed Sound``Font files in Linux without resorting to Wine. Download the SFPack Win32 utility, and put it in its own directory. cd ~/Studio/Sound``Fonts/ wget ftp://ftp.personalcopy.net/pub/SFPack.zip unzip SFPack.zip rm SFPack.zip Install Wine, if you haven't got it installed already. sudo apt-get install wine You will need to configure it so that you have access to your ~/Studio/Sound``Fonts directory, or anywhere higher up than this. winecfg I recommend you add a drive letter specifically for your ~/Studio directory. After this, launch the SFPack utility: wine sfpack/SFPACK.EXE

  • Click on the Add Files button.
  • Select SFPack Files (*.SFPack) from the Files of Type dropdown.
  • Browse to find your .sfpack file.
  • Double-click on it.
  • Finally, click on the Go! button on the toolbar.

Once this is complete, you will have the uncompressed file in the same directory as the .sfpack file.