On my Kindle Fire HD 10, (I don't know about other devices,) neither note blocks nor jukeboxes produce any sound. However, I am able to see the rainbow notes above both blocks. I'm pretty sure this has nothing to do with settings. As I've checked. Is there a way for me to fix this or is it a bug?
If sounds are off then you wont hear anything. Turn on all types of sound in the settings and then try again.