save multiline text in preset

For general discussion related FlowStone
User avatar
gvalletto
Posts: 117
Joined: Fri Jul 09, 2010 10:15 pm
Location: Argentina
Contact:

Re: save multiline text in preset

Post by gvalletto »

Hello again Tulamide. I tested my VSTi on Cubase and found that you're right. The presets load well, with full text, but the "state" of the VST does not save all the text. I will continue to investigate ...
TheOm
Posts: 103
Joined: Tue Jan 28, 2014 7:35 pm
Location: Germany

Re: save multiline text in preset

Post by TheOm »

Consider converting the text into an array of floats between -1 and 1.
Attachments
textsave.fsm
(76.24 KiB) Downloaded 956 times
Last edited by TheOm on Mon Sep 18, 2017 2:16 pm, edited 1 time in total.
User avatar
Spogg
Posts: 3368
Joined: Thu Nov 20, 2014 4:24 pm
Location: Birmingham, England
Contact:

Re: save multiline text in preset

Post by Spogg »

Brilliant work by TheOm! :ugeek:

Another instant toolbox addition for me.

I always thought Ruby would be needed for this.

Thanks for sharing

Spogg
User avatar
gvalletto
Posts: 117
Joined: Fri Jul 09, 2010 10:15 pm
Location: Argentina
Contact:

Re: save multiline text in preset

Post by gvalletto »

TheOm, You are a genius. I use Ruby just a bit, I have no enough knowledge to use it like you... congratulations.
I will continue researching on make this without Ruby. Of course, when I get good results, I'll share the scheme here ...
Regardless of that, I ask again, can I use your idea for commercial / donationware purposes?
BobF
Posts: 598
Joined: Mon Apr 20, 2015 9:54 pm

Re: save multiline text in preset

Post by BobF »

Wow, thanks guys.

Cheers, BobF.....
User avatar
gvalletto
Posts: 117
Joined: Fri Jul 09, 2010 10:15 pm
Location: Argentina
Contact:

Re: save multiline text in preset

Post by gvalletto »

Hello people. The scheme proposed by TheOm is great, but I had some problems due to the large size of the preset it generates, and other problems when trying to copy / paste presets. Then I used the proposal of Adamszabo (also great) and it occurred to me to subdivide the saved in several presets, having in mind the commented VST rules about the maximum number of chars. Here is an scheme that allows you to save up to 508 characters and can be expanded. For my needs, 508 characters is enough ... I hope it be useful...
Attachments
save 512 chr multiline text in preset.fsm
(30.18 KiB) Downloaded 957 times
Post Reply