Csound Csound-dev Csound-tekno Search About

[Cs-dev] fl_controller example

Date2005-01-20 22:38
FromIain Duncan
Subject[Cs-dev] fl_controller example
Just thought I'd let everyone know that despite the concerns over fltk 
threading, I just built the fl_controller example for csound5 that I 
made with much help from Michael, and it's working very well at 
latencies down to sub 3ms on my linux box. I've put up a csd file that 
actually uses the features of the gui, a slightly altered version of the 
controller, and my makefile. For whoever knows how to do it, I'd like 
all of these included with fl example on sourceforge, with the new 
fl_controller.cpp replacing the old one.

http://www.xornot.com/fl_controller/fl_controller.cpp
http://www.xornot.com/fl_controller/fl_controller.csd
http://www.xornot.com/fl_controller/Makefile

The only glitch I found is that I get clicks when my mouse leaves the 
fltk box, especially if it goes over the corners where little popups are 
supposed to come up. Not sure how to fix that yet, any tips?

Once I have wrapped my head around Michaels contributions to the code ( 
all I wrote was the gui really ) I will add real time midi control of 
the knobs. I've got that working with a dummy csoundless fltk gui ok, so 
I don't think it should be too hard to add. I would certainly appreciate 
any feedback on architecture though as I'm kinda making parts up when it 
comes to combining the csound thread, the gui, and the midi process.

Exciting times ahead!
iain


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-01-21 12:38
FromDave Phillips
SubjectRe: [Cs-dev] fl_controller example
Iain Duncan wrote:

> Just thought I'd let everyone know that despite the concerns over fltk 
> threading, I just built the fl_controller example for csound5 that I 
> made with much help from Michael, and it's working very well at 
> latencies down to sub 3ms on my linux box. I've put up a csd file that 
> actually uses the features of the gui, a slightly altered version of 
> the controller, and my makefile. For whoever knows how to do it, I'd 
> like all of these included with fl example on sourceforge, with the 
> new fl_controller.cpp replacing the old one.
>
> http://www.xornot.com/fl_controller/fl_controller.cpp
> http://www.xornot.com/fl_controller/fl_controller.csd
> http://www.xornot.com/fl_controller/Makefile
>
Hi Iain:

  The build fails for me at this point:

[dlphilp@localhost fl_controller]$ make
g++ -o fl_controller fl_controller.cpp  \
-I/usr/include -I/usr/local/include -L/usr/lib -lfltk \
-lcsound -lsndfile -lportaudio -lportmidi -lporttime -ljack
/home/dlphilp/tmp/ccxwfDtT.o(.text+0x1906): In function 
`ControlWindow::csound_start()':
: undefined reference to `csoundCreateThread'
/home/dlphilp/tmp/ccxwfDtT.o(.text+0x1a3f): In function 
`ControlWindow::csound_load_ftable(int, double, double, double, double)':
: undefined reference to `csoundTableSet'
/home/dlphilp/tmp/ccxwfDtT.o(.text+0x1a5f): In function 
`ControlWindow::csound_load_ftable(int, double, double, double, double)':
: undefined reference to `csoundTableSet'
/home/dlphilp/tmp/ccxwfDtT.o(.text+0x1a7f): In function 
`ControlWindow::csound_load_ftable(int, double, double, double, double)':
: undefined reference to `csoundTableSet'
/home/dlphilp/tmp/ccxwfDtT.o(.text+0x1a9f): In function 
`ControlWindow::csound_load_ftable(int, double, double, double, double)':
: undefined reference to `csoundTableSet'
/home/dlphilp/tmp/ccxwfDtT.o(.text+0x1ad4): In function 
`ControlWindow::csound_update_ftable(int, int, double)':
: undefined reference to `csoundTableSet'
collect2: ld returned 1 exit status
make: *** [fl_controller] Error 1


  I discovered that my build of Csound5 created only static libs. I 
suppose I'll have to recompile, but what flags indicate that I want 
shared libs ? Perhaps shared libs should be built by default ?

Best,

dp




-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-01-21 12:44
FromDave Phillips
SubjectRe: [Cs-dev] fl_controller example: Success
Hi Iain:

  Ignore previous lament. I built and ran the example with your code and 
CSD. Works perfectly here, no extraneous clicks, very smooth response. 
Again, I'm using -o dac:plughw:2 which connects to my Delta 66. Latency 
is negligible.

