Csound Csound-dev Csound-tekno Search About

[Cs-dev] Create a dynamic intrument in c

Date2009-02-17 05:17
Fromdavistro
Subject[Cs-dev] Create a dynamic intrument in c
Hello everyone.

My problem is a follows:

I'm trying to make a program which you may be adding dynamic instruments, it
is that each time the instrument can play 1 or change to the instrument 2,
but they are defined in different files.

I was reviewing the API Cscore with establishing the score in this way but I
want to know if there is any way to do this but in the part of the
instruments.

We attempt to be adding new tools can be rewritten in order to score the go
using everything that I added.

I appreciate your help and any suggestions that you can give me, I
programmed in C but do not know if this is the best option to do such work,
if someone could guide me in the use of another language I have some
knowledge  of pyhton i dont know if is easier to do so.

David gg
-- 
View this message in context: http://www.nabble.com/Create-a-dynamic-intrument-in-c-tp22050963p22050963.html
Sent from the Csound - Dev mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2009-02-17 10:41
FromRory Walsh
SubjectRe: [Cs-dev] Create a dynamic intrument in c
Hi David, I'm not really sure I understand your question. If you only
want to dynamically start instruments, which are contained in external
files you can use the event opcode along with include statements and
keep the whole thing in Csound without using an API at all. If this
isn't what you are looking for can you try to explain again your
question.

Rory.


2009/2/17 davistro :
>
> Hello everyone.
>
> My problem is a follows:
>
> I'm trying to make a program which you may be adding dynamic instruments, it
> is that each time the instrument can play 1 or change to the instrument 2,
> but they are defined in different files.
>
> I was reviewing the API Cscore with establishing the score in this way but I
> want to know if there is any way to do this but in the part of the
> instruments.
>
> We attempt to be adding new tools can be rewritten in order to score the go
> using everything that I added.
>
> I appreciate your help and any suggestions that you can give me, I
> programmed in C but do not know if this is the best option to do such work,
> if someone could guide me in the use of another language I have some
> knowledge  of pyhton i dont know if is easier to do so.
>
> David gg
> --
> View this message in context: http://www.nabble.com/Create-a-dynamic-intrument-in-c-tp22050963p22050963.html
> Sent from the Csound - Dev mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
> -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
> -Strategies to boost innovation and cut costs with open source participation
> -Receive a $600 discount off the registration fee with the source code: SFAD
> http://p.sf.net/sfu/XcvMzF8H
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2009-02-17 17:50
Fromdavistro
SubjectRe: [Cs-dev] Create a dynamic intrument in c
	
In my project I need is that the user can select tools to be loaded at
different times, which is thought to Cscore as you read from a file and you
can add new events as a method cscoreListAppendList () for then the
generated file can be played.

It means there is some method to append as well as add new instruments after
compile Csound, but thinking that the sound is not interrupted. 

For example having a defined number of instruments in a folder where I have
separate files orc and osc, when the user wants to put the instrument 1,
read the two files and I played if want but if you add a new instrument read
again two new files to be compiled by Csound score and wants to work his way
of generating according to the parameters of the user that I can go, but
writing for example

i1 x x x
12 y y y

where the two instruments have already loaded into memory. 

I hope I have explained better, and whether this would fit. I think another
way to do so would be loading all the ORC in the file once and only with the
user instructions to write the score file to play in real time changes.


rory walsh wrote:
> 
> Hi David, I'm not really sure I understand your question. If you only
> want to dynamically start instruments, which are contained in external
> files you can use the event opcode along with include statements and
> keep the whole thing in Csound without using an API at all. If this
> isn't what you are looking for can you try to explain again your
> question.
> 
> Rory.
> 
> 
> 2009/2/17 davistro :
>>
>> Hello everyone.
>>
>> My problem is a follows:
>>
>> I'm trying to make a program which you may be adding dynamic instruments,
>> it
>> is that each time the instrument can play 1 or change to the instrument
>> 2,
>> but they are defined in different files.
>>
>> I was reviewing the API Cscore with establishing the score in this way
>> but I
>> want to know if there is any way to do this but in the part of the
>> instruments.
>>
>> We attempt to be adding new tools can be rewritten in order to score the
>> go
>> using everything that I added.
>>
>> I appreciate your help and any suggestions that you can give me, I
>> programmed in C but do not know if this is the best option to do such
>> work,
>> if someone could guide me in the use of another language I have some
>> knowledge  of pyhton i dont know if is easier to do so.
>>
>> David gg
>> --
>> View this message in context:
>> http://www.nabble.com/Create-a-dynamic-intrument-in-c-tp22050963p22050963.html
>> Sent from the Csound - Dev mailing list archive at Nabble.com.
>>
>>
>> ------------------------------------------------------------------------------
>> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco,
>> CA
>> -OSBC tackles the biggest issue in open source: Open Sourcing the
>> Enterprise
>> -Strategies to boost innovation and cut costs with open source
>> participation
>> -Receive a $600 discount off the registration fee with the source code:
>> SFAD
>> http://p.sf.net/sfu/XcvMzF8H
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
> 
> ------------------------------------------------------------------------------
> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco,
> CA
> -OSBC tackles the biggest issue in open source: Open Sourcing the
> Enterprise
> -Strategies to boost innovation and cut costs with open source
> participation
> -Receive a $600 discount off the registration fee with the source code:
> SFAD
> http://p.sf.net/sfu/XcvMzF8H
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> 

