How to create and reference a python dictionary?

I would like to be able to recognize if I have encountered an audio fingerprint. To do this I want to be able to use a key-value store where the keys are the fingerprints and the values are the timestamps.

I want this dictionary to to persist between cooks.

Is this possible?

Sure. Best way to do this is to use extensions

1 Like

Thanks for the guidance. I see that all components have key/value storage. (/Storage). I will try this and see if it suits my needs. Thanks!

Keep in mind that those are stored in the toe file.

If you do not want that just declare your dict in your extensions init function:
self.Fingerprints = {}

And you can access it via op(„yourNode“).Fingerprints

That sounds like what I’m after. Thank you!