Csound Csound-dev Csound-tekno Search About

Re: [Cs-dev] materials needed for Cs5 tests

Date2005-02-25 21:20
From"gogins@pipeline.com"
SubjectRe: [Cs-dev] materials needed for Cs5 tests
Mixing C++ and Python is reasonably straightforward. Either SWIG or
boost::python can do it with support for callbacks from C++ into Python or
deriving Python classes from C++ base classes.

If you used PortMidi to write a C++ class for MIDI I/O with a virtual
function that gets called with MIDI channel messages, then you could have a
Python wrapper for that with SWIG with very little work, using SWIG
"directors".

Original Message:
-----------------
From: Iain Duncan iainduncan@telus.net
Date: Fri, 25 Feb 2005 12:46:36 -0800
To: csound-devel@lists.sourceforge.net
Subject: Re: [Cs-dev] materials needed for Cs5 tests


Cool, thanks for the explanation.

gogins@pipeline.com wrote:
> There is no need for a non-GUI version of CsoundVST, since you can use
> Python and "import CsoundVST" to write whatever non-GUI (or GUI) programs
> you want.
> 
> Similarly it makes no sense to place this functionality within the Csound
> console program. It already has the Python opcodes, which can be used to
do
> what you want already, if a little clumsily and indirectly. 
> 
> And then, to act as a regular Python extension module in the same way as
> CsoundVST, Csound would need to be a shared library, which is what
> _CsoundVST.so or .dll already is.
> 
> As I said before, if it turns out that latency and stability is
sufficient,
> it makes sense to write projects such as your sequencer as Python programs
> that import CsoundVST. The same thing could be done in Java, I think.
Other
> wrappers could be created using SWIG for Perl, Scheme, LISP, Ocaml, etc.

Right, but this is where the poor midi i/o of python is the hanger. I'm 
currently thinking that maybe a combined C++/python/embedded csound 
approach is the way to go, but I need to learn a lot more about mixing 
C++ and python to do that. Perhaps that would be a cool example down the 
road, something mixing wxController with C++ portmidi i/o.

thanks again
iain



