so...

i was going to add some functionality to my heavy patch (to simplify switching to and from it) and needed to add another custom heavy hash.

so i added my values to this:

/* HEAVY */
	std::array<std::string, 10 > outs = {{
		"__hv_noteout",
		"__hv_ctlout",
		"__hv_pgmout",
		"__hv_touchout",
		"__hv_polytouchout",
		"__hv_bendout",
		"__hv_midiout",
		"__hv_switch_bank",
		"__hv_save_table",
		"__hv_current_state",
	}};

and it also prints it nicely when i run the program...
the thing is, the values for the last 3 hashes (my custom ones) differ from what i had before. i was under the impression these were unique?? my old hashes still work for the switch_bank and save_table if i run the program. the new ones also work if i interchange them. strange.

however the newly added hash for current_state does not work. i can't imagine but has there anything changed in that regard lately? or is it normal for hashes to change?

EDIT: if anyone could put this in a render.cpp file and write down the values they get, that would be great! as said, the values for all the midi stuff are still the same, the 3 last ones changed though since i last used this hash generator...

Looking at the hv_string_to_hash() implementation in HvUtils.c, it should be constant every time, and when I spoke to the developers a while back, they said it was guaranteed to never change (in fact I hardcoded some values for a switch() statement and they still work).

__hv_noteout: 0xd1d4ac2
__hv_ctlout: 0xe5e2a040
__hv_pgmout: 0x8753e39e
__hv_touchout: 0x476d4387
__hv_polytouchout: 0xd5aca9d1
__hv_bendout: 0xe8458013
__hv_midiout: 0x6511de55
__hv_switch_bank: 0x2d20fcb5
__hv_save_table: 0x51cd12fd
__hv_current_state: 0x466ad63e

    giuliomoro hmm...

    thanks, that is what i thought.

    i get the same values here. however these are not the values i got earlier and not the ones i hardcoded in my render.cpp

    i had

    0x6e64cdc1 save_table
    0x116a3f3c switch_bank

    before.

    this is really strange. even stranger that i could change those hashes in my render. cpp and both the old and new one work.
    and even stranger that i can't make the current_state hash do anything.

    6 days later

    gosh, disregard this post... i found the issue.

    of course, i copied blindly the __hv_ part of the custom senders, but i did not use them earlier, that is what caused the different hashes. still buffled it worked with the __hv_ part at all (since i only used the send inside PD without the __hv_ prefix) anyhow, all good now. sorry for the noise on this one.