Csound Csound-dev Csound-tekno Search About

[Csnd] Still controlling Kontakt

Date2012-05-08 20:30
FromToby
Subject[Csnd] Still controlling Kontakt
I got the VST functions to work with Kontakt, but it can
be very time consuming to load large sets of samples on 
every run, which seems to be necessary.  Is there a good
way to get MIDI from csound into a running Kontakt?  I 
wouldn't be able to process the audio, but what I really
want is to be able to script scores for Kontakt.  I'd
really just be using csound for the event timing then,
I suppose.  Other suggestions besides csound for this? 

Thanks,

Tobiah

Date2012-05-08 20:31
FromMichael Gogins
SubjectRe: [Csnd] Still controlling Kontakt
There are various MIDI libraries for various languages. What language
would you prefer to write your code in?

Regards,
Mike

On Tue, May 8, 2012 at 3:30 PM, Toby  wrote:
> I got the VST functions to work with Kontakt, but it can
> be very time consuming to load large sets of samples on
> every run, which seems to be necessary.  Is there a good
> way to get MIDI from csound into a running Kontakt?  I
> wouldn't be able to process the audio, but what I really
> want is to be able to script scores for Kontakt.  I'd
> really just be using csound for the event timing then,
> I suppose.  Other suggestions besides csound for this?
>
> Thanks,
>
> Tobiah
>
>
> Send bugs reports to the Sourceforge bug tracker
>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>



-- 
Michael Gogins
Irreducible Productions
http://www.michael-gogins.com
Michael dot Gogins at gmail dot com


Date2012-05-08 21:28
FromToby
SubjectRe: [Csnd] Still controlling Kontakt
On 05/08/2012 12:31 PM, Michael Gogins wrote:
> There are various MIDI libraries for various languages. What language
> would you prefer to write your code in?

Python is my language of choice.

Toby

Date2012-05-08 21:54
FromMichael Gogins
SubjectRe: [Csnd] Still controlling Kontakt
Go to http://wiki.python.org/moin/PythonInMusic. Go down to the
section on MIDI. You have many choices. If you are an expert Python
programmer, use ctypes to talk directly to the operating system's MIDI
facilities (winmm on Windows, alsa on Linux). If you are not an expert
or don't want to spend the several days or so that would take, try the
canned ones. Go to their Web sites and see which ones seem to be (a)
up to date and (b) actually used.

Good luck,
Mike


On Tue, May 8, 2012 at 4:28 PM, Toby  wrote:
> On 05/08/2012 12:31 PM, Michael Gogins wrote:
>> There are various MIDI libraries for various languages. What language
>> would you prefer to write your code in?
>
> Python is my language of choice.
>
> Toby
>
>
> Send bugs reports to the Sourceforge bug tracker
>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>



-- 
Michael Gogins
Irreducible Productions
http://www.michael-gogins.com
Michael dot Gogins at gmail dot com


Date2012-05-08 22:11
FromToby
SubjectRe: [Csnd] Still controlling Kontakt
On 05/08/2012 01:54 PM, Michael Gogins wrote:
> Go to http://wiki.python.org/moin/PythonInMusic. Go down to the
> section on MIDI. You have many choices. If you are an expert Python
> programmer, use ctypes to talk directly to the operating system's MIDI
> facilities (winmm on Windows, alsa on Linux). If you are not an expert
> or don't want to spend the several days or so that would take, try the
> canned ones. Go to their Web sites and see which ones seem to be (a)
> up to date and (b) actually used.

But then timing the delivery of the events would be my burden, right?
Would there be some way of having csound trigger the midi events?



Date2012-05-08 22:49
FromRory Walsh
SubjectRe: [Csnd] Still controlling Kontakt
You could also just send MIDI events to Kontakt, or any other host
using some kind of MIDI routing software. On windows you can use midi
yoke. On OSX it's easier. On Linux I think Jack can be used.

Date2012-05-08 23:02
FromSteven Yi
SubjectRe: [Csnd] Still controlling Kontakt
You could use Csound's midiout opcode:

http://csounds.com/manual/html/midiout.html

and use MIDI yoke as Rory mentioned, or some other MIDI virtual device
manager to connect from Csound's MIDI out to any synth.

On Tue, May 8, 2012 at 5:49 PM, Rory Walsh  wrote:
> You could also just send MIDI events to Kontakt, or any other host
> using some kind of MIDI routing software. On windows you can use midi
> yoke. On OSX it's easier. On Linux I think Jack can be used.
>
>
> Send bugs reports to the Sourceforge bug tracker
>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>


Date2012-05-09 00:04
FromMichael Gogins
SubjectRe: [Csnd] Still controlling Kontakt
Yes, you can have Csound trigger the events. You could use the MIDI
out opcodes. But triggering them from Python code is not so hard.

Regards,
Mike

On Tue, May 8, 2012 at 5:11 PM, Toby  wrote:
> On 05/08/2012 01:54 PM, Michael Gogins wrote:
>> Go to http://wiki.python.org/moin/PythonInMusic. Go down to the
>> section on MIDI. You have many choices. If you are an expert Python
>> programmer, use ctypes to talk directly to the operating system's MIDI
>> facilities (winmm on Windows, alsa on Linux). If you are not an expert
>> or don't want to spend the several days or so that would take, try the
>> canned ones. Go to their Web sites and see which ones seem to be (a)
>> up to date and (b) actually used.
>
> But then timing the delivery of the events would be my burden, right?
> Would there be some way of having csound trigger the midi events?
>
>
>
>
> Send bugs reports to the Sourceforge bug tracker
>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>



-- 
Michael Gogins
Irreducible Productions
http://www.michael-gogins.com
Michael dot Gogins at gmail dot com


Date2012-05-09 01:22
FromTobiah
SubjectRe: [Csnd] Still controlling Kontakt
On 5/8/2012 4:04 PM, Michael Gogins wrote:
> Yes, you can have Csound trigger the events. You could use the MIDI
> out opcodes. But triggering them from Python code is not so hard.

How would I achieve the timing of the events?

Toby

Date2012-05-09 02:04
FromMichael Gogins
SubjectRe: [Csnd] Still controlling Kontakt
Some libraries will allow you to schedule the events for them to play
back at the right time, otherwise you can set up a timer to fire every
millisecond or so and examine if events are pending and if so play
them.

Regards,
Mike

On Tue, May 8, 2012 at 8:22 PM, Tobiah  wrote:
> On 5/8/2012 4:04 PM, Michael Gogins wrote:
>>
>> Yes, you can have Csound trigger the events. You could use the MIDI
>> out opcodes. But triggering them from Python code is not so hard.
>
>
> How would I achieve the timing of the events?
>
> Toby
>
>
>
> Send bugs reports to the Sourceforge bug tracker
>           https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
>



-- 
Michael Gogins
Irreducible Productions
http://www.michael-gogins.com
Michael dot Gogins at gmail dot com