A model for the formation of stellar associations and clusters from giant molecular clouds | Synapse