About pj

Now (mostly) retired, I'm pursing electronics and computing just for the fun of it! I'm a computer scientist and engineer who has worked for AMD, Hewlett Packard and Siemens. I also taught hardware and software development at Case Western Reserve University, Tufts University and Princeton. Hopefully, you will find the information on this site to be helpful. Educators and students are particularly welcome!

Mobile Music Sequencer revisited

Yamaha Mobile Music Sequencer (MMS) is an app that doesn’t seem to get as much love as it deserves. MMS is a rather complete MIDI sequencing tool to create new songs using a phrase-based approach. (Cost: $15.99USD) The MMS user interface has a superficial resemblance to Ableton Live. It has a phrase screen which lets you assemble preset or user phrases into song sections, e.g., phrases that play as a group. Once you have one or more song sections, you then assemble the sections in the linear song screen. You may also create new phrases of your own in a piano roll editor/recorder and you may record solos and such directly into a song track.

MMS includes an XG-architecture sound engine although the voice set is limited to a General MIDI (GM) subset and a collection of MMS-only voices. Voice quality is “just OK” and may be why MMS adoption is slow. However, as I’ve recently discovered, there are a few hidden gems like a Mega Voice clean electric guitar! DSP effects are basic and follow the XG effects architecture. I have summarized the sound set, DSP effects, etc. on my Mobile Music Sequencer Reference page.

Of course, you can mixdown and export full audio songs from MMS. MMS supports SoundCloud, Dropbox, and iTunes file transfer. You can also export a song to a Standard MIDI File (SMF). The SMF has eight parts — one part for each of MMS’s eight song tracks. If you choose one of the supported targets (Tyros 5, Motif XF, MOX, etc.), MMS inserts bank select and program change MIDI events to select an appropriate voice for each track. Unfortunately, MMS doesn’t export volume, pan or effect data, so the resulting SMF is quite naked. Ooops! This is one area where MMS could be and should be drastically improved.

MMS’s voicing for Tyros is not very adventurous. On the up side, SMFs targeted for Tyros should work quite well on other PSRs, too. There is one voicing issue which should be fixed. The MMS clean electric Mega Voice (“Clean Guitar 2”) should be mapped to the good old PSR/Tyros clean guitar mega voice. Right now, it’s mapped to the regular clean guitar voice and the guitar FX sounds are whack.

Yamaha have rather quietly enhanced MMS’s capabilities. MMS is now up to version 3, including chord templates, extraction of chord progressions a la Chord Tracker, and more. The last minor update made MMS compatibile with Apple iOS 11. I hope Yamaha add Genos and Montage support because MMS can communicate directly (via wired MIDI, Bluetooth MIDI or wireless LAN) to its supported synths and arrangers.

Given the amount of kvetching about the shortcomings of the Montage sequencer, I’m surprised that more Montage people haven’t picked up MMS. Same for Genos or PSR, for that matter. Maybe its the lack of direct Montage or Genos support?

Where you from, boy?

Recently, I got the itch to create a few new PSR-compatible styles. I’ve always felt that MMS would make a good base for a style editor. You can quickly slam together phrases into a song section and see if they play well together. (Same as Ableton Live, I might say.) I mix and match phrases into song sections then export the sections to an SMF. Each MMS song section is a PSR style section (MAIN A, MAIN B, etc.) I load the SMF into a DAW where I add style section markers, SysEx set-up data, volume, pan, etc. When satisfied, I add a style CASM section using Jørgen Sørensen’s CASM editor. [Be sure to check out all of Jørgen’s excellent tools.]

Given the content, I can just about do this in my sleep. It’s a fairly mechanical process once you understand it and do it, say, fifty times. 🙂

About that content…

MMS comes with ten styles (i.e., groups of phrases) in the initial download. Please see the table at the end of this article. The ten styles are rock and pop. If you’re looking for R&B, dance, jazz, electronic or hip-hop, you’ll want to buy one of the content packs offered as an in-app purchase. I’ve include a table for these packs, too, at the end of the article. The genre packs are $3.99USD each. Yamaha also offer the multi-genre QY pack ($7.99USD) with phrases taken from the Yamaha QY-70 (QY-100) handheld sequencer. I did a little QY-70 mining myself.

Now for the usual Yamaha archeology…

The “MM” in “MMS” is a little bit ironic. The MMS phrases are lifted from the (infamous) “Mini Mo” mm6 and mm8 keyboards. The Mini Mo touted voices taken from the Motif series, but the mm6 and mm8 didn’t really know if they wanted to be an arranger or a synthesizer. In that regard, the Mini Mo is a unique functional hybrid in Yamaha’s bipolar world. (“You’re either a synth or you’re an arranger.” Digital pianos excepted, of course.)

So, yep, MMS offers almost all of that old (ca. 2006) Mini Mo goodness. You don’t get the fun ethnic patterns (Turkish, African, Indian), tho’.

If you break into your rich neighbor’s house to steal his stereo, you might as well take the TV set, too. The Mini Mo arpeggios are incorporated into the the Yamaha Synth Arp & Drum Pad app. If you still can get the Synth Arp & Drum Pad app, snag it right away. It’s being discontinued.

How does it sound on Genos?

Not bad. Even though the target voices are rather vanilla, an MMS-derived style on Genos sounds pretty darned good.

List of MMS drum kits

