This is a kind of sorcery! The Prophet Sallallaahualaihiwasallam صلى الله عليه وسلم mentioned about Kuffur and Shirk who even just sit or listen to any kind of sorcery knowingly!
But you didn’t know, so that ruling doesn’t apply to you!
You are ok inshaAllah!
Just be carful next time!
السَّلامُ عليكم ورحمةالله وبركاته
Seek forgiveness and protectiin from Allah. Here's a good Dua to recite daily:
Also recite surah kafiroon before going to sleep, and don't train afterwards. It's a very good protection of faith.
May Allah forgive you and guide you.