Here are the grc codes for MASK modulation and demodulation [[Media:4ASK.grc] whose the flowgraph is the following
[[Media:8ASK.grc] whose the flowgraph is the following