Bank MSB Bank LSB Prog# PC# Drum kit
7FH 00H 1 00H Standard Kit
7FH 00H 26 19H Analog T8 Kit
7FH 00H 27 1AH Analog T9 Kit
7FH 00H 28 1BH Dance Kit
7FH 00H 41 28H Brush Kit
7FH 00H 84 53H Break Kit
7FH 00H 85 54H Hip Hop Kit 1
7FH 00H XX xxH Hip Hop Kit 2 (Hip Hop)
7FH 00H XX xxH Hip Hop Kit 3 (Hip Hop)
7FH 00H 88 57H R&B Kit 1 (R&B)
7FH 00H 89 58H R&B Kit 2 (R&B)
3FH 20H 1 00H SFX Kit
3FH 20H 2 01H Percussion Kit
7FH 00H XX xxH Dubstep Kit (Electronic)
7FH 00H XX xxH Elct.Dub Kit 1 (Electronic)
7FH 00H XX xxH Elct.Dub Kit 2 (Dance)
7FH 00H XX xxH Epic FX (Electronic)
7FH 00H XX xxH Gate Drum Kit (Electronic)
7FH 00H XX xxH Short FX (Electronic)
7FH 00H XX xxH New Pop Kit (Dance)
7FH 00H XX xxH Trance FX Menu (Dance)
7FH 00H XX xxH Trance Power Kit (Dance)

List of styles

The following preset styles are installed with Yamaha Mobile Music Sequencer when you buy MMS.

Category: Rock/Pop Jazz/World
BluesRck Funky Jaz
ChartPop JzGroove
ChartRck Reggae
FunkPpRk
HardRock
PianoBld
PowerRck
RkShffle
RockPop
RootRock

Here are the styles included in each optional, in-app purchase pack:

R&B Electronic Dance HipHop
IzzleRB Ambient Dncehall AcidJazz
JazzyRnB Analog Dncfloor Amb Rap
RB Chrt1 Chillout E-Disco ButiqHH
RB Chrt2 Dubstep E-DubPop EastRap
RnB Bld1 ElctDub EleDance HipHopPp
RnB Bld2 Electron ElktPop1 JazRemix
RnB Pop1 Minimal ElktPop2 SouthRap
RnB Pop2 Techno FunkyHse WestRap
RnB Soul Undrgrnd LatinJaz
M-Trance

Copyright © 2018 Paul J. Drongowski

Baby’s are cute!

I have got to get me one of these for my Yamaha Reface YC. Cost (12,000Yen / $108USD) is no object. 🙂

Quoting Suzuki:

The Baby Leslie Bluetooth speaker inherits the look of the original Leslie 122 speaker, developed exclusively for Hammond Organs.

Although the “Baby Leslie” does not provide the Rotary Effect of traditional Leslie Speaker Cabinets, its omnidirectional sound system, including a passive radiator, brings brilliant highs and rich lows, reflecting the heritage that the Leslie Brand is famous for.

An added fun feature uses illuminated LEDs to simulate the look of the spinning horn rotor atop all classic Leslies. The badge and name plate have been recreated from the original Leslie Logo, and the look of real wood offers a touch of vintage style.

See the quasi-demo video and the Baby Leslie leaflet (PDF).

A Google search turns up Suzuki’s application to the FCC. Soon, soon!

Unfortunately, the Baby Leslie does not have an analog audio input — it’s only Bluetooth. Here’s a snap of the BT-122 control panel (click to enlarge).

I’ll add a Bluetooth transmitter to the Reface YC (with the lousy Bluetooth audio latency) or I’ll hack the speaker itself to add an audio input. Another manufacturer who doesn’t “get” their own product and will lose sales because they cheaped out on a connector…

Copyright © 2018 Paul J. Drongowski

[Update: Upon further thought, with its SBC codec, latency will be around 100 to 150 msec — too much for live play. Either Suzuki add a LINE IN, or it’s time to break out the soldering iron and mod.]

All is swell (SWL)

Yamaha develop a wide range of keyboard products from low-cost entry-level ‘boards to high-end synthesizers and digital workstations (AKA “arrangers”).

Within a market segment, the engineering challenge is to develop, manufacture and test a product with the desired feature set at the target selling price. I won’t discuss profit margin here since no one really knows, but Yamaha. We do know, however, that amortized non-recurring and recurring costs must be low enough to produce a significant return. Cost sensitivity is simply a day-to-day reality.

The entry-level segment is the most cost-sensitive segment because most customers in this segment are looking for an inexpensive keyboard with basic functionality. Think “Parents buying a first keyboard for a kid who may walk away from the whole thing in a week or two.” The entry-level segment outsells the mid- and high-end portable keyboard segment by nearly 2 to 1:

    Category                       Units            Retail value
    -----------------------------  ---------------  -------------
    Acoustic guitars               1,499,000 units  $678,000,000
    Electric guitars               1,132,000 units  $506,000,000
    Digital pianos                   135,000 units  $165,000,000
    Keyboard synthesizers             81,000 units  $104,000,000
    Controller keyboards             160,000 units  $ 32,000,000
    Portable keyboards under $199    656,000 units  $ 64,000,000
    Portable keyboards over $199     350,000 units  $123,000,000
    Total portable keyboards       1,006,000 units  $187,000,000

    Sales Statistics for 2014, USA market

Synth fanatics should note that although the average selling price (ASP) is higher for synths, the portable keyboard segment moves a much higher number of units. Fortunately, for manufacturers playing in the entry-level portable keyboard space, volume is relatively high and non-recurring cost can be laid off across a larger number of units than synths.

The entry-level segment has one other important driver — the desire for portable, battery operation. This design consideration limits the amount of electrical power available for computation and thus, limits the amount of computational capacity itself. Some dynamic power can be bought back through lower CPU clock speeds. Folks accustomed to giga-Hertz CPUs may be shocked to see such low clock speeds! Lower clock speeds simplify cooling and reduce overall weight by eliminating heat sinks and cooling fans.

LSI vs. commodity

Yamaha perceive their proprietary expertise in large scale integration (LSI) as a competitive advantage. Although Yamaha exploit commodity components where possible, tone generation and digital signal processing (DSP) are performed in proprietary hardware.

