Updated Roland Fantom WAV Sample Import Tool

Forum for Fantom-S/S88, Fantom-X6/7/8, Fantom-XR and Fantom-Xa
Luc
Posts: 63
Joined: 04:25, 11 October 2003
Location: San Francisco

Updated Roland Fantom WAV Sample Import Tool

Post by Luc »

Hi,

I've updated my Fantom WAV sample import tool:
1. Fixed bug in multi-sample edit (it was not setting source to card)
2. No refresh of entire sample list anymore when importing or deleting samples
3. Fixed bug in multi-sample edit where it was not saving when you hit 'cancel' and choose save
4. Added remove key assignment in multi-sample edit (clear)

Features:
- Import wav files (no support for AIFF). Note doesn't do any format conversion but supports multi-file import
- Detects key number if set in WAV file and option instead fo get key from file name
- Sample parameters and multi-sample edit

See for more info:
http://lucienkblog.wordpress.com/2009/0 ... port-tool/

Image

Thanks,
Lucien
AmineX-Inc@live.jp
Posts: 49
Joined: 16:42, 4 May 2010
Location: Algeria

Re: Updated Roland Fantom WAV Sample Import Tool

Post by AmineX-Inc@live.jp »

Thank you very much Keep it up ^^
Vstream.be
Posts: 43
Joined: 11:59, 24 December 2009

Re: Updated Roland Fantom WAV Sample Import Tool

Post by Vstream.be »

Thanks,

The link for the beta 9 version seems to be broken.

Joeri
Luc
Posts: 63
Joined: 04:25, 11 October 2003
Location: San Francisco

Re: Updated Roland Fantom WAV Sample Import Tool

Post by Luc »

Seems link was moved. Thanks I fixed it.
Vstream.be
Posts: 43
Joined: 11:59, 24 December 2009

Re: Updated Roland Fantom WAV Sample Import Tool

Post by Vstream.be »

Luc,

Thanks, I just noticed I get error messages. Loop points not being read, Multisample edit not working, etc...
It is all solved when I edit the correct drive letter in FantomSampleEditor.exe.Config file

Even if I select another drive letter (F:\) it is not stored in the config file. It always remains (D:\)

<setting name="RolandCardDrive" serializeAs="String">
<value>F:\</value>
</setting>

Edit:
It works great! One rermark: stereo samples are recognized as MONO (only in multisample edit on the fantom).
I have to assign each sample again so the wav's are recognized as Stereo samples.
Luc
Posts: 63
Joined: 04:25, 11 October 2003
Location: San Francisco

Re: Updated Roland Fantom WAV Sample Import Tool

Post by Luc »

First time you could get error due to invalid drive but it should remember after that and save config.
Probably you have 'User Access Control' enabled and no permission to update config. Try to run as admin (or just change config directly as you did).

This program recognizes only standard (Roland) WAV files. It extracts the metadata from the file and that has the info whether the sample is mono or stereo. What kind of WAV format are you using? PCM 16 bit signed?

Note the left/right display is virtual. Roland will only store 1 sample for both channels and the display then repeats 2nd channel (R) so both slots show up as full. So storing 2 samples will not work if they were stereo (not sure what Fantom would do then but I assume ignore the 2nd one since slot is filled).
Vstream.be
Posts: 43
Joined: 11:59, 24 December 2009

Re: Updated Roland Fantom WAV Sample Import Tool

Post by Vstream.be »

Hello Luc,

Thanks for your answer. I did some tests and your program is superb! However I still have problems with stereo samples.

I have uploaded an example of stereo wave files I have sampled and looped.
http://www.vstream.be/temp/16bit.zip

To give you an idea what the problem is:

- Format a new card and import these samples with your program.
(select try to extract key from filename)
- load the samples on the fantom
- create a new patch on the fantom and select the you have created multisample.
- Press F3, set stereo.
- Press F5, multisample edit.

You will see the samples are recognized as mono on the fantom. (TAB CH)

Now assign all samples one by one by pressing F3 (asssign) selecting the correct wave file and you will see the samples are now recognized as stereo and play in stereo. Save the multisample and everything is OK.

However! When I want to add new stereo samples with your program the existing samples become mono again.

-------------------
I renamed the first multisample in "yase" and the samples are recognized as stereo again so it's fixed.
I presume your program writes a wrong value, parameter.

Thanks again,

Joeri
Luc
Posts: 63
Joined: 04:25, 11 October 2003
Location: San Francisco

Re: Updated Roland Fantom WAV Sample Import Tool

Post by Luc »

I don't have Fantom OS 2.x so I cannot repro as you describe since I don't have multisample edit in 1.x (which is why I added multi-sample edit to my program). Do you have a Fantom X with OS 2.x?

