Csound Csound-dev Csound-tekno Search About

[Csnd] Re: Re: Re: Re: Re: Re: Re: Re: AW: Re: AW: Re: tkinter within csound

Date2008-10-12 22:49
Fromvictor
Subject[Csnd] Re: Re: Re: Re: Re: Re: Re: Re: AW: Re: AW: Re: tkinter within csound
With Python, you don't even need OSC, it can be much simpler,
just use RT events (and possibly channels). No need to involve
networking of any sort (unless you are using remote machines).

Victor
----- Original Message ----- 
From: "Brian Redfern" 
To: 
Sent: Sunday, October 12, 2008 10:11 PM
Subject: [Csnd] Re: Re: Re: Re: Re: Re: Re: AW: Re: AW: Re: tkinter within 
csound


> Yeah what I'm thinking of doing is to run an orchestra that is
> full-featured and then live code the score by firing off osc at it
> from the python shell.
>
> On Sun, Oct 12, 2008 at 1:02 PM, victor  wrote:
>> Of course with PD, this is even easier, because the mixing is done
>> by the host program. Sounds quite interesting.
>>
>> Victor
>> ----- Original Message ----- From: "Chuckk Hubbard"
>> 
>> To: 
>> Sent: Sunday, October 12, 2008 8:22 PM
>> Subject: [Csnd] Re: Re: Re: Re: Re: AW: Re: AW: Re: tkinter within csound
>>th
>>
>>> I was doing something like that with Pd and csoundapi~ once upon a
>>> time; I set it so a certain key started a new instance using the
>>> edited csd file, then faded that one in and the other out before
>>> stopping it.  Worked pretty well at the time, haven't done it lately.
>>>
>>> -Chuckk
>>>
>>> On 10/12/08, victor  wrote:
>>>>
>>>> The type of live-coding possible here is one of setting up
>>>>  a comprehensive orchestra and then controlling it with
>>>>  live-coded events.
>>>>
>>>>  Another possibility is to run two or more instances of
>>>>  Csound alongside and live-code instruments,  compile
>>>>  and run in these different instances (stopping them if
>>>>  you want to set a new instrument running). You'd need
>>>>  Jack on Linux to do this. On Windows, this cannot be
>>>>  done with ASIO (it is single-client).
>>>>
>>>>  This is because it is possible to unload instruments, but not
>>>>  possible to load them yet on a running instance.
>>>>
>>>>  However, if you have a good orchestra, there is no need
>>>>  to be creating instruments on the fly, as you can start them,
>>>>  interconnect, modify, etc all with RT events.
>>>>
>>>>  Victor
>>>>
>>>>  ----- Original Message ----- From: "Brian Redfern"
>>>> 
>>>>  To: 
>>>>  Sent: Sunday, October 12, 2008 5:46 AM
>>>>  Subject: [Csnd] Re: Re: Re: AW: Re: AW: Re: tkinter within csound
>>>>
>>>>
>>>>
>>>>
>>>> > Ultmately at the first step I'd like to learn to use csoundac from 
>>>> > the
>>>> > python shell to do live coding.
>>>> >
>>>> > I'm not sure whether I can do live coding with the csound api, or
>>>> > whether I need to use python to fire off midi or osc at a csd that is
>>>> > just a running csound process that takes score from midi or osc 
>>>> > input.
>>>> >
>>>> > On Sat, Oct 11, 2008 at 11:55 AM, Chuckk Hubbard
>>>> >  wrote:
>>>> >
>>>> > > Have you checked out Pure Data with Gem?  It was being used a lot 
>>>> > > for
>>>> > > such things for a few years.  I believe it uses a syntax/library > 
>>>> > >  >
>>>> > > based
>>>> > > on OpenGL, and you can create 3d objects, or 2d of course, and make
>>>> > > them interact with sound.  It's a whole new thing to learn, of > >
>>>> > > course,
>>>> > > but last I tried, Victor's csoundapi object worked great.  There's 
>>>> > > a
>>>> > > tilda after "csoundapi", but I'm using my wife's old European Mac 
>>>> > > and
>>>> > > I can't find the tilda...~ there it is
>>>> > > -Chuckk
>>>> > >
>>>> > > On 10/9/08, Brian Redfern  wrote:
>>>> > >
>>>> > > > Yeah what I'm looking at doing is putting a animated interface, 
>>>> > > > so
>>>> > > > > > > you
>>>> > > >  have music running and the animation is tied to the music and by
>>>> > > >  manipulating the animated objects you change the sound. Not a > 
>>>> > > >  >
>>>> > > > > widget
>>>> > > >  type interface.
>>>> > > >
>>>> > > >
>>>> > > >
>>>> > > >  Send bugs reports to this list.
>>>> > > >  To unsubscribe, send email sympa@lists.bath.ac.uk with body
>>>> "unsubscribe csound"
>>>> > > >
>>>> > > >
>>>> > >
>>>> > >
>>>> > > --
>>>> > > http://www.badmuthahubbard.com
>>>> > >
>>>> > >
>>>> > > Send bugs reports to this list.
>>>> > > To unsubscribe, send email sympa@lists.bath.ac.uk with body > >
>>>> > > "unsubscribe
>>>> csound"
>>>> > >
>>>> > >
>>>> >
>>>> >
>>>> > Send bugs reports to this list.
>>>> > To unsubscribe, send email sympa@lists.bath.ac.uk with body >
>>>> > "unsubscribe
>>>> csound"
>>>> >
>>>>
>>>>
>>>>
>>>>  Send bugs reports to this list.
>>>>  To unsubscribe, send email sympa@lists.bath.ac.uk with body 
>>>> "unsubscribe
>>>> csound"
>>>>
>>>
>>>
>>> --
>>> http://www.badmuthahubbard.com
>>>
>>>
>>> Send bugs reports to this list.
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>>> csound"
>>
>>
>>
>> Send bugs reports to this list.
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>>
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe 
> csound" 


