Csound Csound-dev Csound-tekno Search About

RT plotter

Date2015-12-16 09:33
FromAndreas Bergsland
SubjectRT plotter
AttachmentsRT_plot_UDO.csd  andreas_bergsland.vcf  
Hi,
I made a simple UDO for plotting one or optionally two values to an 
external window that I thought I'd share with the community.
It is dependent on the python modules matplotlib, numpy and drawnow. I 
am not sure if this will work on all systems, but it works with OS X 
10.9.5 and csound 6.06 using a miniconda install for the external 
modules (drawnow was installed without conda). I struggled a bit to get 
the modules recognized by csound, and ended up with having to define a 
.pth file with all the necessary paths in it in one of python's 
/site-packages directories. And then I modified a script from the 
tutorial video
https://www.youtube.com/watch?v=zH0MGNJbenc
to get it to do some simple plotting.
I could only get this to work when running from terminal - it would give 
an error message importing numpy and the other external modules when 
running from WinXound.
I know you can do a similar kind of plotting in Cabbage, but for me it 
was convenient to have something directly accessible from within csound.
I guess it could be made a lot more sophisticated, but for now I thought 
I'd make it simple.
Best,
Andreas

-- 
Andreas Bergsland,
førsteamanuensis

Musikkteknologiseksjonen
Institutt for musikk
Olavskvartalet
NTNU
7491 Trondheim

Besøksadresse: Fjordgt.1 (3.etg.)
e-post: andreas.bergsland@ntnu.no
Web: http://folk.ntnu.no/andbe
Tlf: 7359 0096
Mob: 4566 3316


Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2015-12-16 09:50
FromVictor Lazzarini
SubjectRe: RT plotter
It works well here, thanks, OSX 10.10 with python.org python. I just had to install drawnow with pip (the other packages were here already).
Great example.
========================
Dr Victor Lazzarini
Dean of Arts, Celtic Studies and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 16 Dec 2015, at 09:33, Andreas Bergsland  wrote:
> 
> Hi,
> I made a simple UDO for plotting one or optionally two values to an external window that I thought I'd share with the community.
> It is dependent on the python modules matplotlib, numpy and drawnow. I am not sure if this will work on all systems, but it works with OS X 10.9.5 and csound 6.06 using a miniconda install for the external modules (drawnow was installed without conda). I struggled a bit to get the modules recognized by csound, and ended up with having to define a .pth file with all the necessary paths in it in one of python's /site-packages directories. And then I modified a script from the tutorial video
> https://www.youtube.com/watch?v=zH0MGNJbenc
> to get it to do some simple plotting.
> I could only get this to work when running from terminal - it would give an error message importing numpy and the other external modules when running from WinXound.
> I know you can do a similar kind of plotting in Cabbage, but for me it was convenient to have something directly accessible from within csound.
> I guess it could be made a lot more sophisticated, but for now I thought I'd make it simple.
> Best,
> Andreas
> 
> -- 
> Andreas Bergsland,
> førsteamanuensis
> 
> Musikkteknologiseksjonen
> Institutt for musikk
> Olavskvartalet
> NTNU
> 7491 Trondheim
> 
> Besøksadresse: Fjordgt.1 (3.etg.)
> e-post: andreas.bergsland@ntnu.no
> Web: http://folk.ntnu.no/andbe
> Tlf: 7359 0096
> Mob: 4566 3316
> 
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>       https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
> 

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2015-12-16 21:14
Fromjoachim heintz
SubjectRe: RT plotter
works on linux, too.  thanks, andreas; that's an interesting and simple 
possibility.

i can, by the way, run in in csoundqt as "run in terminal".

	joachim


On 16/12/15 10:50, Victor Lazzarini wrote:
> It works well here, thanks, OSX 10.10 with python.org python. I just had to install drawnow with pip (the other packages were here already).
> Great example.
> ========================
> Dr Victor Lazzarini
> Dean of Arts, Celtic Studies and Philosophy,
> Maynooth University,
> Maynooth, Co Kildare, Ireland
> Tel: 00 353 7086936
> Fax: 00 353 1 7086952
>
>> On 16 Dec 2015, at 09:33, Andreas Bergsland  wrote:
>>
>> Hi,
>> I made a simple UDO for plotting one or optionally two values to an external window that I thought I'd share with the community.
>> It is dependent on the python modules matplotlib, numpy and drawnow. I am not sure if this will work on all systems, but it works with OS X 10.9.5 and csound 6.06 using a miniconda install for the external modules (drawnow was installed without conda). I struggled a bit to get the modules recognized by csound, and ended up with having to define a .pth file with all the necessary paths in it in one of python's /site-packages directories. And then I modified a script from the tutorial video
>> https://www.youtube.com/watch?v=zH0MGNJbenc
>> to get it to do some simple plotting.
>> I could only get this to work when running from terminal - it would give an error message importing numpy and the other external modules when running from WinXound.
>> I know you can do a similar kind of plotting in Cabbage, but for me it was convenient to have something directly accessible from within csound.
>> I guess it could be made a lot more sophisticated, but for now I thought I'd make it simple.
>> Best,
>> Andreas
>>
>> --
>> Andreas Bergsland,
>> førsteamanuensis
>>
>> Musikkteknologiseksjonen
>> Institutt for musikk
>> Olavskvartalet
>> NTNU
>> 7491 Trondheim
>>
>> Besøksadresse: Fjordgt.1 (3.etg.)
>> e-post: andreas.bergsland@ntnu.no
>> Web: http://folk.ntnu.no/andbe
>> Tlf: 7359 0096
>> Mob: 4566 3316
>>
>>
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>        https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
>> 
>
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>          https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
>

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here