User interface and control (e.g., USB communications, MIDI, LCD, etc.) are a good fit with commodity CPU technology. Yamaha — and Roland — have a long history with H8 and SH architecture CPUs from Hitachi, now Renesas. Early products employed H8 microcontrollers for host CPU functions. Yamaha eventually migrated to the “Super H” reduced instruction set computer (RISC) family. (In 2011, Renesas announced the end of the H8 line.)

Yamaha have a considerable investment in software built and tuned for the SH family. Thus, migration to a new commodity architecture (ARM) is a pretty big deal with a high internal cost. Yamaha have adopted ARM for panel scanning/control in Reface and are using ARM processors for host computation in Montage and Genos. Time and experience will show if ARM is adopted in the entry- and mid-range segments, too.

Old faithful

Yamaha’s entry-level models rely on “old faithful,” the SWL family of proprietary Yamaha processors. The SWL is used in all entry-level models — a good way to drive volume manufacturing of a custom part. The SWL family has undergone several revisions over the years. I don’t intend to recount that history here.

The SWL01U was used in many products including the PSR-E443. The external clock crystal oscillates at 16.9344MHz yielding an internal clock speed of 33.8688MHz by scaling. The relatively low clock speed reduces heat and power consumption. The following diagram shows the typical “compute complex” in an entry-level keyboard. [Click to enlarge.]

The structure in the diagram is generic across Yamaha entry-level products. If you dive into the service manual for a specific entry-level keyboard, you’re likely to find a “compute complex” like this generic one although memory capacities and such are model specific.

The SWL01U provides a CPU bus to which a USB controller (optional), program/wave ROM, flash ROM and SDRAM are attached. The SWL01 has many on-board interfaces: keyboard scanning, LED/LCD interface, bit-serial audio (ADC, DAC), control knob sensing, etc. The SWL01U has an integrated USB controller which can be deployed in ultra low-cost, minimum component count designs.

The SDRAM is, of course, read/write working memory. The flash ROM retains user data when power is turned off.

The program and waveform data are stored in the same physical memory component. In the case of the PSR-E443, the prog/wave memory is a 16MByte parallel NOR flash memory. The factory sound set, therefore, is smaller than 16MBytes. Panel voices, the XGlite sound set, and drum kits are crammed into this small memory along with the E443’s software.

The SWL01U integrates 32 tone generation channels and relatively “lite” DSP effects (reverb, chorus and flanger). I have not had the chance to browse the service manual for the PSR-E453 (or E463). E453 polyphony increased to 48 voices and the DSP effect types got a modest bump. I expect to find a new, updated member of the SWL family in these newer keyboards.

Anyone modestly familiar with microcomputer systems will look at the diagram above and say, “It’s just a computer system,” and they would be right. The simplicity of the system — and its low cost — severely limit tone generation and effect processing, however. The bottleneck is the shared system bus. All traffic must cross this bus whether it is instructions for scanning the keyboard matrix, waveform samples for tone generation, or working data for DSP effects. There is only so much bus (memory) bandwidth and it must be split several ways.

We often think of tone generation as compute-limited. Tone generation may be memory (or bus) bandwidth limited, too. Each mono channel of tone generation must read 88,200 bytes per second:

    44,100Hz * 2bytes = 88,200 bytes per second

For 32 tone generation channels, total required bandwidth is :

    88,200 bytes per second * 32 channels = 2,822,400 bytes per second

This rate must be guaranteed in order to avoid audible artifacts. (Tone generation reads are probably given highest priority by the hardware.)

The system bus does not operate at the same speed as the CPU clock. Assuming 2 clocks per bus operation (conservative estimate), 2.8MBytes/second is a significant fraction of available system bus bandwidth (17 percent). The number of channels cannot be increased without affecting the latency of host operations such as key scanning and real-time player control (e.g., front panel knobs).

Who’s counting?

Entry-level products have a low component count thanks to all of the functionality integrated into the SWL. Low component count has many benefits including smaller printed circuit boards (PCB), lower power, fewer solder connections to go wrong during manufacturing, smaller chassis, etc.

The SWP01U has 176 pins around a modest-sized, quad flat surface mount package. By putting all memory traffic on the CPU bus, i.e., not using a dedicated memory channel for waveform samples, Yamaha have achieved a relatively low pin count. [I never thought I would ever refer to 176 pins as “relatively low.”] Other Yamaha solutions have a much greater pin count due to separate dedicated memory channels. Those solutions, however, deliver a much higher level of performance and polyphony. More about this in future posts.

What’s up, clock?

What’s up with those clock speeds? Why not something “even,” like 16MHz?

Turns out, 16.9344MHz is a multiple of the sample playback frequency:

    16,934,400Hz = 44,100Hz * 24bits * 16 

The SWL generates the sample clock for the ADC and the DAC.

The PSR-E443’s ADC is a Texas Instruments PCM1803ADBR 24-bit analog to digital converter. A note in the schematic states “MCLK=768fs, fs=44.1kHz, 24-bit left justified, HPF on, Slave Mode.” 768*fs is 33.8688MHz which is exactly the CPU clock frequency.

The PSR-E443’s DAC is a Cirrus Logic (Wolfson) WM8524CGEDT/R 24-bit digital to analog converter. A note in the schematic states “SYSCLK=33.8688MHz (768fs), BCLK=2.8224Mhz (64fs), WCLK=44.1kHz (1fs), 24-bit left justified.”

You can find the datasheets for the ADC and DAC by searching the Web.

The PCM803A and WM8524 support three audio formats: left justified, right justified and I2S. The formats and clock scheme are rather common and standard, and are supported by most commodity audio ADC and DAC components. The SWL processor, ADC and DAC remain in synch because the CPU clock and the sample clock are one and the same.

So long!

I hope this blog post has given some insight into the design of entry-level musical instrument keyboards.

Copyright © 2018 Paul J. Drongowski

MIDI TRS pin-out

