Csound Csound-dev Csound-tekno Search About

[Cs-dev] Request regarding score preprocessor and API score events

Date2010-06-13 09:00
FromAndres Cabrera
Subject[Cs-dev] Request regarding score preprocessor and API score events
Hi,

I'd like to make a request to have the score preprocessor be enabled
for score events sent through the API. This will allow sending through
the API lines like:

i 1 0 3 [4/5]

Which results in an error currently...

Would this be hard? Or maybe a bad idea due to realtime or other issues?

Cheers,
Andrés

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/li

Date2010-06-13 09:07
Fromjpff@cs.bath.ac.uk
SubjectRe: [Cs-dev] Request regarding score preprocessor and API score events
Immediate thoughts -- not looked at code but the macros are textual,
expanded by the read-character functuon for scores (rdscor.c)
So to get the macros expanded it would need to be text and cal the reader
to translate.  Not impossible but would need an interface....

>
> I'd like to make a request to have the score preprocessor be enabled
> for score events sent through the API. This will allow sending through
> the API lines like:
>
> i 1 0 3 [4/5]
>
> Which results in an error currently...
>
> Would this be hard? Or maybe a bad idea due to realtime or other issues?
>


------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2010-06-21 13:10
FromAndres Cabrera
SubjectRe: [Cs-dev] Request regarding score preprocessor and API score events
Is there a way then, to pass a score to Csound, and get the preprocessed score?

Cheers,
Andrés

On Sun, Jun 13, 2010 at 9:07 AM,   wrote:
> Immediate thoughts -- not looked at code but the macros are textual,
> expanded by the read-character functuon for scores (rdscor.c)
> So to get the macros expanded it would need to be text and cal the reader
> to translate.  Not impossible but would need an interface....
>
>>
>> I'd like to make a request to have the score preprocessor be enabled
>> for score events sent through the API. This will allow sending through
>> the API lines like:
>>
>> i 1 0 3 [4/5]
>>
>> Which results in an error currently...
>>
>> Would this be hard? Or maybe a bad idea due to realtime or other issues?
>>
>
>
> ------------------------------------------------------------------------------
> ThinkGeek and WIRED's GeekDad team up for the Ultimate
> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
> lucky parental unit.  See the prize list and enter to win:
> http://p.sf.net/sfu/thinkgeek-promo
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>



-- 


Andrés

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
http

Date2010-06-21 13:15
FromMichael Gogins
SubjectRe: [Cs-dev] Request regarding score preprocessor and API score events
Not as far as I know, but it would be a useful addition to the API.

Regards,
Mike

On Mon, Jun 21, 2010 at 8:10 AM, Andres Cabrera  wrote:
> Is there a way then, to pass a score to Csound, and get the preprocessed score?
>
> Cheers,
> Andrés
>
> On Sun, Jun 13, 2010 at 9:07 AM,   wrote:
>> Immediate thoughts -- not looked at code but the macros are textual,
>> expanded by the read-character functuon for scores (rdscor.c)
>> So to get the macros expanded it would need to be text and cal the reader
>> to translate.  Not impossible but would need an interface....
>>
>>>
>>> I'd like to make a request to have the score preprocessor be enabled
>>> for score events sent through the API. This will allow sending through
>>> the API lines like:
>>>
>>> i 1 0 3 [4/5]
>>>
>>> Which results in an error currently...
>>>
>>> Would this be hard? Or maybe a bad idea due to realtime or other issues?
>>>
>>
>>
>> ------------------------------------------------------------------------------
>> ThinkGeek and WIRED's GeekDad team up for the Ultimate
>> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
>> lucky parental unit.  See the prize list and enter to win:
>> http://p.sf.net/sfu/thinkgeek-promo
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>
>
>
> --
>
>
> Andrés
>
> ------------------------------------------------------------------------------
> ThinkGeek and WIRED's GeekDad team up for the Ultimate
> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
> lucky parental unit.  See the prize list and enter to win:
> http://p.sf.net/sfu/thinkgeek-promo
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>



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

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2010-06-21 14:04
FromAndres Cabrera
SubjectRe: [Cs-dev] Request regarding score preprocessor and API score events
How should we track useful additions (and changes) to the API, to
decide when a bump is justified?

Cheers,
Andrés

On Mon, Jun 21, 2010 at 1:15 PM, Michael Gogins
 wrote:
> Not as far as I know, but it would be a useful addition to the API.
>
> Regards,
> Mike
>
> On Mon, Jun 21, 2010 at 8:10 AM, Andres Cabrera  wrote:
>> Is there a way then, to pass a score to Csound, and get the preprocessed score?
>>
>> Cheers,
>> Andrés
>>
>> On Sun, Jun 13, 2010 at 9:07 AM,   wrote:
>>> Immediate thoughts -- not looked at code but the macros are textual,
>>> expanded by the read-character functuon for scores (rdscor.c)
>>> So to get the macros expanded it would need to be text and cal the reader
>>> to translate.  Not impossible but would need an interface....
>>>
>>>>
>>>> I'd like to make a request to have the score preprocessor be enabled
>>>> for score events sent through the API. This will allow sending through
>>>> the API lines like:
>>>>
>>>> i 1 0 3 [4/5]
>>>>
>>>> Which results in an error currently...
>>>>
>>>> Would this be hard? Or maybe a bad idea due to realtime or other issues?
>>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> ThinkGeek and WIRED's GeekDad team up for the Ultimate
>>> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
>>> lucky parental unit.  See the prize list and enter to win:
>>> http://p.sf.net/sfu/thinkgeek-promo
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>
>>
>>
>> --
>>
>>
>> Andrés
>>
>> ------------------------------------------------------------------------------
>> ThinkGeek and WIRED's GeekDad team up for the Ultimate
>> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
>> lucky parental unit.  See the prize list and enter to win:
>> http://p.sf.net/sfu/thinkgeek-promo
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>
>
>
> --
> Michael Gogins
> Irreducible Productions
> http://www.michael-gogins.com
> Michael dot Gogins at gmail dot com
>
> ------------------------------------------------------------------------------
> ThinkGeek and WIRED's GeekDad team up for the Ultimate
> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
> lucky parental unit.  See the prize list and enter to win:
> http://p.sf.net/sfu/thinkgeek-promo
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>