-- 
View this message in context: http://www.nabble.com/Create-a-dynamic-intrument-in-c-tp22050963p22062609.html
Sent from the Csound - Dev mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2009-02-17 18:01
FromRory Walsh
SubjectRe: [Cs-dev] Create a dynamic intrument in c
Sorry but I'm finding it hard to understand this, I'm having a slow
day! Csound can dynamically start instruments during run time through
the use of the event opcodes. As for dynamically create instruments,
afaik this is not possible once Csound has been compiled. Your last
suggestion would work. I've never used Cscore, not really sure what it
does. I have used the csound API, while it has its limitations you
should be able to do most things with it. It's written C.

Rory.


2009/2/17 davistro :
>
>
> In my project I need is that the user can select tools to be loaded at
> different times, which is thought to Cscore as you read from a file and you
> can add new events as a method cscoreListAppendList () for then the
> generated file can be played.
>
> It means there is some method to append as well as add new instruments after
> compile Csound, but thinking that the sound is not interrupted.
>
> For example having a defined number of instruments in a folder where I have
> separate files orc and osc, when the user wants to put the instrument 1,
> read the two files and I played if want but if you add a new instrument read
> again two new files to be compiled by Csound score and wants to work his way
> of generating according to the parameters of the user that I can go, but
> writing for example
>
> i1 x x x
> 12 y y y
>
> where the two instruments have already loaded into memory.
>
> I hope I have explained better, and whether this would fit. I think another
> way to do so would be loading all the ORC in the file once and only with the
> user instructions to write the score file to play in real time changes.
>
>
> rory walsh wrote:
>>
>> Hi David, I'm not really sure I understand your question. If you only
>> want to dynamically start instruments, which are contained in external
>> files you can use the event opcode along with include statements and
>> keep the whole thing in Csound without using an API at all. If this
>> isn't what you are looking for can you try to explain again your
>> question.
>>
>> Rory.
>>
>>
>> 2009/2/17 davistro :
>>>
>>> Hello everyone.
>>>
>>> My problem is a follows:
>>>
>>> I'm trying to make a program which you may be adding dynamic instruments,
>>> it
>>> is that each time the instrument can play 1 or change to the instrument
>>> 2,
>>> but they are defined in different files.
>>>
>>> I was reviewing the API Cscore with establishing the score in this way
>>> but I
>>> want to know if there is any way to do this but in the part of the
>>> instruments.
>>>
>>> We attempt to be adding new tools can be rewritten in order to score the
>>> go
>>> using everything that I added.
>>>
>>> I appreciate your help and any suggestions that you can give me, I
>>> programmed in C but do not know if this is the best option to do such
>>> work,
>>> if someone could guide me in the use of another language I have some
>>> knowledge  of pyhton i dont know if is easier to do so.
>>>
>>> David gg
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Create-a-dynamic-intrument-in-c-tp22050963p22050963.html
>>> Sent from the Csound - Dev mailing list archive at Nabble.com.
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco,
>>> CA
>>> -OSBC tackles the biggest issue in open source: Open Sourcing the
>>> Enterprise
>>> -Strategies to boost innovation and cut costs with open source
>>> participation
>>> -Receive a $600 discount off the registration fee with the source code:
>>> SFAD
>>> http://p.sf.net/sfu/XcvMzF8H
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>
>> ------------------------------------------------------------------------------
>> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco,
>> CA
>> -OSBC tackles the biggest issue in open source: Open Sourcing the
>> Enterprise
>> -Strategies to boost innovation and cut costs with open source
>> participation
>> -Receive a $600 discount off the registration fee with the source code:
>> SFAD
>> http://p.sf.net/sfu/XcvMzF8H
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>>
>
> --
> View this message in context: http://www.nabble.com/Create-a-dynamic-intrument-in-c-tp22050963p22062609.html
> Sent from the Csound - Dev mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
> -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
> -Strategies to boost innovation and cut costs with open source participation
> -Receive a $600 discount off the registration fee with the source code: SFAD
> http://p.sf.net/sfu/XcvMzF8H
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2009-02-17 18:07
FromMichael Gogins
SubjectRe: [Cs-dev] Create a dynamic intrument in c
Currently, Csound cannot compile and load a new instrument while an
existing orchestra is playing.