> Original Message:
> -----------------
> From: Iain Duncan iainduncan@telus.net
> Date: Fri, 25 Feb 2005 12:00:52 -0800
> To: csound-devel@lists.sourceforge.net
> Subject: Re: [Cs-dev] materials needed for Cs5 tests
> 
> 
> 
>>CsoundVST despite the unfortunate and misleading name is not mainly about
>>VST, it is mainly about that fast working cycle and being able to use
>>Python in it.
> 
> 
> Will the "Python in it" likely be added to regular csound5? And if not, 
> have you thought of making a non gui console callable version of 
> CsoundVST? Also, I am overdue for looking into the python stuff, can you 
> do full featured file i/o using the python extensions? That was really 
> the biggest pain I found in making my gig rig, having to save files as 
> ftables all the time. I imagine I will do all that from C++ or Python 
> embedding csound, but maybe there is an easier option in the meantime.
> 
> thanks
> iain
> 
> 
>>Original Message:
>>-----------------
>>From: Dave Phillips dlphilp@bright.net
>>Date: Thu, 24 Feb 2005 11:11:50 -0500
>>To: csound-devel@lists.sourceforge.net
>>Subject: Re: [Cs-dev] materials needed for Cs5 tests
>>
>>
>>Hi Michael:
>>
>>  I just discovered your Python scripts in the examples directory. I've 
>>already begun a brief intro to using CsoundVST as a standalone app, I 
>>thought I'd combine the Python scripting with that intro. Unfortunately 
>>I'm not having much luck. Running Koch.py resulted in "opcode missing" 
>>errors, some apparently minorrenaming is required. I'm not sure I 
>>understand what's supposed to happen with the Strange Attractor script, 
>>but it crashed CsoundVST.
>>
>>  My SoundFont stuff is *not* based on the Fluid opcodes, so yes, I'd 
>>welcome an example.
>>
>>  I'm very interested in how you use the Loris stuff. I'm also willing 
>>to try running the VST stuff under Linux and the libfst system. Could be 
>>interesting... weird but interesting...
>>
>>  Thanks again, Michael. Btw, CsoundVST is a neat working environment. I 
>>open my file, do some edits, hit Perform, edit some more, hit Perform, 
>>edit some more, and so on, in a very fast cycle.
>>
>>Best,
>>
>>dp
>>
>>
>>gogins@pipeline.com wrote:
>>
>>
>>
>>>Topics that should also be covered include:
>>>
>>>1. Loris analysis in Python / resynthesis using Loris opcodes.
>>>2. CsoundVST with Python algorithmic composition (I will contribute an
>>>example).
>>>3. Using CsoundVST as a Python extension module (I will contribute an
>>>example).
>>>4. Does your SoundFont example use the Fluidsynth-based opcodes? If not,
I
>>>can contribute an example.
>>>5. VST plugin opcodes.
>>>
>>>Original Message:
>>>-----------------
>>>From: Dave Phillips dlphilp@bright.net
>>>Date: Thu, 24 Feb 2005 06:53:36 -0500
>>>To: csound-devel@lists.sourceforge.net
>>>Subject: [Cs-dev] materials needed for Cs5 tests
>>>
>>>
>>>Greetings:
>>>
>>>I've spent the last few days working on organizing a set of tests and 
>>>examples for newcomers to Cs5. I've taken this list of topics from Dr 
>>>B's recent message:
>>>
>>>Real-time audio I/O *
>>>Real-time MIDI I/O *
>>>Write to File *
>>>
>>>Plugin opcodes
>>>UDOs
>>>Include files *
>>>Multi-Channel Output *
>>>InterApplication Communication
>>>Python Driven Orcs
>>>Changing buffer sizes
>>>Analysis and Other Utilities
>>>JACK *
>>>FTLK *
>>>SoundFonts *
>>>
>>>Items with * are already done. I can deal with the utilities and buffer 
>>>size stuff, but I'm soliciting for contributions to the plugins, UDOs, 
>>>IPC, and Python topics. Those are all outside my domains of interest and 
>>>I have little or no useful knowledge there.
>>>
>>>What other topics ought to be included for this collection ?
>>>
>>>I'm looking for brief demonstrations of the topics, not full-bore 
>>>highly-detailed presentations. I need simple CSD or orc/sco files that 
>>>clearly show how the topic is implemented in Cs5. For example, I don't 
>>>want a technical explanation of the plugin API, I want an example that 
>>>shows a beginner how to install and test a 3rd-party Csound plugin. The 
>>>emphasis in these examples is on use, not theory. Explanations abound, 
>>>useful examples do not.
>>>
>>>TIA for any assistance you can give.
>>>
>>>Best,
>>>
>>>dp
>>>
>>>
>>>
>>>
>>>-------------------------------------------------------
>>>SF email is sponsored by - The IT Product Guide
>>>Read honest & candid reviews on hundreds of IT Products from real users.
>>>Discover which products truly live up to the hype. Start reading now.
>>>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>>>_______________________________________________
>>>Csound-devel mailing list
>>>Csound-devel@lists.sourceforge.net
>>>https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>>--------------------------------------------------------------------
>>>mail2web - Check your email from the web at
>>>http://mail2web.com/ .
>>>
>>>
>>>
>>>
>>>-------------------------------------------------------
>>>SF email is sponsored by - The IT Product Guide
>>>Read honest & candid reviews on hundreds of IT Products from real users.
>>>Discover which products truly live up to the hype. Start reading now.
>>>http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
>>>_______________________________________________
>>>Csound-devel mailing list
>>>Csound-devel@lists.sourceforge.net
>>>https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>>
>>>
>>
>>
>>
>>
>>
>>-------------------------------------------------------
>>SF email is sponsored by - The IT Product Guide
>>Read honest & candid reviews on hundreds of IT Products from real users.
>>Discover which products truly live up to the hype. Start reading now.
>>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>>_______________________________________________
>>Csound-devel mailing list
>>Csound-devel@lists.sourceforge.net
>>https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>>--------------------------------------------------------------------
>>mail2web - Check your email from the web at
>>http://mail2web.com/ .
>>
>>
>>
>>
>>-------------------------------------------------------
>>SF email is sponsored by - The IT Product Guide
>>Read honest & candid reviews on hundreds of IT Products from real users.
>>Discover which products truly live up to the hype. Start reading now.
>>http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
>>_______________________________________________
>>Csound-devel mailing list
>>Csound-devel@lists.sourceforge.net
>>https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
> 
> 
> 
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> --------------------------------------------------------------------
> mail2web - Check your email from the web at
> http://mail2web.com/ .
> 
> 
> 
> 
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel

--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-02-25 21:39
FromIain Duncan
SubjectRe: [Cs-dev] materials needed for Cs5 tests
> Mixing C++ and Python is reasonably straightforward. Either SWIG or
> boost::python can do it with support for callbacks from C++ into Python or
> deriving Python classes from C++ base classes.
> 
> If you used PortMidi to write a C++ class for MIDI I/O with a virtual
> function that gets called with MIDI channel messages, then you could have a
> Python wrapper for that with SWIG with very little work, using SWIG
> "directors".

That's exactly what I was thinking. Except that given my total lack of 
experience and busy schedule of other coding before the gigs, I dunno 
about "very little work." ;) Anyone else care to do this? It sure would 
be a good addition. ( ccing to main list in case someone on there would 
like to give it a shot. )

thanks
iain


