Triggering switches with Midi notes.

For general discussion related FlowStone
User avatar
lalalandsynth
Posts: 600
Joined: Sat Oct 01, 2016 12:48 pm

Re: Triggering switches with Midi notes.

Post by lalalandsynth »

You can observe the behaviour in this schem by using the PC keyboard as input using R(65) and U(71) and seeing how they interact , most notably they will not play at the same time and when playing one note and then another it will start the release phase of the first one.

I am going to try some other envelope and see if that makes a difference.

64 bit alpha

Midi Trigger mixer_edit_5_7.fsm
(341.69 KiB) Downloaded 945 times
Last edited by lalalandsynth on Sun Sep 30, 2018 1:39 am, edited 1 time in total.
User avatar
martinvicanek
Posts: 1334
Joined: Sat Jun 22, 2013 8:28 pm

Re: Triggering switches with Midi notes.

Post by martinvicanek »

Sorry I can't open the last schematic, tried with 3.0.8.1 and 3.0.9beta2.

DON'T USE THE BETAS THEY ARE INCOMPATIBLE.

READ THIS:
viewtopic.php?f=2&t=11635&p=45138&hilit=betas#p45138


If you have created your schematic with a beta, indicate it loud and clear so people don't have to click away dozens of annoying notifications.

Please! :evil:

Regarding your concept: cosider that the selector prim recompiles your code ans interrupts the audio stream each time you switch. Maybe you can achieve what you want in another way?.

Flowstone's voice management is tricky but efficient. Try not to mess with it unless there is a compelling reason to do so. Be prepared for a deep dive.
User avatar
lalalandsynth
Posts: 600
Joined: Sat Oct 01, 2016 12:48 pm

Re: Triggering switches with Midi notes.

Post by lalalandsynth »

I am using the 64 bit alpha and I did mention it....in one of the posts , I will fix it in the others. sry mate.

To explain what I want to do :

I want to control 12 ADSR´s with MIDI notes , each one passing an external/routed audio stream in Reaper.
In reaper you can route as many tracks into a channel as you want.
So I want to set up 12 channels , all routed into one track and then a midi track will control via an adsr which one of those tracks plays through the one master track.

I can do this to a certain extent , that is , it works in monophonic mode but as soon as i start playing more then one adsr it gets wonky.
User avatar
martinvicanek
Posts: 1334
Joined: Sat Jun 22, 2013 8:28 pm

Re: Triggering switches with Midi notes.

Post by martinvicanek »

Earlier in the thread the "Note Equal" prim was mentioned. Not sure how the timing of that is.
Here is a little demo that switches at samplerate. Needs optimizing, I know. Is it helpful for your purpose at all?
Attachments
MIDIContrloledRouting.fsm
(51.75 KiB) Downloaded 913 times
User avatar
lalalandsynth
Posts: 600
Joined: Sat Oct 01, 2016 12:48 pm

Re: Triggering switches with Midi notes.

Post by lalalandsynth »

This is excellent ! THanks.

I guess I neglected to mention that all tracks are meant to be stereo :P
I modified it a bit to handle that.
Seeing that there are no adsrs I might need a declicker as I will be switching a lot of bass:)

Also, it does not work in 64 bit alpha , the ruby script give me an error inside module?
Do you not have the alpha yet ?
error.jpg
error.jpg (193.94 KiB) Viewed 15951 times
User avatar
lalalandsynth
Posts: 600
Joined: Sat Oct 01, 2016 12:48 pm

Re: Triggering switches with Midi notes.

Post by lalalandsynth »

It seems to be ok if I delete some the notes ?

error 2.jpg
error 2.jpg (119.07 KiB) Viewed 15951 times
User avatar
lalalandsynth
Posts: 600
Joined: Sat Oct 01, 2016 12:48 pm

Re: Triggering switches with Midi notes.

Post by lalalandsynth »

Having said that , this is such a simple and incredibly creative thing to play with.
User avatar
lalalandsynth
Posts: 600
Joined: Sat Oct 01, 2016 12:48 pm

Re: Triggering switches with Midi notes.

Post by lalalandsynth »

I just wrote the code back into the ruby window and now it works.
User avatar
lalalandsynth
Posts: 600
Joined: Sat Oct 01, 2016 12:48 pm

Re: Triggering switches with Midi notes.

Post by lalalandsynth »

As a matter of interest it might be cool to add the ADSR´s but this is absolutely brilliant as it is.
I guess if you wanted to start switching pads or more ambient material the ADSRs would be needed.


EDIT: As I start to use this , yes , optional ADSR , switched in on the desired channels would be perfect , can it be done ?
Thanks Martin !
User avatar
martinvicanek
Posts: 1334
Joined: Sat Jun 22, 2013 8:28 pm

Re: Triggering switches with Midi notes.

Post by martinvicanek »

Yes, it can be done.
(Did I mention I have a donation button on my website? :mrgreen:
https://vicanek.de/donate.htm)
Attachments
MIDIContrloledRouting.fsm
+ ADSR
(61.77 KiB) Downloaded 898 times
Post Reply