MOX performance to PSR style (part 2)

In part one, I described how to capture Yamaha MOX arpeggios (musical phrases) in a standard MIDI file (SMF). In this part, I discuss the translation of the SMF to a Yamaha PSR/Tyros style file. This process should work for any SMF, not just an SMF from the MOX workstation.

The SMF produced by the MOX contains the notes for one or more instrument channels where each channel corresponds to a MOX performance part. If you followed the directions in part one, the phrases are arranged in an order starting with the main sections, followed by the fill sections, and finally, the break section. The SMF is raw (“stripped”) and does not contain bank select, program change, volume or pan messages. This is to our advantage since we are free to assign PSR/Tyros voices and tweak the overall mix. If you apply this process to an arbitrary SMF such as a file from the Internet, you will need to change or remove voice assignments, levels, etc. to make the MIDI data compatible with the PSR/Tyros.

The translation procedure needs four tools:

  1. A software DAW or sequencing program to massage the MIDI data.
  2. Style Fixer to insert an initial CASM section into the style.
  3. OTS Editor to add One Touch Settings to the style.
  4. CASM Editor to modify note transposition information.

Style Fixer, OTS Editor and CASM Editor are part of the excellent suite of tools written and maintained by Jørgen Sørensen. I also recommend Michael Bedesem’s MixMaster program which supports a very wide range of tweaks and tweezes. Right now, my DAW is Cakewalk SONAR LE — a little bit out of date, but it does the job. The directions below refer to SONAR although any well-featured DAW should do such as Cubase AI. You may also edit the style on the PSR/Tyros keyboard itself using its Style Creator. This is good in the latter stages of development when you need to make one or two final tweaks.

You can find links to these and other PSR/Tyros tools through the PSR Tutorial utilities page.

One major warning: A style file contains MIDI data and much more. A DAW removes the extra data (e.g., CASM and OTS) from a style file. Thus, a DAW is best during the early stages of style development. Michael’s program and Jørgen’s tools preserve the extra stuff.

Without further ado, here is the basic procedure for conversion. Be sure to save your work as you go along. Summer’s here and the time is right for brown outs.

  1. Copy the SMF from the USB jump drive to a working directory. Make a back-up just in case.
  2. Read the SMF into SONAR (or your pefered DAW). Save the work in progress as a normal SONAR project.
  3. If the MOX generated a separate track for the CMaj7 chord, delete the track. You don’t need it.
  4. Create an empty measure at the beginning of the time line. In SONAR, you accomplish this by sliding the clips back one measure in the arrangement window.
  5. Assign each track to a MIDI channel according to the Yamaha style conventions. (See table below.)
  6. Assign a PSR/Tyros voice to each track.
  7. Set the volume, pan, chorus and reverb levels for each track.
  8. Put the MIDI text marker “SFF1” at the beginning of measure one. The text for this and all MIDI text markers is case sensitive and must be spelled corrected.
  9. Put a second MIDI text marker “SInt” at the beginning of measure one.
  10. Put a MIDI text marker at the beginning of each style section. You must use names according to the Yamaha convention. You are allowed up to four main sections, up to four fill sections, and one break section.
    • Put a marker such as “Main AA” at the beginning of each main section.
    • Put a marker like “Fill In AA” at the beginning of each fill section.
    • Put the marker “Fill In BA” at the beginning of the break section.
  11. Trim and discard any extra notes at the end. You probably didn’t hit STOP fast enough when recording.
  12. Save your project for goodness sake!
  13. Write a new SMF. It must be MIDI SMF Type 0.
  14. Rename the new SMF and give it the “.STY” extension instead of “.MID”.
  15. Launch Style Fixer. Open the new file with the “.STY” extension.
  16. Click the GO button. Style Fixer rewrites the style file and inserts a default CASM section into the file.

Congratulations! At this point, you have a minimal style file. Copy this file to the USB jump drive. The PSR/Tyros should load this style file without complaint. You can read this style file into the OTS editor, the CASM editor or Mix Master, too.

Part MIDI channel
Rhythm 1 9
Rhythm 2 10
Bass 11
Chord 1 12
Chord 2 13
Pad 14
Phrase 1 15
Phrase 2 16
Table: MIDI channel layout for a style
Text marker Meaning
SFF1 Style format 1
SInt Start initialization measure
Main A, Main B, … Start MAIN style section
Fill In AA, Fill In BB, … Start FILL IN style section
Fill In BA Start BREAK style section
Intro A, Intro B, … Start INTRO style section
Ending A, Ending B, … Start ENDING style section
Table: MIDI text markers for style sections

Once you have a minimal style file, I strongly suggest a quick test on the PSR/Tyros. At this stage of development, you can easily make changes to the SONAR project and regenerate a new minimal style without losing much time or work. I try to get a good mix on the keyboard and then adjust the mix parameters (i.e., levels, pan, etc.) in the SONAR project to match. The MOX produces at most four tracks and “back porting”
the mix into the SONAR project is not much of a burden.

When the mix is satisfactory, launch OTS Editor and open the new style file. Here you can import existing OTS configurations into the new style file or add a new OTS configuration from scratch.

