Is there a way to make a macro based on \marginnote that varies depending on whether the note is on the right column or the left? In particular I want to do this in two-column mode, otherwise I could check if the page is odd. Below is an mwe, where I want 'left' and 'right' to be decided automatically:
\documentclass[twocolumn]{article}
\usepackage{lipsum}
\usepackage{marginnote}
\begin{document}
\lipsum[1]
\marginnote{left}
\lipsum[2-4]
\marginnote{right}
\lipsum[5]
\end{document}