Any way to save presets in modular 2

A place for developers to share ideas and assist each other in solving problems.

Moderators: valis, garyb

Post Reply
JoPo
Posts: 2306
Joined: Wed Jun 05, 2002 4:00 pm
Location: VRRAAaaooOôOooommmh
Contact:

Re: Any way to save presets in modular 2

Post by JoPo »

If you create a preset file of your modular, ADSR, VCA and all modules of the patch will be saved each time you create a new preset. But don't forget to create a bank with all your presets in it and save the bank in your HD. And each time you create a new preset, save your bank again ! In order to find it back next time you load your patch.
Some of modular modules have there own preset feature, like sequencers, some of Roy's modules such as free envelope, etc... http://www.cwmodular.org/Modules/CwmModules.zip

This works for any preset devices in Scope.
> > > > > > > > > > > > --- Musica --> here ! ---< < < < < < < < < < < <
User avatar
faxinadu
Posts: 1646
Joined: Wed Nov 01, 2006 3:12 am
Location: israel
Contact:

Re: Any way to save presets in modular 2

Post by faxinadu »

with the stock modular modules, no, that is not possible.

you can make your own modular modules for envelopes using sdk envelope modules and add a preset list to the module itself. cool idea actually :)
Scope, Android, Web, PC Plugins and Sounds:
http://www.oceanswift.net
Music
https://faxinadu.bandcamp.com/
JoPo
Posts: 2306
Joined: Wed Jun 05, 2002 4:00 pm
Location: VRRAAaaooOôOooommmh
Contact:

Re: Any way to save presets in modular 2

Post by JoPo »

No.. You can't edit a preset file outside Scope.
Yes : in SDK you can create your own envelope module with its own preset feature... And then share it here ! :wink:

And in BC modular shell, you can load another modular patch with its own preset and I/O : if you use always the same filter system in a lot of your modular patches, for instance, you can create it and then recall it when needed. They are called CLM modules :
http://bcmodular.wikispaces.com/CLM
Maybe, it can be a workarround for what you are trying to achieve...
> > > > > > > > > > > > --- Musica --> here ! ---< < < < < < < < < < < <
djmicron
Posts: 1181
Joined: Wed Jul 23, 2003 4:00 pm
Location: Milano

Re: Any way to save presets in modular 2

Post by djmicron »

for modular modules where the individual preset is not available, you can use a sub modular module, such as the ones available with the bc modular to load the envelope and save the presets for that sub modular.

edit:

sorry i missed the prev post :)
jksuperstar
Posts: 1638
Joined: Mon Nov 15, 2010 12:57 pm

Re: Any way to save presets in modular 2

Post by jksuperstar »

A CSV "player" would be a pretty ideal module for this purpose. Load a CSV file (from excel, etc), and play it as a sequence using a sample clock input. Maybe have multiple outputs (for multiple columns) too.
User avatar
sharc
Posts: 638
Joined: Mon Oct 29, 2001 4:00 pm
Location: No idea. All looks the same down here

Re: Any way to save presets in modular 2

Post by sharc »

DragonSF wrote:Can someone please direct me to a sample or some doc, to show how to create a module, which can write and read data from a file?
IniIntInterface / IniStringInterface can do what you ask
User avatar
sharc
Posts: 638
Joined: Mon Oct 29, 2001 4:00 pm
Location: No idea. All looks the same down here

Re: Any way to save presets in modular 2

Post by sharc »

You can load them in the SDK via ModuleLoader.mdl

...From there you can make them circuit or surface components by adding GOs and attributes in the GOs window.

Unfortunately there isn't any .nfo files for these scripts so the functionality is limited to reading strings and integers upon module load and then prompting reading and writing via right-click.
User avatar
sharc
Posts: 638
Joined: Mon Oct 29, 2001 4:00 pm
Location: No idea. All looks the same down here

Re: Any way to save presets in modular 2

Post by sharc »

You need to take them out of the ModuleLoader - After loading one of the scripts fold the ModuleLoader. In the Project Explorer if you now look into the folded ModuleLoader you'll see the script. If you right-click on it you'll get read & write options.

If you assign GOs and attributes to it and drag it out of the ModuleLoader into your circuit parent or a surface panel, you'll then be able to right-click the GO for read / write.
User avatar
sharc
Posts: 638
Joined: Mon Oct 29, 2001 4:00 pm
Location: No idea. All looks the same down here

Re: Any way to save presets in modular 2

Post by sharc »

Enter the filename (including extension) of the pep script into the modules array of the ModuleLoader ...It's best in this instance to have the array size set to 1. Set 'load' to 0 in the ModuleLoader Pad List. This will load the module and if you re-select the ModuleLoader the Pad List will update to show the additional pads of the loaded module.
User avatar
sharc
Posts: 638
Joined: Mon Oct 29, 2001 4:00 pm
Location: No idea. All looks the same down here

Re: Any way to save presets in modular 2

Post by sharc »

After dragging IniStringInterface.pep out of the ModuleLoader rename it to IniStringInterface and save it as a .mdl.

You can now load this module and set the path field for the location of your text file.

Check out the cset.ini in notepad to see the format of Section and Key entries or simply enter them in the PadList, set the path and then choose write to update the text file with the correct formatting.

...Value is the string which will show for the key.
User avatar
faxinadu
Posts: 1646
Joined: Wed Nov 01, 2006 3:12 am
Location: israel
Contact:

Re: Any way to save presets in modular 2

Post by faxinadu »

hey i don't have an answer but would just like to say, props on the persistence and what you are learning here! good stuff! i don't think most devs on scope (including us so far) get to that area of what you are exploring now, awesome and keep going!!!
Scope, Android, Web, PC Plugins and Sounds:
http://www.oceanswift.net
Music
https://faxinadu.bandcamp.com/
User avatar
sharc
Posts: 638
Joined: Mon Oct 29, 2001 4:00 pm
Location: No idea. All looks the same down here

Re: Any way to save presets in modular 2

Post by sharc »

DragonSF wrote:
Image2.png
I'm a little step farther now: I can read/write array elements from/to file, but I haven't find a way to iterate the index in the ArrayIterator. I can do this manually and get the actual data, but I want to use something, which does this for each index (incl. read/write). Any ideas, how to accomplish that?
Or is there a function, which converts arrays to string (CSV) and vice versa?
In this case you're probably better using the IniIntInterface.pep unless there's a need for strings.

For string arrays you can use the tabletextfader to edit the strings in a string array via selected index, but off the top of my head I can't think of a way to split a string array to individual string pads like the ArrayIntSplitter does with integer pads.
User avatar
sharc
Posts: 638
Joined: Mon Oct 29, 2001 4:00 pm
Location: No idea. All looks the same down here

Re: Any way to save presets in modular 2

Post by sharc »

Set Persistent to true (1) in the ModuleLoader PadList to avoid the non-persistent errors
soren_jepsen
Posts: 92
Joined: Sat Feb 06, 2010 12:52 pm

Re: Any way to save presets in modular 2

Post by soren_jepsen »

Sorry to revive an old thread. ScopeFX with Juce? Could you show me this "way"? THANKS!

Cheers
Søren
Post Reply