using pattern command to switch metamodule input module

Multi-platform modular music creation studio
Post Reply
El Nino
Posts: 299
Joined: Thu Mar 07, 2013 11:54 am

using pattern command to switch metamodule input module

Post by El Nino »

When using pattern commands to switch metamodule input modules, the metamodule goes silent or does weird things as the pattern command "change input module" is passed. Has anyone encountered this?

I had a bunch of square wave generator modules at different duty cycles and wanted to switch between them to get more varied timbres for the metamodule instrument.

If I press a keyboard key, change the input module number manually, then press a keyboard key again, it works perfectly. The sound is different. But when I cange by pattern command instead of manually it doesnt work.
User avatar
spktkpkt
Posts: 58
Joined: Tue Jul 26, 2016 12:49 pm

Re: using pattern command to switch metamodule input module

Post by spktkpkt »

Sorry, i can't help with the input switch problem...but you could use a noise generator and a sound2ctl module to randomize the duty cycle if you just need some randomness.
User avatar
NightRadio
Site Admin
Posts: 3944
Joined: Fri Jan 23, 2004 12:28 am
Location: Ekaterinburg. Russia
Contact:

Re: using pattern command to switch metamodule input module

Post by NightRadio »

When using pattern commands to switch metamodule input modules, the metamodule goes silent or does weird things as the pattern command "change input module" is passed. Has anyone encountered this?
Please show me your project
El Nino
Posts: 299
Joined: Thu Mar 07, 2013 11:54 am

Re: using pattern command to switch metamodule input module

Post by El Nino »

metaswitchexample.sunvox
(4.27 KiB) Downloaded 354 times
Here is a small example.

when I switch input modules by metamodule pattern command unexpected things happen.

sometimes the wrong input module will sound, sometimes other wierd stuff happens.
User avatar
NightRadio
Site Admin
Posts: 3944
Joined: Fri Jan 23, 2004 12:28 am
Location: Ekaterinburg. Russia
Contact:

Re: using pattern command to switch metamodule input module

Post by NightRadio »

It is because the note command will be processed first, before the controller change in your case. SunVox reads the commands sequentially from left to right, top to bottom.
So it first reads the note, then the velocity, then the controller commands.
See the example
Attachments
metaswitchexample2.sunvox
fixed version
(4.54 KiB) Downloaded 351 times
El Nino
Posts: 299
Joined: Thu Mar 07, 2013 11:54 am

Re: using pattern command to switch metamodule input module

Post by El Nino »

awesome, thanks! If i want to use pattern command to switch metamodule input modules I'll just put that command in the line before the note is triggered or at the the start of the pattern.
El Nino
Posts: 299
Joined: Thu Mar 07, 2013 11:54 am

Re: using pattern command to switch metamodule input module

Post by El Nino »

Thanks for the example. I get it now, commands to the left.
Post Reply