Csound Csound-dev Csound-tekno Search About

Re: [Csnd] Score to GUI question

Date2020-11-01 13:47
FromJean Basile Sosa
SubjectRe: [Csnd] Score to GUI question
Hello Tarmo,

I hope you will not be sorry... I am working on two different workflows but I use the same method to send values from score to GUI :

1) a MaxMsp GUI that allow me to edit csound score, manage i and  f statements (for f statement using the function object, a graphical function editor). 
In this way, using the OSCsend opcode within Orchestra, when I compile a csd score the values contained in each i statement are send to the Max GUI (corresponding to p1, p2, p3, etc.). I don’t know how can I do the same thing for f statement...

2) a Juce GUI that allow me roughly the same functionalities. In this case too, I use an OSC communication to send values from score to GUI when I compile a csd score.  

In fact, I would like to finish the Max GUI project first before to explore other kind of Csound workflow (C++ and Web based indeed) to leave definitely MaxMsp environment. 

Thank you again,

Jean Basile

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2020-11-01 20:46
FromTarmo Johannes
SubjectRe: [Csnd] Score to GUI question
Hi,


OK, did I get you right that you need to send data as OSC from Csound to Max MSP? And you want to send the data (the f statmente parameters) that correspond to the line like:

f 101 0 1024 16 0  14.487441132223848 -9.95 1 1009.5125588677762 9.95 0

How do you get these values? Are they written in the score or you generate them?

If the first case, I I think you cannot parse the score lines from the orchestra, ie you cannot reach them to create the OSCSend command. Instead you could use an instrument that gets the values as parameters  generates the table with ftgen and sends the same parameters as OSC. Perhaps something like:

instr CreateTable ; p4, p5, p6 -  parameters for table
  iTable ftgen p4,  p5, p6, p7 ;  etc ...
  OSCsend 1, <port, host, etc>, p4, p5, p6 ; etc
endin
---
<CsScore>
i "CreateTable" 0 0    101 0 1024 16 0  14.487441132223848 ; etc

Later, with Juce, you can consider using Csound library within the JUCE app/plugin and then you will have more possibilities to communicate with Csound (channels, tables, callbacks etc).

I hope it gives some idea.

tarmo

Kontakt Jean Basile Sosa (<sosa.jeanbasile@gmail.com>) kirjutas kuupäeval P, 1. november 2020 kell 15:47:
Hello Tarmo,

I hope you will not be sorry... I am working on two different workflows but I use the same method to send values from score to GUI :

1) a MaxMsp GUI that allow me to edit csound score, manage i and  f statements (for f statement using the function object, a graphical function editor).
In this way, using the OSCsend opcode within Orchestra, when I compile a csd score the values contained in each i statement are send to the Max GUI (corresponding to p1, p2, p3, etc.). I don’t know how can I do the same thing for f statement...

2) a Juce GUI that allow me roughly the same functionalities. In this case too, I use an OSC communication to send values from score to GUI when I compile a csd score. 

In fact, I would like to finish the Max GUI project first before to explore other kind of Csound workflow (C++ and Web based indeed) to leave definitely MaxMsp environment.

Thank you again,

Jean Basile

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here