The MIDI Association has released Recommended Practice #54 covering the use of TRS connectors for standard current loop MIDI. If you’re not a member of the MIDI Association, I strongly recommend becoming a member. Among other benefits, members have access to the Association’s on-line specifications and recommended practices.

Without putting too fine a point on it, the diagram from RP#54 says nearly all. [Click image to enlarge.]

MIDI device designers are facing the same sort of space issues as phone developers. The physical form factors are getting too darned small! In many cases — no pun intended — connector size is a limiting factor. Old school 5-pin DIN connectors are enormous relative to slender product envelopes. The MIDI Association recommends 2.5mm TRS connectors and a maximum adapter cable length of 2 meters.

So, of course, you’re wondering about the MIDI controllers, etc. that you already own. A quick check with a digital meter or continuity checker will determine if your current device is consistent with the recommended practice or not. I checked the adapters with my Akai MPX8 and, yep, the adapters are consistent.

The Korg HNS-4331 MIDI conversion cable is also consistent with the RP #54 convention. Albeit, both the Akai and Korg adapters have 3.5mm TRS plug, not 2.5mm. 2.5mm is a good idea since it would be all too easy to plug 3.5mm headphones or a live LINE output into a MIDI port. Yikes!

The IK Multimedia cable that came with my iRig MIDI is a bit of an oddball. First, the 5-pin DIN connector is male, not female as shown in the diagram above. Further, the pin 4 and 5 connections are swapped relative to the pin wiring shown above. So, if you’re wiring for IK Multimedia, please take care and check things out for yourself using a continuity checker.

Sure wish this recommended practice was available a few years ago…

In case you missed it, here’s the MIDI reference circuit.

Please join and be sure to read the 2014 update to the MIDI electrical specification.

Copyright © 2018 Paul J. Drongowski

Yamaha VKB-100 redux

OK, sooner or later, you knew I would circle back to the Yamaha VKB-100 VOCALOID keyboard. This little gem is a vocal keytar that lets you play pre-loaded lyrics using an installed Vocaloid library sound. Up to five libraries may be installed including the VY-1 library that ships with the VKB-100.

The VKB-100 can be had for the relatively low price of roughly $400USD, depending on shipping cost from Japan. The VKB-100 is only available in Japan at the current time.

Here’s a quick summary of the specs (translated from Japanese):

Number of keys: 37
Keyboard type: HQ (High Quality) MINI keyboard
Maximum polyphony: Vocaloid (mono), Instruments (48)
Number of voices:
    Vocaloid: Up to 5 libraries, Preset: 1 library (VY-1)
    Instrument: Preset: 13
Effects: Reverb, distortion, chorus, tremolo
Equalizer: Flat, Boost, Bright, Mild
Lyric operation: Loop, phrase return/forward, head search, recover
Skill
    Vocaloid: 2 assignable skills
    Instrument: Skill 1: Sustain, Skill 2: Portamento
Memory slots: Vocaloid: 20, PCM sound source: 20
Main controls Pitch Bend Wheel, Expression Wheel, Effect Knob, 
    Select Knob, Selector Slider, Transpose button, Phrase Button, 
    Memory Button,  Skill Button, Octave Button, Loop Button, 
    Master Volume Knob
USB: USB to HOST, USB to DEVICE
Audio connections
    Headphone out
    AUX in
    Line out
Amplifier output: 0.7W
Internal speaker size: 3.6cm
Power adapter: PA-150B
Battery power: 6 x AA alkaline or rechargeable NiMH batteries
Battery life: About 7 hours when using alkaline batteries
Width x depth x height: 821 mm x 121 mm x 65 mm
Width x depth x height: 32.3 in x 4.8 in x 2.6 in
Weight: 1.5kg
Accessory soft case: SC-KB350 (5,500 Yen)

The keybed is probably the Reface keybed. (Sturdy, slightly clack-y.) What’s that? Instruments? Hmmm…

I don’t want to run through the operational particulars, again. Please see the following pages for background information:

It’s cheap, it straps on, it has a keyboard and wheels. Can it be used as a MIDI controller? As an instrument in it’s own right?