The so-called “CASM” section of a style file specifies how MIDI notes are transposed. Recall that we played a CMaj7 chord on the MOX and that the arpeggiator generated notes using CMaj7 as the root chord. The CASM section tells the PSR/Tyros how to change those notes in response to chords played in the left hand part of the keyboard. The default CASM inserted by Style Fixer is usually good enough; the bass channel uses the bass rules, the drum channels bypass transposition, and so forth. Mega Voices or MOX voices that are similar to Mega Voices, however, cause additional complications. A Mega Voice track consists of regular notes and special effect notes. The regular notes should be transposed and the special effect notes should bypass transposition. Yikes! I will discuss Mega Voice handling in part three. In the meantime, you may hear some odd plucks and wheezes when you play back a minimal style with Mega Voice data.

Here’s a little bit of background information to help you understand some of the steps in the conversion procedure.

A style file begins with an initialization measure. The “SInt” marker indicates the start of the initialization measure. You may put any MIDI initialization messages into this measure, usually at beat one. You should not put any notes in the initialization measure. Controller messages and SysEx messages are OK.

The MIDI text markers indicate the start of the style sections. Be sure to spell the markers correctly. The keyboard automatically determines the section length. If a section appears to be missing or is too long when the style is loaded into the keyboard, then you might have misspelled a section name. Remember, the text markers are case sensitive.

The PSR/Tyros only recognizes up to four main sections, four fill sections, one break section, four introductions and four endings. If a section type is not present in the style file, the keyboard doesn’t turn on the LED in the button corresponding to the missing section. Given that a MOX performance may not have four main sections, for example, the PSR/Tyros style may not have four main sections and some of the LEDs will not be lit when the style is loaded. You can always create new sections if you wish. MOX performances do not have introductions and endings, so you may want to add a simple count-in introduction or tag ending. I have a style file with simple introductions and endings. I use copy and paste to insert them into a new style file.

Main, introduction and ending sections may be 1 to 255 measures in length. Fill and break sections are always one measure long.

Jørgen’s website has a wealth of information about styles including a PDF on style writing. Yamaha styles can be quite complicated. Don’t get discouraged and keep plugging away!

Check out part three of this series.

MOX performance to PSR style (part 1)

After my initial success with the SmoothItOver style, I decided to convert several more Yamaha MOX workstation performances to PSR-S950 styles. I will post the new styles real soon now.

I changed tactics. Some of the Yamaha MOX performances are based on phrases from older model, non-arranger keyboards. For example, I suspect that the “Club Jazz” phrases are taken from the Yamaha S-80 synthesizer. Yamaha is good at mining old keyboards for MIDI phrase data; Roland and Korg do the same. As far as I can tell, Yamaha “Club Jazz” has not ever been an arranger style and it surely is not implemented on the PSR-S950 or current Tyros models. Several of the funkier performances that I wanted to port use “Club Jazz” phrases. Thus, I needed to develop a method of my own to mine MOX performances directly from the MOX.

In order to make a PSR/Tyros style, we first need to get the MIDI phrase data for a performance into a standard MIDI format (SMF) file. That is the subject of this post (part one). Then, we need to translate the SMF file into a style. That will be the subject of part two — a future post.

A MOX performance consists of one to four parts where each part has its own distinct voice and set of arpeggios (phrases). When you jam with a performance, you trigger the arpeggios using the left part of the MOX keyboard by playing a note or a chord. The arpeggiator follows the root note or chord that you play and modifies the phrase data (e.g., transposes it) on the fly. The modified MIDI phrase data is sent to the appropriate tone generator. (This is the typical use case. The internal engine is far more flexible than this scenario!) You change arpeggios by pressing one of the special function buttons (SF1-SF6). Each of the four parts goes to the corresponding arpeggio, that is, pressing SF3 for ARP3 changes each part to its own ARP3. Thus, each performance part plays its own pre-programmed phrase.

We are going to capture the arpeggio MIDI data using performance record mode. Performance record mode is your friend! (Please see my page on getting started with the MOX.) This mode records MIDI data as you play chords and switch through arpeggios. We are going to play a special kind of song that captures the MIDI data for all of the arpeggios.

First, we need to determine the song structure. Some of the arpeggios play MAIN sections, some play FILL sections and some play BREAK sections. MAIN sections are usually four bars long and FILL/BREAK sections are one bar long. Select ARP1 and play a CMaj7 chord. Listen to ARP1. Is it a MAIN section (four bars long)? Is it a FILL/BREAK section (one bar long)? Do this listening exercise for each ARP. Then jot down a song structure such as:

    ARP#     Section    Starting measure
    ----     -------    ----------------
    ARP1     MAIN A     1
    ARP2     MAIN B     5
    ARP3     MAIN C     9
    ARP4     FILL A     13
    ARP5     FILL B     15
    ARP6     BREAK      17

The starting measure is when the section should start in the song. It tells us when to switch to the next arpeggio when we play the song in performance record mode. Please note that we intend to play each of the fills twice in order to capture enough data for four fills in the final PSR/Tyros style. Yamaha’s performance sometimes have more mains or fills, so you need to be flexible and ready for anything downstream in part two.

Hit the record button to go into performance record mode. Choose “SONG” and the song number. The MIDI data will be written into this song. Set KeyOnStart to ON. This arms the left side of the keyboard. Turn off the metronome click; you won’t really need it. (Page 34 of the MOX Owner’s Manual describes performance record mode in case you are confused at this point.) You’re now ready to play the special song.

Select ARP1 by pressing SF1. Hit a CMaj7 chord on the lower end of the keyboard to start playing (and recording) the song. During measure 4, hit SF2 to queue up ARP2. ARP2 begins to play in measure 5. Hit SF3 during measure 8 to queue up ARP3. ARP3 begins to play in measure 9. And so forth. Hit STOP after measure 17 to stop recording. The MOX then finishes recording and switches to SONG mode. At this point, you can save the MIDI data in the SONG by hitting STORE or you can go back to performance mode and try again. Since the song is short, it isn’t a big deal to play it again if you make a mistake.

