Fantom-S and Fantom-X

Reading the MIDI Implementation System Exclusive

Reading the MIDI Implementation System Exclusive

28 Sep 2012, 09:47
Hi all,

I'm trying to work out how to read the MIDI Implementation for the Fantom X.

I understand that SysEx messages take the following format:
(1) F0 Start of Exclusive message
(2) 41 Roland ID
(3) 10 Device ID (#17 Decimal)
(4) 00 6B Model ID (Fantom-X6/X7/X8)
(5) 12 Command ID (12=Data Transfer)
(6) address
(7) data
(8) checksum
(9) F7 End of Exclusive

So, I get that all messages need to start with F0 41 10 00 6B 12. Beyond that we need the (6) address , (7) data, (8) checksum, F7.

Say I wanted to change Knob 1 to CC#21:
The Start Address for a Temporary Performance is
10 00 00 00
The Offset Address for a Performance Controller is
00 60 00

Does this mean my message so far would be
F0 41 10 00 6B 12 10 00 60 00?

Next, the Offset Address for Knob 1 Assign under Performance Controller (OM p.316) is given as
00 07

The Value we want is CC#21, which would be 21dec or 15Hex.

So, is our message:
F0 41 10 00 6B 12 10 00 60 00 00 07 15 24* F7?

I appreciate this is confusing, but any help would be gratefully recieved.
* divined by appalling methods of black magic (oh, ok, an Excel spreadsheet)

Regards
Andy
Andy

Re: Reading the MIDI Implementation System Exclusive

28 Sep 2012, 10:53
So, the offset addresses are all added to the Starting Address, with the the data coming after? I think that's the question I'm really asking.
Andy

Re: Reading the MIDI Implementation System Exclusive

28 Sep 2012, 11:48
I think I understand the question, Andy, and this is not a well documented area of the manual to be sure! Well, it's either one or the other and my guess would have been to add them and not append them. I assume your appending them method didnt work so I would add them as follows:

10 00 00 00
00 00 60 00
00 00 00 07
--------------
10 00 60 07

Then we give the data which is 21, or hex, as you point out, is 15. So the full string for my guess would be:

F0 41 10 00 6B 12 10 00 60 07 15 CS F7

Note: I could be completely wrong and hopefully I wont blow up your Fantom!

Re: Reading the MIDI Implementation System Exclusive

28 Sep 2012, 22:28
Hi Andy
howards is correct
Parameter address is 4 bytes for a lot of Roland gear.
The checksum calculation starts at these address bytes and ends at the last data byte.
F0 41 10 00 6B 12 10 00 60 07 15 CS F7
Checksum...
10 + 00 + 60 + 07 + 15 = 8C
16 + 0 + 96 + 7 + 21 = 140

8C / 80 = 01 leaves 0C remainder
140 / 128 = 1 with 12 remainder

80 - 0C = 74 and this is the checksum
128 - 12 = 116 and this is the checksum

I have a little program that will calc the checksum
Email me if you want a copy.

All the best
Royce

Re: Reading the MIDI Implementation System Exclusive

29 Sep 2012, 18:29
Thanks guys, so the key is that you sum all the parts of the start address AND offset addresses. Then add the data value, then finally CS F7.

That makes sense.

You've answered the question I wanted answering, but I'm still not sure if that's the question I asked!

Royce, I may well email you about your checksum calculator. My spreadsheet works, but isn't exactly elegant.

Cheers
Andy
Andy

Re: Reading the MIDI Implementation System Exclusive

30 Sep 2012, 01:38
Great. Let us know if it works, Andy.

Re: Reading the MIDI Implementation System Exclusive

1 Oct 2012, 16:24
Hi,

It works as expected.
The final message was F0 41 10 00 6B 12 10 00 60 07 14 75 F7.
(CC#21 has a value of 14h, not 15h as the options start from 0h=CC#01).

Oh, no blown up Fantom, Howard :)

For anyone looking for this answer in the future:
- To get the final parameter address you add ALL the OFFSET addresses to the START address. As Royce said, above, the parameter address should be 4 bytes long.
- It's possible to amend the Knob 1-4 and Switch 1-2 assignments whilst the sequencer is recording.

Thanks again for your help.
Cheers
Andy
Andy

Re: Reading the MIDI Implementation System Exclusive

1 Oct 2012, 16:37
Awesome.

Deeper down SysEx Rabbit Hole...

15 Oct 2012, 05:06
Looking through the earlier sections of the MIDI Implementation section of the Fantom X manual:

Control Change Messages
…are made up of three bytes as follows (H denotes a Hexaecimal number):

Status Byte(n) – CC# Byte(cc) – Value Byte(vv)
That is: BnH ccH vvH

For example: to set CC# 107 on Channel 1 to a value of 127 you would need the following message:
B1H 6BH 7FH

-:-

Bank Select (CC#0 & 32) and Prog Change Messages
…would have to be sent as 3 separate messages (BS #0, then BS #32, then PC). The MIDI Implementation pages give these messages the following formats:
BnH 00H mmH (Channel CC#0 Bank Select MSB)
BnH 20H llH (Channel CC#32 Bank Select LSB)

Also, PC messages only have two bytes (Channel & PC number), so this message will take this form:
CnH ppH (Channel-PC#)

So, to select the Patch “266 STronSTringz” from the SRX-07 card (according to the SRX-07 manual this patch is Bank Select MSB=93, LSB=13, PC=10) you would need to send the following messages:.
B1H 00H 5DH (Ch1-CC#0-MSB93)
B1H 20H 0DH (Ch1-CC#32-LSB13)
C1H 0AH (Ch1-PC#10)

The manual makes no mention of these messages needing a checksum, which makes sense as they are not machine specific messages.

-:-

The next question is simply this: can these messages be wrapped up in a full SysEx message to specify that they relate to one synth rather than another, e.g. so that if I have 2 synths connected over MIDI can I send out a PC or CC to both connected synths but have only the Fantom X respond and not the SH-32?

If so, do I simply top & tail each message as mentioned at the very beginning of this thread?
Taking the CC example above, that would give a message of:
F0 41 10 00 6B 12 B1 6B 7F CS F7.

Is this correct?

Regards
Andy
Andy

Re: Deeper down SysEx Rabbit Hole...

16 Oct 2012, 01:47
Andy Keys wrote: Status Byte(n) – CC# Byte(cc) – Value Byte(vv)
That is: BnH ccH vvH
The status byte is made up of B0 + the channel number starting from 0 = channel 1
B7 07 7F sets the volume on channel 8 to 7f the max 127
For example: to set CC# 107 on Channel 1 to a value of 127 you would need the following message:
B1H 6BH 7FH
Note that this is channel 2
Bank Select (CC#0 & 32) and Prog Change Messages
…would have to be sent as 3 separate messages (BS #0, then BS #32, then PC). The MIDI Implementation pages give these messages the following formats:
BnH 00H mmH (Channel CC#0 Bank Select MSB)
BnH 20H llH (Channel CC#32 Bank Select LSB)
Once the bank is sent nothing happens until the PC is sent.
Once the bank has changed you only need to send PC for Patches within the same bank.
Also, PC messages only have two bytes (Channel & PC number), so this message will take this form:
CnH ppH (Channel-PC#)
That should read Status + channel (0 = channel 1) and then PC number.
So, to select the Patch “266 STronSTringz” from the SRX-07 card (according to the SRX-07 manual this patch is Bank Select MSB=93, LSB=13, PC=10) you would need to send the following messages:.
B1H 00H 5DH (Ch1-CC#0-MSB93)
B1H 20H 0DH (Ch1-CC#32-LSB13)
C1H 0AH (Ch1-PC#10)
For channel 2
The manual makes no mention of these messages needing a checksum, which makes sense as they are not machine specific messages.
The checksum business is Roland's design and nothing to do with the Midi protocol.
With sysex the manufacturer has the right to put anything it wants in a sysex message.
Sysex = F0 Manufacturer_ID .......... F7 this is all the Midi protocol requires the ...... can be anything as long as the numbers are less than hex 80
The next question is simply this: can these messages be wrapped up in a full SysEx message to specify that they relate to one synth rather than another, e.g. so that if I have 2 synths connected over MIDI can I send out a PC or CC to both connected synths but have only the Fantom X respond and not the SH-32?
The Fantom has provision to change patches and banks in sysex.
This is Roland's doing and may not apply to other synths even those made by Roland.
It is a special sysex message that doesn't resemble PC change at all.
The sysex message for most of Roland gear is
F0 41 Id (0-7e with 7F to mean 'everyone listen') model_Id Command ..... checksum F7
If you have Midi message output enabled in the system menu you can run MidiOx and change patches on the FanX and see the sysex needed.
F0 41 10 00 6b 12 01 00 00 04 57 41 00 63 F7 changes the FanX to the first patch of PR-B bank
10 is the default ID 17 (Id starts at 0)
00 6B is the FanX
12 is the 'Tx' command
If so, do I simply top & tail each message as mentioned at the very beginning of this thread?
Taking the CC example above, that would give a message of:
F0 41 10 00 6B 12 B1 6B 7F CS F7.

Is this correct?
No.
Sorry Andy this won't work.

No cigar this time 8)

Royce

Re: Deeper down SysEx Rabbit Hole...

16 Oct 2012, 05:49
rcraven wrote:
The status byte is made up of B0 + the channel number starting from 0 = channel 1
B7 07 7F sets the volume on channel 8 to 7f the max 127
Ah, I see. Thank you. That 0=1 trips me up a lot. I'll remember it eventually.
For example: to set CC# 101 on Channel 1 to a value of 107 you would need the following message: B1H 6BH 7FH
Note that this is channel 2
Starting from 0 = Channel 1, got it. :o)
Bank Select (CC#0 & 32) and Prog Change Messages
Once the bank is sent nothing happens until the PC is sent.
Once the bank has changed you only need to send PC for patches withing the same bank.
Both make sense.
Also, PC messages only have two bytes (Channel & PC number)...
That should read Status+ channel (0 = channel 1) and then PC number.
I WILL remember this 0=1 thing!
So, to select the Patch “266 STronSTringz” from the SRX-07 card (according to the SRX-07 manual this patch is Bank Select MSB=93, LSB=13, PC=10) you would need to send the following messages:.
B1H 00H 5DH (Ch1-CC#0-MSB93)
B1H 20H 0DH (Ch1-CC#32-LSB13)
C1H 0AH (Ch1-PC#10)
For channel 2
Gotcha.

So, if I was to change a patch using this method I would need to send three discrete messages (BS0, BS32 and PC). However, all synths that received the messages (provided they understood them) would change their patches accordingly.
The manual makes no mention of these messages needing a checksum, which makes sense as they are not machine specific messages.
The checksum business is Roland's design and nothing to do with the Midi protocol.
This is useful to know, thank you.

Huge thanks for taking the time to set me straight, Royce. I really do appreciate it. This SysEx stuff does make sense, but it takes me a while to be sure I understand it properly and to know that it's gone in my memory!
Andy

Re: Reading the MIDI Implementation System Exclusive

16 Oct 2012, 06:07
Patch changes over Fantom SysEx
...can these messages be wrapped up in a full SysEx message to specify that they relate to one synth rather than another... If so, do I simply top & tail each message as mentioned at the very beginning of this thread?
No.
Sorry Andy this won't work.

No cigar this time 8)
(*puts cigar back in the box and reaches for the MIDI Implementation again...*)

Following your example above:
F0 41 10 00 6b 12 01 00 00 04 57 41 00 63 F7 changes the FanX to the first patch of PR-B bank
I can see that "F0 41 10 00 6b 12" is "sending SysEx to the Fantom X".

The Address 01 00 00 04 refers to:
01 00 00 00 Setup Start Address PLUS
00 00 00 04 Kbd Patch Bank Select MSB (CC# 0)

The data value 57 41 00 refers to Preset Patch Bank B (57H 41H) (from the sound list book) and then Patch 00Hex = 1dec.

So, in this case, because the message needs Bank Select MSB, Bank Select LSB and PC you can contain them all in one message. As you said earlier, if the required patch is in the same bank you only need the PC, in which case the address would be 01 00 00 06 (Kbd Patch Program Number (PC)) with a data value of only 1 byte.

(Presumably, the same might work if you only needed to change the BS-LSB and PC).

I'll create some messages and test this all out tonight. I think I'm beginning to understand it all, but there's a lot to get your head around.

Regards
Andy
Andy

Re: Reading the MIDI Implementation System Exclusive

16 Oct 2012, 08:35
The Address 01 00 00 04 refers to:
This is the start address of the data that follows.

01 00 00 04 Bank MSB (KB)
01 00 00 05 Bank LSB (KB)
01 00 00 06 PC (KB)
01 00 00 07 Bank MSB (PAD)
01 00 00 08 Bank LSB (PAD)
01 00 00 09 PC (PAD)
So
F0 41 10 00 6b 12 01 00 00 04 57 41 00 57 41 00 4B F7

puts the PR-B GK Dubguitar in both the Keyboard and Pad

So you can normally put any group of parameters into a single sysex message as long as they are next to each other in the parameter map.
if the required patch is in the same bank you only need the PC, in which case the address would be 01 00 00 06
Correct. This time you get a cigar (chocolate only ).

F0 41 10 00 6b 12 01 00 00 06 23 4B F7
is FS slap Bass if you are in PR-B but TB-Sequence if you are in PR-D.

Now here is a tricky bit. Remember I said that the Bank select is not implemented until a PC message is received, although true if you use the normal Midi messages, it is not true with the Roland sysex we are using here.

F0 41 10 00 6b 12 01 00 00 04 57 42 62 F7
This will change to bank PR-C and use the previous PC

F0 41 10 00 6b 12 01 00 00 05 57 42 38 F7
This will change from say PR-A FS 70 EP to PR-C Solo Tb
That is, it keeps the Bank MSB and PC and just changes the Bank LSB

Interesting but I'm not sure how useful.

All the best
Royce

Re: Reading the MIDI Implementation System Exclusive

16 Oct 2012, 09:36
rcraven wrote:
...you can normally put any group of parameters into a single sysex message as long as they are next to each other in the parameter map.
Ah, so as long as you specify the start address (including it's offsets) and all the parameters are subsequent to that original parameter you can add as many values as required and the Fantom assumes they apply to the subsequent parameters. Wow! That could really be worth experimenting with.
if the required patch is in the same bank you only need the PC, in which case the address would be 01 00 00 06
Correct. This time you get a cigar (chocolate only ).
Huzzah! Although a kit kat finger will have to suffice.
Now here is a tricky bit...
Blimey, so changing either the Bank LSB only still implies a PC of the same value as the last set PC.
Hmm, yeah, as you say, interesting, but I'm not sure how useful that would be in practise.

Regards
Andy
Andy

Re: Reading the MIDI Implementation System Exclusive

20 Jan 2013, 11:50
Hi Guys,
Ok let me jump in here, I'm reading ur posts and its all great but can u answer me this question?
I'm using the Temporary Rhythm Group (Performance Mode) address (1E 03 00 00) and rhythm pattern switch (00 21) on (01) so my message is : F0 41 10 00 6B 12 1E 03 00 21 01 CS 7F but it doesn't work I also tried Temporary Rhythm Pattern (Performance Mode) (1E 00 00 00) and they don't work, its the preview switch inside of the rhythm group that i need to switch on in order to start the rhythm pattern. Any ideas of how to actually get this to work? I narrowed it down to this.

Fantom ID Message: F0 41 10 00 6B 12
Address: 10 00 00 00 (Temporary Performance)
Or: 01 00 00 00 (Setup)
Or: 02 00 00 00 (System)
Controller: 00 00 60 00 (Performance Controller)
Or: 00 00 40 00 (System Controller)
Setup: 00 00 21 00 (Rhythm Pattern Switch)
Data: 01 (On)

By recording the other things around in this same page it came up with this info sysex wise.
I see here in the chart that 01 00 00 00 is setup and the Rhythm Pattern Switch is in the setup section
F0 41 10 00 6B 12 01 00 00 23 00 00 5C F7 is the sysex to choose the U001 Rhythm but when I go to Rhythm Accent this is the sysex: F0 41 10 00 6B 12 10 00 60 1C 01 73 F7
so I have in the address part temp perf and setup I tried both of these and changed the setup one to F0 41 10 00 6B 12 01 00 00 21 00 01 5D F7 but no luck I also tried to use the perf one without luck too.Anyone have any ideas? HELP!!
skyy19851

← Back to Fantom-S and Fantom-X