I solved my array copy/paste issue. Here it is.

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

I solved my array copy/paste issue. Here it is.

Post by lalalandsynth »

So in my plugin I have 3 windows - switched gui's so only one open at a time.
In each window I have 4 parameters created with an array = an envelope.
I wanted to be able to copy from one array to the other.

I solved this but then I realised that I might want to copy from say parameter 1 in window 1 to parameter 4 in window 3.
So I needed to be able to copy an array from any of the 4 arrays in each window and to be able to paste it into any of the 4 arrays in each window.

I thought of using the int from the gui switching to route it , but that had problems , selectors and multiplexes hold their value so just switching a window would do a paste.

So I came up with this , pretty simple in the end....I hope ? Being a noob I might be missing a much easier way to do this and if so feel free to tell me :)

Array copy paste.fsm
(139.56 KiB) Downloaded 936 times
Last edited by lalalandsynth on Mon Jul 24, 2017 1:05 pm, edited 1 time in total.
User avatar
Spogg
Posts: 3368
Joined: Thu Nov 20, 2014 4:24 pm
Location: Birmingham, England
Contact:

Re: I solved my array copy/paste issue. Here it is.

Post by Spogg »

Hey nice!

Well done Mr. Synth. :ugeek:

Cheers

Spogg
User avatar
lalalandsynth
Posts: 600
Joined: Sat Oct 01, 2016 12:48 pm

Re: I solved my array copy/paste issue. Here it is.

Post by lalalandsynth »

Thanks , I have yet to hook this up and see if I am missing something , but one module works so no reason to think that 3 will behave differently .

This could definitely be done with one Ruby window though :)

Now I am trying to think of a way to morph this into an undo . I might even just need one step of undo , just in case of a mistake when editing . Should be doable.

Need to find a way to have Ruby be one step behind in propagating a copy of the array , then just trigger that copy to go one step back.
User avatar
TeslaTronik
Posts: 35
Joined: Mon Dec 20, 2010 12:12 am
Contact:

Re: I solved my array copy/paste issue. Here it is.

Post by TeslaTronik »

very nice
Post Reply