[Freepats] [LAU] Steinway_IMIS2 soundfont

Roberto Gordo Saez roberto.gordo at gmail.com
Thu Jul 5 18:42:26 EST 2007


On Thu, Jul 05, 2007 at 01:13:02AM +0200, Marcos Guglielmetti wrote:
>  | I also like the fact that it's long samples without 
>  | the need for looping. However it seems that loops are on, although you
>  | have to play really long notes to hear it :-)
> 
> Loops are on? Oh shit! you are right! :P

It seems that pysf has added the loops. I don't know why. Ben Collver is
pysf's author and he is usually on this list, maybe he could help us.

Loops are added when rebuilding the sf2 this way:

pysf.py --sf2xml Steinway_IMIS2_backup.sf2 Steinway_IMIS2.xml
pysf.py --xml2sf Steinway_IMIS2.xml Steinway_IMIS2.sf2

I've made another quick fix. For now, if you want you can use the
attached script to remove the loops. Just run this on the directory
where Steinway_IMIS2.1.xml is:

ruby no-loops.rb

It will create Steinway_IMIS2.2.xml.
-------------- next part --------------
#!/usr/bin/ruby

require 'rexml/document'

xml = REXML::Document.new(File.read('Steinway_IMIS2.1.xml'))
xml.root.elements.delete_all '//loop'

File.open('Steinway_IMIS2.2.xml', 'w') do |f|
	xml.write(f, 0, false, true)
	f.print "\n"
end


More information about the Freepats mailing list