It is possible, as you suggest, to send dynamically generated score
statements to a running Csound orchestra.

Hope this helps,
Mike

On Tue, Feb 17, 2009 at 1:01 PM, Rory Walsh  wrote:
> Sorry but I'm finding it hard to understand this, I'm having a slow
> day! Csound can dynamically start instruments during run time through
> the use of the event opcodes. As for dynamically create instruments,
> afaik this is not possible once Csound has been compiled. Your last
> suggestion would work. I've never used Cscore, not really sure what it
> does. I have used the csound API, while it has its limitations you
> should be able to do most things with it. It's written C.
>
> Rory.
>
>
> 2009/2/17 davistro :
>>
>>
>> In my project I need is that the user can select tools to be loaded at
>> different times, which is thought to Cscore as you read from a file and you
>> can add new events as a method cscoreListAppendList () for then the
>> generated file can be played.
>>
>> It means there is some method to append as well as add new instruments after
>> compile Csound, but thinking that the sound is not interrupted.
>>
>> For example having a defined number of instruments in a folder where I have
>> separate files orc and osc, when the user wants to put the instrument 1,
>> read the two files and I played if want but if you add a new instrument read
>> again two new files to be compiled by Csound score and wants to work his way
>> of generating according to the parameters of the user that I can go, but
>> writing for example
>>
>> i1 x x x
>> 12 y y y
>>
>> where the two instruments have already loaded into memory.
>>
>> I hope I have explained better, and whether this would fit. I think another
>> way to do so would be loading all the ORC in the file once and only with the
>> user instructions to write the score file to play in real time changes.
>>
>>
>> rory walsh wrote:
>>>
>>> Hi David, I'm not really sure I understand your question. If you only
>>> want to dynamically start instruments, which are contained in external
>>> files you can use the event opcode along with include statements and
>>> keep the whole thing in Csound without using an API at all. If this
>>> isn't what you are looking for can you try to explain again your
>>> question.
>>>
>>> Rory.
>>>
>>>
>>> 2009/2/17 davistro :
>>>>
>>>> Hello everyone.
>>>>
>>>> My problem is a follows:
>>>>
>>>> I'm trying to make a program which you may be adding dynamic instruments,
>>>> it
>>>> is that each time the instrument can play 1 or change to the instrument
>>>> 2,
>>>> but they are defined in different files.
>>>>
>>>> I was reviewing the API Cscore with establishing the score in this way
>>>> but I
>>>> want to know if there is any way to do this but in the part of the
>>>> instruments.
>>>>
>>>> We attempt to be adding new tools can be rewritten in order to score the
>>>> go
>>>> using everything that I added.
>>>>
>>>> I appreciate your help and any suggestions that you can give me, I
>>>> programmed in C but do not know if this is the best option to do such
>>>> work,
>>>> if someone could guide me in the use of another language I have some
>>>> knowledge  of pyhton i dont know if is easier to do so.
>>>>
>>>> David gg
>>>> --
>>>> View this message in context:
>>>> http://www.nabble.com/Create-a-dynamic-intrument-in-c-tp22050963p22050963.html
>>>> Sent from the Csound - Dev mailing list archive at Nabble.com.
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco,
>>>> CA
>>>> -OSBC tackles the biggest issue in open source: Open Sourcing the
>>>> Enterprise
>>>> -Strategies to boost innovation and cut costs with open source
>>>> participation
>>>> -Receive a $600 discount off the registration fee with the source code:
>>>> SFAD
>>>> http://p.sf.net/sfu/XcvMzF8H
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco,
>>> CA
>>> -OSBC tackles the biggest issue in open source: Open Sourcing the
>>> Enterprise
>>> -Strategies to boost innovation and cut costs with open source
>>> participation
>>> -Receive a $600 discount off the registration fee with the source code:
>>> SFAD
>>> http://p.sf.net/sfu/XcvMzF8H
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>>
>>
>> --
>> View this message in context: http://www.nabble.com/Create-a-dynamic-intrument-in-c-tp22050963p22062609.html
>> Sent from the Csound - Dev mailing list archive at Nabble.com.
>>
>>
>> ------------------------------------------------------------------------------
>> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
>> -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
>> -Strategies to boost innovation and cut costs with open source participation
>> -Receive a $600 discount off the registration fee with the source code: SFAD
>> http://p.sf.net/sfu/XcvMzF8H
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>
> ------------------------------------------------------------------------------
> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
> -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
> -Strategies to boost innovation and cut costs with open source participation
> -Receive a $600 discount off the registration fee with the source code: SFAD
> http://p.sf.net/sfu/XcvMzF8H
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>



