Csound Csound-dev Csound-tekno Search About

[Csnd] Lazy for posting before Googling, but there you are.

Date2014-03-14 23:51
FromTobiah
Subject[Csnd] Lazy for posting before Googling, but there you are.
What would be the approach to making Csound on a Windows box
run the Reaper (or other multi track recording software) transport?
I would want Csound, I guess, to send the right MIDI signals
along a shared internal software midi cable (which I have working
very nicely now) so that things that I record with a microphone
or MIDI into Reaper would always be in (hopefully exact sync) with
the sounds and other MIDI events coming from Csound.

Thanks, and LMGTFY posts are actually appreciated.  I would
apparently, after a long day prefer this to searching myself.

Really, I just wondered whether anyone does anything like this,
and how it works, how to do it, and whether Jack has ever been
used for something like this.

Thanks,

Tobiah

Date2014-03-15 05:57
FromTarmo Johannes
SubjectRe: [Csnd] Lazy for posting before Googling, but there you are.
Hi,

I don't know about MIDI events but you can communicate (start stop etc) with 
reaper via OSC messages - also receive messagegs from reaoer about its actions

see http://www.reaper.fm/sdk/osc/osc.php

What you need to do is describe a OSC configuration file in REAPER/OSC folder 
-  copy file  Deafult.ReaperOSC to something else and describe the lines, on 
which actions the OSC messages will be sent (or received if you want to drive 
reaper from outside). In my case just one line:

See the comments in Deafult.ReaperOSC for the commands and how they are 
defined.

Go to Prefernces->Control Surfaces->Add->OSC and select the profile (the file 
) you saved and the ports and addresses you want to use and ready you are.

best!
tarmo

On Friday 14 March 2014 16:51:40 Tobiah wrote:
> What would be the approach to making Csound on a Windows box
> run the Reaper (or other multi track recording software) transport?
> I would want Csound, I guess, to send the right MIDI signals
> along a shared internal software midi cable (which I have working
> very nicely now) so that things that I record with a microphone
> or MIDI into Reaper would always be in (hopefully exact sync) with
> the sounds and other MIDI events coming from Csound.
> 
> Thanks, and LMGTFY posts are actually appreciated.  I would
> apparently, after a long day prefer this to searching myself.
> 
> Really, I just wondered whether anyone does anything like this,
> and how it works, how to do it, and whether Jack has ever been
> used for something like this.
> 
> Thanks,
> 
> Tobiah
> 
> 
> Send bugs reports to the Sourceforge bug trackers
> csound6:
>             https://sourceforge.net/p/csound/tickets/
> csound5:
>             https://sourceforge.net/p/csound/bugs/
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"


Date2014-03-15 11:53
FromRory Walsh
SubjectRe: [Csnd] Lazy for posting before Googling, but there you are.

You could use Cabbage and remove the need for any kind of external routing. The transport bar in reaper can simply turn your Csound instrument on or off right there? 

On 15 Mar 2014 05:55, "Tarmo Johannes" <tarmo.johannes@otsakool.edu.ee> wrote:
Hi,

I don't know about MIDI events but you can communicate (start stop etc) with
reaper via OSC messages - also receive messagegs from reaoer about its actions

see http://www.reaper.fm/sdk/osc/osc.php

What you need to do is describe a OSC configuration file in REAPER/OSC folder
-  copy file  Deafult.ReaperOSC to something else and describe the lines, on
which actions the OSC messages will be sent (or received if you want to drive
reaper from outside). In my case just one line:

See the comments in Deafult.ReaperOSC for the commands and how they are
defined.

Go to Prefernces->Control Surfaces->Add->OSC and select the profile (the file
) you saved and the ports and addresses you want to use and ready you are.

best!
tarmo

On Friday 14 March 2014 16:51:40 Tobiah wrote:
> What would be the approach to making Csound on a Windows box
> run the Reaper (or other multi track recording software) transport?
> I would want Csound, I guess, to send the right MIDI signals
> along a shared internal software midi cable (which I have working
> very nicely now) so that things that I record with a microphone
> or MIDI into Reaper would always be in (hopefully exact sync) with
> the sounds and other MIDI events coming from Csound.
>
> Thanks, and LMGTFY posts are actually appreciated.  I would
> apparently, after a long day prefer this to searching myself.
>
> Really, I just wondered whether anyone does anything like this,
> and how it works, how to do it, and whether Jack has ever been
> used for something like this.
>
> Thanks,
>
> Tobiah
>
>
> Send bugs reports to the Sourceforge bug trackers
> csound6:
>             https://sourceforge.net/p/csound/tickets/
> csound5:
>             https://sourceforge.net/p/csound/bugs/
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"



