SynthMaker

User Defined Value global store

Archive · 2012 6 old posts

From the original SynthMaker forum (2004–2014), with its members’ names and dates.

willzz32 ·

Hi All

I was wondering if anybody would know a way to store a user defined value that would be saved when the presets are saved but not changed when a preset is changed.

For Example.

I want the user to be able to enter Global values within an exe (such as volume) and save them when the presets are saved but i do not what them to change as the presets change.

Any Ideas would be very much appreciated.

Cheers and thanks for the great forum.

stw ·

willzz32 wrote: Hi All

I was wondering if anybody would know a way to store a user defined value that would be saved when the presets are saved but not changed when a preset is changed.

For Example.

I want the user to be able to enter Global values within an exe (such as volume) and save them when the presets are saved but i do not what them to change as the presets change.

Any Ideas would be very much appreciated.

Cheers and thanks for the great forum.

Hi willzz32, use the "save text" and "text load" primitives to write and read global data. You could trigger the saving when the user sets any data and read it back e.g. with a "After load" trigger. Best destination for these data is one of the "system folders" provided by the "SysFolders" primitive. This outputs the paths to e.g. the users documents and program data folders. Other custom folders can be accessed through the CSLID. A list of these numbers and the paths can be found here: http://code.snapstream.com/api/bm11/Sna ... CSIDL.html

willzz32 ·

Hi stw

Thanks for the fast reply

Will the data be saved and loaded without the users having to do it manually. Would this data be tagged with the main preset save file so as to reload it automaticaly.

I am looking in to a midi control system with 127 cues(patches) but need 10 values to stay the same, eg hotkeys so i need to be able to store the preset files (save all) and have the hotkey numbers stored aswell and loaded with the preset file aswell(load all). The hotkeys define the preset number which can be entered by the user.

Hope this makes sense.

stw ·

willzz32 wrote: Will the data be saved and loaded without the users having to do it manually. Would this data be tagged with the main preset save file so as to reload it automaticaly.

You can determine when the triggers to save or read should be sent. As i posted in my last reply the typical method for your setting would be to fire a save trigger when the user actually changes any of that data and trigger a load when the app/plug is opened ("After load"). That way all data is loaded automatically and stays persistent when the application is opend.

trogluddite ·

It would also be quite simple to remove the extension from the preset file name, and put in a new one of your choice - so, for example, if you saved a preset bank "MyBank001.txt" you would automatically get a "preferences file" with the same name, e.g. "MyBank001.prf" etc. The two files would then be easy to keep "linked" to each other by loading/saving using the same name (and possibly folder) by default. Here's a couple of little helper modules to help with chopping and changing the file paths...

willzz32 ·

Hi trogluddite/ stw

Thanks so much for pointing me in the right direction thats exactly the thing i need. As you all know when youve spent weeks getting one part right it can make your brain a bit like mush, all thats needed is a little help in the right direction.

Thanks to alL

Wrote something here? To have a post removed or your name hidden, write to [email protected].

Before your first post

A few rules keep this a friendly place. You agree to them once.

Shown next to what you post, here and in the app. It doesn’t have to be your real name: 3–24 lower-case letters, digits or _ (capitals become lower case, spaces become _).

    Then your post goes up straight away.

    Delete this reply?

    Open it in SynthMaker?

    It goes on the track you’re editing there, in place of that track’s sound, and into My sounds. Your other tracks stay as they are.

    Want to keep that track’s sound? Start a new song in SynthMaker first (Song › New song), then open this.

    Report this reply?

    Only the developer reads reports. The person isn’t told who reported them.

    What’s wrong with it?

    Block this person?

    You won’t see their posts and replies here any more. They aren’t told, and you can unblock them at any time.

    People you’ve blocked

    Their posts and replies are hidden from you. Unblock someone to see them again.

    The community rules

    A few rules keep this a friendly place. Everyone agrees to them once, before their first post.