When you have the song, the final step is to write the song as an SMF file on a USB drive. Hit the FILE button and follow the procedure for saving a song as an SMF file. (Hit SAVE, set the name, set the save type to SMF, etc.) In part two, we will translate the SMF to a PSR/Tyros style using PC-based software tools.

Why play a CMaj7 chord? The phrases in a PSR/Tyros style must have a known chord root and chord type. CMaj7 is the conventional chord root and type for styles. The CMaj7 chord forces the arpeggiator to voice phrases for a CMaj7 chord thereby making the final MIDI data style-ready.

Before leaving the MOX behind, you should jot down a few performance notes that will help during the latter stages of the porting process. Jot down the MOX voice for each part. This will help you to select style voices for the PSR/Tyros. Pay careful attention to the guitar and bass voices. Are they Mega Voice voices? Do the voices incorporate FX like slides, scrapes, etc.? You may need to dig into the voice programming to find out if a bass voice uses bass FX. Guitar and bass effect notes are usually mapped to C6 or higher. You will need to give FX notes special treatment during part two.

One or more performance parts may be designated for live soloing or comping. The arpeggios for such parts are turned OFF. Usually, Yamaha provides a right hand part for soloing. They may also provide a pad in the left hand, that is, a pad plays if the left hand chord is held. In rare cases, the right hand may even trigger its own arpeggio! Make note of any special performance behavior that you want to emulate on the PSR/Tyros.

That’s it! At this point, you have an SMF file to be translated to a style. Check out part two and part three of this series.

Smooth It Over

Here’s a Yamaha PSR-S950 style for funky jazzers — SmoothItOver.

As some of you know, many of the Motif/MOX arpeggios are based on what once were PSR/Tyros arranger keyboard styles. SmoothItOver is a little payback going the other way.

The MOX has about a dozen or so jazzy/funky Performances that are fun to jam to. One of my favorites is called “Smooth It Over.” A MOX/Motif Performance is a four instrument mini-mix where each instrument can be driven by a different arpeggio (musical phrase). Arpeggios are triggered by hitting one or more notes on the keyboard. Many of the arpeggios respond to and follow chords. A musician can lay down a song or groove by switching through groups of arpeggios and playing along.

The SmoothItOver performance on the MOX splits the keyboard into a lower and an upper part. (Sound familiar?) The lower part of the keyboard triggers drum and bass arpeggios as well as directly sounding the notes played, using a mellow electric piano voice. The upper part of the keyboard is for melody and is configured with a growl tenor sax. The drum and bass arpeggios are taken from the 70sDiscoFunk and GospelFunk styles.

The PSR/Tyros SmoothItOver style rips off, errr, builds on the equivalent sections from the 70sDiscoFunk and GospelFunk styles. I added OTS buttons with the FunkGtr 16Bt3 Multi Pad bank. Be sure to throw in the Multi Pad guitars when playing. (These Multi Pads follow the left hand chords.) It really kicks the PSR/Tyros style up a notch over the MOX version. The ability to switch melody voices on-the-fly through OTS is another advantage over the MOX.

The INTROs and ENDINGs are little lame since this style is built for jamming and practice, not covers. Try it with a minor blues (e.g., Dm7, Gm7, Am7) and switch between sections frequently to vary the groove. Drop a little guitar via the Multi Pad buttons. Have fun!

Don’t let anyone kick sand in your face at the beach just because you play “an arranger.”

BTW, I know someone will ask, “Why not transfer phrase data, etc. from the MOX to the PSR?” Two good reasons:

  • The MOX/Motif instruments are programmed much differently than similar PSR/Tyros instruments. The bass in Smooth It Over, for example, lays out the sound elements in different MIDI velocity and note ranges.
  • The note transposition rules and tables are hidden on the MOX.

It’s much easier to start out with the native style data on the PSR than to re-map the MOX phrase data to PSR instruments and recreate all of the note transposition programming.

Here’s an arpeggio-to-style section correspondence table:

    Type  ARP#  Style section
    ----  ----  ---------------------
    Drum  ARP1  MB_Gospel Funk
    Drum  ARP2  MA_Gospel Funk
    Drum  ARP3  MB_Gospel Funk
    Drum  ARP4  FA_Gospel Funk
    Drum  ARP5  FB_Gospel Funk
    Drum  ARP6  BA_Gospel Funk

    Bass  ARP1  FA_70sDiscoFunk _XS
    Bass  ARP2  FB_70sDiscoFunk _XS
    Bass  ARP3  MB_Gospel Funk _XS
    Bass  ARP4  MB_Gospel Funk _XS
    Bass  ARP5  FA_70sDiscoFunk _XS
    Bass  ARP6  BA_Gospel Funk

Transferring QY70 style to PSR

Some of us are trying to mine our old beat boxes (like the Yamaha QY70) for styles and phrases. I tried transferring a QY70 “style” to an S950.

“8Detroit” is an 8-beat QY70 style. A QY70 style has only six sections: Main A, Main B, Fill In AB, Fill In BA, Intro, Ending. There is no break section. The fill-ins are called “AB” and “BA” because they are intended to be transitions from Main A to Main B and from Main B to Main A.

I determined the section lengths through the QY70 phrase editor. Here are the QY70 section lengths:

     Section     Length
     ----------  ------
     Main A      2 bars
     Main B      4 bars
     Intro       2 bars
     Fill In AB  1 bar
     Fill In BA  1 bar
     Ending      6 bars

