Java程序辅导

C C++ Java Python Processing编程在线培训 程序编写 软件开发 视频讲解

客服在线QQ:2653320439 微信:ittutor Email:itutor@qq.com
wx: cjtutor
QQ: 2653320439
Re: [sc-users] AudioMIDI problem (was: MIDI question) [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [sc-users] AudioMIDI problem (was: MIDI question) To: "SuperCollider users mailing list" Subject: Re: [sc-users] AudioMIDI problem (was: MIDI question) From: "James Harkins" Date: Tue, 19 Sep 2006 15:58:33 -0400 Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=C1/ET4XLsRnv9Vo68pplAcaD4DkJvG+KZkozbdXQZFZFrkIbtXQoiBGgxga20FktmgyABHzoMTqxYVp4VfJOnzlyhEZEltxEl6SfNW/By8kfO38IFle+eNgdlt/U8kERl380tQkcuIbnnIi8VPOcy/m+3iTwEITjC4/uT7oZKM8= In-reply-to: <6395561.post@xxxxxxxxxxxxxxx> List-archive: List-help: List-id: SuperCollider users mailing list List-post: List-subscribe: , List-unsubscribe: , References: <8B3A40FE-1E32-4F70-AB6F-252A0629F2E9@xxxxxxxxxxxxxx> <83FCB52E-6BFF-427C-9119-BFE0284E5327@xxxxxxxxx> <6E478D44-7DF8-4638-8481-FD66E5E01E0C@xxxxxxxxxxxxxxxxx> <66AD8162-9876-45EB-A9C2-D8DD8ED512B7@xxxxxxxxxxxxxxxxx> <301df63c0609182051j6aca0864tf8bb85d39d8470de@xxxxxxxxxxxxxx> <6395561.post@xxxxxxxxxxxxxxx> Reply-to: jamshark70@xxxxxxxxxxxxxxxxx, SuperCollider users mailing list OK, with that working, now try this: // note, shouldn't be necessary to init MIDIClient // creating a socket automatically does the init MIDIPort.numPorts = 2; // this ought to be the default, make it explicit just to be safe ( k = BasicMIDISocket([1, \omni], { arg num, vel; ["noteOn", num, vel].postln }, { arg num, vel; "\t".post; ["noteOff", num, vel].postln; }); ) r = NoteOnResponder({ |... args| args.postln }); Now the NoteOnResponder should tell you exactly what the UID is for the incoming message's port. Then, compare that to: k.parent.channel.dump ... whose port variable should have the same UID. If it doesn't, then it won't match port 1. r.remove; k.free; hjh On 9/19/06, stanh wrote: Okay, I've added the input and output arguments. Now the following works: MIDIClient.init(2, 2); MIDIClient.sources.do({ |src, i| MIDIIn.connect(i, src); }); MIDIIn.noteOn = { |... args| args.postln }; -- James Harkins /// dewdrop world jamshark70@xxxxxxxxxxxxxxxxx http://www.dewdrop-world.net "Come said the Muse, Sing me a song no poet has yet chanted, Sing me the universal." -- Whitman Follow-Ups: Re: [sc-users] AudioMIDI problem (was: MIDI question) From: Stan Hoffman References: [sc-users] MIDI question From: Stan Hoffman Re: [sc-users] MIDI question From: Ryan Brown Re: [sc-users] MIDI question From: Stan Hoffman Re: [sc-users] MIDI question From: James Harkins [sc-users] AudioMIDI problem (was: MIDI question) From: Stan Hoffman Re: [sc-users] AudioMIDI problem (was: MIDI question) From: James Harkins Re: [sc-users] AudioMIDI problem (was: MIDI question) From: blackrain Re: [sc-users] AudioMIDI problem (was: MIDI question) From: James Harkins Re: [sc-users] AudioMIDI problem (was: MIDI question) From: stanh Prev by Date: Re: [sc-users] AudioMIDI problem (was: MIDI question) Next by Date: Re: [sc-users] AudioMIDI problem (was: MIDI question) Previous by thread: Re: [sc-users] AudioMIDI problem (was: MIDI question) Next by thread: Re: [sc-users] AudioMIDI problem (was: MIDI question) Index(es): Date Thread