Author Topic: Getting seamless sound switching by adding a $20 Arduino  (Read 6201 times)

0 Members and 1 Guest are viewing this topic.

SnowThief

  • Guest
Getting seamless sound switching by adding a $20 Arduino
« on: January 24, 2019, 09:11:56 PM »
Basically my idea is that you buy an Arduino and connect it to MIDI in and out on your Genos with MIDI cables. If you don't have an Arduino, but have your Genos connected to a PC (or even a tablet), I believe you can do this for free.

To keep it simple, I'm just going to talk about the Right 1 part, but the process is the same for all four parts.

First you need to turn off the local sound of the Right 1 part on your Genos, so pressing a key doesn't actually make the Genos play a note.

Then you need to make a very small program that works like this:

Let's say you select an electric guitar with a distortion DSP as Right 1 on your Genos. The Arduino sets song channel 1 to the same guitar with the same DSP.

You then play a note. The Arduino sends the same note back on song channel 1, which plays on the Genos with the correct guitar and DSP.

You then switch to a piano with the damper resonance DSP. You won't hear anything different, because the local sound on the Genos is muted and the guitar note is still playing on song channel 1, which is unchanged. The Arduino sets song channel 2 to your selected piano and DSP.

You then play a note. The Arduino sends the same note back on song channel 2, which plays on the Genos with the correct piano and DSP. The guitar note you played is still playing on song channel 1, but any notes you play from now on will play on the piano. When you want to, you can select a new instrument and DSP, and the Arduino will enable them for song channel 1 and switch back to sending notes to that channel instead of song channel 2.

That's pretty much my entire idea. I have tested all parts on my PC (receive instrument, DSP and DSP settings, set instrument, DSP and DSP settings for the song channels), so I don't see any reason why this wouldn't work. I haven't made the actual program yet, but I will, unless someone else has already done it or tells me why it won't work. Any input? :)
 

Offline pjd

Re: Getting seamless sound switching by adding a $20 Arduino
« Reply #1 on: January 24, 2019, 10:11:26 PM »
Hi SnowThief --

Clever idea! Go for it!

I've built a small Arduino box with both MIDI IN and MIDI OUT, and have been thinking about doing experiments like this. I want to try remapping MIDI notes to switch articulation similar to what many VSTs do.

It's all do-able. Good luck!

All the best -- pj
 
The following users thanked this post: Pauljones

Offline ugawoga

Re: Getting seamless sound switching by adding a $20 Arduino
« Reply #2 on: January 25, 2019, 11:28:34 AM »
What the heck is an Armadillo!! ;D "It needs earthing"! :(

Now where did he put that midi lead!! ::)

[attachment deleted by admin]
« Last Edit: January 25, 2019, 12:15:52 PM by ugawoga »
Genos, I7 computer 32 gig ram, Focusrite 6i6, Cubase controller, Focal Alpha Monitors, Yamaha DXR8 Speakers
Cubase 10, Sonarworks, Izotope.  Sampletank, Arturia and Korg software.  Now IK Mixbox
 

Offline DerekA

Re: Getting seamless sound switching by adding a $20 Arduino
« Reply #3 on: January 25, 2019, 12:56:44 PM »
This is very similar to the way that VConsole works - route the output from R1/R2/R3 to some of the 16 MIDI recorder song channels, which can then be set up however you want.

This will work really well on Genos because you have 28 DSP and can assign a different one to each song channel. Tyros only has 9 and the PSRs 4.

The small downside to this approach is that it doesn't work properly when you are either playing back a MIDI file, or recording your playing.

But for "live" playing, it will work just fine - and will even let you layer up to 16 sounds if you want to (though only 8 if you want to seamlessly switch of course)
Genos
 

SnowThief

  • Guest
Re: Getting seamless sound switching by adding a $20 Arduino
« Reply #4 on: January 25, 2019, 01:54:04 PM »
Ah, alright, so much for my "original" idea. :) I managed to get it to work, but I guess that doesn't matter if it's a problem that has been solved a long time ago. :) Recording MIDI songs while playing seems to work fine, but yeah, you can't play a 16 track MIDI song while playing. However, let's say you only need one part (Right 1) to have seamless switching with DSPs, then the Genos can still play a 14 track MIDI song while you're playing, if you want it to. :)

Now I just don't understand why people say that no seamless sound switching is such a big problem for the Genos, when it can literally be fixed with a $20 device that you plug into the back of the Genos. I realize it would be better if it wasn't necessary, but if you care at all about seamless sound switching, surely that's a small price to pay to get it?
 

Offline voodoo

Re: Getting seamless sound switching by adding a $20 Arduino
« Reply #5 on: January 25, 2019, 03:26:07 PM »
Now I just don't understand why people say that no seamless sound switching is such a big problem for the Genos, when it can literally be fixed with a $20 device

This is a good point.

While the Genos has plenty of DSP free, when no midi file is playing, there would be enough resources for seamless switching. So it is no hardware restriction, but a matter of software and good will.

Uli
Yamaha Genos
Yamaha MODX7
Yamaha P-125 Digital Piano
Nord Electro 5D
 

Offline DerekA

Re: Getting seamless sound switching by adding a $20 Arduino
« Reply #6 on: January 25, 2019, 03:32:20 PM »
Ah, alright, so much for my "original" idea. :)

Sorry I didn't mean to sound critical - this idea has been proposed before for thick layers, but I'd not heard anyone suggest it as a simple way of getting seamless switching.