Here is the process that I used to create a PSR compatible style called “8DetroitStyle.sty”.

1. Create a QY70 song in the QY pattern track. Use Cmaj7 throughout. The song has the following structure/sections:

     Measure   SMF   Section     MIDI Marker
     -------  -----  -------     -----------
       1:2     2:3   Main A      Main A
       3:6     4:7   Main B      Main B
       7:8     8:9   Intro       Intro A
        9      10    Fill In AB  Fill In AA
       10      11    Fill In BA  Fill In BB
      11:16   12:17  Ending      Ending A

The first column is the section location in the pattern track. The second column is the section location in the generated SMF file.

2. Copy the QY70 song to an empty song. Use the QY70 “Expand Backing” job to expand the pattern track to MIDI events in tracks 9-16.

3. Use the QY70 Data Filer program to transfer and translate the QY70 song to an SMF file on a PC. Enable the option to insert XG initialization data at the beginning of the SMF file.

4. Open the SMF file in Sonar. Insert MIDI markers at the locations specified above. Save the SMF file as MIDI type 0.

5. Rename the MIDI file with the “.STY” extension.

6. Use Jorgen Sorensen’s Style Fixer program to check the file and to insert a default CASM into the MIDI file.

7. Transfer the style file to a USB drive and test the file on the PSR.

60sSuperGroup mash-up

In my last post, I started the process of converting the PSR-S950 audio style “60sSuperGroup” to all MIDI. I like the 60sSuperGroup audio style, but the really strong back-beat in MAIN A makes it hard to use that section on anything other than the Beatles song “Ticket To Ride.” In order to make this style more generally useful, I’m replacing the audio rhythm tracks with appropriate MIDI tracks. Last time, I had worked on the MAIN and FILL IN sections and now it’s time to attack the INTROs and ENDINGs.

Here’s my process.

  • Find a style which is similar to 60sSuperGroup. 60sVintageRock is a good alternative because it is your basic Mark II rock and roll.
  • Load 60sVintageRock into Style Creator.
  • For each section, copy the non-rhythm parts from 60sSuperGroup into the new style.
  • Change the section lengths to match the source style 60sSuperGroup.
  • Save the new style as 60sFabFour.
  • Listen to each new section critically.
  • If a section doesn’t work musically, copy a section from a different candidate style.
  • Edit DSP effects to match 60sSuperGroup.
  • Save a bunch of intermediate copies along the way in case you need to back up to an earlier version.

Overall, the MAIN and FILL IN sections from 60sVintageRock were a good match and sounded pretty good. The one measure INTROs were OK, too. The longer INTROs and ENDINGs were more of a problem. So, I identified a few alternative candidate styles and built a table of INTRO/ENDING section lengths to find and try alternatives. Here’s the table:

           Target:
         60sFabFour  60sVintageRock  60sPopRock  VintageGtrPop
         ----------  --------------  ----------  -------------
INTRO 1      1             1              1            2
INTRO 2      2             4              5            4
INTRO 3      5             9              4            9
INTRO 4      1             1              1            1
ENDING 1     3             3              3            2
ENDING 2     4             4              3            3
ENDING 3     5             6              7            5
ENDING 4     1             1              1            1

I tried to use alternatives that were the same section lengths as 60sSuperGroup and the new style 60sFabFour.

ENDING 2 was the most difficult to nail. I tried different alternatives and then needed to shorten the section length to get rid of some beats that ran on — kind of like Ringo didn’t know when to stop. Here are the final source styles for the INTROs and ENDINGs:

           Target:
         60sFabFour  Source style
         ----------  --------------
INTRO 1      1       60sVintageRock
INTRO 2      2       VintageGtrPop
INTRO 3      5       60sPopRock
INTRO 4      1       60sVintageRock
ENDING 1     3       60sVintageRock
ENDING 2     4       60sPopRock
ENDING 3     5       VintageGtrPop
ENDING 4     1       60sVintageRock

A lot of luck and trial and error is involved here. Luckily, the alternatives fit pretty well.

DSP1 is configured as a SYSTEM variation effect for both 60sSuperGroup and 60sVintageRock. However, the parameters are different. The guitars are sent to the SYSTEM effect in order to get a VOX AC30 amp “chime”. The final effect parameters are taken from 60sSuperGroup:

Category: REAL DIST
Effect: ST AMP VT

COMP SW          ON
COMP SUSTAIN     0.4
COMP LEVEL       6.0
DIST TYPE        Crunch
DIST DRIVE       7.8
DIST EQ          Mid Boost
DIST TONE        7.0 
DIST PRESENCE    6.0
DIST OUTPUT      24

This uses a Real Distortion effect and you will need to change this when porting the style to an older model keyboard. I did not change the OTS settings in the new style since I was happy with the OTS settings from 60sVintageRock.

I put a copy of the 60sFabFour style on the Music Gallery page.

S950 audio style mash-up

The Yamaha PSR-S950 and Tyros 5 arrangers provide audio styles as well as conventional, pure MIDI-based backing styles. Audio styles replace the MIDI-based rhythm tracks with an audio track of a (human) drummer playing a kit. The remainder of the backing track is provided by MIDI. On the up side, the audio rhythm parts have more nuance and sound pretty darned good. On the down side, the audio track in a style cannot be modified or eliminated nor can they be replaced by a user’s own audio track. Whether this limitation is a quirk of the Yamaha software or a permanent feature remains to be seen.