-- 


Andrés

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/li

Date2010-06-21 16:14
FromMichael Gogins
SubjectRe: [Cs-dev] Request regarding score preprocessor and API score events
A major API version bump is only justified when a new build of the API
is not usable by clients that used to use the previous version of the
API.

Minor version bumps should, I suppose, occur when new features are
introduced in the API.

Regards,
Mike

On Mon, Jun 21, 2010 at 9:04 AM, Andres Cabrera  wrote:
> How should we track useful additions (and changes) to the API, to
> decide when a bump is justified?
>
> Cheers,
> Andrés
>
> On Mon, Jun 21, 2010 at 1:15 PM, Michael Gogins
>  wrote:
>> Not as far as I know, but it would be a useful addition to the API.
>>
>> Regards,
>> Mike
>>
>> On Mon, Jun 21, 2010 at 8:10 AM, Andres Cabrera  wrote:
>>> Is there a way then, to pass a score to Csound, and get the preprocessed score?
>>>
>>> Cheers,
>>> Andrés
>>>
>>> On Sun, Jun 13, 2010 at 9:07 AM,   wrote:
>>>> Immediate thoughts -- not looked at code but the macros are textual,
>>>> expanded by the read-character functuon for scores (rdscor.c)
>>>> So to get the macros expanded it would need to be text and cal the reader
>>>> to translate.  Not impossible but would need an interface....
>>>>
>>>>>
>>>>> I'd like to make a request to have the score preprocessor be enabled
>>>>> for score events sent through the API. This will allow sending through
>>>>> the API lines like:
>>>>>
>>>>> i 1 0 3 [4/5]
>>>>>
>>>>> Which results in an error currently...
>>>>>
>>>>> Would this be hard? Or maybe a bad idea due to realtime or other issues?
>>>>>
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> ThinkGeek and WIRED's GeekDad team up for the Ultimate
>>>> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
>>>> lucky parental unit.  See the prize list and enter to win:
>>>> http://p.sf.net/sfu/thinkgeek-promo
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>
>>>
>>>
>>> --
>>>
>>>
>>> Andrés
>>>
>>> ------------------------------------------------------------------------------
>>> ThinkGeek and WIRED's GeekDad team up for the Ultimate
>>> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
>>> lucky parental unit.  See the prize list and enter to win:
>>> http://p.sf.net/sfu/thinkgeek-promo
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>
>>
>>
>> --
>> Michael Gogins
>> Irreducible Productions
>> http://www.michael-gogins.com
>> Michael dot Gogins at gmail dot com
>>
>> ------------------------------------------------------------------------------
>> ThinkGeek and WIRED's GeekDad team up for the Ultimate
>> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
>> lucky parental unit.  See the prize list and enter to win:
>> http://p.sf.net/sfu/thinkgeek-promo
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>
>
>
> --
>
>
> Andrés
>
> ------------------------------------------------------------------------------
> ThinkGeek and WIRED's GeekDad team up for the Ultimate
> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
> lucky parental unit.  See the prize list and enter to win:
> http://p.sf.net/sfu/thinkgeek-promo
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>



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

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2010-06-23 07:34
Fromjohn ffitch
SubjectRe: [Cs-dev] Request regarding score preprocessor and API score events
> Is there a way then, to pass a score to Csound, and get the preprocessed score?

Yes but clunky.  Use a -t0 option and then read score.srt

==John ffitch

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2010-06-23 08:38
Fromjohn ffitch
SubjectRe: [Cs-dev] Request regarding score preprocessor and API score events
One could add that operation to the API with only a minor bump in
version.  There are unallocated slots in the structure.  How about
giving a draft specification?
==John ffitch

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2010-06-24 08:41
FromAndres Cabrera
SubjectRe: [Cs-dev] Request regarding score preprocessor and API score events
How about something like:

int preprocessScoreText(char **intext, char **outtext, int maxlen);

Both intext and outtext need to be allocated and freed by the host.
"maxlen" holds the size of outtext.
The function returns 0 when everything went alright, or MEMORY_ERROR when not.

I'm wondering, would running this be realtime safe? (I would like to
run it within the realtime thread).

Cheers,
Andrés

On Wed, Jun 23, 2010 at 8:38 AM, john ffitch  wrote:
> One could add that operation to the API with only a minor bump in
> version.  There are unallocated slots in the structure.  How about
> giving a draft specification?
> ==John ffitch
>
> ------------------------------------------------------------------------------
> ThinkGeek and WIRED's GeekDad team up for the Ultimate
> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
> lucky parental unit.  See the prize list and enter to win:
> http://p.sf.net/sfu/thinkgeek-promo
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>



-- 


Andrés

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listin