< Back to IRCAM Forum

Omif gives nil at each evaluation

Hello,

there is some trouble with omif.
At each evaluation the omif gives nil, so I cannot check the result directly.
When connect to chord-seq, the chord-seq is correct.
But when omit is in sub patches the results are wrong.
I tried in a new workspace too.

I am really in trouble
Thank you very much

Georgia

scale-fragment.omp (6.13 KB)

Hi Georgia,

There’s no trouble with omif. The nil you get while evaluating omif (using ‘v’) , is due to the om-random function.
Just put the omif function in eval-once mode (by selecting it , typing ‘b’ and clicking once, you should see a small ‘1’ icon on the omif). this will get it right… (c.f tutorials 13 and 15 for the use of eval-once with om-random) .

Best
K

ouf!

thanks a lot Karim.
I thought something is corrupted.

Bien à toi
Georgia

Hi all
Georgia is right: OMIF should return something when evaluated, whatever the eval-mode is.
I’ll have to correct this.

Jean

is this a problem of the beta version?
I don’t remember having that problem in OM 6.7.
Should I use my previous OM version?
I’m afraid my patches wouldn’t work with the next version if I use eval-mode for all omif.

your patches will work, even without eval-once mode
it is just a problem at returning the result when you evaluate the box itself, not when it is connected to something
for instance in your example the chord-seq gets the correct result, right ?

it will be fixed in version 6.9 anyway

yes, the chord-seq gets the correct result but I need to check the results from omif.
Anyway I jumped to the old version (waiting for the 6.9)

just connect anything to omif and it will work (for instance a “print” box)
or CMD+click to eval the output instead of using ‘v’
Jean

ok
Thanks Jean