Deep Purple, Black Sabbath, Ritchie Blackmore i pochodne