[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[sc-users] Pattern question



Hiho,

is there already another way to do this?

// get the frequency value pattern from a Pdef:
Pdef( \mypattern ).at( \freq )

// using this extension
+ Pdef{
	at{ |key|
		var ret;
		try{
			ret = source.patternpairs.clump(2).detect({ |it| it[0] == key })[1]
		}{ ret = nil };
		^ret;
	}
}


sincerely,
Marije

_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-users/
search: https://listarc.bham.ac.uk/lists/sc-users/search/