> 
> Original Message:
> -----------------
> From: Iain Duncan iainduncan@telus.net
> Date: Fri, 25 Feb 2005 12:46:36 -0800
> To: csound-devel@lists.sourceforge.net
> Subject: Re: [Cs-dev] materials needed for Cs5 tests
> 
> 
> Cool, thanks for the explanation.
> 
> gogins@pipeline.com wrote:
> 
>>There is no need for a non-GUI version of CsoundVST, since you can use
>>Python and "import CsoundVST" to write whatever non-GUI (or GUI) programs
>>you want.
>>
>>Similarly it makes no sense to place this functionality within the Csound
>>console program. It already has the Python opcodes, which can be used to
> 
> do
> 
>>what you want already, if a little clumsily and indirectly. 
>>
>>And then, to act as a regular Python extension module in the same way as
>>CsoundVST, Csound would need to be a shared library, which is what
>>_CsoundVST.so or .dll already is.
>>
>>As I said before, if it turns out that latency and stability is
> 
> sufficient,
> 
>>it makes sense to write projects such as your sequencer as Python programs
>>that import CsoundVST. The same thing could be done in Java, I think.
> 
> Other
> 
>>wrappers could be created using SWIG for Perl, Scheme, LISP, Ocaml, etc.
> 
> 
> Right, but this is where the poor midi i/o of python is the hanger. I'm 
> currently thinking that maybe a combined C++/python/embedded csound 
> approach is the way to go, but I need to learn a lot more about mixing 
> C++ and python to do that. Perhaps that would be a cool example down the 
> road, something mixing wxController with C++ portmidi i/o.
> 
> thanks again
> iain
> 
> 
> 
> 
>>Original Message:
>>-----------------
>>From: Iain Duncan iainduncan@telus.net
>>Date: Fri, 25 Feb 2005 12:00:52 -0800
>>To: csound-devel@lists.sourceforge.net
>>Subject: Re: [Cs-dev] materials needed for Cs5 tests
>>
>>
>>
>>
>>>CsoundVST despite the unfortunate and misleading name is not mainly about
>>>VST, it is mainly about that fast working cycle and being able to use
>>>Python in it.
>>
>>
>>Will the "Python in it" likely be added to regular csound5? And if not, 
>>have you thought of making a non gui console callable version of 
>>CsoundVST? Also, I am overdue for looking into the python stuff, can you 
>>do full featured file i/o using the python extensions? That was really 
>>the biggest pain I found in making my gig rig, having to save files as 
>>ftables all the time. I imagine I will do all that from C++ or Python 
>>embedding csound, but maybe there is an easier option in the meantime.
>>
>>thanks
>>iain
>>
>>
>>
>>>Original Message:
>>>-----------------
>>>From: Dave Phillips dlphilp@bright.net
>>>Date: Thu, 24 Feb 2005 11:11:50 -0500
>>>To: csound-devel@lists.sourceforge.net
>>>Subject: Re: [Cs-dev] materials needed for Cs5 tests
>>>
>>>
>>>Hi Michael:
>>>
>>> I just discovered your Python scripts in the examples directory. I've 
>>>already begun a brief intro to using CsoundVST as a standalone app, I 
>>>thought I'd combine the Python scripting with that intro. Unfortunately 
>>>I'm not having much luck. Running Koch.py resulted in "opcode missing" 
>>>errors, some apparently minorrenaming is required. I'm not sure I 
>>>understand what's supposed to happen with the Strange Attractor script, 
>>>but it crashed CsoundVST.
>>>
>>> My SoundFont stuff is *not* based on the Fluid opcodes, so yes, I'd 
>>>welcome an example.
>>>
>>> I'm very interested in how you use the Loris stuff. I'm also willing 
>>>to try running the VST stuff under Linux and the libfst system. Could be 
>>>interesting... weird but interesting...
>>>
>>> Thanks again, Michael. Btw, CsoundVST is a neat working environment. I 
>>>open my file, do some edits, hit Perform, edit some more, hit Perform, 
>>>edit some more, and so on, in a very fast cycle.
>>>
>>>Best,
>>>
>>>dp
>>>
>>>
>>>gogins@pipeline.com wrote:
>>>
>>>
>>>
>>>
>>>>Topics that should also be covered include:
>>>>
>>>>1. Loris analysis in Python / resynthesis using Loris opcodes.
>>>>2. CsoundVST with Python algorithmic composition (I will contribute an
>>>>example).
>>>>3. Using CsoundVST as a Python extension module (I will contribute an
>>>>example).
>>>>4. Does your SoundFont example use the Fluidsynth-based opcodes? If not,
> 
> I
> 
>>>>can contribute an example.
>>>>5. VST plugin opcodes.
>>>>
>>>>Original Message:
>>>>-----------------
>>>>From: Dave Phillips dlphilp@bright.net
>>>>Date: Thu, 24 Feb 2005 06:53:36 -0500
>>>>To: csound-devel@lists.sourceforge.net
>>>>Subject: [Cs-dev] materials needed for Cs5 tests
>>>>
>>>>
>>>>Greetings:
>>>>
>>>>I've spent the last few days working on organizing a set of tests and 
>>>>examples for newcomers to Cs5. I've taken this list of topics from Dr 
>>>>B's recent message:
>>>>
>>>>Real-time audio I/O *
>>>>Real-time MIDI I/O *
>>>>Write to File *
>>>>
>>>>Plugin opcodes
>>>>UDOs
>>>>Include files *
>>>>Multi-Channel Output *
>>>>InterApplication Communication
>>>>Python Driven Orcs
>>>>Changing buffer sizes
>>>>Analysis and Other Utilities
>>>>JACK *
>>>>FTLK *
>>>>SoundFonts *
>>>>
>>>>Items with * are already done. I can deal with the utilities and buffer 
>>>>size stuff, but I'm soliciting for contributions to the plugins, UDOs, 
>>>>IPC, and Python topics. Those are all outside my domains of interest and 
>>>>I have little or no useful knowledge there.
>>>>
>>>>What other topics ought to be included for this collection ?
>>>>
>>>>I'm looking for brief demonstrations of the topics, not full-bore 
>>>>highly-detailed presentations. I need simple CSD or orc/sco files that 
>>>>clearly show how the topic is implemented in Cs5. For example, I don't 
>>>>want a technical explanation of the plugin API, I want an example that 
>>>>shows a beginner how to install and test a 3rd-party Csound plugin. The 
>>>>emphasis in these examples is on use, not theory. Explanations abound, 
>>>>useful examples do not.
>>>>
>>>>TIA for any assistance you can give.
>>>>
>>>>Best,
>>>>
>>>>dp
>>>>
>>>>
>>>>
>>>>
>>>>-------------------------------------------------------
>>>>SF email is sponsored by - The IT Product Guide
>>>>Read honest & candid reviews on hundreds of IT Products from real users.
>>>>Discover which products truly live up to the hype. Start reading now.
>>>>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>>>>_______________________________________________
>>>>Csound-devel mailing list
>>>>Csound-devel@lists.sourceforge.net
>>>>https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>>--------------------------------------------------------------------
>>>>mail2web - Check your email from the web at
>>>>http://mail2web.com/ .
>>>>
>>>>
>>>>
>>>>
>>>>-------------------------------------------------------
>>>>SF email is sponsored by - The IT Product Guide
>>>>Read honest & candid reviews on hundreds of IT Products from real users.
>>>>Discover which products truly live up to the hype. Start reading now.
>>>>http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
>>>>_______________________________________________
>>>>Csound-devel mailing list
>>>>Csound-devel@lists.sourceforge.net
>>>>https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>>
>>>
>>>-------------------------------------------------------
>>>SF email is sponsored by - The IT Product Guide
>>>Read honest & candid reviews on hundreds of IT Products from real users.
>>>Discover which products truly live up to the hype. Start reading now.
>>>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>>>_______________________________________________
>>>Csound-devel mailing list
>>>Csound-devel@lists.sourceforge.net
>>>https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>>--------------------------------------------------------------------
>>>mail2web - Check your email from the web at
>>>http://mail2web.com/ .
>>>
>>>
>>>
>>>
>>>-------------------------------------------------------
>>>SF email is sponsored by - The IT Product Guide
>>>Read honest & candid reviews on hundreds of IT Products from real users.
>>>Discover which products truly live up to the hype. Start reading now.
>>>http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
>>>_______________________________________________
>>>Csound-devel mailing list
>>>Csound-devel@lists.sourceforge.net
>>>https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>
>>
>>
>>-------------------------------------------------------
>>SF email is sponsored by - The IT Product Guide
>>Read honest & candid reviews on hundreds of IT Products from real users.
>>Discover which products truly live up to the hype. Start reading now.
>>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>>_______________________________________________
>>Csound-devel mailing list
>>Csound-devel@lists.sourceforge.net
>>https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>>--------------------------------------------------------------------
>>mail2web - Check your email from the web at
>>http://mail2web.com/ .
>>
>>
>>
>>
>>-------------------------------------------------------
>>SF email is sponsored by - The IT Product Guide
>>Read honest & candid reviews on hundreds of IT Products from real users.
>>Discover which products truly live up to the hype. Start reading now.
>>http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
>>_______________________________________________
>>Csound-devel mailing list
>>Csound-devel@lists.sourceforge.net
>>https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
> 
> 
> 
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> --------------------------------------------------------------------
> mail2web - Check your email from the web at
> http://mail2web.com/ .
> 
> 
> 
> 
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net