One of the S950 audio styles is “60sSuperGroup.” I’ve been off in Pepperland trying to pull some Beatles tunes together. I kept gravitating back to 60sSuperGroup for backing, but the drum back-beat in Main Section A is so strong that it doesn’t fit with hardly anything other than the song “Ticket To Ride.” It would be great to apply the non-rhythm parts to other songs.

Time to replace the audio rhythm parts in the 60sSuperGroup audio style. Unfortunately, one must work around the limitations of Yamaha’s software. The MIDI drum style “60sVintageRock” is roughly the same tempo and its rhythm parts are your basic Mark II rock and roll — in other words a good candidate style for a mash-up.

First, I loaded 60sSuperGroup, got into Style Creator and tried copying the 60sVintageRock rhythm parts into 60sSuperGroup. No joy. Once a style is an audio style, it’s always an audio style. Further, you cannot store the audio style to an external device like a USB jump drive. Yeah, the manual says this explicitly, but it was worth a try. No need to go down that rat-hole again.

So, here’s the process that I followed. I loaded 60sVintageRock as the base style and got into Style Creator. I then copied the non-rhythm parts from 60sSuperGroup into the new style which I called “60sHybrid”. I did this for MAIN A-D, FILL IN A-D, BREAK, INTRO 1 and ENDING 1. I’m not a big fan of long preplayed intros and endings, plus I didn’t know how well the longer intros and endings would mash up. Even without these additional intros and endings, this was more than enough button pushing for one day!

Here is a side-by-side comparison of INTRO and ENDING lengths:

         60sSuperGroup  60sVintageRock
         -------------  --------------
INTRO 1        1              1
INTRO 2        2              4
INTRO 3        5              9
INTRO 4        1              1
ENDING 1       3              3
ENDING 2       4              4
ENDING 3       5              6
ENDING 4       1              1

I’m not sure how to fix up these up as yet. Suggestions?

The two styles have different instrument-to-style part assignments. Here’s the instrument information for 60sSuperGroup:

Part  Vol  Pan  Var  Instrument         
----  ---  ---  ---  -----------------
RHY1   54  C      0  PowerKit1          OFF
RHY2   72  C      0  RealDrums          OFF
BASS   66  C      0  Mega VintageFlat   ON
CHD1   51  L28  127  Mega SingleCoil    ON
CHD2   42  R30  127  Mega SolidGuitar2  ON
PAD    48  C      0  Mega 12StringGtr   ON
PHR1   44  R32  127  Mega SingleCoil    OFF
PHR2   70  C      0  GrandPiano         OFF

The rhythm channels are both OFF because all drum/percussion is provided by the audio track. Here is the instrument information for 60sVintageRock:

Part  Vol  Pan  Var  Instrument         
----  ---  ---  ---  -----------------
RHY1   54  C      0  PopLatin           OFF
RHY2   72  C      0  RealDrums          ON
BASS   66  C      0  Mega VintagePick   ON
CHD1   51  L28  127  Mega SteelGuitar   ON
CHD2   42  R30  127  Mega SolidGuitar2  ON
PAD    48  C      0  CurvedBars         ON
PHR1   44  R32  127  Mega SingleCoil    OFF
PHR2   70  C      0  Harmonica          OFF

Since nothing was copied to INTRO 2-4 and ENDING 2-4, the instruments and sound for these sections do not match the sections copied from 60sSuperGroup. The mismatch is readily apparent when played.

DSP1 is configured as a SYSTEM variation effect. I needed to edit the effect parameters in order to get that VOX AC30 amp chime. Here are the parameters; they are the same as 60sSuperGroup DSP1:

Category: REAL DIST
Effect: ST AMP VT

COMP SW          ON
COMP SUSTAIN     0.4
COMP LEVEL       6.0
DIST TYPE        Crunch
DIST DRIVE       7.8
DIST EQ          Mid Boost
DIST TONE        7.0 
DIST PRESENCE    6.0
DIST OUTPUT      24

It’s been an interesting experiment so far! The resulting mash-up should be quite useful when tracking up-tempo, early Beatles rock and roll.

PSR/Tyros XG effects

I’ve been busy making my PSR-S950 gig-ready. I’ll describe the overall set-up in a separate post as soon as I have a little more time.

Part of the job involves converting some of my General MIDI 2 backing tracks to the PSR-S950 sound engine. The PSR (and Tyros) sound engine follows the Yamaha XG architecture and the sound engine responds to Yamaha XG System Exclusive (SysEx) MIDI messages. The XG SysEx messages configure tone generation and the effects that are applied to the tone generator outputs. Let’s limit the discussion to MIDI song sequencing and assume that there are 16 MIDI channels and each channel is routed to a separate tone generator. We’ll ignore style parts and how to tweeze tone generation in order to keep this discussion focused on effects.

There are two types of XG effects: system effects and insertion effects. We are already quite familiar with two common system effects: chorus and reverb. Potentially, the output from any tone generation channel can be sent independently to chorus and/or reverb. System effects routing and control follows a send-return model like a well-featured analog mixer. The amount of signal sent to the (virtual) chorus or reverb unit from a given channel is determined by a send level. Chorus and reverb are used so frequently that “standard” MIDI controller numbers are assigned for reverb (CC91) and chorus (CC93) depth.