-- 
Michael Gogins
Irreducible Productions
Michael dot Gogins at gmail dot com

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2009-02-17 19:15
Fromdavistro
SubjectRe: [Cs-dev] Create a dynamic intrument in c
	
Sorry I do not think I explained well.

Osc I have two files each with a

instr 1
  kcps line 880, p3, 220
  a1 oscil 20000, kcps, 1
  out a1
endin

instr 2
  kcps line 220, p3, 910  
  a1 oscil 20000, kcps, 1
  out a1
endin

and only one file sco

f 1 0 16384 10 1

; Play Instrument #1 for two seconds.
instr	inicio	dura;
i1 		0 		3

; Play Instrument #2 for two seconds.
i2 		5 		8

e

Cscore can do with the file and wants to work his way to sco
as you need, you could change time
real values to then modify the running program.

But my problem is as follows, in my application the user
may be placing or removing instruments, so I saved
in different files and the instruction

csoundCompile (ud-> Csound, argc +1, (char **) param)

param is in the name of the file, but only if a charge
the option of not sco i2 dont work, to load a file with
two instruments for this, but would have all in one file.

I hope you understand a little better or that could be used for opcodes
that might be loading the instruments and then manipulating irlos all this
I want to do it automatically without the user having to be selecting the
files.


rory walsh wrote:
> 
> Sorry but I'm finding it hard to understand this, I'm having a slow
> day! Csound can dynamically start instruments during run time through
> the use of the event opcodes. As for dynamically create instruments,
> afaik this is not possible once Csound has been compiled. Your last
> suggestion would work. I've never used Cscore, not really sure what it
> does. I have used the csound API, while it has its limitations you
> should be able to do most things with it. It's written C.
> 
> Rory.
> 
> 
> 2009/2/17 davistro :
>>
>>
>> In my project I need is that the user can select tools to be loaded at
>> different times, which is thought to Cscore as you read from a file and
>> you
>> can add new events as a method cscoreListAppendList () for then the
>> generated file can be played.
>>
>> It means there is some method to append as well as add new instruments
>> after
>> compile Csound, but thinking that the sound is not interrupted.
>>
>> For example having a defined number of instruments in a folder where I
>> have
>> separate files orc and osc, when the user wants to put the instrument 1,
>> read the two files and I played if want but if you add a new instrument
>> read
>> again two new files to be compiled by Csound score and wants to work his
>> way
>> of generating according to the parameters of the user that I can go, but
>> writing for example
>>
>> i1 x x x
>> 12 y y y
>>
>> where the two instruments have already loaded into memory.
>>
>> I hope I have explained better, and whether this would fit. I think
>> another
>> way to do so would be loading all the ORC in the file once and only with
>> the
>> user instructions to write the score file to play in real time changes.
>>
>>
>> rory walsh wrote:
>>>
>>> Hi David, I'm not really sure I understand your question. If you only
>>> want to dynamically start instruments, which are contained in external
>>> files you can use the event opcode along with include statements and
>>> keep the whole thing in Csound without using an API at all. If this
>>> isn't what you are looking for can you try to explain again your
>>> question.
>>>
>>> Rory.
>>>
>>>
>>> 2009/2/17 davistro :
>>>>
>>>> Hello everyone.
>>>>
>>>> My problem is a follows:
>>>>
>>>> I'm trying to make a program which you may be adding dynamic
>>>> instruments,
>>>> it
>>>> is that each time the instrument can play 1 or change to the instrument
>>>> 2,
>>>> but they are defined in different files.
>>>>
>>>> I was reviewing the API Cscore with establishing the score in this way
>>>> but I
>>>> want to know if there is any way to do this but in the part of the
>>>> instruments.
>>>>
>>>> We attempt to be adding new tools can be rewritten in order to score
>>>> the
>>>> go
>>>> using everything that I added.
>>>>
>>>> I appreciate your help and any suggestions that you can give me, I
>>>> programmed in C but do not know if this is the best option to do such
>>>> work,
>>>> if someone could guide me in the use of another language I have some
>>>> knowledge  of pyhton i dont know if is easier to do so.
>>>>
>>>> David gg
>>>> --
>>>> View this message in context:
>>>> http://www.nabble.com/Create-a-dynamic-intrument-in-c-tp22050963p22050963.html
>>>> Sent from the Csound - Dev mailing list archive at Nabble.com.
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Open Source Business Conference (OSBC), March 24-25, 2009, San
>>>> Francisco,
>>>> CA
>>>> -OSBC tackles the biggest issue in open source: Open Sourcing the
>>>> Enterprise
>>>> -Strategies to boost innovation and cut costs with open source
>>>> participation
>>>> -Receive a $600 discount off the registration fee with the source code:
>>>> SFAD
>>>> http://p.sf.net/sfu/XcvMzF8H
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Open Source Business Conference (OSBC), March 24-25, 2009, San
>>> Francisco,
>>> CA
>>> -OSBC tackles the biggest issue in open source: Open Sourcing the
>>> Enterprise
>>> -Strategies to boost innovation and cut costs with open source
>>> participation
>>> -Receive a $600 discount off the registration fee with the source code:
>>> SFAD
>>> http://p.sf.net/sfu/XcvMzF8H
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Create-a-dynamic-intrument-in-c-tp22050963p22062609.html
>> Sent from the Csound - Dev mailing list archive at Nabble.com.
>>
>>
>> ------------------------------------------------------------------------------
>> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco,
>> CA
>> -OSBC tackles the biggest issue in open source: Open Sourcing the
>> Enterprise
>> -Strategies to boost innovation and cut costs with open source
>> participation
>> -Receive a $600 discount off the registration fee with the source code:
>> SFAD
>> http://p.sf.net/sfu/XcvMzF8H
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
> 
> ------------------------------------------------------------------------------
> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco,
> CA
> -OSBC tackles the biggest issue in open source: Open Sourcing the
> Enterprise
> -Strategies to boost innovation and cut costs with open source
> participation
> -Receive a $600 discount off the registration fee with the source code:
> SFAD
> http://p.sf.net/sfu/XcvMzF8H
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> 

