| Hello,
I guess I had in mind the second option. You could use this as
automation too if you read the automation data from table, which is
what I do mostly.
Thanks
P
On 11 November 2011 20:56, Andres Cabrera wrote:
> Hi,
>
> I think that table editor can mean 3 different things...
> One is an f-table editor, where you can edit the tables and parameters
> in order to generate the f-table text. This is an ideal candidate for
> something to be done using the Python API within CsoundQt.
> The second one is an editor for f-table data (for existing tables, to
> modify their values, like when using the pencil tool in audacity. This
> could be done eventually using the Python API, but not currently as
> getting and setting f-table data is not supported.
> The third one is a breakpoint table editor, which can be useful to
> hold automation. This would be a new widget type in CsoundQt, which
> can be triggered so that values in its channels change in time
> according to the points inside it.
>
> Cheers,
> Andrés
>
> On Tue, Nov 8, 2011 at 7:10 PM, Tarmo Johannes wrote:
>> Hello,
>>
>>
>>> I've been meaning to write a table editor directly in Pyhton using Qt,
>>> but as usual, haven't had time...
>>
>> Absolutely, a table editor inside CsoundQt would be most logical and very welcome extension!
>> So far I think the litle perltk scirpts (linseg, brkpt and my gen7creator) can fill the gap a little bit.
>>
>> Should we brain-strorm, what we, user, expect from a table editor?
>> As Peiman wrote in his precedin e-mail, building open-source graphical solutions is really time-consuming and if we knew exactly, what are the most basic and necessary things, perhaps it would be a good start for the creators like Andrés and others.
>>
>> I personally would be happy to be able to build envelope type of f-tables from lines and curves and to be able to see any table created from numbers (for example f 0 1024 10 0.9 0.8 0 0 0.2 or any similar ) visually before it enters the score. (Basically the Graph widget but before running the score). And to have good links to documentation about the according GEN routines.
>>
>> Please comment and extend this idea!
>>
>> tarmo
>>
>>
>> On Monday 07 November 2011 16:02:26 Andres Cabrera wrote:
>>> Hi,
>>>
>>> Tk inside Perl inside Python inside CsoundQt. That's hacky! :) But I'm
>>> glad it's possible, and that's what the python API is for!
>>>
>>> I've been meaning to write a table editor directly in Pyhton using Qt,
>>> but as usual, haven't had time...
>>>
>>> Cheers,
>>> Andrés
>>>
>>> On Mon, Nov 7, 2011 at 12:08 PM, Tarmo Johannes wrote:
>>> > Hello,
>>> >
>>> > I am through now from some travelling, concerts and another very intense inetractive experiment with around 50 switches, sliders, mice and keyboards among the public. Life is strarting to normalize and I can have again some hobby time with Csound and hopefully I can contribute something to the mailing list.
>>> >
>>> > I was exploring the possibilites of the scanned synthesis and experimented with different shapes of the hammer (the table pointed by the init parameter), I created some scripts that make creating the f-tables (for now only the GEN7-lines bitween points, well, GEN05 - exponential lines is basically the same), I hope they turn useful for others too:
>>> >
>>> > 1) John Ffitch suggested about a month ago small perl scripts brkpt, linseg and tabdes in the standard Csound installation. I took linseg and changed it a bit so that it creates a f-statement in the form like:
>>> > f XX 0 7
>>> > User just has to create the desired line with clicking (with the right button) and dragging the points, press "print" and the definition will be printed to the standard output (console). It is possible to change the max and min values (also the number of point in the table) on the screen.
>>> > I attach the script (gen7creator)
>>> >
>>> > You need perl-Tk installed to run the script.
>>> >
>>> > 2) next step was to bring it closer to the real work with the score. Thanks to the new great capabilities of CsoundQt to us the embedded python interpreter and interact with the score ( q.insertText(string) ) and also to use Qt objects to write your own custom interfaces, it turned completely possible and not too hard at all.
>>> >
>>> > I wrote a python script that should be saved to your CsoundQt scripts folder (set in the Configure window of CsQt) and you can put the cursor to any point in your score where you need the f (gen7) definitions, run the script from your "scripts" menu and you can easily create dozens of line-ftables!
>>> >
>>> > Thes script is pretty simple:
>>> >
>>> > import subprocess
>>> > from PythonQt import *
>>> >
>>> > # output message using QtGui messagebox
>>> > msg=QtGui.QMessageBox()
>>> > msg.setWindowTitle("Message")
>>> > msg.setText('''Afetr you click OK:\n
>>> > 1) Place the cursor in your csd where you want the f-statements appear
>>> > 2) Draw the lines (rightclick for new point),
>>> > change the max/min values, if you need
>>> > 3) Press after you have completed a line
>>> > 4) the f-definitions appear in you csd after you have clicked
>>> > 5) Change the f table numbers as you need.
>>> > \n''')
>>> > msg.exec_() # NB! in python it has to be exec_() (not exec() like in the C documentation, since exec is a reserved word in python and they needed to make the change here
>>> >
>>> >
>>> > #run the table-generator script and capture output
>>> > process = subprocess.Popen(['/home/tarmo/src/Csound5.13.0/csound5/gen7creator'],stderr=subprocess.STDOUT,stdout=subprocess.PIPE)
>>> > stat = process.wait()
>>> > if (stat==0):
>>> > output = process.stdout.read()
>>> > print output
>>> > q.insertText(output) # place it to the active document at the position of the cursor
>>> >
>>> >
>>> > Especially by scanned sythesis, where half of the parameters are set by tables, it makes so much difference to be able to easily form the tables as you imagine them!
>>> >
>>> > greetings,
>>> > tarmo
>>> >
>>> >
>>> >
>>> >
>>> > 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"
>>> >
>>> >
>>>
>>>
>>> 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"
>>>
>>>
>>
>>
>> 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"
>>
>>
>
>
> 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"
>
>
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"
|