Problem with SWAM Saxophone

Love SWAM sax, but have an issue where the “Expression” parameter on the Sax instrument gets reset to the middle low end somewhere (I want it always fully up/open) when the Rackspace/song loads. This happens whether I have anything mapped to it or not, whether I filter out expression control or not, and regardless of where the setting is set and saved in the instrument itself. In fact - the instrument even shows it fully up, but it isn’t! I have to do something to push it back up every time. I have tried mapping a widget (button) to it which works to turn it on/off (up or down) and have it default to 100 (all the way up) and even “reset on rackspace activation” - but no luck. I have to go to the rackspace and then use pedal, button, or mouse in the instrument itself to “wiggle” it just a bit to get it to be on fully. Any ideas? This is Tenor Sax 3 if that makes any difference. This has bit me several times live now and I need to fix it!

Use a script to set the value of the mapped widget and then to a different value.
Seems swam reacts on some incoming movement ofbthe expression to check of a used controller is working.

I haven’t done any scripting yet, so I guess maybe now would be a good time to start. I’m assuming there’s a reference manual and some samples somewhere. I guess I’ll start looking.

Please upload a rackspace with SWAM.

A script like this helps

//$<AutoDeclare>
// DO NOT EDIT THIS SECTION MANUALLY
Var
   KNOB : Widget
//$</AutoDeclare>

// Called when rackspace is activated
On Activate
 KNOB.SetWidgetValue(KNOB.GetWidgetValue()+0.01)
 KNOB.SetWidgetValue(KNOB.GetWidgetValue()-0.01)
End

And here some documentation for scripting
https://gigperformer.com/docs/GPScript45/LanguageManual/

5 Likes

Thanks! Works perfectly! And now I am a scripter LOL!

6 Likes

@pianopaul - I was just having the same issue - dont know a think about scripting.

I have an AX Edge - and it has multiple controllers - but im having a hard time assigning it without causing issues -

id like to use the control bar to squeeze for added delay (right now it controls the mix so it goes from no delay to JUST delay when I squeeze) - Maybe I should assign a different control that allows delay effect to happen on the sound when I press a button.

And then use the Control bar for SWAM expression - but right now it starts too soft and needs to be in the middle:

"Expression for SWAM is required to be constantly moved. There is no way to assign Expression to a key. You should map the Expression to some controller.

I see from the AX-Edge specs the list of available controllers:

  • Ribbon Controller
  • Modulation Bar
  • Assignable Control knob
  • Master Volume knob
  • Assignable buttons x 7
  • Pedal
  • Aftertouch

You need to choose one between those."

Does anyone know how to save the expression? Every time I play with swan it asks to define an expression control - EVERY TIME

@pianopaul ? :slight_smile:

The solution is posted above.
Add a knob widget, give it the handle KNOB, map it to the Expression parameter of your SWAM instrument and copy/paste the script in the solution to your rackspace script.

The script makes the knob assigned to the Expression parameter move a small amount when the rackspace activates. It’s just enough to let the SWAM plugin know that an expression controller is present.

The link for scripting is how to write scripts - is there a basic how to to cut and paste this into a place where it works?

Is this the best instruction to follow:

Okay I got home from a Gig last night at 2am - does it seem absolutely insane that I bought a $250 sax plugin - only to have to learn how to script to play it and have it ready to go in my rackspace when I want to use it for a song!?!?

This is the kind of stuff that drives me mental.

I have to leave at noon today and this has to become a priority?

There has got to be a better way

Finally - when Inget how to implement the script, is there a way I can go into my gig file of 55 songs and automatically apply to all instances of the swam sax block? Or do I have to now go through every single song to find which rackspaces contain swam and paste it in

I ran into it once, but honestly, just always have my expression pedal routed to it, so never an issue.

What’s crazy is that I assigned it to a knob - but then every time I load up the gig file it’s asks for an assignment again-

Manually turning the knob for each turn without a script would be a quick fix - IF I knew how to
Save it.

Well that should be easy. Create a widget that is assigned to expression and then map your knob on your keyboard to that widget.

Don’t blame GP for this…it’s poor design, quite absurd in fact, on the part of SWAM that such a message must be sent before it will start working.

Instead, recognize perhaps that if you don’t have a pedal that sends that specific message, GP has many ways to handle the problem even without scripting.

I actually don’t even remember what message you have to send - it’s on my live machine which is currently packed with the rest of my gear for an upcoming show. So for the purposes of this discussion, let’s pretend that we have to send a CC 2 message to get it started and your expression pedal only sends out CC11

Here are three ways to deal with it of the top of my head.

  1. Use a MIDI filter to remap CC11 to CC2

  2. Map a widget to the MIDI In block parameter that sends out CC2 messages and then map your expression pedal or some other slider to that widget

  3. Give your MIDI In block a handle (I used “MyKeyboard”)


    and then in Song View mode, create an action for the first song part that will automatically send out a MIDI CC 2 message when the song is selected.

Please provide details - you should not have to keep reassigning. What actual steps are you performing here?


Press Compile.

1 Like

Yeah, but you don’t need a script for this

1 Like

When I set up I’ll give it a go

UPDATE: As gigs go we didn’t have time to set up early - and my gig file
Crashed (fortunately not during the gig) and when I read the report - surprise it pointed out SWAM as the thing triggering crash

Then during the first songs of the evening the audio dropped out of except for the click track ! Has to relaunch my gig file
While the band riffed