-- 
View this message in context: http://www.nabble.com/Create-a-dynamic-intrument-in-c-tp22050963p22064228.html
Sent from the Csound - Dev mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2009-02-17 19:58
FromAnthony Kozar
SubjectRe: [Cs-dev] Create a dynamic intrument in c
Cscore is part of the Csound API now, but it probably is not currently
suitable for real-time use.  If I recall correctly, using cscoreListPlay()
to play the Cscore-generated score will actually cause the performance to
happen during the call to csoundCompile(), not csoundPerform*().  This is a
result of the historical usage of Cscore as an added batch-processing step
of non-real-time score files.  I think Cscore could be reworked for Csound 6
to be more useful in real-time.

Most people seem to be using a different API call for sending real-time
score events to Csound -- csoundScoreEvent() or csoundInputMessage().  It
might be possible to use Cscore's event and list management functions in
real-time without setting a Cscore callback or using cscoreListPlay() if you
are willing to convert Cscore events into the parameter values that
csoundScoreEvent() or csoundInputMessage() expect.

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

Rory Walsh wrote on 2/17/09 1:01 PM:

> Sorry but I'm finding it hard to understand this, I'm having a slow
> day! Csound can dynamically start instruments during run time through
> the use of the event opcodes. As for dynamically create instruments,
> afaik this is not possible once Csound has been compiled. Your last
> suggestion would work. I've never used Cscore, not really sure what it
> does. I have used the csound API, while it has its limitations you
> should be able to do most things with it. It's written C.

> 2009/2/17 davistro :

>> In my project I need is that the user can select tools to be loaded at
>> different times, which is thought to Cscore as you read from a file and you
>> can add new events as a method cscoreListAppendList () for then the
>> generated file can be played.
>> 
>> It means there is some method to append as well as add new instruments after
>> compile Csound, but thinking that the sound is not interrupted.

>> [...]

>> I hope I have explained better, and whether this would fit. I think another
>> way to do so would be loading all the ORC in the file once and only with the
>> user instructions to write the score file to play in real time changes.


------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net