Send bugs reports to the Sourceforge bug trackers
csound6:
            https://sourceforge.net/p/csound/tickets/
csound5:
            https://sourceforge.net/p/csound/bugs/
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"



Date2014-03-17 00:35
FromTobiah
SubjectRe: [Csnd] Lazy for posting before Googling, but there you are.
On 3/15/2014 4:53 AM, Rory Walsh wrote:
> You could use Cabbage and remove the need for any kind of external
> routing. The transport bar in reaper can simply turn your Csound
> instrument on or off right there?

It does seem that running csound as a VST plugin would be the best
route.  I tried to get CsoundVST running a while back and couldn't
quite get it to work.  How does Cabbage compare?  Is there a clear
choice as to which one I should spend my time on?

Thanks,

Tobiah


Date2014-03-19 09:20
FromRory Walsh
SubjectRe: [Csnd] Lazy for posting before Googling, but there you are.
Sorry for not getting back to you sooner Toby, I was away from my PC for a bit. I'm not sure if there is a clear choice, but if you wish to create you're own GUI interfaces then you should probably try Cabbage. Sure why not just try out the binaries for OSX or Windows for Cabbage and give it a go:

Rory.



On 17 March 2014 00:35, Tobiah <toby@tobiah.org> wrote:
On 3/15/2014 4:53 AM, Rory Walsh wrote:
You could use Cabbage and remove the need for any kind of external
routing. The transport bar in reaper can simply turn your Csound
instrument on or off right there?

It does seem that running csound as a VST plugin would be the best
route.  I tried to get CsoundVST running a while back and couldn't
quite get it to work.  How does Cabbage compare?  Is there a clear
choice as to which one I should spend my time on?


Thanks,

Tobiah



Send bugs reports to the Sourceforge bug trackers
csound6:
           https://sourceforge.net/p/csound/tickets/
csound5:
           https://sourceforge.net/p/csound/bugs/
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"




Date2014-03-23 20:59
FromTobiah
SubjectRe: [Csnd] Lazy for posting before Googling, but there you are.
On 3/19/2014 2:20 AM, Rory Walsh wrote:
> Sorry for not getting back to you sooner Toby, I was away from my PC for
> a bit. I'm not sure if there is a clear choice, but if you wish to
> create you're own GUI interfaces then you should probably try Cabbage.
> Sure why not just try out the binaries for OSX or Windows for Cabbage
> and give it a go:
> https://github.com/cabbageaudio/cabbage/releases
>
> Rory.

So I got Cabbage running with a simple instrument.  What I really want
to do is generate scores from python.  I entered a small score in my
.csd, and it played once when the plugin first loaded, but never again.
I really wanted the performance to begin each time I rewound and started
the transport.  Is that possible with Cabbage?  I was under the
impression that CsoundVST would do this, but after install, I don't
see any new plugins in reaper after clearing cache and rescanning.

Thanks,

Tobiah


> On 17 March 2014 00:35, Tobiah  > wrote:
>
>     On 3/15/2014 4:53 AM, Rory Walsh wrote:
>
>         You could use Cabbage and remove the need for any kind of external
>         routing. The transport bar in reaper can simply turn your Csound
>         instrument on or off right there?
>
>
>     It does seem that running csound as a VST plugin would be the best
>     route.  I tried to get CsoundVST running a while back and couldn't
>     quite get it to work.  How does Cabbage compare?  Is there a clear
>     choice as to which one I should spend my time on?
>
>
>     Thanks,
>
>     Tobiah
>
>
>
>     Send bugs reports to the Sourceforge bug trackers
>     csound6:
>     https://sourceforge.net/p/__csound/tickets/
>     
>     csound5:
>     https://sourceforge.net/p/__csound/bugs/
>     
>     Discussions of bugs and features can be posted here
>     To unsubscribe, send email sympa@lists.bath.ac.uk
>      with body "unsubscribe csound"
>
>
>



Send bugs reports to the Sourceforge bug trackers
csound6:
            https://sourceforge.net/p/csound/tickets/
csound5:
            https://sourceforge.net/p/csound/bugs/
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"


Date2014-03-23 21:16
FromOeyvind Brandtsegg
SubjectRe: [Csnd] Lazy for posting before Googling, but there you are.