Best,

dp





-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-01-21 14:11
FromDave Phillips
Subject[Cs-dev] Improsculpt and Cs5
Greetings:

  I'm making another attempt at Oyvind Brandtsegg's Improsculpt. I have 
the entire interface appearing now, meters and all, but I'm getting no 
audio.

  I had to make some revisions in Oyvind's original file. A number of 
DOS control characters were screwing things up, so I removed them. The 
tabw opcodes have been renamed to tablew (thanks Gabe!), an instance of 
ftlen2 has been changed to ftlen, and I changed path to some soundfiles 
used by the program. Also, a prealloc line was removed (its instrument 
doesn't exist).

  It looks great, now I just need to actually get sound into & out of 
it. The Improsculpt file is too large to post as an attachment but I'll 
gladly supply it to anyone who wants to try running it.

Best,

dp





-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-01-21 14:20
FromDave Phillips
SubjectRe: [Cs-dev] Improsculpt and Cs5
Greetings:

Sorry, I forgot to mention that I also receive a bunch of messages like 
this one:

    WARNING (fl_setWidgetValuei): not implemented yet; exp=1

Which leads me to believe that perhaps FLsetVali isn't working as 
expected by Improsculpt ?

I'll try replacing it with FLsetVal to see what happens...

Best,

dp





Dave Phillips wrote:

> Greetings:
>
>  I'm making another attempt at Oyvind Brandtsegg's Improsculpt. I have 
> the entire interface appearing now, meters and all, but I'm getting no 
> audio.
>
>  I had to make some revisions in Oyvind's original file. A number of 
> DOS control characters were screwing things up, so I removed them. The 
> tabw opcodes have been renamed to tablew (thanks Gabe!), an instance 
> of ftlen2 has been changed to ftlen, and I changed path to some 
> soundfiles used by the program. Also, a prealloc line was removed (its 
> instrument doesn't exist).
>
>  It looks great, now I just need to actually get sound into & out of 
> it. The Improsculpt file is too large to post as an attachment but 
> I'll gladly supply it to anyone who wants to try running it.
>




-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-01-23 21:44
FromOeyvind Brandtsegg
SubjectRe: [Cs-dev] Improsculpt and Cs5
Thanks for the continued effort, to all.

I'll be testing this too, asap, it's very busy right now, but it will be better in a few weeks time.
There's no sound files that is absolutely necessary for improsculpt to run,
but that means you need to hav eaudio input working to get any sort of beep out of it...
Any sound file referenced can be replaced with any soundfile available to you, at least for a start...
I'm optimistic towards the task of getting it to run on csound5 now.

I'm online only every few days now, so I might be late to reply on any emails.

Oeyvind





> From: Dave Phillips [dlphilp@bright.net]
> Sent: 2005-01-21 15:20:42 CET
> To: csound-devel@lists.sourceforge.net
> Subject: Re: [Cs-dev] Improsculpt and Cs5
> 
> Greetings:
> 
> Sorry, I forgot to mention that I also receive a bunch of messages like 
> this one:
> 
>     WARNING (fl_setWidgetValuei): not implemented yet; exp=1
> 
> Which leads me to believe that perhaps FLsetVali isn't working as 
> expected by Improsculpt ?
> 
> I'll try replacing it with FLsetVal to see what happens...
> 
> Best,
> 
> dp
> 
> 
> 
> 
> 
> Dave Phillips wrote:
> 
> > Greetings:
> >
> >  I'm making another attempt at Oyvind Brandtsegg's Improsculpt. I have 
> > the entire interface appearing now, meters and all, but I'm getting no 
> > audio.
> >
> >  I had to make some revisions in Oyvind's original file. A number of 
> > DOS control characters were screwing things up, so I removed them. The 
> > tabw opcodes have been renamed to tablew (thanks Gabe!), an instance 
> > of ftlen2 has been changed to ftlen, and I changed path to some 
> > soundfiles used by the program. Also, a prealloc line was removed (its 
> > instrument doesn't exist).
> >
> >  It looks great, now I just need to actually get sound into & out of 
> > it. The Improsculpt file is too large to post as an attachment but 
> > I'll gladly supply it to anyone who wants to try running it.
> >
> 
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
> Tool for open source databases. Create drag-&-drop reports. Save time
> by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
> Download a FREE copy at http://www.intelliview.com/go/osdn_nl
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>