Status: 

Vuo version: 

OS version: 

  • Mac OS 10.10

Steps causing the bug to occur: 

  1. Using input 2 as static text to compare

How did the result differ from what you expected?: 

I figured it wouldn't matter which input the random text was received.

When did you first notice this bug?: 

Today

Have you found a workaround?: 

Yes, using input 1 only as static text to compare to.

Comments

Hi, @architek1.

smokris's picture
Submitted by
Status:
Waiting for review by Vuo Support Team
»
Waiting for more information from reporter

Hi, architek1.

I just ran a quick test using the attached composition, and the Are Equal node seems to be working properly; it detects equality and inequality regardless of the order of the 2 inputs (where one is a constant and the other is provided by a cable).

Could you provide a simple composition that demonstrates the bug?

Ok so narrowed it down. When

architek1's picture
Submitted by

Ok so narrowed it down. When I choose the path directly to the folder/file that contains the audio file with the composition not running: /Users/Dz/Documents/SonicPalette/DzSounds/Narrations/UnknownNormalize/File-nf.wav

text.Are Equal Returns: False

While the composition is running I change the input on Are Equal to the opposite input and the file is playing. The composition then switches the path to this:

/Users/Dz/Documents/Vuo/Compostions/../../SonicPalette/DzSounds/Narrations/UnknownNormalize/File-nf.wav

text.Are Equal Returns: True

At that time the composition runs correctly as I intended. Haha. Now is this the correct way for which text.areEqual is intended?

Hi, @architek1. Sorry I've

smokris's picture
Submitted by

Hi, architek1. Sorry I've been slow to get back to you.

Looking at your TestsAreEqual.vuo composition, I think you might be using the List Files node incorrectly. Its input port expects a folder which it will search for files of a certain type — but you entered a filename into that port (TestAreEqual/WhoAreYou_314-nf.wav). So it's not finding anything, and Vuo's Text Are Equal nodes decide that nothingness is not equal to the filenames you specified.

Also, the List Files node returns full, absolute paths to files, but your Are Equal nodes are checking whether the List Files output path is equal to a relative path. (You can see this by clicking the List Files node's output port while the composition is running, to see the actual paths it's found.)

I've attached a little project: When you click the button, it cycles through a list of audio files it finds in a folder next to the composition. If the audio file is called "c.wav", it displays a red box on the screen. (Currently it has to assume all filenames are the same length (5 characters) since Vuo doesn't yet have a node that gets just the filename part of an absolute file path.)

Does that help?