[Freepats] [LAU] Steinway_IMIS2 soundfont

Roberto Gordo Saez roberto.gordo at gmail.com
Tue Jul 3 19:04:00 EST 2007


On Mon, Jul 02, 2007 at 10:48:45PM +0200, Marcos Guglielmetti wrote:
> The pan issue it is really easy to solve, I (or you) have to change all the R 
> samples and L samples to the other side using Swami or some other editor.
> 
> I will do it some day, I hope to do it soon, also, I have to make a lot of 
> modifications, for instance, to lower the volume of the FF layer (specially 
> for middle and high notes), this was the first aproach.

The attached scripts are a quick and dirty fix. Put them in a
temporary directory along with a copy of the soundfont, like this:

fixpan.rb
fixpan.sh
Steinway_IMIS2_backup.sf2

Then run fixpan.sh. It will produce Steinway_IMIS2.sf2 with panning
reversed (and many temporary files that can be deleted). Those scripts
use pysf, so you will need to have it installed.
-------------- next part --------------
#!/usr/bin/ruby

require 'rexml/document'

xml = REXML::Document.new(File.read('steinway_imis.xml'))
xml.root.elements.each('//gen') do |gen|
	if gen.elements['oper'].text =~ /^\s*17\s*$/
		if gen.elements['hexAmount'].text =~ /^\s*0x1f4\s*$/
			gen.elements['hexAmount'].text = '0xfe0c'
		else
			gen.elements['hexAmount'].text = '0x1f4'
		end
	end
end

xml.write($stdout, 0, false, true)
print "\n"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fixpan.sh
Type: application/x-sh
Size: 162 bytes
Desc: not available
Url : http://opensrc.org/pipermail/freepats/attachments/20070703/e27f31f9/attachment.sh 


More information about the Freepats mailing list