Just like the real-world mixer model, an insertion effect is a channel specific effect. The output from a tone generator is sent directly to the input of the insertion effect and the output of the insertion effect becomes the output from the channel. An insertion effect belongs to one and only one channel (tone generator). The XG architecture does not allow insertion effects to be chained. So, if you need a chain of guitar-oriented effects, you need to read through the effects table in the Yamaha data list and find a multi-effect that does the job.

Now, life gets interesting. The XG architecture defines two kinds of (virtual) effect units: EFFECT1 and EFFECT2. Each kind of effect has certain capabilities and SysEx messages.

XG EFFECT1 has a special name: the Variation effect. The Variation effect is very (no pun!) flexible. It can function as either a system effect or as an insertion effect. In PSR/Tyros-land, the Variation effect is assigned to the DSP1 unit. That’s why the user and reference manuals have special rules and conditions that govern the use and configuration of DSP1. On certain specific PSR models such as the PSR-S750, DSP1 often supports more effect types (e.g., kinds of distortion or whatever) than its cousins, DSP2, DSP3, DSP4, etc. If a song uses DSP1, the set-up information in your MIDI SMF file, at a minimum, must send SysEx to choose system or insertion mode and the effect type.

XG EFFECT2 effects are optional, that is, an XG keyboard does not need to implement any EFFECT2 effects. (EFFECT1 is also optional, but such a keyboard is only “XG-Lite” compliant like the PSR-E443.) The old QY-70 sequencer, for example, implements EFFECT1, but doesn’t support any EFFECT2 effects. The Yamaha Mobile Music Sequencer only supports EFFECT1, too. In PSR/Tyros-land, the number of ancillary DSP units (DSP2, DSP3, DSP4, etc.) determine the number of supported XG EFFECT2 effects. All XG EFFECT2 effects are insertion effects. Period. No choice.

With this background in mind, you will need to take some time to study the XG effects-related parameters in the MIDI message section of the PSR/Tyros manual. This is time well-spent.

Let’s take a look at a few details, though, in order to see how all of this fits together. First, here are a few points to summarize EFFECT1, the Variation effect.

  • XG EFFECT1 is assigned to PSR/Tyros DSP1.
  • This effect unit provides reverb, chorus and other insertion/system effects.
  • The Variation effect is configured for either insertion or system mode.
  • The Variation effect is shown in the mixer console effect window.
  • As an insertion effect, the send level is 127 and cannot be changed through the mixer console window.

The following three SysEx messages configure the Variation effect as an insertion effect. All numbers are hexadecimal. The effect type is MSB:5F and LSB:20, which is MSB:95 (decimal) and LSB:32, known to human beings as Real Distortion “MLT DS SOLO.” It’s a guitar multi-effect suitable for a lead guitar solo.

     Start SysEx message
     |  Yamaha ID
     |  |  Device number
     |  |  |  Model ID
     |  |  |  |                 End SysEx message
     |  |  |  |                 |
    F0 43 10 4C 02 01 40 5F 20 F7      Choose effect type
    F0 43 10 4C 02 01 5A 00 F7         Variation connection (00:insertion)
    F0 43 10 4C 02 01 5B 00 F7         Variation part
                 |  |  |
                 EFFECT1 parameter addresses

These three messages are called “XG Parameter Change” messages because they change an XG control parameter (e.g., effect type) stored at a particular address (e.g., 02 01 40). Most of the message is reusable boilerplate like the Yamaha ID, device number and model ID. Since we are using the Variation effect in insertion mode, we must assign the effect to a part, also know as a MIDI channel. In this case, we are assigning the Variation effect to Part 1 (MIDI channel 0).

Here’s a few bullet points to summarize what we know about EFFECT2.

  • XG EFFECT2 is assigned to one of DSP2, DSP3, DSP4, …
  • XG EFFECT2 is always an insertion effect.
  • The DSP unit is selected via the XG parameter address in the SysEx message.
  • The insertion effect must be assigned to a (song) part/MIDI channel.

Here is a quick example of two SysEx messages to set up an insertion effect on part 2 (MIDI channel 1) on DSP4.

                 EFFECT2 parameter address
                 |  |  |
    F0 43 10 4C 03 02 00 4E 10 F7      Choose effect type (0x4E 0x10)
    F0 43 10 4C 03 02 0C 01 F7         Variation part
                    |     |
                    |     Part 2 (MIDI channel 1)
                    00:DSP2 01:DSP3 02:DSP4

The first SysEx message selects the effect type (XG parameter address: 03 02 00). The effect type is MSB:4E and LSB: 10 which is MSB:78 (decimal) and LSB:16 (decimal). This is AUTO WAH1. The second message assigns DSP4 (02) to MIDI channel 1. Please note that the DSP unit is selected by the second byte in the XG parameter address.

This information should be enough to get you started. From here, I recommend reading about the Yamaha XG tone generation and effects architecture.

Yamaha, at one time, published diagrams showing Tyros 2 and XG effect routing. Unfortunately, these helpful diagrams are now hard to find. Here are links to the Tyros 2 effect diagram and the MU-128 XG effect diagram.

MMS as a tool

I’ve got a lot more experience with the Yamaha Mobile Music Sequencer (MMS), so it’s worth passing along an update. I’ve been composing backing tracks for classic soul jazz tunes. If you would like to hear the results, please browse over to the Music Gallery.

MMS is a phrase- and section- oriented composition tool. A song is a sequence of one or more sections and a section is a group of phrases that play together. The phrases follow the section’s chord progression. Thus, it’s easy to pull a section together given a chord progression from a lead sheet and a library of drum, bass, guitar and piano phrases (MIDI loops).

