Compact Sequencer, Divisions always set to 1 on load

Discuss problems and solutions.
Post Reply
electrofux
Regular
Posts: 294
Joined: 24 Jan 2012 18:22

Compact Sequencer, Divisions always set to 1 on load

Post by electrofux »

Hi,

i have converted the mono sequencer to a smaller version with a couple of containers and a couple of additional functions (legato, target and clock settable, one cc# lane and division per sequencer).

Now there is the Problem that whenever i load the Sequencer the Divisions of all subsequencers are set to 1 instead to 1/16th where i saved the template. Also it seems to forget the Pitches i have set.

I just found that event though this was more or less a copy and paste job the Pitch and Octave Sliders seem to be 1 step ahead. When i set them to 1 Division and set 1 slider very low the pitching down starts 1 step earlier than thought.

Edit: the standard mono Sequencer shows the same issue: Set the PitchSliders Division to 1 and set 1 slider very low and see what happens. It plays the low note 1 step too early.

I have attached the template if anyone can have a look.
Attachments
compactSequencer.jzml
(100.83 KiB) Downloaded 53 times
Softcore
Regular
Posts: 1613
Joined: 04 Nov 2012 08:34

Re: Compact Sequencer, Divisions always set to 1 on load

Post by Softcore »

For the "always starting with division 1" part....

Take a look at the object "StepNoteDivision" scripts....In there is the script "action() which sets the division according to the firstof(x) combined with a custom expression named "divisions". It's obvious that upon loading, the custom variable "divisions" is not yet loaded so the firstof(x) returns 0 so it causes the whole thing to always load in division 1 (or anything that would be the "first" option anyways).
If I were you, and I wanted to always have it load with division 1/16 I'd just insert a init() script where, on load, I would specifically set the divisions to 1/16.

For that other part, Im not with my iPad and I cant test right now.
Softcore
Regular
Posts: 1613
Joined: 04 Nov 2012 08:34

Re: Compact Sequencer, Divisions always set to 1 on load

Post by Softcore »

Ok, just tried and my above suggestion didnt work either....In these cases, making the custom expression a local variable (local to the script) helps....So here it is

(notice that in the object I mentioned above, the "divisions" expression is deleted, and instead they are declared locally in the script "action")
Attachments
compactSequencer-divFixed.jzml
(100.54 KiB) Downloaded 56 times
electrofux
Regular
Posts: 294
Joined: 24 Jan 2012 18:22

Re: Compact Sequencer, Divisions always set to 1 on load

Post by electrofux »

That did the trick, thank you very much again.
Post Reply