Subpatching help needed


#1

Hi
i am trying to make a subpatch of that clockdivider, but no luck yet.
i'm following the user guide.

so far i've made:
the subpatch with inlets and outlets, saved it as subpatch file. (and closed this window)
made a new patch, saved it in the same directory, them made a new object named ./dividersub (which is the name of the subpatcher except for the ./ part)

this object gives this message:
attempt to create object from object file : D:\axoloti patches/dividersub.axo
attempt to create object from subpatch file in patch directory: D:\axoloti patches/dividersub.axs
attempt to create object from subpatch file : objects/./dividersub.axs
instance added, type demux/demux 2

my conclusion is, it cannot find the subpatcher.
How can i fix this?


#2

Add the path to your subpatch to the search path in File>Preferences of Axoloti main window?
I also see you have a space in the directory name "axoloti patches", makes me cringe each time I see it wink
but I guess Mark made a fix to allow such things...?


#3

you are right. i overlooked that fact.. i was aware that my patches should not be named with a space, but i forgot to name the directory in that way scream_cat


#4

ok, id advise against putting subpatches in search paths... (there is a use-case, but usually you do not need to do it)

it looks like what you did first should work...
can you also check it was saved with the filename you expect, ie. go look for...
which is : D:\axoloti patches/dividersub.axs

if its there, then I think i would try without spaces in the directory names. (to eliminate it from enquiries :))

I use sub-patches all the time, and never have them on my search patch (which i reserve pretty much for AXOs I'm creating) ... once you start doing voice patches it gets out of hand pretty quickly with search paths smile

EDIT: directories and subpatch filenames can both happily contain spaces


#5

are you saying it worked, once you changed to not having a space in the directory name?
if so, then we can raise it as a bug, (but at least an easy workaround)


#6

no, it's not working yet.

i changed the directory name to axolotipatches
the file names are the same as the ones i saved

when trying to create the sub object, I get this:
Saving preferences...
preferences path : C:\Users\Martijn\Documents\axoloti\axoloti.prefs
attempt to create object from subpatch file : objects/./.axs
attempt to create object from subpatch file : objects/./d.axs
attempt to create object from subpatch file : objects/./di.axs
attempt to create object from subpatch file : objects/./div.axs
attempt to create object from subpatch file : objects/./divi.axs
attempt to create object from subpatch file : objects/./divid.axs
attempt to create object from subpatch file : objects/./divide.axs
attempt to create object from subpatch file : objects/./divider.axs
attempt to create object from subpatch file : objects/./dividers.axs
attempt to create object from subpatch file : objects/./dividersu.axs
attempt to create object from subpatch file : objects/./dividersub.axs
instance added, type demux/demux 2

The, i included the folder to my searchpath
searchpath looks like this now:
objects
d:\axolotipatches

i create the object and get this:
Saving preferences...
attempt to create object from object file : D:\axolotipatches/dividersub.axo
attempt to create object from subpatch file in patch directory: D:\axolotipatches/dividersub.axs
attempt to create object from subpatch file : objects/./dividersub.axs
attempt to create object from subpatch file : d:\axolotipatches/./dividersub.axs
instance added, type demux/demux 2


#7

i looked at the pref file, there is some mention of the older directory location in it.
i tried to change this in the pref file, but it changes back to this when i load axoloti again (i quited each time when editing the pref file)

pref file:

D:\axolotipatches\test.axp
objects;D:\axolotipatches;
50
false
false

D:\axoloti patches\rcdclone\rcd.axp
D:\axoloti patches\clock divider.axp
D:\axoloti patches\dividersub.axp
D:\axoloti patches\maindivider.axp
D:\axoloti patches\rotate.axp
D:\axolotipatches\dividersub.axp
D:\axolotipatches\rcd.axp
D:\axolotipatches\dividermain.axp


C:\Program Files (x86)\axoloti_runtime
C:\Program Files (x86)\Axoloti\app\firmware


#8

I think there is something wrong with your subpatch document, as it is found, loads its first object (demux 2) and then nothing...
Please attach your subpatch...


#9

dividersub.axp (2.9 KB)


#10

Ok i guessed wrong, your patch is probably fine
but save it as subpatch (.axs extension)


#11

@johannes, ok Im going to change the hit message to appear when it finds the file... so we know it attempting to load it,
just in case we have subpatches failing to load.


#12

i think i did save it as subpatch, but it could not overwrite the previous file saved as normal patch

i tested this with a new subpatch , and it work as should


#13

hmm, we probably cannot have both a AXP and AXS as the same name?
I guess we should check this on patch save....

EDIT: actually on reflection this is not a problem, as the searching only looks for AXS not AXP, so AXP are only used on explicit loading


#14

i tried saving subpatches some more.
i noticed that if i selected a file that is a normal patch (with the .axp extention) and tried to save it as a .axs subpatch
it saves not as a subpatch but as a normal patch.

the filename has the .axp extention included already, so there is the problem i think


#15

yes, that is the problem... its kind of normal behaviour for save dialog, use extension if already supplied...
but I'll put in a check, to warn if the extension does not match the filter at the bottom.


#16

scenarios:

if the patch already has a name and is a .axp file, when you try to save it as a subpatch, you get this problem.

when selecting a file from the list and not deleting the extention when changing the name for the subpatch (like adding a number

-if you display the name without the extention when saving it solves this i guess, don't know if this is a good solution.

notes
i tried giving the subpatch the same name as the main patch. this works
so it is possible to have this in one folder:
test.axp
test.axs


#17

Ive put a fix in now... if you save where the extension does not match the filter extension, it will ask you if you want to change it. so clear to user whats going on, but allows them to do as they please.

could you check to see if saving in a directory with a space works... so we don't start thinking there is an issue there, if there isn't...


#18

tried it, no problem there (spaces cause no problems)
also, i removed the searchpath to check if that was needed, not needed smile


#19

OK, I've check, spaces in both subpatch filename and in the directories they are contained in , are perfectly ok