When I imported the samples using my program and loaded in Fantom X6 they all show up and play as stereo. Also in patch WAV page I do see L/R channels. Looking at the WAVE file I created it does correctly set channels to stereo. I do see some differences though in byte per byte comparison. Anyone know the full Roland structure?

Here are differences I see in custom Roland chunk and below structure that I'm aware off:
0058: 00 <> 08 0064: 00 <> 22
0065: 00 <> 56 0068: 00 <> 44
0069: 00 <> AC 006C: 00 <> 66
006D: 00 <> 02 006E: 00 <> 01
0070: 00 <> 88 0071: 00 <> 58
0072: 00 <> 01 0074: 00 <> AA
0075: 00 <> AE 0076: 00 <> 01
0078: 00 <> CC 0079: 00 <> 04
007A: 00 <> 02 007C: 00 <> EE
007D: 00 <> 5A 007E: 00 <> 02
00F8: 00 <> 01 00FC: 00 <> 08
0104: 00 <> 07 010C: 00 <> 22
010D: 00 <> 56 0110: 00 <> 44
0111: 00 <> AC 0114: 00 <> 66
0115: 00 <> 02 0116: 00 <> 01
0118: 00 <> 88 0119: 00 <> 58
011A: 00 <> 01 011C: 00 <> AA
011D: 00 <> AE 011E: 00 <> 01
0120: 00 <> CC 0121: 00 <> 04
0122: 00 <> 02 0124: 00 <> EE
0125: 00 <> 5A 0126: 00 <> 02

Structure (relative in file):
0x24 Roland ID
0x28 chunk data size
0x2C fixed headers 22 bytes
0x38 Sample Name
0x48 offset sample start
0x4C offset sample loop
0x50 offset sample end
0x54 ?
0xE4 offset fine start
0xE5 offset fine loop
0xE6 offset fine end
0xE7 offset loop mode
0xE8 offset loop tune (signed)
0xE9 key
0xEA time stretch type
0xEB ?
0xEE BPM
0xEF ?
Luc
Posts: 63
Joined: 04:25, 11 October 2003
Location: San Francisco

Re: Updated Roland Fantom WAV Sample Import Tool

Post by Luc »

I changed WAV creation to also set to exactly these (fixed) bytes above. I don't know what these values mean so please make a backup first and use at your own risk. But when I compared the created WAV file with Roland's import it was 100% same file.
I couldn't repro the original problem so I can't verify if it would be fixed for you. Let me know.

Download link v0.91:

http://lucienk.office.live.com/self.asp ... Beta91.zip
Luc
Posts: 63
Joined: 04:25, 11 October 2003
Location: San Francisco

Re: Updated Roland Fantom WAV Sample Import Tool

Post by Luc »

Oh actually I think you mean the multi-sample doesn't have stereo? I just looked at that and seem I'm forgetting to set indeed the right channel. I'll see if I can fix that tomorrow.
Vstream.be
Posts: 43
Joined: 11:59, 24 December 2009

Re: Updated Roland Fantom WAV Sample Import Tool

Post by Vstream.be »

Oh actually I think you mean the multi-sample doesn't have stereo? I just looked at that and seem I'm forgetting to set indeed the right channel. I'll see if I can fix that tomorrow.
Yes, all the samples in the multisample are changed to mono when I import new wav's also in existing Multisamples with assigned stereo wav's. I should have posted some screenshots to make it more clear.

Thanks for you excellent work!

Joeri
Luc
Posts: 63
Joined: 04:25, 11 October 2003
Location: San Francisco

Re: Updated Roland Fantom WAV Sample Import Tool

Post by Luc »

I think I fixed it. Can you try this version:

http://lucienk.office.live.com/self.asp ... Beta95.zip

Again best to make backup first just in case.

I didn't have msample structure documentation so didn't even know you could assign L/R channels individually in multi-sample. So last 2 bytes of key assignment are for the right channel.
Vstream.be
Posts: 43
Joined: 11:59, 24 December 2009

Re: Updated Roland Fantom WAV Sample Import Tool

Post by Vstream.be »

Hi Luc,

Thank you. But it seems I cannot download, I get a message no permission or file does not exist.

Joeri
Luc
Posts: 63
Joined: 04:25, 11 October 2003
Location: San Francisco

Re: Updated Roland Fantom WAV Sample Import Tool

Post by Luc »

Maybe you need to be logged in with live acocunt since it works for me.
Can you try the direct link:

http://ybatuw.bay.livefilestore.com/y1p ... oad&psid=1
Vstream.be
Posts: 43
Joined: 11:59, 24 December 2009

Re: Updated Roland Fantom WAV Sample Import Tool

Post by Vstream.be »

The first tests are a success! Superb work! I can't thank you enough.
It's easy to use, very fast and the automatic keymapping of samples works flawless.

thanks again,
Joeri
Post Reply