New flag for "make" which specifies wavetype

JonnyCro
Posts: 8
Joined: 2010-02-17
Location: United Kingdom

Hi.

Would it be possible to have a new flag for the Make command which could be used instead of the /b/u/d/w/i flags. It could take a single value with the info coming from the various bits similar to the format returned by wavetype.

e.g.
make/o/WAVETYPE_OVERRIDE_FLAG=(72)/n=(100,100) temp = 1

which would make an 8bit real unsigned integer wave with 100 rows and 100 cols using the codes used by wavetype. This would allow a parent function to issue make commands to subroutines without having to (a) use duplicate (this means a wave must exist already), (b) you dont have to construct a string for "execution" by sending the correct make flags in a string parameter and (c) you dont have to have several make commands in a set of "if" or "case" statements.

Cheers

Jonny


Posts: 497
Joined: 2007-03-01
Location: United States

You mean the /Y flag?

make/o/Y=(72)/n=(100,100) temp = 1

Maybe you're using an old version that doesn't have the /Y flag, but more likely you missed it because it's not listed in the same way that the rest of the flags are for the Make operation. I've made a note to modify the command help for the Make operation to include the /Y flag with the list of other flags so it's not overlooked.


JonnyCro
Posts: 8
Joined: 2010-02-17
Location: United Kingdom

i don't seem to have /Y listed in my help for some reason. (6.12a on vista 32). tried it and it works anyway. Exactly what i was after!

cheers

Jonny


Posts: 593
Joined: 2007-06-21
Location: United States

The /Y documentation is there but is obfuscated. I have fixed it for the next release.


Back to top