Jump to content


Photo

Sf2Xrni


  • Please log in to reply
29 replies to this topic

#26 atsushieno

atsushieno

    Member

  • Normal Members
  • PipPip
  • 14 posts
  • Gender:Male
  • Location:Japan

Posted 24 October 2011 - 02:25

Great project. However, I can't open the program.

I've downloaded and installed Mono 2.10.6.
I open Mono Command Prompt, browse to the sf2xrni's location, try to run it, but nothing happens. What to do?


Hi, thanks for trying out this toy :)
The tool should be more kind for you; it just does nothing probably because you passed no sf2 file name as arguments.
Try passing some files and see if it works.

#27 Drop Shadow

Drop Shadow

    Big Daddy Member

  • Normal Members
  • PipPipPipPipPipPipPip
  • 434 posts
  • Gender:Male
  • Location:Copenhagen

Posted 24 October 2011 - 21:36

Hi, thanks for trying out this toy :)
The tool should be more kind for you; it just does nothing probably because you passed no sf2 file name as arguments.
Try passing some files and see if it works.

Thanks. When I run a command like sf2xrni FILE_X, a windows error dialog shows up and Mono gives me this:

UnauthorizedAccessException: Access to the path'C:\renoisebix\2009-instruments\Soundfonts\sf2xrni-0.1.7\FILE_X' was denied.
   ved System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   ved System.IO.FileStream.Init(String path, FileMode mode, FileAccess access,
Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions
options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
   ved System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access)

   ved NAudio.SoundFont.SoundFont..ctor(String fileName)
   ved Commons.Music.Sf2Xrni.Sf2Xrni.Import(String file, String filter)
   ved Commons.Music.Sf2Xrni.Driver.Main(String[] args)

I know nothing about Mono, commands and so on. So I have no idea what's wrong.

Running XP SP3.

Edited by Drop Shadow, 24 October 2011 - 21:37.


#28 atsushieno

atsushieno

    Member

  • Normal Members
  • PipPip
  • 14 posts
  • Gender:Male
  • Location:Japan

Posted 26 October 2011 - 09:25

Thanks. When I run a command like sf2xrni FILE_X, a windows error dialog shows up and Mono gives me this:

UnauthorizedAccessException: Access to the path'C:\renoisebix\2009-instruments\Soundfonts\sf2xrni-0.1.7\FILE_X' was denied.
   ved System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   ved System.IO.FileStream.Init(String path, FileMode mode, FileAccess access,
Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions
options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
   ved System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access)

   ved NAudio.SoundFont.SoundFont..ctor(String fileName)
   ved Commons.Music.Sf2Xrni.Sf2Xrni.Import(String file, String filter)
   ved Commons.Music.Sf2Xrni.Driver.Main(String[] args)

I know nothing about Mono, commands and so on. So I have no idea what's wrong.

Running XP SP3.


On Windows, you can run the sf2xrni.exe just like other .NET program (or it is still possible to run it with mono on windows). In either way, make sure to give executable permission on the file in its property page. It probably solves the issue.

#29 svuori

svuori

    New Member

  • Normal Members
  • Pip
  • 1 posts

Posted 22 September 2013 - 00:22

I have reported the enhancement issue to NRenoiseTools dev. and he came up with 2.7 support (only in devel repository yet) so I tried to implement SampleSplitMap support. But I cannot get it; I believe it's almost done but Renoise only loads the first sample into an entire sample area... Since there is no public documentation on how I can correctly create SampleSplitMap elements, I find it almost impossible to do it :(/>/>


Thanks for starting the work on this tool and making it open source. I was able to compile it on Ubuntu with a few tweaks and get it running. I dug deeper into this SampleSplitMap issue and found out that the generated maps were quite correct but renoise didn't recognize them. The problem was with the XML file NRenoiseTools was generating. The root element had to have the attribute doc_version="13" for it to work. I downloaded the NRenoiseTools sources and modified the XML serialization a bit and the SampleSplitMaps work now! :)/> I wonder if I should share the changes with NRenoiseTools folks. I can send you the updated NRenoiseTools.dll if you want to.

With best regards,
Sampo Vuori

#30 atsushieno

atsushieno

    Member

  • Normal Members
  • PipPip
  • 14 posts
  • Gender:Male
  • Location:Japan

Posted 22 September 2013 - 19:55

Thanks for starting the work on this tool and making it open source. I was able to compile it on Ubuntu with a few tweaks and get it running. I dug deeper into this SampleSplitMap issue and found out that the generated maps were quite correct but renoise didn't recognize them. The problem was with the XML file NRenoiseTools was generating. The root element had to have the attribute doc_version="13" for it to work. I downloaded the NRenoiseTools sources and modified the XML serialization a bit and the SampleSplitMaps work now! Posted Image/> I wonder if I should share the changes with NRenoiseTools folks. I can send you the updated NRenoiseTools.dll if you want to.


That's awesome, thanks for letting us know. Yeah I believe it's worthy reporting the issue to the NRenoiseTools developers at codeplex, maybe you can even give them your changes :)