Passing SDRAM pointer to a class

Alright I really am trying to learn. I am continuously frustrated trying to learn C++. I’m working on a looper concept. I understand that SDRAM has to be declared globally. But I would like to create a class incorporating all the methods and other variables related to the loop, like the play_head_position etc. So what I think I need to do is declare the SDRAM in my Looper.cpp file: float DSY_SDRAM_BSS track1[2][MAX_SIZE]; then pass a (reference? or pointer?) to it to my class Loop.h in my constructor? or .Init().

  1. is this a good way of doing it?,
  2. Do I want to do it as a reference or a pointer?,
  3. What’s the syntax of declaring the variable to store in my .h?,
  4. Whats the syntax in my .Init() function?

I’ll share a response to this question from Discord where you also posted in case other community members stumble upon this thread.

There was a suggestion to make it a global variable.
extern float DSY_SDRAM_BSS track[2][MAX_SIZE];

Ahh. Well that does sound simple…
I managed by declaring it in my .cpp and passing a pointer to it to my class. It just took me 48hrs to manage.