Csound Csound-dev Csound-tekno Search About

[Cs-dev] k-rate cpsmidi/cpstmid feature request

Date2006-05-05 01:12
FromJonathan Murphy
Subject[Cs-dev] k-rate cpsmidi/cpstmid feature request
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


It would be great if cpsmidi and cpstmid were available as
control-rate opcodes. If it's possible and if anyone has the time,
of course.

Thanks in advance,
Jonathan. 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8 

iD8DBQFEWpiBCibrChMdb1sRAtNVAJ92vr82AKRYvSd9tCLvnECczk1QWwCdHqBo
78kn1GTya6mb510TJu9m2x4=
=rpnT
-----END PGP SIGNATURE-----


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2006-05-05 01:21
FromDavid Akbari
SubjectRe: [Cs-dev] k-rate cpsmidi/cpstmid feature request
Hi John,

A common solution to this very problem is simply to use cpsmidib opcode 
with 0 as an input argument specifying the bend range.

http://www.csounds.com/manual/html/cpsmidib.html



-David

On May 4, 2006, at 8:12 PM, Jonathan Murphy wrote:

> It would be great if cpsmidi and cpstmid were available as
> control-rate opcodes. If it's possible and if anyone has the time,
> of course.



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2006-05-05 11:38
FromJonathan Murphy
SubjectRe: [Cs-dev] k-rate cpsmidi/cpstmid feature request
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Thanks David,

Can't believe I didn't think of that. What about cpstmid though?
use cpstun instead? 

Jonathan.

David Akbari  writes:

> Hi John,
>
> A common solution to this very problem is simply to use cpsmidib
> opcode with 0 as an input argument specifying the bend range.
>
> http://www.csounds.com/manual/html/cpsmidib.html
>
>
>
> -David
>
> On May 4, 2006, at 8:12 PM, Jonathan Murphy wrote:
>
>> It would be great if cpsmidi and cpstmid were available as
>> control-rate opcodes. If it's possible and if anyone has the time,
>> of course.
>
>
>
> -------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8 

iD8DBQFEWysdCibrChMdb1sRAk21AJ4r6IrKGVAtw/bNUxSpVYR6FeTL3QCfRSff
HxQXypysG1yWoilyF1r26tI=
=BCSY
-----END PGP SIGNATURE-----


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2006-05-05 11:51
FromIstvan Varga
SubjectRe: [Cs-dev] k-rate cpsmidi/cpstmid feature request
AttachmentsNone  

Date2006-05-06 02:50
FromJonathan Murphy
SubjectRe: [Cs-dev] k-rate cpsmidi/cpstmid feature request
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


I appreciate the value of cpsmidib. I've used it in almost everything
that I've done with Csound. It's just that the pitchbend controller
behaves in a unique manner and it's sometimes great to be able to use
it for other purposes than actually bending the pitch. I couldn't
figure out how to do this and retain k-rate cps control. David's
suggestion got me thinking outside the square a bit more. The
following csd is an example of the sort of thing that I had been
wanting to do (and will continue to do now that I can!). Any
suggestions as to a more efficient way to do this appreciated. Thanks
for taking the time to read and write.

Jonathan.






- -+rtaudio=alsa -+rtmidi=alsa -Mhw:1,0 -odevaudio -d -m0 --sched -b128 -B512




sr = 48000
kr =  6000
ksmps =  8
nchnls = 1

gi7note ftgen 1, 0, 32768, -2, 7, 2, 240.00, 60, 1.00, 1.125, 1.25, 1.3333333, 1.5, 1.6875, 1.875, 2.000
girise  ftgen 2, 0, 32769, -7, 0, 32768, 1


instr 1

kbend pchbend 0, 1024

kkey init 0
kvelocity init 0
midinoteonkey kkey, kvelocity

kaft   init 0
midichannelaftertouch kaft, 1, 64

ktrig  init 1
kindex = kkey
kfn    init 1
kamp   init 1

kcps   cpstun ktrig, kindex, kfn 
kphs   ctrl7 1, 78, 0, 1

aosc   vco2 kamp, kcps, 16, 0, kphs, 0.5 

kcf =  1024 + kbend
kq     ctrl7 1, 1, 1, 64	                     
alp    lowpass2 aosc, kcf, kq, 1

krise  ctrl7 1, 93, 0.016, 0.16
kdecay ctrl7 1, 91, 0.16, 4.096
kenv   envlpxr kaft, i(krise), i(kdecay), 2, 1, .01
kenv = kvelocity * kenv
aout   gain  alp, kenv

out aout

endin





Istvan Varga  writes:

> On Friday 05 May 2006 02:21, David Akbari wrote:
>
>> A common solution to this very problem is simply to use cpsmidib opcode 
>> with 0 as an input argument specifying the bend range.
>> 
>> http://www.csounds.com/manual/html/cpsmidib.html
>
> Another advantage of cpsmidib is that it will make use of standard
> RPNs that set the bend range.
>
>
> -------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8 

iD8DBQFEXADyCibrChMdb1sRAnNUAJ9dJyeD5pUq2X1cK30h0KdOwQMlYgCgiyah
6wfF1BCFLHW/cupH21sdT5E=
=EBX8
-----END PGP SIGNATURE-----


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net