This approach works great for a simple tune like “Memphis Underground.” Memphis Underground is built on a single chord (C7) and simple bass figure that repeats ad infinitum. Just set the chord progression for each section to C7 and stack drum, bass, guitar and electric piano phrases. Vary the arrangement by stacking different phrases in each section and lay down the different sections in the song. I recorded the simple flute part that makes up the head (the main melodic theme) into a phrase of its own. Finally, I recorded solo parts into the MMS song screen because it didn’t make sense to split the solos into separate phrases. Overall, this approach worked out pretty well.

Life got a little more interesting with “Watermelon Man” and “Comin’ Home Baby.” These tunes are 16- and 12-bar blues. It would be great to arrange the songs from short 4-bar phrases and just let the phrases follow the chord progression. However, when fills are placed at the end of a 4-bar phrase, the fills do not always play at the most musically appropriate points in the tune! I resolved this problem by increasing the phrase length to 8 bars. I also recorded the head into a phrase of its own. It’s handy to play back the head while stacking phrases even if you intend to record the head along with the solos in the MMS song tracks. Melodic phrases such as these must be set to by-pass transposition.

Then there are tunes like “Tough Talk” and “Put It Where You Want It.” These tunes are based on one or more musical hooks that are essential to the character of the song. Generic bass or piano phrases just don’t cut it. I had to record phrases to cover the hooks and the head. Now, on-the-fly transposition guided by the section chord progression really starts to fight you! I wound up recording full, chorus-long phrases (all 12-bars), effectively ignoring (defeating) chord transposition by the sequencer. Each section has only one chord (e.g., F7 or C7) which simply determines the key for the tune. The hook phrases must be set for “parallel” transposition.

Put It Where You Want It is a work in progress. This tune is even more complicated to sequence because it has three major sections, each with a distinctive hook and theme. Stay tuned!

Overall workflow with MMS has been good. The Mixdown feature makes it easy to create a WAV file. MIDI (SMF) export is also easy. I’m using iTunes File Sharing to move the WAV and MID files to a PC where I convert the WAV to MP3 and add General MIDI (GM) SysEx and voices to the SMF file. iTunes File Sharing is a lot less hassle than I originally anticipated. The latest version (3.1) of MMS adds Dropbox, but I haven’t updated as yet.

There is one minor recurring problem. The MMS tone generator is a subset of the Yamaha XG standard and includes extended XG drum kits. This is good for musicians who are working on XG-compatible and/or Yamaha instruments because the GM drum kit is quite limited. However, the extended MIDI notes outside of the GM range do not map to the same percussion sounds on non-XG equipment, e.g., Roland Sound Canvas. So, I have had to edit the MIDI file and remap notes to make the drum parts truly General MIDI compatible.

Workflow is essentially in one direction only. I think the software developers see MMS as a mobile sketchpad where a musician jots down ideas that are transferred to and finished on a computer-based DAW. MMS cannot import results from the DAW. So, once you start editing with your DAW (e.g., SONAR or Cubase), you’re committed.

Well, there you have it. The true worth and limitations of a software tool like MMS are only apparent when taking on complicated, real-world problems. I’m still enthusiastic about MMS, but I’m also more knowledgeable and wary of its limitations. The song/section/phrase structure can definitely fight back at times!

Yamaha arranger product family

Even I found the last post to be down in the weeds and confusing. So, here’s a better summary.

I went on an Internet dumpster dive over the weekend to find more service manuals for Yamaha keyboards. I’ve always been interested in the architecture of product families and curiosity got the best of me, again.

The Yamaha arranger keyboard family has four main tiers: 1. Premium, 2. Upper mid-range, 3. Lower mid-range and 4. Entry. These are my names. Each tier has its own hardware architecture. Let’s take it from the top.

Keyboard Main CPU Sub CPU Tone gen Wave ROM
Tyros 2 128MHz SH7727 200MHz SH7709S 2xSWP50 6x256Mbit
Tyros 3 128MHz SH7727 200MHz SH7206 2xSWP51B 4x512Mbit
Motif XS 400MHz TX4939 None 2xSWP51 2x512Mbit

Tyros keyboards form the premium tier. I could find service manuals for only the Tyros 2 and Tyros 3; I’ll bet that the Tyros 4 has a similar internal architecture. The Tyros has two CPUs: a main CPU to handle the user interface and peripherals (e.g., the hard disk) and a sub CPU for digital signal processing (DSP) and to manage tone generation. The main CPU bus and the sub CPU bus are connected through a bridge (implemented in gate array technology). The main and sub CPU each have their own SDRAM and program ROM. (This is true for the other tiers as well and I won’t mention it again.)

Tone generation is performed by two SWP5x integrated circuits. The SWP51 is the current series. The wave ROM is split into an upper and lower bank and is shared by the two SWP5x tone generators on a common wave memory bus. SWP51 wave ROM is dedicated to tone generation. The SWP51 implements higher waveform sample compression. Thus, the Tyros 3 actually has less physical wave ROM than the Tyros 2, even though the Tyros 3 implements memory hungry Super Articulation 2 (SA2) voices. Interestingly, there is an audio backchannel from one of the SWP51s to the hard disk subsystem. The audio data passes through an “audio transformer” circuit on its way between the SWP51 and the hard disk subsystem.

BTW, I resist making any guesses about the inner design of the new Tyros 5.

I included the Motif XS in the table for comparison. The Motif’s TX4939 is a MIPS architecture processor while the Tyros CPUs are SH-2/SH-3 architecture. (Completely incompatible, of course.) The Motif XS runs Monta Vista Linux. The tone generation architecture is very similar to the Tyros: two SWP51s and two banks of wave ROM on a shared bus.