Just a quick idea,  you could wrap the python generated score as a multi line string with  event  statements.  Put this in an instrument and trigger the instrument on Reaper play.  I think Cabbage can read play/stop commands from the host (yes Rory?) and these could be used to trigger the instrument.
Best
Oeyvind

23. mars 2014 22:00 skrev "Tobiah" <toby@tobiah.org> følgende:
On 3/19/2014 2:20 AM, Rory Walsh wrote:
Sorry for not getting back to you sooner Toby, I was away from my PC for
a bit. I'm not sure if there is a clear choice, but if you wish to
create you're own GUI interfaces then you should probably try Cabbage.
Sure why not just try out the binaries for OSX or Windows for Cabbage
and give it a go:
https://github.com/cabbageaudio/cabbage/releases

Rory.

So I got Cabbage running with a simple instrument.  What I really want
to do is generate scores from python.  I entered a small score in my
.csd, and it played once when the plugin first loaded, but never again.
I really wanted the performance to begin each time I rewound and started
the transport.  Is that possible with Cabbage?  I was under the
impression that CsoundVST would do this, but after install, I don't
see any new plugins in reaper after clearing cache and rescanning.

Thanks,

Tobiah


On 17 March 2014 00:35, Tobiah <toby@tobiah.org
<mailto:toby@tobiah.org>> wrote:

    On 3/15/2014 4:53 AM, Rory Walsh wrote:

        You could use Cabbage and remove the need for any kind of external
        routing. The transport bar in reaper can simply turn your Csound
        instrument on or off right there?


    It does seem that running csound as a VST plugin would be the best
    route.  I tried to get CsoundVST running a while back and couldn't
    quite get it to work.  How does Cabbage compare?  Is there a clear
    choice as to which one I should spend my time on?


    Thanks,

    Tobiah



    Send bugs reports to the Sourceforge bug trackers
    csound6:
    https://sourceforge.net/p/__csound/tickets/
    <https://sourceforge.net/p/csound/tickets/>
    csound5:
    https://sourceforge.net/p/__csound/bugs/
    <https://sourceforge.net/p/csound/bugs/>
    Discussions of bugs and features can be posted here
    To unsubscribe, send email sympa@lists.bath.ac.uk
    <mailto:sympa@lists.bath.ac.uk> with body "unsubscribe csound"






Send bugs reports to the Sourceforge bug trackers
csound6:
           https://sourceforge.net/p/csound/tickets/
csound5:
           https://sourceforge.net/p/csound/bugs/
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"



Date2014-03-23 21:32
FromRory Walsh
SubjectRe: [Csnd] Lazy for posting before Googling, but there you are.
Yeah. It can read the host BPM, whether it's playing/recording, the
current time in seconds and the current position in pulse-per-quarter
note. It would be as easy as:

kIsPlaying chnget "IS_PLAYING"
if(changed(kIsPlaying)==1) then
 if kIsPlaying==1 then
   event.....start note instrument
 else
   turnoff2....kill note instrument
 endif
endif


On 23 March 2014 21:16, Oeyvind Brandtsegg  wrote:
> Just a quick idea,  you could wrap the python generated score as a multi
> line string with  event  statements.  Put this in an instrument and trigger
> the instrument on Reaper play.  I think Cabbage can read play/stop commands
> from the host (yes Rory?) and these could be used to trigger the instrument.
> Best
> Oeyvind
>
> 23. mars 2014 22:00 skrev "Tobiah"  følgende:
>>
>> On 3/19/2014 2:20 AM, Rory Walsh wrote:
>>>
>>> Sorry for not getting back to you sooner Toby, I was away from my PC for
>>> a bit. I'm not sure if there is a clear choice, but if you wish to
>>> create you're own GUI interfaces then you should probably try Cabbage.
>>> Sure why not just try out the binaries for OSX or Windows for Cabbage
>>> and give it a go:
>>> https://github.com/cabbageaudio/cabbage/releases
>>>
>>> Rory.
>>
>>
>> So I got Cabbage running with a simple instrument.  What I really want
>> to do is generate scores from python.  I entered a small score in my
>> .csd, and it played once when the plugin first loaded, but never again.
>> I really wanted the performance to begin each time I rewound and started
>> the transport.  Is that possible with Cabbage?  I was under the
>> impression that CsoundVST would do this, but after install, I don't
>> see any new plugins in reaper after clearing cache and rescanning.
>>
>> Thanks,
>>
>> Tobiah
>>
>>
>>> On 17 March 2014 00:35, Tobiah >> > wrote:
>>>
>>>     On 3/15/2014 4:53 AM, Rory Walsh wrote:
>>>
>>>         You could use Cabbage and remove the need for any kind of
>>> external
>>>         routing. The transport bar in reaper can simply turn your Csound
>>>         instrument on or off right there?
>>>
>>>
>>>     It does seem that running csound as a VST plugin would be the best
>>>     route.  I tried to get CsoundVST running a while back and couldn't
>>>     quite get it to work.  How does Cabbage compare?  Is there a clear
>>>     choice as to which one I should spend my time on?
>>>
>>>
>>>     Thanks,
>>>
>>>     Tobiah
>>>
>>>
>>>
>>>     Send bugs reports to the Sourceforge bug trackers
>>>     csound6:
>>>     https://sourceforge.net/p/__csound/tickets/
>>>     
>>>     csound5:
>>>     https://sourceforge.net/p/__csound/bugs/
>>>     
>>>     Discussions of bugs and features can be posted here
>>>     To unsubscribe, send email sympa@lists.bath.ac.uk
>>>      with body "unsubscribe csound"
>>>
>>>
>>>
>>
>>
>>
>> Send bugs reports to the Sourceforge bug trackers
>> csound6:
>>            https://sourceforge.net/p/csound/tickets/
>> csound5:
>>
>>            https://sourceforge.net/p/csound/bugs/
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>>
>>
>


