SynthMaker

code/assembler example question????

Archive · 2011 12 old posts

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

tinkergnome ·

are there any examples of code/assembler syntax i could find in here that could allow me to manipulate a *.osm file in order to save data without clicking "save as...." or "CTRL+S". i understand that may sound far fetched but if there's some type of editing i could achieve in manipulating a project that way,.... i'd like to find it. there's a recent project i have worked on that is pointing toward my finding a way to being able to save the *.osm while its open within the synthmaker program. i realize that may sound a bit dangerous to actively try to use some functionality to save an active document,.... it seems that may be the only way i can go with the idea i have been attempting.

trogluddite ·

No, you cannot alter the basic behaviour of SM using code/assembly. They are designed only to interface in the same way as regular stream components - any attempt to access memory space outside of that defined in the code will normally result in an instant crash. The only way that I can think you might do this would be to use the 'shell execute' primitive to call an outside program which simulates the keystrokes or mouse movements needed to manipulate the SM windows/menus

lesobrod ·

You may pay your attention to this: http://www.autoitscript.com/site/ This is powerfull and not complicated instrument. I use it with Wolfram Math and Finale SongWriter. In these programs "Hot keys" mechanism are small and week, so AutoIt make a great help. Just now I'm trying to do some script for SM and SM-exe/vst. May be later.. 😉

infuzion ·

Menu:Options/Aplication.../[X]Autosave

trogluddite ·

lesobrod wrote: You may pay your attention to this: http://www.autoitscript.com/site/

I used it many years ago to speed up my photo cataloguing in photoshop - looks like it has much more power now. Weird that I never though of it - I have wanted a quick 'Save as new version' shortcut feature for a long time in SM, but had forgotten all about that software. Thanks for the reminder. I wonder if I can still remember how it works!? 😕

infuzion wrote: Menu:Options/Aplication.../[X]Autosave

Surely that is far too simple? 😉

infuzion ·

trogluddite wrote: lesobrod wrote: You may pay your attention to this: http://www.autoitscript.com/site/

infuzion wrote: Menu:Options/Aplication.../[X]Autosave

Surely that is far too simple? 😉

You'll have to use something like AutoItScript to copy the files.

trogluddite ·

Sorry I was being a bit oblique there!

Personally I never use AutoSave - too may programs in the past that always did a CPU stalling save at precisely the wrong moment. I have evolved a powerful CTRL-S reflex (inversely proportional to the importance of the work I've just done, of course!). Maybe I am thinking of a different piece of software, but I seem to remember that AutoIt is capable of such things as this... 1) Test if SM is open and in focus - if so, intercept the CTRL-S key combo. 2) Read the current file name by parsing the title bar label of the active SM Window.. 3) Fiddle with the name. 4) Call up 'Menu - Save As...' 5) Auto-enter the new name into the file dialogue (lucky it defaults to the most recent directory!)

Hmm, looks like I've found myself another little project!

infuzion ·

trogluddite wrote: Hmm, looks like I've found myself another little project!

Please finish the trigger tutorial/demos first! /me cracks whip 😈 😉

stw ·

trogluddite wrote: (inversely proportional to the importance of the work I've just done, of course!).

Yes.... Murphys Law is all aoround!

trogluddite wrote: 1) Test if SM is open and in focus - if so, intercept the CTRL-S key combo. 2) Read the current file name by parsing the title bar label of the active SM Window.. 3) Fiddle with the name. 4) Call up 'Menu - Save As...' 5) Auto-enter the new name into the file dialogue (lucky it defaults to the most recent directory!)

There're some apps which do this very comfotable itself. E.g. a feature i never ever want to miss in Cubase. ctrl-alt-s saves a new version of the actual project with an increasing number appended! Could be easy implemented into SM as well.

trogluddite ·

stw wrote: Could be easy implemented into SM as well.

For sure, and it has been requested on the forum, and directly to the developers for some time (likewise for many other simple enhancements). But while we are waiting for action from OutSim, we could make our own 'add-on' with AutoIt. It only has to be made once - then can be shared here for all who need it. I will investigate further - when I did my photoshop scripts, I did much, much more complex things than this - the photoshop GUI did not even use standard Windows handles for many controls (guess because cross-platform app), I had to develop a way using pixel-peeping to even find some of the controls!

infuzion wrote: Please finish the trigger tutorial/demos first! /me cracks whip 😈 😉

Aha, but there is an old saying, "Treat them mean, to keep them keen!" 😈

But really it is bugging me too, that I haven't found time for this - though be warned, I have a beer festival to attend this weekend, and crazy work deadlines (for a Texan company - suddenly my life is now plagued with demanding Americans!) 😉 So maybe no progress until next month. (and after beer festival maybe more than usual 2am, drunk, not-making-much-sense posts!). 😕

infuzion ·

trogluddite wrote: So maybe no progress until next month. (and after beer festival maybe more than usual 2am, drunk, not-making-much-sense posts!). 😕

Might have to attach a breathalyzer to your computer?

trogluddite ·

infuzion wrote: Might have to attach a breathalyzer to your computer?

He he - I'm not sure how silicon would react to such noxious fumes - it might invalidate the warranty!

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.