Date2008-10-23 07:07
From"Chuckk Hubbard"
Subject[Csnd] Re: Re: Re: Re: Re: Re: Re: Re: Re: AW: Re: AW: Re: tkinter within csound
AttachmentsNone  

Date2008-10-23 08:01
From"Brian Redfern"
Subject[Csnd] Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: AW: Re: AW: Re: tkinter within csound
AttachmentsNone  

Date2008-10-23 10:06
From"Chuckk Hubbard"
Subject[Csnd] Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: AW: Re: AW: Re: tkinter within csound
AttachmentsNone  

Date2008-10-23 11:07
From"Oeyvind Brandtsegg"
Subject[Csnd] Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: AW: Re: AW: Re: tkinter within csound
AttachmentsNone  

Date2008-10-23 11:21
From"Chuckk Hubbard"
Subject[Csnd] Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: AW: Re: AW: Re: tkinter within csound
AttachmentsNone  

Date2008-10-24 19:19
FromAnthony Kozar
Subject[Csnd] Re: tkinter within csound
Chuckk,

I was (finally) able to get Rationale running last night and I would guess
that the playback problem is almost certainly the mouse movement callbacks.
(Unfortunately, the program crashes when I try to play a CSD though, so I
haven't observed the problem you described yet).

Many other GUI programs that use Csound have issues when the mouse is
clicked or held as the GUI event handler takes over completely and sound
stops.  (i.e. try using FLTK graphs with command-line Csound and clicking in
or dragging the graph window).  My own Csound 5 front end on OS 9 had the
same problem.  And these programs don't usually respond to "mouse moved"
events which are more numerous than "mouse down" events.

So, disabling the mouse callbacks would definitely help but there may be
other solutions.  Putting the Csound perf loop in another thread may help
too (although I see from the code that you might be doing that).  I can say
that I do not expect any difference in performance simply by using real-time
score events or OSC.  Using a separate Csound process of course would give
the best performance but then does not allow the same level of integration
with your host application.

Anthony Kozar
mailing-lists-1001 AT anthonykozar DOT net
http://anthonykozar.net/

Chuckk Hubbard wrote on 10/23/08 2:07 AM:

> I have been using Tkinter and the API in Python,
> assembling a complete csd when ready to audition and running Csound.
> It's worked well enough for me, but I get lots of static any time I
> move the cursor over the score, even though I start a separate thread
> for Csound. 

> My dilemma is whether to keep it as it is and disable mouse callbacks
> during playback, or to switch to an orchestra with no score and send
> it real-time events (instead of putting all notes into the csd to
> start), as you suggest here, or to send OSC events at an API-run
> orchestra, or even to start a separate Csound process instead of using
> the API.


Date2008-10-25 08:58
From"Chuckk Hubbard"
Subject[Csnd] Re: Re: tkinter within csound
AttachmentsNone