Csound Csound-dev Csound-tekno Search About

[Cs-dev] per-event input/output

Date2007-12-16 22:26
FromJonatan Liljedahl
Subject[Cs-dev] per-event input/output
Trying to resend this since it haven't reached the list for several
hours... sorry if it shows up 2 times.
...

Hi all,
I'm developing a graphical environment for algorithmic composition
called AlgoScore (http://kymatica.com/algoscore) which also functions as
a CSound frontend using the API.

All events are sent to CSound with csoundScoreEvent() and then
csoundPerformKsmps() are called in a loop to produce output until a
specified length.

Now, I would like to get output for graphical representation from an
instrument, specifically to show the resulting graph of a k-rate variable.

Doing a "display k1, p3" inside an instrument produces a graph sent to
my application, one for each event of that instrument. But I can find no
way for my app to know *which* event the graph is coming from, all
identification I get is the caption, saying something like "instr 1, k1".

Same problems arise with f-table events, if I have more than one f-table
event at different times, I don't know which graph sent to my app that
belongs to which event.

Is there anyway to solve this? It would be so nice to have graphical
representation in the score of a single events amplitude envelope and so
on...

It would be simple if csoundScoreEvent() returned an ID or pointer to
the actual event, and that this ID could be sent along a graph or some
other data from csound to my app.

I'm also interested in doing it the other way around, to have my app
send k-rate data to specific events and not only specific instruments
(through software busses). Is there a way to dynamically allocate
software busses and bind them to certain events?

-- 
/Jonatan         [ http://kymatica.com ]


-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net