Keyboard Main CPU Sub CPU Tone gen Wave ROM
PSR-S750 135MHz SWX08 None 1xSWP51L 2x1Gbit
PSR-S950 256MHz SH7331 SSP2 1xSWP51L 2x1Gbit
PSR-S710 128MHz SH7727 None 1xSWP51L 2x256Mbit
PSR-S910 128MHz SH7727 135MHz SWX02 1xSWP51L 2x512Mbit
TMS320DA150

The upper mid-range keyboards have a main CPU. However, only the S9xx keyboards have auxilliary processors. The older S910 has a sub CPU (SWX02) and bridge, an arrangement which is similar to Tyros. The S910’s TMS320 (Texas Instruments DSP) implements the MP3 CODEC. The S950 does not have a sub CPU. Its main CPU, however, has a much higher clock rate and probably took over the workload performed by the S910’s sub CPU and MP3 CODEC. The S950’s SSP2 processor is a Yamaha custom IC for vocal harmony processing.

Upper mid-range keyboards use one SWP51L integrated circuit for tone generation. Wave ROM is split into two banks and is connected directly to the SWP51L. Current generation keyboards (S750 and S950) make wide use of flash memory. More than ever, product features are determined by code and content alone.

Keyboard Main CPU Sub CPU Tone gen Wave ROM
PSR-S650 135MHz SWX02 None On SWX02 1x512Mbit
PSR-S550 135MHz SWX02 None On SWX02 1x256Mbit

The lower mid-range keyboards have only a main CPU: an SWX02. The SWX02 has a Renesas part number and is probably an SH architecture machine. Tone generation is integrated into the SWX02. The SWX02 has a dedicated interface to the wave ROM. The S650 has only 25% of the S750’s physical wave ROM.

Keyboard Main CPU Sub CPU Tone gen Prog/Wave ROM
PSR-E213 128MHz SWL01 None CPU 1x32Mbit
PSR-VN300 128MHz SWL01 None CPU 1x64Mbit
PSR-E403 128MHz SWL01 None CPU 1x64Mbit

The entry level keyboards are, of course, the most cost and price sensitive. The entry level keyboards can also run on battery power thereby imposing further power and performance limitations. Entry level keyboards do not provide much in the way of voice-level effects. All three of the example keyboards have a single SWL01 CPU and are all clocked at 128MHz. The ROM contains both the program and waveform data. Thus, waveform data is read across the CPU memory bus along with all of the usual program/data traffic. Physical ROM size is very much smaller then even the S550/S650. The component count is very low and the circuit boards are quite simple.

A follow-up on the Yamaha SWP51

Here’s a follow-up on the Yamaha SWP51 tone generator.

Sound On Sound (SOS) mentioned that the SWP51 tone generator was first used in the Yamaha Motif XS family. The Motif XS has two SWP51 ICs with a master/slave relationship. Each SWP51 has 8MBytes of dedicated DSP SDRAM. The two SWP51s share wave ROM arranged in two banks (high and low) of 512Mbits each for a total physical capacity of 128MBytes. Each wave ROM device is a Spansion S29GL512N10TFI020 which is a 32M by 16-bit parallel NOR flash memory. (Yay, Spansion. I ate lunch in their cafeteria in Austin.)

SOS and others claim that the SWP51 performs sample compression. The Yamaha specifications state wave ROM capacity at “355MBytes when converted to 16-bit linear format,” meaning uncompressed size. The waveforms are compressed in order to fit into 128MBytes of physical memory.

There is only one thing that we can conclude for sure. The PSR-S750 and PSR-950 have twice the physical wave ROM space as the Motif XS and MOX (256MBytes vs. 128MBytes).

The Motif XS with two SWP51s has 128 voice polyphony while the MOX has 64 voice polyphony. Thus, the MOX most likely has only one SWP51. The PSRs have 128 voice polyphony. If the later version of the SWP (SWP51L) has the same number of tone generating and DSP elements as the first version, then the arranger keyboards are deploying the elements differently than the Motif family instruments. Without knowing the internals of the SWP51 and its variants, this is pure speculation.

By the way, the main processor in the Motif XS is the Toshiba TX4939 RISC CPU. The CPU is clocked at 400MHz. The TX4939 is a MIPS architecture processor with several integrated I/O controllers and interfaces. The TX4939 is capable of generating an audio sampling clock and supports PCM input/output. The processor runs Monta Vista Linux. Yamaha has an equity stake in Monta Vista and distributes the GPL’ed source code three years after initial product release. Yamaha have not released source for the arranger keyboards, so most probably, the arrangers use a different embedded operating system.

The MIPS instruction set and the Renesas SH-4 instruction sets are not compatible. If the arranger and workstation product lines share software-level functionality, it must be at the source code level.

Just in case you aren’t confused enough already. The Tyros 3 has two SWP51B ICs and two SH-series CPUs (Renesas SH7727 SH-3-DSP main, and SH7206 SH-2A sub). The sub CPU handles the SWP51Bs while the main handles the user interface, etc. The microphone input is routed to one of the SWP51B ICs. Playback/record audio is routed from the other SWP51B to a gate array that interfaces to the hard drive subsystem. Wave ROM consists of four 512MBit mask ROM devices arranged in two banks for 256MBytes of total physical ROM. Tyros 3, by the way, was the first Tyros with Super Articulation 2 (SA2) voices.