Send bugs reports to the Sourceforge bug trackers
csound6:
            https://sourceforge.net/p/csound/tickets/
csound5:
            https://sourceforge.net/p/csound/bugs/
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"



Date2014-03-23 23:19
FromMichael Gogins
SubjectRe: [Csnd] Lazy for posting before Googling, but there you are.
I am the developer of CsoundVST. I too have a problem with Reaper not seeing CsoundVST, and I tried many times. I think there is some conflict between Reaper's build of PortAudio and Csound's build of PortAudio.

I am planning a LuaJIT VST plugin. This will implement both the VST SDK opcodes, and the VST midi processing opcodes. Then from your Lua code, you could run Csound or perform algorithmic composition, or call any other libraries for event or audio processing using LuaJIT's foreign function interface (FFI).

This plugin will come with a code editor and save code as patches, but it will not have its own widget library. You could probably work one up with LuaJIT and some GUI library though.

LuaJIT is plenty fast enough to do audio synthesis and processing in real time, all by itself.


-----------------------------------------------------
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Sun, Mar 23, 2014 at 4:59 PM, Tobiah <toby@tobiah.org> wrote:
On 3/19/2014 2:20 AM, Rory Walsh wrote:
Sorry for not getting back to you sooner Toby, I was away from my PC for
a bit. I'm not sure if there is a clear choice, but if you wish to
create you're own GUI interfaces then you should probably try Cabbage.
Sure why not just try out the binaries for OSX or Windows for Cabbage
and give it a go:
https://github.com/cabbageaudio/cabbage/releases

Rory.

So I got Cabbage running with a simple instrument.  What I really want
to do is generate scores from python.  I entered a small score in my
.csd, and it played once when the plugin first loaded, but never again.
I really wanted the performance to begin each time I rewound and started
the transport.  Is that possible with Cabbage?  I was under the
impression that CsoundVST would do this, but after install, I don't
see any new plugins in reaper after clearing cache and rescanning.

Thanks,

Tobiah


On 17 March 2014 00:35, Tobiah <toby@tobiah.org
<mailto:toby@tobiah.org>> wrote:

    On 3/15/2014 4:53 AM, Rory Walsh wrote:

        You could use Cabbage and remove the need for any kind of external
        routing. The transport bar in reaper can simply turn your Csound
        instrument on or off right there?


    It does seem that running csound as a VST plugin would be the best
    route.  I tried to get CsoundVST running a while back and couldn't
    quite get it to work.  How does Cabbage compare?  Is there a clear
    choice as to which one I should spend my time on?


    Thanks,

    Tobiah



    Send bugs reports to the Sourceforge bug trackers
    csound6:
    https://sourceforge.net/p/__csound/tickets/
    <https://sourceforge.net/p/csound/tickets/>
    csound5:
    https://sourceforge.net/p/__csound/bugs/

    <https://sourceforge.net/p/csound/bugs/>
    Discussions of bugs and features can be posted here
    To unsubscribe, send email sympa@lists.bath.ac.uk
    <mailto:sympa@lists.bath.ac.uk> with body "unsubscribe csound"






Send bugs reports to the Sourceforge bug trackers
csound6:
           https://sourceforge.net/p/csound/tickets/