Incidentally, if you have different voices with DSP on R1, R2 and R3 you can freely switch between them without problems. It's only when you replace e.g. the current voice on R1 with a different one that there's an issue.
Genos
 

Offline pjd

Re: Getting seamless sound switching by adding a $20 Arduino
« Reply #7 on: January 25, 2019, 07:05:36 PM »
While the Genos has plenty of DSP free, when no midi file is playing, there would be enough resources for seamless switching. So it is no hardware restriction, but a matter of software and good will.

Oh, dear, we run the risk of re-igniting our discussions in old threads. I agree with Uli. Yamaha tried to "simplify" DSP allocation with its scheme. Rather, it would have been better to assign DSPs dynamically from a pool. Personally, I dislike the idea of having 16 DSPs locked into the SONG channels. I usually freeze MIDI to WAV audio, then use WAV audio for accompaniment. Thus, there are 16 DSP units that go largely unused in my usage scenario.

Please, I don't mean to distract from the rather fine Arduino development project that you have underway.

All the best -- pj


 

pfeuh

  • Guest
Re: Getting seamless sound switching by adding a $20 Arduino
« Reply #8 on: January 26, 2019, 05:18:18 AM »
Hello,

I've built a small Arduino box with both MIDI IN and MIDI OUT

Is it an arduino with an extension board, are they on the same board? I'm searching for something like that for a while.

Regards,

Pfeuh
 

Offline pjd

Re: Getting seamless sound switching by adding a $20 Arduino
« Reply #9 on: January 26, 2019, 07:03:05 PM »
Hi Pfeuh --

It's an Arduino UNO and a Sparkfun MIDI shield in a bog-standard Arduino case. (Images attached.) Thanks to the case, it can be powered by either USB or AC adapter.

I wanted to build something as simple and mindless as possible. The hardest part of the job was trying to drill/make nice holes for the DIN connectors.

I left the option of adding the pots and switches to the MIDI shield.

Unfortunately, I've been too busy with travel and such to do more than test out the basic MIDI functionality.  :'(

All the best -- pj


[attachment deleted by admin]
« Last Edit: January 26, 2019, 07:05:48 PM by pjd »
 

pfeuh

  • Guest
Re: Getting seamless sound switching by adding a $20 Arduino
« Reply #10 on: January 27, 2019, 05:41:15 AM »
Hello pjd,

Nice job, really! Unfortunatelly, I was born with 2 left hands even for drilling a simple hole. :) I have to make some hardware for my genos, it's a kind of nightmare, adding a couple of jack sockets and a relay board, nesting them in a box...

Regards,

Pfeuh
 

Offline Wim NL

Re: Getting seamless sound switching by adding a $20 Arduino
« Reply #11 on: January 27, 2019, 06:24:36 AM »
Is this not the same idea..? only with 1 midi cable.

http://www.psrtutorial.com/forum/index.php/topic,46810.msg367801.html#msg367801
Best Regards,
Wim
 

pfeuh

  • Guest
Re: Getting seamless sound switching by adding a $20 Arduino
« Reply #12 on: January 27, 2019, 07:07:51 AM »
No, it is not the same idea, I don't need midi for this particular projet.  Here it is.

There is a way to switch from Fingered to Fingered on Bass with a pedal board or with the Genos articulation's dedicated pedal. Unfortunately, you press the pedal, the mode is switched and 5 seconds later you don't even remember in which mode you are!

The idea is to use a system like a piano sustain: You press, you are in Fingered on Bass mode, you release you are in Fingered mode. That's why I have to use a little arduino stuff.

Whith exactly the same system, you can use a Hammond half moon rotary switch instead of a button.
 

Offline pjd

Re: Getting seamless sound switching by adding a $20 Arduino
« Reply #13 on: January 28, 2019, 08:36:44 PM »
Nice job, really! Unfortunately, I was born with 2 left hands even for drilling a simple hole. :)

Hi Pfeuh --

Thanks! I certainly lack those skills, too. I didn't show all of the muffed cases that I've mangled.  :)

Eventually, I did find one useful tool -- stepped drill bits. [Tapered drill bits might do the trick, too.] I drilled a small pilot hole for each connector and then put a stepped drill bit to work. The final hole is a little rough, but is hidden by the flange around the connector.

I've got to get back to that project...

All the best -- pj


 

pfeuh

  • Guest
Re: Getting seamless sound switching by adding a $20 Arduino
« Reply #14 on: January 29, 2019, 05:56:00 AM »
Hi,

There is another easy tool, perhaps you can consider it, it's 3D printing. It doesn't work for me, I've tried it.

As I worked in research & development, I was surrounded by mechanics, I've often tried to draw some boxes with their software Solidworks, I've always given up, I couldn't integrate the philosophy.

Perhaps it works for you. Some little societies download your file and send you the resulted hardware for cheap.

 

SnowThief

  • Guest
Re: Getting seamless sound switching by adding a $20 Arduino
« Reply #15 on: January 29, 2019, 09:30:59 AM »
You can also buy something like this: https://www.amazon.com/ACEPC-Computer-Windows-x5-Z8350-Bluetooth/dp/B07KJ7X215/

It's basically a cheap, tiny Windows PC that you can put on the back of your Genos. You could also buy a $200 tablet instead if you'd prefer that. :)
 

pfeuh

  • Guest
Re: Getting seamless sound switching by adding a $20 Arduino
« Reply #16 on: January 29, 2019, 11:13:32 AM »
I prefer to program some Arduino stuff, I know how to do it. It's a pleasant hobby, time goes by and you don't see it. But for Windows or Android, I give up. ;)