Attr_mididevice not declared in this scope


#1

Hello!
I just installed the Axo 1.0.10 on El Capitan and I'm trying to compile an old patch from a while back.
I get a lot of these:

/Users/mackemint/Documents/axoloti/build/xpatch.cpp:1129:6: error: 'attr_mididevice' was not declared in this scope if( attr_mididevice > 0 && dev > 0 && attr_mididevice != dev) return;
Tried removing the build xpatch.cpp as well as the axoloti.prefs-files but the errors keep coming.

Please advice.


#2

I think we need to see the patch to diagnose that. Can you attach it here?


#3

Sammich_FX.axp (15.9 KB)

Here you go


#4

I'm not getting as far as you in the compilation - the patch has a lot of red "zombie" modules, and so the compiler complains about many missing bits.They seem to be sub patches that are expected to be in the same directory as the patch:
DetunedFMSaw.axs, NoiseGate.axs, StereoPhaser.axs, AD_to_int.axs
If you have those sub patches, we'd need them too in order to get further.


#5

Try to go to view-> settings and disable midi "has midi selector"


#6

Will try. What does this setting do even?


#7

delclares

wich is a parameter for subpatches

let me know if it worked


#8

OK these I used in the project, the keyb-files go in /MyObjects/objects/midi/in

AD_to_int.axs (1.7 KB)

StereoPhaser.axs (2.8 KB)

NoiseGate.axs (4.2 KB)

DetunedFMSaw.axs (9.3 KB)
keyb zone ch.axo (2.3 KB)

keyb note ch.axo (1.9 KB)


#9

Good call @philoop!

I tested with the subpatches and objects from @mackemint, and deselecting "has midi selector" did the trick.


#10

Thanks guys! =D
So why would I want to enable midi selector?


#11

If your patch is a subpatch, "has midi selector" will expose a set of extra attributes for the module: poly, midichannel, mididevice, midiport. The way to make a polysynth is to patch up a voice, set the required sub patch mode (polyphonic), enable "has midi selector" and then save it as a subpatch. That subpatch can now be used in another patch, and the midi selector controls it's polyphony and MIDI settings. A top level patch has no higher patch to expose the MIDI selector in, so you don't want it enabled for those.


#12

Oh that's really clever, i totally need that instead of my homebrew MIDI blocks. Thank you!


#13

Yup, that's a neat way of doing poly/MIDI. Remember that you still need a MIDI receiver module in the voice subpatch, e.g. midi/in/keyb, if you want it MIDIfied. The rest is fully automagic. Look at ...\axoloti-factory\patches\demos\synth\strings.axp for an example.


#14

Quite remarkable, my patch compiles just fine and I now know how to make polyphony for future fat pad action! =)