[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sc-users] guitar synth controlled by midi
- To: sc-users@xxxxxxxxxxxxxxxx
- Subject: Re: [sc-users] guitar synth controlled by midi
- From: beau <djcypod@xxxxxxxxx>
- Date: Sat, 27 Dec 2008 23:07:20 -0800
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=1+bmNMkRCJTN4banpdCiUbOZqjax7rFiPAturDhu0ds=; b=GUk3Rt08LrufM1+3eafo3fVxlK14kDou+kjm0zdgoPWpN+zJm12L19akDjroriBfd8 N8SANK1YI6jQ0TnteqPXtSK5h/hPR4Em9h5yRlgXESxgnArbjB0jUit//sUrpnuKCGJN bPVgQLX4DgFmOZopYqof0QpxBhALZIniVmXwc=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=VYP4m8B6wQXzFqaQ/JhWazdkq0mb+EkTeymrLJVpGYNLPaqWlHBeU1Jz3lFzUviPwk sqyKwpH9hRG+3VT4aYwAIWbRESDUWYxJvJsLhRpVZijOK4wVPllVjDfBW1Yha5ZP1he8 oHOQFKF94UhephxxnR07W8ySFJesaTUTDigK4=
- List-id: SuperCollider users mailing list <sc-users.create.ucsb.edu>
- Reply-to: sc-users@xxxxxxxxxxxxxxxx
- Sender: owner-sc-users@xxxxxxxxxxxxxxxx
I found this cool guitar synth example, and was wanted some
advice/help making it a midi synth, so that I could control it with a
sequencer:
(
// strummable guitar
// use mouse to strum strings
{
var pitch, mousex, out;
pitch = [ 52, 57, 62, 67, 71, 76 ]; // e a d g b e
mousex = MouseX.kr;
out = Mix.fill(pitch.size, { arg i;
var trigger, pluck, period, string;
// place trigger points from 0.25 to 0.75
trigger = HPZ1.kr(mousex > (0.25 + (i * 0.1))).abs;
pluck = PinkNoise.ar(Decay.kr(trigger, 0.05));
period = pitch.at(i).midicps.reciprocal;
string = CombL.ar(pluck, period, period, 4);
Pan2.ar(string, i * 0.2 - 0.5);
});
LPF.ar(out, 12000);
LeakDC.ar(out);
}.play;
)
I have tried a few different things, any suggestions?
_______________________________________________
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/