Jump to content


Photo

Accessing The Xml And Sample Files In Xrns, Xrni And Xrnt Files


  • Please log in to reply
6 replies to this topic

#1 taktik

taktik

    Renoise Developer

  • Admins
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 15040 posts
  • Gender:Male
  • Location:Berlin, Germany
  • Interests:füße waschen

Posted 09 January 2007 - 22:19

Renoise songs (XRNS), Instruments (XRNI) and DSP device-chains (XRNT) are pkzip containers with non ".zip" extension, to avoid that people who don't want to know about the internals can simply handle the files as binary files, and of course to shrink the file size on the Disk.

To access or modify the XML and/or SampleData (for XRNI and XRNS) content, you can simply open the files with a zip decompression tool like WinRar, WinZip or Stuffit Deluxe. Alternatively you can of course also directly uncompress them via a shell tool which supports pkzips (like "unzip").

When compressing a new XRNS,I,T archive, make sure that you do NOT wrap the content into another folder in the zip. So do not zip a folder which contains the XML and SampleData folder but zip them directly. The SampleData folder and XML file must be in the root of the container!

About the SampleData content:
Samples can be stored in any audio format that Renoise can handle (open). So you can use WAV, AIF, OGG, FLAC or even MP3 or AAC samples. The demo songs are compressed by using OGG samples for example. Further the file extensions are not referenced in the XML file, so you can modify/convert the samples afterwards into any other format without having to update the XML.

Samples are identified by Renoise via its path and name:

For Songs for example, we have a file structure like:
Song.xml
SampleData
- InstrumentX (NAME)
- SampleY (NAME)

Where X will identify into which instrument the sample has to be loaded,
and Y into which sample slot (split). NAME (everything behind "InstrumentX" and "SampleY" is just cosmetics and is ignored).

For Instruments, you will have the sample structure and rules, but with InstrumentX as the SampleData root.

#2 synchro

synchro

    Member

  • Normal Members
  • PipPip
  • 51 posts

Posted 14 March 2009 - 01:27

what if you have a folder with "Song.xml and a "SampleData" folder and you wish to turn it back into an .xrns file?

I've downloaded a compos file I wish to play and when I unzipped it, I got the above files. I am unable to open them with Renoise 2.0

Also, I'm on a Mac running OS X 10.4.11 (which does not have PHP 5) to further complicate matters.

Is there any way I can turn this file back into a .xrns or .xrs file?

thanks
| Early 2005 "Q87" PowerMac G5 - 2.7GHz PowerPC CPU | 8GB RAM |
| ATI Radeon 9650 256MB |
| OS X Tiger - 10.4.11 |
| RME HDSP9632 Audio Card | MOTU MTP A/V MIDI Interface |
| Korg M1ex synth used as MIDI controller |

#3 Guest_Bantai_*

Guest_Bantai_*
  • Guests

Posted 14 March 2009 - 01:48

Compress all files together with StuffIt or a similar Zip archiver. Then change the extension of the generated archive to .xrns.

Here, I've even written a tutorial about it:
http://www.renoise.c...ls/compression/

Tell the compo guys to serve their XRNS correctly
http://www.renoise.c...enoisefaq/#mime

#4 synchro

synchro

    Member

  • Normal Members
  • PipPip
  • 51 posts

Posted 14 March 2009 - 02:18

thank you so much!

before posting my question, i tried compressing the _folder_ that the xml song file and sample folders came in, but that didn't work.

so, i followed your instructions and zipped the Song.xml and the SampleData folder by shift-clicking on both of them and creating a .zip archive from only those two.

then, i renamed the file with a .xrns filename extension and it worked. i also changed the name of the original file to avoid confusion with the originally downloaded archive and accompanying files.

now i can check out some of the other .xml compos files out there, they may not all work but i'll at least have this knowledge to help open others.

thanks again

:walkman:
| Early 2005 "Q87" PowerMac G5 - 2.7GHz PowerPC CPU | 8GB RAM |
| ATI Radeon 9650 256MB |
| OS X Tiger - 10.4.11 |
| RME HDSP9632 Audio Card | MOTU MTP A/V MIDI Interface |
| Korg M1ex synth used as MIDI controller |

#5 Conner_Bw

Conner_Bw

    Probably More God or Borg Than Human Member

  • Normal Members
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 7105 posts
  • Gender:Male
  • Location:Montreal, Quebec, Canada

Posted 14 March 2009 - 03:19

In your case, you can simply rename the .ZIP to .XRNS

That's what I do on my OS X machine when the web host incorrectly serves the files due to bad mime types.

cpu Lenovo X220, Intel i7-2640M @ 2.80GHz ×4 os Windows 10 / Ubuntu 16.04 LTS
My Homepage » : My Renoise Tools » : Normalize Your Sig » : One million clicks! »


#6 hryx

hryx

    Super Advanced Member

  • Normal Members
  • PipPipPipPip
  • 172 posts
  • Gender:Male
  • Location:San Francisco

Posted 14 March 2009 - 03:44

Quick tip: If you have 7-zip installed, you can open any compressed archive via a right-click menu, regardless of the file extension.
Posted Image
Stevie / Hryx .... ホムページ | @Bandcamp | @Twitter

Topics of note ... The Official Tuning Proposal Thread

#7 It-Alien

It-Alien

    Probably More God or Borg Than Human Member

  • Moderator
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 9593 posts
  • Gender:Male
  • Location:Avellino, Italy
  • Interests:trackers, basketball, chess, tabletennis, programming, writing, drumming, burping

Posted 14 March 2009 - 11:32

with WinRAR you can use the "Open With" submenu
my specs:
cpu:Intel Core2 Quad Q9550 (4x2.83Ghz, FSB 1333Mhz)
os:Win7 Home Premium 64bit - OSX 10.9.1 64bit
audio: M-Audio Audiophile 24/96 PCI


Unschemed, hypertechnical tracked music. Sounding different since 1993.

my latest song: Lavender Town Syndrome (11'33", Psychedelic Beast)


where to find more music by me: soundcloud , jamendo , last.fm , napodano.com , facebook

RTFM.gif

("Lavender Town Syndrome, 11'33" Psychedelic Beast)