Hi, I'm sorry I'm answering this on my phone and can't go into super detail so let me know and I can work up some better examples. Contraptions can definitely play sounds but I think they aren't able to see deck level resources (like sounds that have been added). So I think what you'd need to do is create the sound resource inside the contraption.
If you run in the listener 'deck.sounds.soundname.encoded' it'll give you a string that represents that sound. You can then in the contraption create a sound object in your code using sound["whatever the string is"] and use that as the input for the play function.
Let me know if this doesn't make sense and I will try to work up some proper examples and explain better!
(I have had a bit of experiences making music sequencer type things in Decker haha, I look forward to seeing what you come up with)