[Csnd] k-rate pchbend
Date | 2009-07-15 20:49 |
From | Charles Gran |
Subject | [Csnd] k-rate pchbend |
Why am I not able to get the pchbend information as I do the mod wheel? -Charles |
Date | 2009-07-15 23:08 |
From | Iain McCurdy |
Subject | [Csnd] RE: k-rate pchbend |
The note needs to have been activated by MIDI for pchbend to work. I'm not sure why this has been done so. You could use midiin instead, Something like this will work: <CsoundSynthesizer> <CsOptions> -odac -b64 -B256 -M0 </CsOptions> <CsInstruments> sr = 44100 ksmps = 8 instr 1 kstatus, kchan, kdata1, kdata2 midiin if kstatus = 224 then printk2 kdata2 endif kmod chanctrl 1,1 ; mod wheel printk2 kmod endin </CsInstruments> <CsScore> i1 0 3600 e </CsScore> </CsoundSynthesizer> It is of course only reading one of the data bytes. My cheapo MIDI controller only outputs 7-bit resolution anyway. If you have higher resolution hardware and want to use it you will have to recombine the two data bytes. Iain > Date: Wed, 15 Jul 2009 14:49:17 -0500 > From: sonance@campdeadly.com > To: csound@lists.bath.ac.uk > Subject: [Csnd] k-rate pchbend > > Why am I not able to get the pchbend information as I do the mod wheel? > > -Charles > > <CsoundSynthesizer> > <CsOptions> > -odac -b64 -B256 -M0 > </CsOptions> > > <CsInstruments> > sr = 44100 > ksmps = 8 > > instr 1 > kbnd pchbend ;pitch bend > kmod chanctrl 1,1 ; mod wheel > > printk2 kbnd > printk2 kmod > > endin > > </CsInstruments> > <CsScore> > i1 0 3600 > e > </CsScore> > </CsoundSynthesizer> > > > Send bugs reports to this list. > To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" Windows Live™: Keep your life in sync. Check it out. |