csound5:
           https://sourceforge.net/p/csound/bugs/
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"




Date2014-03-24 01:27
FromTobiah
SubjectRe: [Csnd] Lazy for posting before Googling, but there you are.
On 3/23/2014 2:32 PM, Rory Walsh wrote:
> Yeah. It can read the host BPM, whether it's playing/recording, the
> current time in seconds and the current position in pulse-per-quarter
> note. It would be as easy as:
>
> kIsPlaying chnget "IS_PLAYING"
> if(changed(kIsPlaying)==1) then
>   if kIsPlaying==1 then
>     event.....start note instrument
>   else
>     turnoff2....kill note instrument
>   endif
> endif

I will move to the Cabbage forum, but in response
to the above, which seems to make one event that
lasts until the transport is stopped, how would
I rewind the score along with the transport, then
play the score from the beginning each time
the transport starts?

I don't understand VST very well.  All I really
want is for csound to synch it's performance with
Reaper, so I can do regular multitrack stuff along
side csound in Reaper.  It seems like a fantastic way of
combining programmatic and human performances.

Tobiah




Send bugs reports to the Sourceforge bug trackers
csound6:
            https://sourceforge.net/p/csound/tickets/
csound5:
            https://sourceforge.net/p/csound/bugs/
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"


Date2014-03-24 16:26
FromOeyvind Brandtsegg
SubjectRe: [Csnd] Lazy for posting before Googling, but there you are.
The instrument (that you start here) contains a sequence of event
statements, and in the simplest case it will start from the beginning
each time you press play in Reaper.
So, the "score" is defined as a sequence in an instrument. You could
do more elaborate things for example by sending score rewind or score
advance statements (then keeping the score in the score section of the
csd) , but I have less direct experience with that. Also you could
build your own timed event queue in Python, polling the queue from
Csound using e.g. pycalln opcodes, then resetting the time offset in
the queue with the current time pointer you get from Reaper. And/or
look at how these things are done in Blue and somehow copy that.
Sorry to be brief, just throwing in some ideas. I could give more
detailed help on the Python timed queue thing if you want to go that
route, but the Blue approach might be more elegant.
best
Oeyvind

2014-03-24 2:27 GMT+01:00 Tobiah :
> On 3/23/2014 2:32 PM, Rory Walsh wrote:
>>
>> Yeah. It can read the host BPM, whether it's playing/recording, the
>> current time in seconds and the current position in pulse-per-quarter
>> note. It would be as easy as:
>>
>> kIsPlaying chnget "IS_PLAYING"
>> if(changed(kIsPlaying)==1) then
>>   if kIsPlaying==1 then
>>     event.....start note instrument
>>   else
>>     turnoff2....kill note instrument
>>   endif
>> endif
>
>
> I will move to the Cabbage forum, but in response
> to the above, which seems to make one event that
> lasts until the transport is stopped, how would
> I rewind the score along with the transport, then
> play the score from the beginning each time
> the transport starts?
>
> I don't understand VST very well.  All I really
> want is for csound to synch it's performance with
> Reaper, so I can do regular multitrack stuff along
> side csound in Reaper.  It seems like a fantastic way of
> combining programmatic and human performances.
>
>
> Tobiah
>
>
>
>
> Send bugs reports to the Sourceforge bug trackers
> csound6:
>            https://sourceforge.net/p/csound/tickets/
> csound5:
>            https://sourceforge.net/p/csound/bugs/
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
>
>


Date2014-03-26 00:39
FromTobiah
SubjectRe: [Csnd] Lazy for posting before Googling, but there you are.
On 3/23/2014 4:19 PM, Michael Gogins wrote:
> I am the developer of CsoundVST. I too have a problem with Reaper not
> seeing CsoundVST, and I tried many times. I think there is some conflict
> between Reaper's build of PortAudio and Csound's build of PortAudio.

That is a shame.  Reaper is such a nicely made environment.  I'd love
to be able to use CsoundVST in it.  Shall I take it by your tone that
you are not interested in spending any more of your resources in order
to make CsoundVST work with Reaper?  I know quite a bit about Linux,
and how to make things happen there, but I'm really ignorant as to the
ways of Windows.  If you were going to track this down, from what angle
would you approach?  Are there tools that would track the loading of
the .dll and tell us what's wrong?

Thanks,

Toby



Send bugs reports to the Sourceforge bug trackers
csound6:
            https://sourceforge.net/p/csound/tickets/
csound5:
            https://sourceforge.net/p/csound/bugs/
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"