To make it even more transparent, I would do the following. Suppose $N$ is our manifold, $T^*N$ is the total space of the cotangent bundle, $\pi\colon T^*N\to N$ is the projection, and $(U,\phi)$ is a chart for $N$ with $\phi = \big(x^i\big)$. Then we get a chart $\big(\pi^{-1}(U),\tilde \phi\big)$ on $T^*N$ defined as follows. For each $\omega\in \pi^{-1}(U)$ there is a $p\in U$ so $\omega\in T^*_pN$, and $\omega$ can be written as $\omega = y_i(\omega)\,dx^i|_p$. The map $\tilde\phi\colon \pi^{-1}(U)\to \phi(U)\times\mathbb{R}^n$ is defined as $$ \omega\mapsto \big((x^1\circ\pi)(\omega),\dots,(x^n\circ\pi)(\omega),y_1(\omega),\dots,y_n(\omega)\big). $$ If we put $\widetilde x^{i} = x^i\circ\pi$, then we can write $\tilde \phi = \big(\widetilde x^{i},y_i\big)$. Moreover, for each $\omega \in \pi^{-1}(U)$, we get a basis for $T_\omega\big(T^*N\big)$ associated to the chart $\tilde\phi$: $$ {\partial\over \partial \widetilde x^{i}}\bigg|_\omega,{\partial\over \partial y_i}\bigg|_\omega, \quad i = 1,\dots,n. $$ We get a corresponding dual basis for $T_\omega^*\big(T^*N\big)$: $$ d\widetilde x^{i}\big|_\omega,d y_i\big|_\omega, \quad i = 1,\dots,n. $$ Hence if $(U,\phi) = (U,x^i)$ are local coordinates on $N$, for each $\omega\in \pi^{-1}(U)$, then the canonical $1$-form $\lambda_\omega\in T^*_\omega\big(T^*N\big)$, and $\lambda_\omega$ can be written in terms of the basis $d\widetilde x^i|_\omega,dy_i|_\omega$ as $$ \lambda_\omega = y_i(\omega)\,d\widetilde x^{i}\big|_\omega, $$ or as a local section $T^*U\to T^*\big(T^*U\big)$ as $$ \lambda = y_i\,d\widetilde x^{i}. $$