Getting the Sample Rate from Live into Max for Live

i snor's icon

As the title suggests I am trying to get automatically the sample rate from Live to use within my patch, but haven't found how yet. Can anybody help? Thanks guys !

Andrew Pask's icon

dspstate~

-A

i snor's icon

Damn andrew, you're the man. Thanks again !