The build quality looks pretty decent and the ergonomics are nice. There are two wheels on the neck: pitch bend and expression. And here we hit the first bump in the road — no modulation. A quick look at the MIDI chart and we find that the VKB-100 sends:

  • Pitch bend
  • Portamento time (CC# 5)
  • Expression (CC# 11)
  • Portamento ON/OFF (CC# 65)
  • Release time (CC# 72)

That’s it. Now, I suppose one could remap CC# 11 to modulation, but it would be better to have modulation generated natively.

The other gotcha. The VKB-100 has two modes: normal and keyboard mode. The VKB-100 only sends MIDI controller/key messages in keyboard mode, not normal mode. The user must select keyboard mode through a menu and this setting is not retained across power off. That means changing to keyboard mode after every shutdown.

The VKB-100 doesn’t receive much of MIDI anything except some undocumented SysEx. Thus, forget about sequencing.

The final gotcha is MIDI over USB only. If you want to drive an old school 5-pin DIN MIDI module or keyboard, you will need to bridge USB to 5-pin.

So, what about those preset instruments? Here’s a list:

  1. Synth 1
  2. Synth 2
  3. Synth 3
  4. Synth 4
  5. E. Guitar
  6. Harmonica
  7. Tenor Sax
  8. Piano
  9. E. Piano
  10. Synth Bass
  11. Slap Bass
  12. Air Choir
  13. Applause

Quality is comparable to an entry-level PSR keyboard. The Tenor Sax voice, for example, sounds like the Sweet! Tenor Sax in a PSR-E443. At least you have four effect types (reverb, distortion, chorus, tremolo) with four effect depth levels each. Kinda basic.

After a few insipid J-Pop YouTube demos, you want to blow your brains out. I watched them, so you don’t have to. Here are a few demos to check out.

Hey, Blake! You got to go to Superbooth? I’m jealous!

Bottom line, I was intrigued until I dove into the (Japanese) manuals and found the VKB-100’s limitations as a controller and stand-alone instrument. Ordering from Japan is no big deal, but the VKB-100 would have to offer some real cool features and sounds to compensate for the labor of translating Japanese to English and dealing with display messages in Japanese.

If you want to get your feet wet with Vocaloid, I recommend the Gakken NSX-36 Pocket Miku module. No keytar action, but you get a multi-timbral MIDI module that does Miku Vocaloid at a very modest price (less than $50 USD).

Copyright © 2018 Paul J. Drongowski

Montage update v2.5

Just when the summer seemed truly boring, Yamaha drops the Montage v2.5 update.

I think Yamaha engineers have heard many user comments and requests. They have continued to beef up legacy (Motif XF) Performance support in Montage, providing all of the original Motif XF Performances as presets. The legacy Performances have Super Knob assignments. Good to see and hear! The release video mentions “512 new Motif XF Performances.” Too soon to know how this breaks down — spiffed up old versus brand new. [Kind of like “new” vs. “new old stock.” 🙂 ]

The Motif XF Performances are a lot of first rate content. Coupled with the new Arpeggiator recording modes, one can use a Montage as a songwriting tool much like the earlier Motif XS/XF and MOX/MOXF.

Another gap between the old and new was the lack of integrated control between Montage and DAW. Montage has a new REMOTE mode, “DAW Remote Control:”

  • Mix your DAW tracks using the MONTAGE faders and knobs
  • Use the MONTAGE transport to start, stop, record, rewind, fast forward and return to zero
  • Select, arm, mute and solo DAW tracks with the MONTAGE right-hand buttons
  • Edit and control virtual instruments
  • Use the MONTAGE Data Wheel as a jog/shuttle wheel
  • Customize the [SCENE] buttons to perform various DAW functions

[Above list quoted from the Yamaha Synth web site.] This is more like the old “AI integration” in Motif. Cubase, ProTools, Logic, and Live are supported.

The Yamaha Synth site reminds everyoe to “BACKUP and SAVE YOUR DATA before updating to OS v2.5!” This is good advice in general. Are you ready for a media failure? A worn out back-up battery?

The update is available today, 31 July 2018. Looks like the team met their quarterly milestone. 🙂

Genos™ people on the PSR Forum want to feel the love, too. Genos and Montage updates are on separate schedules. However, I do hope that Yamaha engineers have been listening as carefully to Genos users. A fair number of us would like to see similar DAW support/integration for Genos along with bug fixes. We are using Genos in our studios and need the same kind of DAW control and VST integration.

Yamaha had to restructure the old Tyros/PSR OS to run on Linux and to interact through the new user interface (UI). I occasionally run into an issue where a setting gets lost when switching “modes,” e.g., going into and out of MIDI song multi record. Or, most recently, the rotary speed control (both front panel and pedal) is lost and becomes unresponsive. This tells me that more “integration level” software testing is needed. Software may be passing its unit tests, but errors are lurking when modules/subsystems interact with each other.

The Yamaha Synth folks have created a “Yamaha Synth” group on IdeaScale.com. The purpose is to collect product ideas and suggestions for the synthesizer product line. Members also cast votes in favor of suggestions made by other people. This has got to be better than the mish-mash of proposals, flames and tirades posted in the forums — and much easier for Yamaha marketing to cull. I’ll be making a suggestions or two myself… One lucky member already won the lottery with the new DAW support in v2.5!

Hope your summer is going well! I’ve been busy with tracks and charts, so there hasn’t been as much new content here. Soon, soon.

Copyright © 2018 Paul J. Drongowski

Yamaha QY-70 anatomy

My ancient Yamaha QY-70 is a handy XG-compatible MIDI module. Quite useful when knocking out a track or two in the dining room. [Table space is tight.]

After 21 years, the back-up battery is nearly kaput and the dreaded “Back-up battery low” message appears whenever I turn on the QY. Fortunately, I’m paranoid as heck about data loss and I’m ready for low battery conditions, a massive cosmic ray burst from outer space, or the apocalypse.

I couldn’t pass up this perfect occasion to take a screwdriver to my beloved partner in musical crime…

First, the service manual. The QY-70 appeared in 1997 followed by its younger and bigger brother, the QY-100, in 2000. The QY-70 service manual is difficult to find on the Web. Fortunately, I had scavenged a somewhat poorly scanned copy two years ago, the original source since forgotten.

               QY-100    QY-70
               ------   ------
    Year         2000     1997
    Polyphony      32       32
    Voices        547      519
    Drum kits      22       20
    Reverb         11       11
    Chorus         11       11
    Variation      43       43

Thank goodness, disassembly is easy — remove the five screws on the back and the QY-70 splits into two halves, top and bottom. Beware if you are doing this yourself as the top and bottom are connected by two relatively flimsy power wires from the battery compartment to the main digital electronics board. (Yamaha always call the main digital board “DM”, by the way.)

Like any good surgeon or forensic anatomist, I took a picture! [Click to enlarge.]

I blew a sigh of relief when I saw the easily accessed button battery, a CR2032 just like the QY-100. [In case you were wondering.] I don’t like to disassemble devices any more than I absolutely have to and didn’t relish pulling the DM board with its connections to the button/LCD board.

So, what is this stuff inside? Here are a few notes from the Yamaha service manual:

    Main CPU         HD6413002FP16      Hitachi H8 3002 10.0 MHz
        Program ROM  341MV030           16Mbits
        SRAM         M5M5256DFP-70LL    256Kbits (32Kx8-bits)
        SRAM         HM628128BLFP-7SL   1Mbits

    Sub CPU          HD6413002FP16      Hitachi H8 3002 12.0 MHz
        Program ROM  MSM538022E         8Mbits
        SRAM         M5M5256DFP-70LL    256Kbits (32K x 8-bits)

    Tone Generator   TC203C060AF-001    SWP00 33.8688 MHz
        Wave ROM     uPD23C32000-12     32Mbits (2M x 16-bits)
        DRAM         LH64256CK-70       Sharp 1Mbits

    DAC              uPD63200GS-E1      NEC 18/16 bit stereo DAC

I’ll bet that you didn’t know that the QY-70 (or QY-100) are multiprocessors?

Renesas was originally established as a joint venture between Hitachi and Mitsubishi Electric. Eventually, NEC Electronics joined the party, too. Thus, the H8 has its origins with Hitachi. Yamaha have been steady users of Hitachi (Renesas) processors for main- and sub-CPUs, having only recently taken a turn toward ARM (Reface, Montage and Genos).

The tone generator (TG) integrated circuit (IC) is smack in the middle of the DM board. It is the component marked “XS724A00”. The tone generator is the first Standard Wave Processor, SWP00M, in a long series of SWPs, culminating with the latest and greatest SWP70. The essential architecture is the same: a controlling host CPU like the H8, wave memory in ROM, and a dedicated RAM for effects processing.

The Sharp LH64256CK-70 is the 128KByte DRAM for effects processing. The component marked “XT346A00”, just above the tone generator, is the wave ROM.

The big dual in-line device (MX) below the tone generator, marked “XT34410”, is program ROM for the main CPU, located just to the right of it. The surface mount component in the upper left corner of the DM board, marked “XT650A0”, is the program ROM for the sub-CPU right next to it.

The NEC DAC is in the same neighborhood. The DAC operates in 18-bit mode and is the same DAC used in the Roland SC-88 Pro Sound Canvas, BTW. The likely sample rate is 44,100Hz as the SWP00 clock frequency is an even multiple of 44,100:

    33.8688MHz = 768 * 44,100Hz

Yamaha schematics state memory size in bits, not bytes. Thus, the wave memory is 4 MBytes organized as 2M x 16-bit words. Let’s reflect on that for a moment. The entire XG sound set — drums and all — fits into 4MBytes. Flash-forward to today when people belly ache about 2 gigabytes being just not enough. Yamaha are truly masters at sound design and compression. Let’s hope that its institutional memory and skill live on!

The QY-100 was yet another step ahead in technology, coming just three years after the QY-70. In the QY-100, Yamaha integrated the H8 and tone generator onto a single chip, the SWX00B, first in a long line of SWXs. The QY-100 has a bigger wave memory, 64Mbits organized as 4M x 16-bit words. The memory contains both TG programming and waveforms:

    TG program    1Mbyte
    Waveforms     7MBytes

As noted in the specs, the QY-100 has more voices and drum kits than the QY-70.

Well, I hope you enjoyed the nickel tour. Time to insert a new battery and then to button up the chassis. Have fun!

Copyright © 2018 Paul J. Drongowski

Insertion effects for MIDI songs

The new Yamaha Genos™ platform greatly expands the number of DSP insertion effects for styles and MIDI songs. No doubt, you would like to put these insertion effects to work in your own styles and MIDI songs. This blog post should help you get started.

There are 28 insertion effect units at your disposal:

  1. Insertion Effect 1 to 19: Keyboard parts (RIGHT1, etc.) and Song channels 1 to 16.
  2. Insertion Effect 20: Microphone and Song channels 1 to 16.
  3. Insertion Effect 21 to 28: Style Parts (except Audio Styles).

Within the constraints of these three groups, any Insertion Effect unit within a group may be assigned to any audio source associated with the group.

I will use the terms “Insertion Effect” and “DSP effect” interchangeably. This is true when you delve into the Yamaha XG parameters, too.

With all this flexibility, effect resource management can easily get out of control. I’ve developed a few personal guidelines to help keep things organized:

  • Genos assigns RIGHT1, RIGHT2, RIGHT3, and LEFT to Insertion Effects 16, 17, 18 and 19. Avoid using these Insertion Effect units in a MIDI Song.
  • Assign the remaining Insertion Effect units on a 1-to-1 corresponding basis: DSP unit 1 to Song part 1, DSP unit 2 to Song part 2, etc.

These simple guidelines make it easier to manage track DSP usage when doing the busy-work of Song editing.

Genos also provides a Variation Effect which can be configured as either a System effect or an Insertion Effect. Let’s not even go there for now. The Variation Effect offers additional opportunities for signal routing and control. Unfortunately, opportunity comes at the cost of complicated configuration.

If you want more information about using the Variation Effect, here’s a pair of blog posts for you: PSR/Tyros XG effects and XG effects: SYSTEM mode.

It’s simple then — each DSP unit (Insertion Effect) corresponds to a single Song part. Each unit and its part have the same identifying number.

If you’re sequencing on the Genos itself, you can assign Insertion Effects to Style and Song parts using the Mixer. Go to the Mixer, touch the “Effect” tab at the Left of the screen, and then touch the “Assign Part Setting” button. Genos displays the insertion effect assignment dialog box where you can make assignments. This dialog box is a good way to check that your MIDI sequence is making the correct assignments, too.

I do my MIDI sequencing and editing in BandLab Technologies SONAR (formerly Cakewalk SONAR). This means configuring DSP effects via System Exclusive (SysEx) MIDI messages. Many people fear SysEx because the messages are encoded in hexadecimal numbers. Fear not! I’m going to give you a head start.

At a minimum, we need to create two SysEx messages for each Insertion Effect:

  1. One message to assign the DSP unit to the Song part, and
  2. One message to select the DSP effect type (e.g., British Legend Blues).

This is enough to assign a DSP effect preset (and its algorithm) to a Song part. Once assigned and the MIDI sequence is loaded, you can edit the effect parameters in the Genos GUI by spinning the faux knobs and such. When you hear a setting that you like, you can translate the settings into additional SysEx messages and incorporate the messages into the sequence using a DAW like SONAR.

First things first. The SysEx message to assign the DSP unit to a Song part has the form:

F0 43 10 4C 03 XX 0C YY F7

where XX is the DSP (Insertion Effect) unit number and YY is the Song part number. The only potential gotcha is MIDI unit and part numbering — it starts from zero instead of one. For example, let’s assign DSP unit 6 to MIDI part 6. (I’m assuming that the MIDI part and channel numbers are the same; the usual default situation.) In this example, XX=5 and YY=5, so the final SysEx message is:

F0 43 10 4C 03 05 0C 05 F7

Straightforward.

You may already be aware that hexadecimal (hex) is a way of counting (i.e., representing numeric quantities) in base sixteen. The hex digits 0 to 9 have their usual meaning. Hex digits A, B, C, D, E, and F represent the numeric quantities 10, 11, 12, 13, 14, and 15, respectively, when those quantities are written in base 10, decimal notation. You’ll need those hex digits when connecting DSP units 10 to 16 and Song Parts 10 to 16.

In case you’re still unsure of yourself, here’s a simple table to help you out:

DSP#  Part#   SysEx message
----  -----   -----------------------------------
   1      1   F0 43 10 4C 03 00 0C 00 F7
   2      2   F0 43 10 4C 03 01 0C 01 F7
   3      3   F0 43 10 4C 03 02 0C 02 F7
   4      4   F0 43 10 4C 03 03 0C 03 F7
   5      5   F0 43 10 4C 03 04 0C 04 F7
   6      6   F0 43 10 4C 03 05 0C 05 F7
   7      7   F0 43 10 4C 03 06 0C 06 F7
   8      8   F0 43 10 4C 03 07 0C 07 F7
   9      9   F0 43 10 4C 03 08 0C 08 F7
  10     10   F0 43 10 4C 03 09 0C 09 F7
  11     11   F0 43 10 4C 03 0A 0C 0A F7
  12     12   F0 43 10 4C 03 0B 0C 0B F7
  13     13   F0 43 10 4C 03 0C 0C 0C F7
  14     14   F0 43 10 4C 03 0D 0C 0D F7
  15     15   F0 43 10 4C 03 0E 0C 0E F7
  16     16   F0 43 10 4C 03 0F 0C 0F F7

Find the row in the table for the Insertion Effect (DSP unit) number and Song Part that you want to configure. The third column is the SysEx message to use.

Once the DSP unit is assigned to the Song Part, you need a SysEx message to choose the DSP effect type (e.g., British Lead Dirty). The SysEx message to accomplish this job has the form:

F0 43 10 4C 03 XX 00 MM LL F7

where XX is the DSP unit number, MM is the MSB of the effect type and LL is the LSB of the effect type. The effect types are listed in the Genos Data List PDF file. Look under the “Variation/Assertion Block” section of the Effect Type List. British Lead Dirty is a distortion effect with MSB=102 and LSB=32.

The next step is to convert the MSB and LSB to hexadecimal. I think this is the part that scares some folks the most. Actually, Yamaha have made it easy. While you’re in the Geno Data List PDF file, go to the first “MIDI Data Format” page. You’ll find a table that converts between decimal, hexadecimal and binary. Look up 102 and 32 in the table. The equivalent hex values are 0x66 and 0x20. (The “0x” is my way of marking hexadecimal values.)

After converting, it’s time to select the DSP effect type for unit 6 (and by way of assignment, Part 6). Plug XX=5, MM=66 and LL=20 into the template message above, producing:

F0 43 10 4C 03 05 00 66 20 F7

This message sets the effect type of DSP (Insertion Effect) 6 to British Lead Dirty.

That’s it. At this point, you’re ready to assign DSP preset effects to any of the Song parts. Style parts work the same way. No calculator involved, just a few easy tables.

Changing the DSP effect parameters via SysEx is a little bit more complicated. I’ll save that topic for another day.

Copyright © 2018 Paul J. Drongowski

Summer snoozer?

Summer NAMM 2018 starts in a few days and so far it looks like a snoozer. I haven’t found many preliminary announcements of interest. I’m tempted to predict Yamaha’s MOXF replacement (or upgrade), again. However, at some point, one starts to look like a broken clock being right twice a day. 🙂

Yamaha have announced a new product in the P-series digital pianos. The new model P-515 replaces the P-255 as the P-series flagship.

The P-515 is a slab that incorporates much of the new digital piano technology that was introduced with the CSP series (Smart Pianist and Piano Room). The P-515 includes NWX natural wood white keys with synthetic ebony and ivory key tops. Piano sounds include the Yamaha CFX and Bösendorfer Imperial. It has forty panel voices plus a 480-voice XG sound set. The CFX Grand Voice has binaural sampling which recreates the perspective of the player position. Other goodies include key-off samples, smooth release, Virtual Resonance Modeling (VRM), and half pedaling. VRM includes damper, string, Aliquot, and body resonance. Bluetooth audio/MIDI is built-in. Speakers are built-in: Oval 15W (12cm by 6cm) and dome 5W (2.5cm). [Two of everything, of course.] Weight is 48.5 pounds and MSRP is $1,999 USD and MAP (street) is $1,500 USD. A little too heavy for regular gigs out, but its compact size, sound and action make the P-515 a winner for home, especially at $1,500 street. [Manuals now available.]

60s retro is always in with me, so I’m charmed by the Vox Mini SuperBeetle. (Yes, they are using that abominable spelling.) Vox hit the real Super Beatle with a shrink ray, producing a small version that should have some punch. The Mini puts 50 Watts into a 10″ Celestion speaker (or other 4 ohm cab). It has a Korg NuTube tremolo circuit for warmth and 60s reverb.

The Mini has the distinctive Super Beatle chrome stand. I wish Korg/Vox would reissue the Continental in retro form instead of the form factor and stand that everybody pretty much hates. No pricing information yet.

Although it was announced in May, the IK Multimedia UNO analog synth looks like a good time. For a $200 USD synth, the specs aren’t too bad: two independent VCOs, 2-pole multi-mode VCF, LFO, VCA, step sequencer, battery or USB power, and it’s tiny. The UNO has four control knobs which are mapped to synth parameters through a 4 by 4 matrix. Plus, it has five performance buttons. Wisely, the UNO supports old school MIDI IN and OUT via 2.5mm jacks.

If only IK Multimedia had the presence of mind to add 5-pin MIDI to the iRig Keys I/O (25 or 49). Systems thinking, people. Systems thinking.

Roland (and Boss) have announced a new wireless audio system for guitar and other instruments. Two products are aimed at guitar players: the WL-20 and the WL-50. The WL-20 is a very compact transmitter and receiver pair — transmitter for the guitar and receiver for the amp. The WL-50 is a wireless receiver for the pedal board and has additional functionality like providing pedal board power, transmitter recharging, etc. The WL-20L is like the WL-20, but it’s for electronic instruments with line-level audio outputs. Other features include low latency, automatic rendezvous between transmitter and receiver (10 second rendezvous time) and up to 20 meter range. The WL system operates in the 2.4GHz band. I’m interested in the low-latency aspect because Bluetooth doesn’t cut it in this application.

The WLs will be sold under the Boss brand.

News you can use. Avid has announced and released a free version of Sibelius® | First. Sibelius | First is my go-to notation tool for lead sheets, deconstructing MIDI solos, etc. For sure, I will be downloading it and will appreciate the update. (My current copy is rather old, having been part of an M-Audio bundle.) You need to create an Avid account in order to download the free version. Might as well download Pro Tools® | First for free, too.

The modular synth trend has inspired a lot of great products such as the Moog Grandmother. Expect to see new announcements in the Roland System-500 line and literal “plug and play” products in other realms like the Finegear mixerblocks series.

Well, there is always the Moog One rumor. (Save your pennies.)

Copyright © Paul J. Drongowski

Time stretching applied to rotary speaker sound

“Sí, sí, I am very intrigued.”

With Summer NAMM 2018 one week away, I cast the net to see what I can catch. I did a quick sweep of recent patents and came up with a good ‘un.

When folks mention Yamaha, “tonewheel clone” does not immediately come to mind. Other players like Nord, Hammond Suzuki, etc. seem to be ahead in the clone market. So, I was a little surprised to find US Patent 9,899,016 B2, “Musical sound signal generation apparatus that generates sound emulating sound emitting from a rotary speaker.” This patent was issued and assigned to Yamaha on February 20, 2018. It is based on the Japanese patent 2015-171065 issued August 31, 2015.

Yamaha currently use two sample-based methods to generate the basic organ sound:

  • Playback and mix of waveforms for each individual tone wheel. On Montage and Genos, for example, the musician can adjust the level of each footage using the sliders to mimic drawbars. The generated sound is passed through a rotary speak DSP effect.
  • Playback of waveforms for “full up” organ registrations with and without the rotary speaker effect “sampled in.” The resulting sound may also be passed through a rotary speaker DSP effect.

In the first case, especially, the overall impression of a genuine B-3 depends upon the quality of the DSP rotary speaker effect. The up-side of the DSP effect is the ability to ramp up and ramp down the rotary speaker speed. So far, reaction to Yamaha’s rotary speaker effects has been mixed.

In the second case, one is not likely to put the sound through a rotary DSP effect — the swirling mass would just not be realistic. The “sampled in” approach can sound more realistic than the rotary DSP effect, but it has two major drawbacks:

  1. The rotary speaker speed cannot ramp up and down between slow and fast rotation.
  2. Sample playback does not align (synchronize) the rotary speaker position, so some noted are “rotating” faster than others and the true spatial characteristics of the horn and rotor are lost.

The second drawback is perhaps the worst of the two since it introduces audible artifacts which are not part of the true rotary speaker sound.

The method in the patent is a different take on sample-based synthesis of tone wheel sound which seeks to eliminate these problems. The notes are sampled for each tone wheel footage after a real world rotary speaker rotating at a particular rate. In each case, wavfeorms are sampled and saved for various rotational angles of the rotary speaker. Thus, the rotary speaker effect is “sampled in.”

Let’s quote from the patent:

Also, the electronic musical instrument has a time stretching function. The time stretching function is a function of changing the length of a sound while maintaining the pitch and formant of the sound. In other words, with the time stretching function, it is possible to extend and shorten a sound in a time axis direction, or in other words, it is possible to change only the reproduction speed (speed with which time advances) of the musical sound signal. The electronic musical instrument uses the time stretching function to extend and shorten each piece of waveform data in the time axis direction by the same extension and shortening rates.

Time stretching is applied to each of the tone wheel samples during playback. Thanks to time stretching, the instrument can reproduce the SLOW and FAST sound, and everything in between when the rotation speed ramps up or down. “A known pitch synchronous overlap and add method is used to achieve the time stretching function.”

The rest of the method — and it is both exhaustive and exhausting! — deals with the synchronization of the waveforms during playback, that is, the alignment of each waveform in accordance with the current virtual position (rotational angle) of the rotary speaker. Throw in separate treatment of the horn and rotor, stereo channels, etc.

The end result is a unique sample-based method that eliminates the problems of “sampled in” rotary speaker effects. I wish that patents came with audio demo files as it would be a treat to hear the method in action and to judge with one’s own ears. Maybe someday in a product?

Copyright © 2018 Paul J. Drongowski