Csound Csound-dev Csound-tekno Search About

[Csnd] CsoundQT question

Date2012-08-21 23:32
Frompeiman khosravi
Subject[Csnd] CsoundQT question
Hello,

I'm preparing some teaching material for September and was wondering if there is an easy way to type the data for a linseg in a string widget? Or some other way of defining a linseg with arbitrary segments.

Thanks
Peiman  

Date2012-08-22 09:24
FromTarmo Johannes
SubjectRe: [Csnd] CsoundQT question

HEllo,

 

could you be a bit more precise, what do you need to do, what do you mean by " string widget"? LineEdit?

 

greetings,

tarmo

 

On Tuesday 21 August 2012 23:32:11 peiman khosravi wrote:

Hello,

I'm preparing some teaching material for September and was wondering if there is an easy way to type the data for a linseg in a string widget? Or some other way of defining a linseg with arbitrary segments.

Thanks
Peiman  




Date2012-08-22 09:50
Frompeiman khosravi
SubjectRe: [Csnd] CsoundQT question
Hi tarmo,

Yes I meant LineEdit. Basically I'm wondering if there is anyway to construct line segments (at i-rate) from an arbitrary number of values entered in LineEdit. I don't suppose there is but you never know.

I suppose one way would be to read the values into a table and then read the table with a phasor but then you can't define exact time durations.

Thanks
Peiman

On 22 August 2012 09:24, Tarmo Johannes <tarmo@otsakool.edu.ee> wrote:

HEllo,

 

could you be a bit more precise, what do you need to do, what do you mean by " string widget"? LineEdit?

 

greetings,

tarmo

 

On Tuesday 21 August 2012 23:32:11 peiman khosravi wrote:

Hello,

I'm preparing some teaching material for September and was wondering if there is an easy way to type the data for a linseg in a string widget? Or some other way of defining a linseg with arbitrary segments.

Thanks
Peiman  





Date2012-08-22 10:30
Fromjoachim heintz
SubjectRe: [Csnd] CsoundQT question
hi peiman -

do you mean to transfer the string
"0 3 1 2 0"
to something like
kLin linseg 0, 3, 1, 2, 0
?

ciao -
	joachim


Am 22.08.2012 10:50, schrieb peiman khosravi:
> Hi tarmo,
>
> Yes I meant LineEdit. Basically I'm wondering if there is anyway to
> construct line segments (at i-rate) from an arbitrary number of values
> entered in LineEdit. I don't suppose there is but you never know.
>
> I suppose one way would be to read the values into a table and then read
> the table with a phasor but then you can't define exact time durations.
>
> Thanks
> Peiman
>
> On 22 August 2012 09:24, Tarmo Johannes  > wrote:
>
>     __
>
>     HEllo,
>
>     could you be a bit more precise, what do you need to do, what do you
>     mean by " string widget"? LineEdit?
>
>     greetings,
>
>     tarmo
>
>     On Tuesday 21 August 2012 23:32:11 peiman khosravi wrote:
>
>     Hello,
>
>     I'm preparing some teaching material for September and was wondering
>     if there is an easy way to type the data for a linseg in a string
>     widget? Or some other way of defining a linseg with arbitrary segments.
>
>     Thanks
>     Peiman
>
>
>
>

Date2012-08-22 10:42
Frompeiman khosravi
SubjectRe: [Csnd] CsoundQT question
Hi Joachim,

Yes exactly. Sorry my communication skills are a bit rusty at the moment!

Best,
Peiman

On 22 August 2012 10:30, joachim heintz <jh@joachimheintz.de> wrote:
hi peiman -

do you mean to transfer the string
"0 3 1 2 0"
to something like
kLin linseg 0, 3, 1, 2, 0
?

ciao -
        joachim


Am 22.08.2012 10:50, schrieb peiman khosravi:
Hi tarmo,

Yes I meant LineEdit. Basically I'm wondering if there is anyway to
construct line segments (at i-rate) from an arbitrary number of values
entered in LineEdit. I don't suppose there is but you never know.

I suppose one way would be to read the values into a table and then read
the table with a phasor but then you can't define exact time durations.

Thanks
Peiman

On 22 August 2012 09:24, Tarmo Johannes <tarmo@otsakool.edu.ee
<mailto:tarmo@otsakool.edu.ee>> wrote:

    __


    HEllo,

    could you be a bit more precise, what do you need to do, what do you
    mean by " string widget"? LineEdit?

    greetings,

    tarmo

    On Tuesday 21 August 2012 23:32:11 peiman khosravi wrote:

    Hello,

    I'm preparing some teaching material for September and was wondering
    if there is an easy way to type the data for a linseg in a string
    widget? Or some other way of defining a linseg with arbitrary segments.

    Thanks
    Peiman






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"



Date2012-08-22 11:07
FromTarmo Johannes
SubjectRe: [Csnd] CsoundQT question

Hi,

Then Joachims string-array udos would help you or use csound string manipulation opcodes or use coundqt python functions like q.getChannelString and process it in python.
Sorry, I am not behind a computer to try out some examples.
I think there is also a perl script with tk gui in the standard csound installation to create linseg points graphically.
Please let know, if you need further hints, I'll get to it later.
Tarmo

2012 8 22 12:42 kirjutas kuupäeval "peiman khosravi" <peimankhosravi@gmail.com>:
Hi Joachim,

Yes exactly. Sorry my communication skills are a bit rusty at the moment!

Best,
Peiman

On 22 August 2012 10:30, joachim heintz <jh@joachimheintz.de> wrote:
hi peiman -

do you mean to transfer the string
"0 3 1 2 0"
to something like
kLin linseg 0, 3, 1, 2, 0
?

ciao -
        joachim


Am 22.08.2012 10:50, schrieb peiman khosravi:
Hi tarmo,

Yes I meant LineEdit. Basically I'm wondering if there is anyway to
construct line segments (at i-rate) from an arbitrary number of values
entered in LineEdit. I don't suppose there is but you never know.

I suppose one way would be to read the values into a table and then read
the table with a phasor but then you can't define exact time durations.

Thanks
Peiman

On 22 August 2012 09:24, Tarmo Johannes <tarmo@otsakool.edu.ee
<mailto:tarmo@otsakool.edu.ee>> wrote:

    __


    HEllo,

    could you be a bit more precise, what do you need to do, what do you
    mean by " string widget"? LineEdit?

    greetings,

    tarmo

    On Tuesday 21 August 2012 23:32:11 peiman khosravi wrote:

    Hello,

    I'm preparing some teaching material for September and was wondering
    if there is an easy way to type the data for a linseg in a string
    widget? Or some other way of defining a linseg with arbitrary segments.

    Thanks
    Peiman






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"



Date2012-08-22 11:24
Frompeiman khosravi
SubjectRe: [Csnd] CsoundQT question
Thanks Tarmo,

I think python isn't really appropriate for the beginner students. Sounds like Joachim's udo is the way forward. I'll have a look in a min.

Thanks for your help.

Best,
Peiman



On 22 August 2012 11:07, Tarmo Johannes <tarmo.johannes@otsakool.edu.ee> wrote:

Hi,

Then Joachims string-array udos would help you or use csound string manipulation opcodes or use coundqt python functions like q.getChannelString and process it in python.
Sorry, I am not behind a computer to try out some examples.
I think there is also a perl script with tk gui in the standard csound installation to create linseg points graphically.
Please let know, if you need further hints, I'll get to it later.
Tarmo

2012 8 22 12:42 kirjutas kuupäeval "peiman khosravi" <peimankhosravi@gmail.com>:

Hi Joachim,

Yes exactly. Sorry my communication skills are a bit rusty at the moment!

Best,
Peiman

On 22 August 2012 10:30, joachim heintz <jh@joachimheintz.de> wrote:
hi peiman -

do you mean to transfer the string
"0 3 1 2 0"
to something like
kLin linseg 0, 3, 1, 2, 0
?

ciao -
        joachim


Am 22.08.2012 10:50, schrieb peiman khosravi:
Hi tarmo,

Yes I meant LineEdit. Basically I'm wondering if there is anyway to
construct line segments (at i-rate) from an arbitrary number of values
entered in LineEdit. I don't suppose there is but you never know.

I suppose one way would be to read the values into a table and then read
the table with a phasor but then you can't define exact time durations.

Thanks
Peiman

On 22 August 2012 09:24, Tarmo Johannes <tarmo@otsakool.edu.ee
<mailto:tarmo@otsakool.edu.ee>> wrote:

    __


    HEllo,

    could you be a bit more precise, what do you need to do, what do you
    mean by " string widget"? LineEdit?

    greetings,

    tarmo

    On Tuesday 21 August 2012 23:32:11 peiman khosravi wrote:

    Hello,

    I'm preparing some teaching material for September and was wondering
    if there is an easy way to type the data for a linseg in a string
    widget? Or some other way of defining a linseg with arbitrary segments.

    Thanks
    Peiman






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"




Date2012-08-22 11:31
Frompeiman khosravi
SubjectRe: [Csnd] CsoundQT question
mind you, I still can't think how one can dynamically create orchestra lines once the strings are converted to numbers. It's fine if you have a preconceived number of line segments:


ival1       [someUDO] String
idur1       [someUDO] String
.
.
.

kvalue    linseg    ival1, idur1, ival2, idur2,...

But how is it possible if you don't know the number of segments in advance?

P



On 22 August 2012 11:24, peiman khosravi <peimankhosravi@gmail.com> wrote:
Thanks Tarmo,

I think python isn't really appropriate for the beginner students. Sounds like Joachim's udo is the way forward. I'll have a look in a min.

Thanks for your help.

Best,
Peiman




On 22 August 2012 11:07, Tarmo Johannes <tarmo.johannes@otsakool.edu.ee> wrote:

Hi,

Then Joachims string-array udos would help you or use csound string manipulation opcodes or use coundqt python functions like q.getChannelString and process it in python.
Sorry, I am not behind a computer to try out some examples.
I think there is also a perl script with tk gui in the standard csound installation to create linseg points graphically.
Please let know, if you need further hints, I'll get to it later.
Tarmo

2012 8 22 12:42 kirjutas kuupäeval "peiman khosravi" <peimankhosravi@gmail.com>:

Hi Joachim,

Yes exactly. Sorry my communication skills are a bit rusty at the moment!

Best,
Peiman

On 22 August 2012 10:30, joachim heintz <jh@joachimheintz.de> wrote:
hi peiman -

do you mean to transfer the string
"0 3 1 2 0"
to something like
kLin linseg 0, 3, 1, 2, 0
?

ciao -
        joachim


Am 22.08.2012 10:50, schrieb peiman khosravi:
Hi tarmo,

Yes I meant LineEdit. Basically I'm wondering if there is anyway to
construct line segments (at i-rate) from an arbitrary number of values
entered in LineEdit. I don't suppose there is but you never know.

I suppose one way would be to read the values into a table and then read
the table with a phasor but then you can't define exact time durations.

Thanks
Peiman

On 22 August 2012 09:24, Tarmo Johannes <tarmo@otsakool.edu.ee
<mailto:tarmo@otsakool.edu.ee>> wrote:

    __


    HEllo,

    could you be a bit more precise, what do you need to do, what do you
    mean by " string widget"? LineEdit?

    greetings,

    tarmo

    On Tuesday 21 August 2012 23:32:11 peiman khosravi wrote:

    Hello,

    I'm preparing some teaching material for September and was wondering
    if there is an easy way to type the data for a linseg in a string
    widget? Or some other way of defining a linseg with arbitrary segments.

    Thanks
    Peiman






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"





Date2012-08-22 11:35
Fromjoachim heintz
SubjectRe: [Csnd] CsoundQT question
my way would be:
1) to transform the lineedit widget input to a function table. as tarmo 
said, this can be done with 
http://www.csounds.com/udo/displayOpcode.php?opcode_id=118 (it looks 
more complex than it should, because it supports some simple math)
you can have a look at CsoundQt examples > miscellaneous > midi-tunings 
for an application.
2) to read the values in the table as if they are linseg parts. see 
below for a possible solution.
hope this helps, all best -
	j







giLin1     ftgen      1, 0, -5, -2, 0, 3, 1, 2, 0
giLin2     ftgen      2, 0, -7, -2, -3, 1, 0, 5, 1, 1, 0

   opcode TabToLin, k, i
ift        xin
iftlen     tableng    ift
indx1      =          0
indx2      =          1
indx3      =          2
segment:
if indx3 >= iftlen igoto end
iStart     table      indx1, ift
iDur       table      indx2, ift
iTarget    table      indx3, ift
            timout     0, iDur, do
            reinit     segment
do:
kOut       linseg     iStart, iDur, iTarget
indx1      =          indx1+2
indx2      =          indx2+2
indx3      =          indx3+2
end:
            xout       kOut
   endop


instr test
kOut       TabToLin   p4
            printk     .5, kOut
endin


i "test" 0 6 1
i "test" 7 10 2









Am 22.08.2012 12:07, schrieb Tarmo Johannes:
> Hi,
>
> Then Joachims string-array udos would help you or use csound string
> manipulation opcodes or use coundqt python functions like
> q.getChannelString and process it in python.
> Sorry, I am not behind a computer to try out some examples.
> I think there is also a perl script with tk gui in the standard csound
> installation to create linseg points graphically.
> Please let know, if you need further hints, I'll get to it later.
> Tarmo
>
> 2012 8 22 12:42 kirjutas kuupäeval "peiman khosravi"
> >:
>
>     Hi Joachim,
>
>     Yes exactly. Sorry my communication skills are a bit rusty at the
>     moment!
>
>     Best,
>     Peiman
>
>     On 22 August 2012 10:30, joachim heintz      > wrote:
>
>         hi peiman -
>
>         do you mean to transfer the string
>         "0 3 1 2 0"
>         to something like
>         kLin linseg 0, 3, 1, 2, 0
>         ?
>
>         ciao -
>                  joachim
>
>
>         Am 22.08.2012 10:50, schrieb peiman khosravi:
>
>             Hi tarmo,
>
>             Yes I meant LineEdit. Basically I'm wondering if there is
>             anyway to
>             construct line segments (at i-rate) from an arbitrary number
>             of values
>             entered in LineEdit. I don't suppose there is but you never
>             know.
>
>             I suppose one way would be to read the values into a table
>             and then read
>             the table with a phasor but then you can't define exact time
>             durations.
>
>             Thanks
>             Peiman
>
>             On 22 August 2012 09:24, Tarmo Johannes
>             
>                          >__> wrote:
>
>                  __
>
>
>                  HEllo,
>
>                  could you be a bit more precise, what do you need to
>             do, what do you
>                  mean by " string widget"? LineEdit?
>
>                  greetings,
>
>                  tarmo
>
>                  On Tuesday 21 August 2012 23:32:11 peiman khosravi wrote:
>
>                  Hello,
>
>                  I'm preparing some teaching material for September and
>             was wondering
>                  if there is an easy way to type the data for a linseg
>             in a string
>                  widget? Or some other way of defining a linseg with
>             arbitrary segments.
>
>                  Thanks
>                  Peiman
>
>
>
>
>
>
>         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"
>
>

Date2012-08-22 11:39
Frompeiman khosravi
SubjectRe: [Csnd] CsoundQT question
oh nice nice, thanks!

Best,
Peiman

On 22 August 2012 11:35, joachim heintz <jh@joachimheintz.de> wrote:
my way would be:
1) to transform the lineedit widget input to a function table. as tarmo said, this can be done with http://www.csounds.com/udo/displayOpcode.php?opcode_id=118 (it looks more complex than it should, because it supports some simple math)
you can have a look at CsoundQt examples > miscellaneous > midi-tunings for an application.
2) to read the values in the table as if they are linseg parts. see below for a possible solution.
hope this helps, all best -
        j


<CsoundSynthesizer>
<CsOptions>
</CsOptions>
<CsInstruments>

giLin1     ftgen      1, 0, -5, -2, 0, 3, 1, 2, 0
giLin2     ftgen      2, 0, -7, -2, -3, 1, 0, 5, 1, 1, 0

  opcode TabToLin, k, i
ift        xin
iftlen     tableng    ift
indx1      =          0
indx2      =          1
indx3      =          2
segment:
if indx3 >= iftlen igoto end
iStart     table      indx1, ift
iDur       table      indx2, ift
iTarget    table      indx3, ift
           timout     0, iDur, do
           reinit     segment
do:
kOut       linseg     iStart, iDur, iTarget
indx1      =          indx1+2
indx2      =          indx2+2
indx3      =          indx3+2
end:
           xout       kOut
  endop


instr test
kOut       TabToLin   p4
           printk     .5, kOut
endin
</CsInstruments>
<CsScore>
i "test" 0 6 1
i "test" 7 10 2
</CsScore>
</CsoundSynthesizer>







Am 22.08.2012 12:07, schrieb Tarmo Johannes:
Hi,

Then Joachims string-array udos would help you or use csound string
manipulation opcodes or use coundqt python functions like
q.getChannelString and process it in python.
Sorry, I am not behind a computer to try out some examples.
I think there is also a perl script with tk gui in the standard csound
installation to create linseg points graphically.
Please let know, if you need further hints, I'll get to it later.
Tarmo

2012 8 22 12:42 kirjutas kuupäeval "peiman khosravi"
<peimankhosravi@gmail.com <mailto:peimankhosravi@gmail.com>>:


    Hi Joachim,

    Yes exactly. Sorry my communication skills are a bit rusty at the
    moment!

    Best,
    Peiman

    On 22 August 2012 10:30, joachim heintz <jh@joachimheintz.de
    <mailto:jh@joachimheintz.de>> wrote:

        hi peiman -

        do you mean to transfer the string
        "0 3 1 2 0"
        to something like
        kLin linseg 0, 3, 1, 2, 0
        ?

        ciao -
                 joachim


        Am 22.08.2012 10:50, schrieb peiman khosravi:

            Hi tarmo,

            Yes I meant LineEdit. Basically I'm wondering if there is
            anyway to
            construct line segments (at i-rate) from an arbitrary number
            of values
            entered in LineEdit. I don't suppose there is but you never
            know.

            I suppose one way would be to read the values into a table
            and then read
            the table with a phasor but then you can't define exact time
            durations.

            Thanks
            Peiman

            On 22 August 2012 09:24, Tarmo Johannes
            <tarmo@otsakool.edu.ee <mailto:tarmo@otsakool.edu.ee>
            <mailto:tarmo@otsakool.edu.ee

            <mailto:tarmo@otsakool.edu.ee>>__> wrote:

                 __


                 HEllo,

                 could you be a bit more precise, what do you need to
            do, what do you
                 mean by " string widget"? LineEdit?

                 greetings,

                 tarmo

                 On Tuesday 21 August 2012 23:32:11 peiman khosravi wrote:

                 Hello,

                 I'm preparing some teaching material for September and
            was wondering
                 if there is an easy way to type the data for a linseg
            in a string
                 widget? Or some other way of defining a linseg with
            arbitrary segments.

                 Thanks
                 Peiman






        Send bugs reports to the Sourceforge bug tracker
        https://sourceforge.net/__tracker/?group_id=81968&atid=__564599

        <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
        <mailto: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"



Date2012-08-22 12:12
FromRichard Dobson
SubjectRe: [Csnd] CsoundQT question
On the other hand, Python is widely used and promoted in UK schools for 
teaching computing, certainly for the 14-16 age group, and in some cases 
earlier. It is one of the "approved" languages for use in the new school 
CS curriculum (whereas C and C++ are not). It would be very useful to 
have some "simple" examples of using Python (with or without Csound) to 
variously generate waveforms, note patterns, drive MIDI, etc; which 
could be posted as resources teachers could learn from, use and develop.

At least one UK exam board lists domain-specific languages as something 
students should know about, and digital audio is already an explicit 
topic, albeit currently a minor and badly documented one. There is 
therefore a small chink in the door into which the Csound foot could 
well be put.

Richard Dobson



On 22/08/2012 11:24, peiman khosravi wrote:
> Thanks Tarmo,
>
> I think python isn't really appropriate for the beginner students.
> Sounds like Joachim's udo is the way forward. I'll have a look in a min.
>
> Thanks for your help.
>
> Best,
> Peiman
>
>


Date2012-08-22 12:35
Frompeiman khosravi
SubjectRe: [Csnd] CsoundQT question
Thanks Richard,

That's very interesting. It's actually a good idea to dedicate one or two sessions to using python to create patterns. This would be a good excuse to introduce blue as well as it comes with jython: no need to worry about having python installed.

I need to think about this for a few days.

Best,
Peiman  

On 22 August 2012 12:12, Richard Dobson <richarddobson@blueyonder.co.uk> wrote:
On the other hand, Python is widely used and promoted in UK schools for teaching computing, certainly for the 14-16 age group, and in some cases earlier. It is one of the "approved" languages for use in the new school CS curriculum (whereas C and C++ are not). It would be very useful to have some "simple" examples of using Python (with or without Csound) to variously generate waveforms, note patterns, drive MIDI, etc; which could be posted as resources teachers could learn from, use and develop.

At least one UK exam board lists domain-specific languages as something students should know about, and digital audio is already an explicit topic, albeit currently a minor and badly documented one. There is therefore a small chink in the door into which the Csound foot could well be put.

Richard Dobson




On 22/08/2012 11:24, peiman khosravi wrote:
Thanks Tarmo,

I think python isn't really appropriate for the beginner students.
Sounds like Joachim's udo is the way forward. I'll have a look in a min.

Thanks for your help.

Best,
Peiman





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"



Date2012-08-22 13:29
FromRichard Boulanger
SubjectRe: [Csnd] CsoundQT question
Dear Richard and Peiman,

Please consider sharing these examples/models with all of us, possibly in the manual.

Good Luck

Dr.B.

Sent from my iPad

On Aug 22, 2012, at 7:35 AM, peiman khosravi <peimankhosravi@gmail.com> wrote:

Thanks Richard,

That's very interesting. It's actually a good idea to dedicate one or two sessions to using python to create patterns. This would be a good excuse to introduce blue as well as it comes with jython: no need to worry about having python installed.

I need to think about this for a few days.

Best,
Peiman  

On 22 August 2012 12:12, Richard Dobson <richarddobson@blueyonder.co.uk> wrote:
On the other hand, Python is widely used and promoted in UK schools for teaching computing, certainly for the 14-16 age group, and in some cases earlier. It is one of the "approved" languages for use in the new school CS curriculum (whereas C and C++ are not). It would be very useful to have some "simple" examples of using Python (with or without Csound) to variously generate waveforms, note patterns, drive MIDI, etc; which could be posted as resources teachers could learn from, use and develop.

At least one UK exam board lists domain-specific languages as something students should know about, and digital audio is already an explicit topic, albeit currently a minor and badly documented one. There is therefore a small chink in the door into which the Csound foot could well be put.

Richard Dobson




On 22/08/2012 11:24, peiman khosravi wrote:
Thanks Tarmo,

I think python isn't really appropriate for the beginner students.
Sounds like Joachim's udo is the way forward. I'll have a look in a min.

Thanks for your help.

Best,
Peiman





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"



Date2012-08-22 13:44
Fromjoachim heintz
SubjectRe: [Csnd] CsoundQT question
+1

Am 22.08.2012 14:29, schrieb Richard Boulanger:
> Dear Richard and Peiman,
>
> Please consider sharing these examples/models with all of us, possibly
> in the manual.
>
> Good Luck
>
> Dr.B.
>
> Sent from my iPad
>
> On Aug 22, 2012, at 7:35 AM, peiman khosravi  > wrote:
>
>> Thanks Richard,
>>
>> That's very interesting. It's actually a good idea to dedicate one or
>> two sessions to using python to create patterns. This would be a good
>> excuse to introduce blue as well as it comes with jython: no need to
>> worry about having python installed.
>>
>> I need to think about this for a few days.
>>
>> Best,
>> Peiman
>>
>> On 22 August 2012 12:12, Richard Dobson
>> > > wrote:
>>
>>     On the other hand, Python is widely used and promoted in UK
>>     schools for teaching computing, certainly for the 14-16 age group,
>>     and in some cases earlier. It is one of the "approved" languages
>>     for use in the new school CS curriculum (whereas C and C++ are
>>     not). It would be very useful to have some "simple" examples of
>>     using Python (with or without Csound) to variously generate
>>     waveforms, note patterns, drive MIDI, etc; which could be posted
>>     as resources teachers could learn from, use and develop.
>>
>>     At least one UK exam board lists domain-specific languages as
>>     something students should know about, and digital audio is already
>>     an explicit topic, albeit currently a minor and badly documented
>>     one. There is therefore a small chink in the door into which the
>>     Csound foot could well be put.
>>
>>     Richard Dobson
>>
>>
>>
>>
>>     On 22/08/2012 11:24, peiman khosravi wrote:
>>
>>         Thanks Tarmo,
>>
>>         I think python isn't really appropriate for the beginner students.
>>         Sounds like Joachim's udo is the way forward. I'll have a look
>>         in a min.
>>
>>         Thanks for your help.
>>
>>         Best,
>>         Peiman
>>
>>
>>
>>
>>
>>     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"
>>
>>

Date2012-08-22 14:01
Frompeiman khosravi
SubjectRe: [Csnd] CsoundQT question
For sure. Soon I'll upload all my teaching materials somewhere.

I'd be very keen to study Richard's python material too. Of course, any usage will be properly acknowledged.

Best,
Peiman 

On 22 August 2012 13:44, joachim heintz <jh@joachimheintz.de> wrote:
+1

Am 22.08.2012 14:29, schrieb Richard Boulanger:
Dear Richard and Peiman,

Please consider sharing these examples/models with all of us, possibly
in the manual.

Good Luck

Dr.B.

Sent from my iPad

On Aug 22, 2012, at 7:35 AM, peiman khosravi <peimankhosravi@gmail.com
<mailto:peimankhosravi@gmail.com>> wrote:

Thanks Richard,

That's very interesting. It's actually a good idea to dedicate one or
two sessions to using python to create patterns. This would be a good
excuse to introduce blue as well as it comes with jython: no need to
worry about having python installed.

I need to think about this for a few days.

Best,
Peiman

On 22 August 2012 12:12, Richard Dobson
<richarddobson@blueyonder.co.uk
<mailto:richarddobson@blueyonder.co.uk>> wrote:

    On the other hand, Python is widely used and promoted in UK
    schools for teaching computing, certainly for the 14-16 age group,
    and in some cases earlier. It is one of the "approved" languages
    for use in the new school CS curriculum (whereas C and C++ are
    not). It would be very useful to have some "simple" examples of
    using Python (with or without Csound) to variously generate
    waveforms, note patterns, drive MIDI, etc; which could be posted
    as resources teachers could learn from, use and develop.

    At least one UK exam board lists domain-specific languages as
    something students should know about, and digital audio is already
    an explicit topic, albeit currently a minor and badly documented
    one. There is therefore a small chink in the door into which the
    Csound foot could well be put.

    Richard Dobson




    On 22/08/2012 11:24, peiman khosravi wrote:

        Thanks Tarmo,

        I think python isn't really appropriate for the beginner students.
        Sounds like Joachim's udo is the way forward. I'll have a look
        in a min.

        Thanks for your help.

        Best,
        Peiman





    Send bugs reports to the Sourceforge bug tracker
    https://sourceforge.net/__tracker/?group_id=81968&atid=__564599

    <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
    <mailto: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"



Date2012-08-22 14:11
FromRichard Dobson
SubjectRe: [Csnd] CsoundQT question
On 22/08/2012 12:35, peiman khosravi wrote:
> Thanks Richard,
>
> That's very interesting. It's actually a good idea to dedicate one or
> two sessions to using python to create patterns. This would be a good
> excuse to introduce blue as well as it comes with jython: no need to
> worry about having python installed.
>

There is no worry - Python (both v 2 and v3) is among the standard 
authorised packages which a school will have installed as standard on 
its servers. It is also a primary language for the Raspberry Pi. 
Virtual-machine-based and self-contained scripting languages are 
especially popular for schools as students do not have to create 
standalone executables that the school server would typically prevent 
from running. So, Visual Basic is another popular choice, as is Java.

Richard Dobson


Date2012-08-22 14:22
FromRichard Dobson
SubjectRe: [Csnd] CsoundQT question
On 22/08/2012 14:01, peiman khosravi wrote:
> For sure. Soon I'll upload all my teaching materials somewhere.
>
> I'd be very keen to study Richard's python material too. Of course, any
> usage will be properly acknowledged.
>

Um, it will be a while yet - though I have dabbled with it for a while 
now, I am really only just starting on the Python learning curve. The 
'C' instinct to malloc everything imaginable does not serve me well for 
writing Python!  I have yet to do a "serious" project in it. So far I 
have used the 'wave' module to open a soundfile and write it out as text 
to a file (note to myself - update the wave module to recognise floats 
and WAVE_EX files...). My thought to begin with is to recast selected 
early projects of mine from the Programming Book in Python, mainly as a 
personal exercise -  in between writing funding proposals, as per usual!

Richard Dobson


Date2012-08-22 15:25
Frompeiman khosravi
SubjectRe: [Csnd] CsoundQT question
Wow, I don't believe I didn't use your UDO before! It's amazing.

Thanks for sharing
P

On 22 August 2012 11:35, joachim heintz <jh@joachimheintz.de> wrote:
my way would be:
1) to transform the lineedit widget input to a function table. as tarmo said, this can be done with http://www.csounds.com/udo/displayOpcode.php?opcode_id=118 (it looks more complex than it should, because it supports some simple math)
you can have a look at CsoundQt examples > miscellaneous > midi-tunings for an application.
2) to read the values in the table as if they are linseg parts. see below for a possible solution.
hope this helps, all best -
        j


<CsoundSynthesizer>
<CsOptions>
</CsOptions>
<CsInstruments>

giLin1     ftgen      1, 0, -5, -2, 0, 3, 1, 2, 0
giLin2     ftgen      2, 0, -7, -2, -3, 1, 0, 5, 1, 1, 0

  opcode TabToLin, k, i
ift        xin
iftlen     tableng    ift
indx1      =          0
indx2      =          1
indx3      =          2
segment:
if indx3 >= iftlen igoto end
iStart     table      indx1, ift
iDur       table      indx2, ift
iTarget    table      indx3, ift
           timout     0, iDur, do
           reinit     segment
do:
kOut       linseg     iStart, iDur, iTarget
indx1      =          indx1+2
indx2      =          indx2+2
indx3      =          indx3+2
end:
           xout       kOut
  endop


instr test
kOut       TabToLin   p4
           printk     .5, kOut
endin
</CsInstruments>
<CsScore>
i "test" 0 6 1
i "test" 7 10 2
</CsScore>
</CsoundSynthesizer>







Am 22.08.2012 12:07, schrieb Tarmo Johannes:
Hi,

Then Joachims string-array udos would help you or use csound string
manipulation opcodes or use coundqt python functions like
q.getChannelString and process it in python.
Sorry, I am not behind a computer to try out some examples.
I think there is also a perl script with tk gui in the standard csound
installation to create linseg points graphically.
Please let know, if you need further hints, I'll get to it later.
Tarmo

2012 8 22 12:42 kirjutas kuupäeval "peiman khosravi"
<peimankhosravi@gmail.com <mailto:peimankhosravi@gmail.com>>:


    Hi Joachim,

    Yes exactly. Sorry my communication skills are a bit rusty at the
    moment!

    Best,
    Peiman

    On 22 August 2012 10:30, joachim heintz <jh@joachimheintz.de
    <mailto:jh@joachimheintz.de>> wrote:

        hi peiman -

        do you mean to transfer the string
        "0 3 1 2 0"
        to something like
        kLin linseg 0, 3, 1, 2, 0
        ?

        ciao -
                 joachim


        Am 22.08.2012 10:50, schrieb peiman khosravi:

            Hi tarmo,

            Yes I meant LineEdit. Basically I'm wondering if there is
            anyway to
            construct line segments (at i-rate) from an arbitrary number
            of values
            entered in LineEdit. I don't suppose there is but you never
            know.

            I suppose one way would be to read the values into a table
            and then read
            the table with a phasor but then you can't define exact time
            durations.

            Thanks
            Peiman

            On 22 August 2012 09:24, Tarmo Johannes
            <tarmo@otsakool.edu.ee <mailto:tarmo@otsakool.edu.ee>
            <mailto:tarmo@otsakool.edu.ee

            <mailto:tarmo@otsakool.edu.ee>>__> wrote:

                 __


                 HEllo,

                 could you be a bit more precise, what do you need to
            do, what do you
                 mean by " string widget"? LineEdit?

                 greetings,

                 tarmo

                 On Tuesday 21 August 2012 23:32:11 peiman khosravi wrote:

                 Hello,

                 I'm preparing some teaching material for September and
            was wondering
                 if there is an easy way to type the data for a linseg
            in a string
                 widget? Or some other way of defining a linseg with
            arbitrary segments.

                 Thanks
                 Peiman






        Send bugs reports to the Sourceforge bug tracker
        https://sourceforge.net/__tracker/?group_id=81968&atid=__564599

        <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
        <mailto: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"



Date2012-08-22 15:52
Fromjoachim heintz
SubjectRe: [Csnd] CsoundQT question
Attachmentsstrays.inc  
thanks - glad you find it useful.
if you like - i always do a
#include strays.inc
with the attached file. it prevents from inserting so many lines in the 
csd file.
have fun, and keep us posted -
	joachim


Am 22.08.2012 16:25, schrieb peiman khosravi:
> Wow, I don't believe I didn't use your UDO before! It's amazing.
>
> Thanks for sharing
> P
>
> On 22 August 2012 11:35, joachim heintz  > wrote:
>
>     my way would be:
>     1) to transform the lineedit widget input to a function table. as
>     tarmo said, this can be done with
>     http://www.csounds.com/udo/__displayOpcode.php?opcode_id=__118
>      (it
>     looks more complex than it should, because it supports some simple math)
>     you can have a look at CsoundQt examples > miscellaneous >
>     midi-tunings for an application.
>     2) to read the values in the table as if they are linseg parts. see
>     below for a possible solution.
>     hope this helps, all best -
>              j
>
>
>     
>     
>     
>     
>
>     giLin1     ftgen      1, 0, -5, -2, 0, 3, 1, 2, 0
>     giLin2     ftgen      2, 0, -7, -2, -3, 1, 0, 5, 1, 1, 0
>
>        opcode TabToLin, k, i
>     ift        xin
>     iftlen     tableng    ift
>     indx1      =          0
>     indx2      =          1
>     indx3      =          2
>     segment:
>     if indx3 >= iftlen igoto end
>     iStart     table      indx1, ift
>     iDur       table      indx2, ift
>     iTarget    table      indx3, ift
>                 timout     0, iDur, do
>                 reinit     segment
>     do:
>     kOut       linseg     iStart, iDur, iTarget
>     indx1      =          indx1+2
>     indx2      =          indx2+2
>     indx3      =          indx3+2
>     end:
>                 xout       kOut
>        endop
>
>
>     instr test
>     kOut       TabToLin   p4
>                 printk     .5, kOut
>     endin
>     
>     
>     i "test" 0 6 1
>     i "test" 7 10 2
>     
>     
>
>
>
>
>
>
>
>     Am 22.08.2012 12:07, schrieb Tarmo Johannes:
>
>         Hi,
>
>         Then Joachims string-array udos would help you or use csound string
>         manipulation opcodes or use coundqt python functions like
>         q.getChannelString and process it in python.
>         Sorry, I am not behind a computer to try out some examples.
>         I think there is also a perl script with tk gui in the standard
>         csound
>         installation to create linseg points graphically.
>         Please let know, if you need further hints, I'll get to it later.
>         Tarmo
>
>         2012 8 22 12:42 kirjutas kuupäeval "peiman khosravi"
>         
>                  >>:
>
>
>              Hi Joachim,
>
>              Yes exactly. Sorry my communication skills are a bit rusty
>         at the
>              moment!
>
>              Best,
>              Peiman
>
>              On 22 August 2012 10:30, joachim heintz
>         
>              >>
>         wrote:
>
>                  hi peiman -
>
>                  do you mean to transfer the string
>                  "0 3 1 2 0"
>                  to something like
>                  kLin linseg 0, 3, 1, 2, 0
>                  ?
>
>                  ciao -
>                           joachim
>
>
>                  Am 22.08.2012 10:50, schrieb peiman khosravi:
>
>                      Hi tarmo,
>
>                      Yes I meant LineEdit. Basically I'm wondering if
>         there is
>                      anyway to
>                      construct line segments (at i-rate) from an
>         arbitrary number
>                      of values
>                      entered in LineEdit. I don't suppose there is but
>         you never
>                      know.
>
>                      I suppose one way would be to read the values into
>         a table
>                      and then read
>                      the table with a phasor but then you can't define
>         exact time
>                      durations.
>
>                      Thanks
>                      Peiman
>
>                      On 22 August 2012 09:24, Tarmo Johannes
>                                         >
>                               
>
>                               >__>__> wrote:
>
>                           __
>
>
>                           HEllo,
>
>                           could you be a bit more precise, what do you
>         need to
>                      do, what do you
>                           mean by " string widget"? LineEdit?
>
>                           greetings,
>
>                           tarmo
>
>                           On Tuesday 21 August 2012 23:32:11 peiman
>         khosravi wrote:
>
>                           Hello,
>
>                           I'm preparing some teaching material for
>         September and
>                      was wondering
>                           if there is an easy way to type the data for a
>         linseg
>                      in a string
>                           widget? Or some other way of defining a linseg
>         with
>                      arbitrary segments.
>
>                           Thanks
>                           Peiman
>
>
>
>
>
>
>                  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"
>
>

Date2012-08-22 16:13
Frompeiman khosravi
SubjectRe: [Csnd] CsoundQT question
AttachmentstableLinSeg.csd  
great, amazing.

One question: any idea why the attached csd crashes after the third triggering of instrument 2 (with the "play" button)?

This is the error I get this error when turning off the instrument.

PERF ERROR in instr 2: StrayNumToFt: not initialised

ift iftlen StrayNumToFt Stray 0 -1 -1 0

note aborted



Thanks very much
Peiman

On 22 August 2012 15:52, joachim heintz <jh@joachimheintz.de> wrote:
thanks - glad you find it useful.
if you like - i always do a
#include strays.inc
with the attached file. it prevents from inserting so many lines in the csd file.
have fun, and keep us posted -
        joachim


Am 22.08.2012 16:25, schrieb peiman khosravi:
Wow, I don't believe I didn't use your UDO before! It's amazing.

Thanks for sharing
P

On 22 August 2012 11:35, joachim heintz <jh@joachimheintz.de
<mailto:jh@joachimheintz.de>> wrote:

    my way would be:
    1) to transform the lineedit widget input to a function table. as
    tarmo said, this can be done with
    http://www.csounds.com/udo/__displayOpcode.php?opcode_id=__118

    <http://www.csounds.com/udo/displayOpcode.php?opcode_id=118> (it
    looks more complex than it should, because it supports some simple math)
    you can have a look at CsoundQt examples > miscellaneous >
    midi-tunings for an application.
    2) to read the values in the table as if they are linseg parts. see
    below for a possible solution.
    hope this helps, all best -
             j


    <CsoundSynthesizer>
    <CsOptions>
    </CsOptions>
    <CsInstruments>

    giLin1     ftgen      1, 0, -5, -2, 0, 3, 1, 2, 0
    giLin2     ftgen      2, 0, -7, -2, -3, 1, 0, 5, 1, 1, 0

       opcode TabToLin, k, i
    ift        xin
    iftlen     tableng    ift
    indx1      =          0
    indx2      =          1
    indx3      =          2
    segment:
    if indx3 >= iftlen igoto end
    iStart     table      indx1, ift
    iDur       table      indx2, ift
    iTarget    table      indx3, ift
                timout     0, iDur, do
                reinit     segment
    do:
    kOut       linseg     iStart, iDur, iTarget
    indx1      =          indx1+2
    indx2      =          indx2+2
    indx3      =          indx3+2
    end:
                xout       kOut
       endop


    instr test
    kOut       TabToLin   p4
                printk     .5, kOut
    endin
    </CsInstruments>
    <CsScore>
    i "test" 0 6 1
    i "test" 7 10 2
    </CsScore>
    </CsoundSynthesizer>







    Am 22.08.2012 12:07, schrieb Tarmo Johannes:

        Hi,

        Then Joachims string-array udos would help you or use csound string
        manipulation opcodes or use coundqt python functions like
        q.getChannelString and process it in python.
        Sorry, I am not behind a computer to try out some examples.
        I think there is also a perl script with tk gui in the standard
        csound
        installation to create linseg points graphically.
        Please let know, if you need further hints, I'll get to it later.
        Tarmo

        2012 8 22 12:42 kirjutas kuupäeval "peiman khosravi"
        <peimankhosravi@gmail.com <mailto:peimankhosravi@gmail.com>
        <mailto:peimankhosravi@gmail.__com

        <mailto:peimankhosravi@gmail.com>>>:


             Hi Joachim,

             Yes exactly. Sorry my communication skills are a bit rusty
        at the
             moment!

             Best,
             Peiman

             On 22 August 2012 10:30, joachim heintz
        <jh@joachimheintz.de <mailto:jh@joachimheintz.de>
             <mailto:jh@joachimheintz.de <mailto:jh@joachimheintz.de>>>

        wrote:

                 hi peiman -

                 do you mean to transfer the string
                 "0 3 1 2 0"
                 to something like
                 kLin linseg 0, 3, 1, 2, 0
                 ?

                 ciao -
                          joachim


                 Am 22.08.2012 10:50, schrieb peiman khosravi:

                     Hi tarmo,

                     Yes I meant LineEdit. Basically I'm wondering if
        there is
                     anyway to
                     construct line segments (at i-rate) from an
        arbitrary number
                     of values
                     entered in LineEdit. I don't suppose there is but
        you never
                     know.

                     I suppose one way would be to read the values into
        a table
                     and then read
                     the table with a phasor but then you can't define
        exact time
                     durations.

                     Thanks
                     Peiman

                     On 22 August 2012 09:24, Tarmo Johannes
                     <tarmo@otsakool.edu.ee
        <mailto:tarmo@otsakool.edu.ee> <mailto:tarmo@otsakool.edu.ee
        <mailto:tarmo@otsakool.edu.ee>>
                     <mailto:tarmo@otsakool.edu.ee
        <mailto:tarmo@otsakool.edu.ee>

                     <mailto:tarmo@otsakool.edu.ee
        <mailto:tarmo@otsakool.edu.ee>>__>__> wrote:

                          __


                          HEllo,

                          could you be a bit more precise, what do you
        need to
                     do, what do you
                          mean by " string widget"? LineEdit?

                          greetings,

                          tarmo

                          On Tuesday 21 August 2012 23:32:11 peiman
        khosravi wrote:

                          Hello,

                          I'm preparing some teaching material for
        September and
                     was wondering
                          if there is an easy way to type the data for a
        linseg
                     in a string
                          widget? Or some other way of defining a linseg
        with
                     arbitrary segments.

                          Thanks
                          Peiman






                 Send bugs reports to the Sourceforge bug tracker
        https://sourceforge.net/____tracker/?group_id=81968&atid=____564599
        <https://sourceforge.net/__tracker/?group_id=81968&atid=__564599>



        <https://sourceforge.net/__tracker/?group_id=81968&atid=__564599
        <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
        <mailto:sympa@lists.bath.ac.uk>
                 <mailto:sympa@lists.bath.ac.uk
        <mailto: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
    <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
    <mailto: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"



Date2012-08-22 16:40
Fromjoachim heintz
SubjectRe: [Csnd] CsoundQT question
good question; just one of the developers might be able to answer.

but i think there can be found another way. what do you actually want to 
do when you set the play button to 1 respectively 0?


Am 22.08.2012 17:13, schrieb peiman khosravi:
> great, amazing.
>
> One question: any idea why the attached csd crashes after the third
> triggering of instrument 2 (with the "play" button)?
>
> This is the error I get this error when turning off the instrument.
>
> PERF ERROR in instr 2: StrayNumToFt: not initialised
>
> ift iftlen StrayNumToFt Stray 0 -1 -1 0
>
> note aborted
>
>
>
> Thanks very much
> Peiman
>
> On 22 August 2012 15:52, joachim heintz  > wrote:
>
>     thanks - glad you find it useful.
>     if you like - i always do a
>     #include strays.inc
>     with the attached file. it prevents from inserting so many lines in
>     the csd file.
>     have fun, and keep us posted -
>              joachim
>
>
>     Am 22.08.2012 16:25, schrieb peiman khosravi:
>
>         Wow, I don't believe I didn't use your UDO before! It's amazing.
>
>         Thanks for sharing
>         P
>
>         On 22 August 2012 11:35, joachim heintz          
>         >> wrote:
>
>              my way would be:
>              1) to transform the lineedit widget input to a function
>         table. as
>              tarmo said, this can be done with
>         http://www.csounds.com/udo/____displayOpcode.php?opcode_id=____118
>         
>
>
>                  > (it
>              looks more complex than it should, because it supports some
>         simple math)
>              you can have a look at CsoundQt examples > miscellaneous >
>              midi-tunings for an application.
>              2) to read the values in the table as if they are linseg
>         parts. see
>              below for a possible solution.
>              hope this helps, all best -
>                       j
>
>
>              
>              
>              
>              
>
>              giLin1     ftgen      1, 0, -5, -2, 0, 3, 1, 2, 0
>              giLin2     ftgen      2, 0, -7, -2, -3, 1, 0, 5, 1, 1, 0
>
>                 opcode TabToLin, k, i
>              ift        xin
>              iftlen     tableng    ift
>              indx1      =          0
>              indx2      =          1
>              indx3      =          2
>              segment:
>              if indx3 >= iftlen igoto end
>              iStart     table      indx1, ift
>              iDur       table      indx2, ift
>              iTarget    table      indx3, ift
>                          timout     0, iDur, do
>                          reinit     segment
>              do:
>              kOut       linseg     iStart, iDur, iTarget
>              indx1      =          indx1+2
>              indx2      =          indx2+2
>              indx3      =          indx3+2
>              end:
>                          xout       kOut
>                 endop
>
>
>              instr test
>              kOut       TabToLin   p4
>                          printk     .5, kOut
>              endin
>              
>              
>              i "test" 0 6 1
>              i "test" 7 10 2
>              
>              
>
>
>
>
>
>
>
>              Am 22.08.2012 12:07, schrieb Tarmo Johannes:
>
>                  Hi,
>
>                  Then Joachims string-array udos would help you or use
>         csound string
>                  manipulation opcodes or use coundqt python functions like
>                  q.getChannelString and process it in python.
>                  Sorry, I am not behind a computer to try out some examples.
>                  I think there is also a perl script with tk gui in the
>         standard
>                  csound
>                  installation to create linseg points graphically.
>                  Please let know, if you need further hints, I'll get to
>         it later.
>                  Tarmo
>
>                  2012 8 22 12:42 kirjutas kuupäeval "peiman khosravi"
>                           
>                  >
>                           ____com
>
>                           >>>:
>
>
>                       Hi Joachim,
>
>                       Yes exactly. Sorry my communication skills are a
>         bit rusty
>                  at the
>                       moment!
>
>                       Best,
>                       Peiman
>
>                       On 22 August 2012 10:30, joachim heintz
>                  
>         >
>                                          >>>
>
>                  wrote:
>
>                           hi peiman -
>
>                           do you mean to transfer the string
>                           "0 3 1 2 0"
>                           to something like
>                           kLin linseg 0, 3, 1, 2, 0
>                           ?
>
>                           ciao -
>                                    joachim
>
>
>                           Am 22.08.2012 10:50, schrieb peiman khosravi:
>
>                               Hi tarmo,
>
>                               Yes I meant LineEdit. Basically I'm
>         wondering if
>                  there is
>                               anyway to
>                               construct line segments (at i-rate) from an
>                  arbitrary number
>                               of values
>                               entered in LineEdit. I don't suppose there
>         is but
>                  you never
>                               know.
>
>                               I suppose one way would be to read the
>         values into
>                  a table
>                               and then read
>                               the table with a phasor but then you can't
>         define
>                  exact time
>                               durations.
>
>                               Thanks
>                               Peiman
>
>                               On 22 August 2012 09:24, Tarmo Johannes
>                                        
>                           >          
>                           >__>
>                                        
>                           >
>
>                                        
>                           >__>__>__> wrote:
>
>                                    __
>
>
>                                    HEllo,
>
>                                    could you be a bit more precise, what
>         do you
>                  need to
>                               do, what do you
>                                    mean by " string widget"? LineEdit?
>
>                                    greetings,
>
>                                    tarmo
>
>                                    On Tuesday 21 August 2012 23:32:11 peiman
>                  khosravi wrote:
>
>                                    Hello,
>
>                                    I'm preparing some teaching material for
>                  September and
>                               was wondering
>                                    if there is an easy way to type the
>         data for a
>                  linseg
>                               in a string
>                                    widget? Or some other way of defining
>         a linseg
>                  with
>                               arbitrary segments.
>
>                                    Thanks
>                                    Peiman
>
>
>
>
>
>
>                           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"
>
>

Date2012-08-22 17:24
Frompeiman khosravi
SubjectRe: [Csnd] CsoundQT question
Thanks, so at least I'm not doing something completely stupid!

Well, ideally I should be able to start/pause/carry and reinitiate the playback. But for now (re)start/stop will do I think.

Cheers,
Peiman

On 22 August 2012 16:40, joachim heintz <jh@joachimheintz.de> wrote:
good question; just one of the developers might be able to answer.

but i think there can be found another way. what do you actually want to do when you set the play button to 1 respectively 0?


Am 22.08.2012 17:13, schrieb peiman khosravi:
great, amazing.

One question: any idea why the attached csd crashes after the third
triggering of instrument 2 (with the "play" button)?

This is the error I get this error when turning off the instrument.

PERF ERROR in instr 2: StrayNumToFt: not initialised

ift iftlen StrayNumToFt Stray 0 -1 -1 0

note aborted



Thanks very much
Peiman

On 22 August 2012 15:52, joachim heintz <jh@joachimheintz.de
<mailto:jh@joachimheintz.de>> wrote:

    thanks - glad you find it useful.
    if you like - i always do a
    #include strays.inc
    with the attached file. it prevents from inserting so many lines in
    the csd file.
    have fun, and keep us posted -
             joachim


    Am 22.08.2012 16:25, schrieb peiman khosravi:

        Wow, I don't believe I didn't use your UDO before! It's amazing.

        Thanks for sharing
        P

        On 22 August 2012 11:35, joachim heintz <jh@joachimheintz.de
        <mailto:jh@joachimheintz.de>
        <mailto:jh@joachimheintz.de <mailto:jh@joachimheintz.de>>> wrote:

             my way would be:
             1) to transform the lineedit widget input to a function
        table. as
             tarmo said, this can be done with
        http://www.csounds.com/udo/____displayOpcode.php?opcode_id=____118
        <http://www.csounds.com/udo/__displayOpcode.php?opcode_id=__118>



        <http://www.csounds.com/udo/__displayOpcode.php?opcode_id=__118
        <http://www.csounds.com/udo/displayOpcode.php?opcode_id=118>> (it
             looks more complex than it should, because it supports some
        simple math)
             you can have a look at CsoundQt examples > miscellaneous >
             midi-tunings for an application.
             2) to read the values in the table as if they are linseg
        parts. see
             below for a possible solution.
             hope this helps, all best -
                      j


             <CsoundSynthesizer>
             <CsOptions>
             </CsOptions>
             <CsInstruments>

             giLin1     ftgen      1, 0, -5, -2, 0, 3, 1, 2, 0
             giLin2     ftgen      2, 0, -7, -2, -3, 1, 0, 5, 1, 1, 0

                opcode TabToLin, k, i
             ift        xin
             iftlen     tableng    ift
             indx1      =          0
             indx2      =          1
             indx3      =          2
             segment:
             if indx3 >= iftlen igoto end
             iStart     table      indx1, ift
             iDur       table      indx2, ift
             iTarget    table      indx3, ift
                         timout     0, iDur, do
                         reinit     segment
             do:
             kOut       linseg     iStart, iDur, iTarget
             indx1      =          indx1+2
             indx2      =          indx2+2
             indx3      =          indx3+2
             end:
                         xout       kOut
                endop


             instr test
             kOut       TabToLin   p4
                         printk     .5, kOut
             endin
             </CsInstruments>
             <CsScore>
             i "test" 0 6 1
             i "test" 7 10 2
             </CsScore>
             </CsoundSynthesizer>







             Am 22.08.2012 12:07, schrieb Tarmo Johannes:

                 Hi,

                 Then Joachims string-array udos would help you or use
        csound string
                 manipulation opcodes or use coundqt python functions like
                 q.getChannelString and process it in python.
                 Sorry, I am not behind a computer to try out some examples.
                 I think there is also a perl script with tk gui in the
        standard
                 csound
                 installation to create linseg points graphically.
                 Please let know, if you need further hints, I'll get to
        it later.
                 Tarmo

                 2012 8 22 12:42 kirjutas kuupäeval "peiman khosravi"
                 <peimankhosravi@gmail.com
        <mailto:peimankhosravi@gmail.com>
        <mailto:peimankhosravi@gmail.__com
        <mailto:peimankhosravi@gmail.com>>
                 <mailto:peimankhosravi@gmail.
        <mailto:peimankhosravi@gmail.>____com


                 <mailto:peimankhosravi@gmail.__com
        <mailto:peimankhosravi@gmail.com>>>>:


                      Hi Joachim,

                      Yes exactly. Sorry my communication skills are a
        bit rusty
                 at the
                      moment!

                      Best,
                      Peiman

                      On 22 August 2012 10:30, joachim heintz
                 <jh@joachimheintz.de <mailto:jh@joachimheintz.de>
        <mailto:jh@joachimheintz.de <mailto:jh@joachimheintz.de>>
                      <mailto:jh@joachimheintz.de
        <mailto:jh@joachimheintz.de> <mailto:jh@joachimheintz.de
        <mailto:jh@joachimheintz.de>>>>

                 wrote:

                          hi peiman -

                          do you mean to transfer the string
                          "0 3 1 2 0"
                          to something like
                          kLin linseg 0, 3, 1, 2, 0
                          ?

                          ciao -
                                   joachim


                          Am 22.08.2012 10:50, schrieb peiman khosravi:

                              Hi tarmo,

                              Yes I meant LineEdit. Basically I'm
        wondering if
                 there is
                              anyway to
                              construct line segments (at i-rate) from an
                 arbitrary number
                              of values
                              entered in LineEdit. I don't suppose there
        is but
                 you never
                              know.

                              I suppose one way would be to read the
        values into
                 a table
                              and then read
                              the table with a phasor but then you can't
        define
                 exact time
                              durations.

                              Thanks
                              Peiman

                              On 22 August 2012 09:24, Tarmo Johannes
                              <tarmo@otsakool.edu.ee
        <mailto:tarmo@otsakool.edu.ee>
                 <mailto:tarmo@otsakool.edu.ee
        <mailto:tarmo@otsakool.edu.ee>> <mailto:tarmo@otsakool.edu.ee
        <mailto:tarmo@otsakool.edu.ee>
                 <mailto:tarmo@otsakool.edu.ee
        <mailto:tarmo@otsakool.edu.ee>>__>
                              <mailto:tarmo@otsakool.edu.ee
        <mailto:tarmo@otsakool.edu.ee>
                 <mailto:tarmo@otsakool.edu.ee
        <mailto:tarmo@otsakool.edu.ee>>

                              <mailto:tarmo@otsakool.edu.ee
        <mailto:tarmo@otsakool.edu.ee>
                 <mailto:tarmo@otsakool.edu.ee
        <mailto:tarmo@otsakool.edu.ee>>__>__>__> wrote:

                                   __


                                   HEllo,

                                   could you be a bit more precise, what
        do you
                 need to
                              do, what do you
                                   mean by " string widget"? LineEdit?

                                   greetings,

                                   tarmo

                                   On Tuesday 21 August 2012 23:32:11 peiman
                 khosravi wrote:

                                   Hello,

                                   I'm preparing some teaching material for
                 September and
                              was wondering
                                   if there is an easy way to type the
        data for a
                 linseg
                              in a string
                                   widget? Or some other way of defining
        a linseg
                 with
                              arbitrary segments.

                                   Thanks
                                   Peiman






                          Send bugs reports to the Sourceforge bug tracker
        https://sourceforge.net/______tracker/?group_id=81968&atid=______564599
        <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599>


        <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599
        <https://sourceforge.net/__tracker/?group_id=81968&atid=__564599>>




        <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599
        <https://sourceforge.net/__tracker/?group_id=81968&atid=__564599>

        <https://sourceforge.net/__tracker/?group_id=81968&atid=__564599
        <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 <mailto:sympa@lists.bath.ac.uk>
                 <mailto:sympa@lists.bath.ac.uk
        <mailto:sympa@lists.bath.ac.uk>__>
                          <mailto:sympa@lists.bath.ac.uk
        <mailto:sympa@lists.bath.ac.uk>
                 <mailto:sympa@lists.bath.ac.uk
        <mailto: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
        <https://sourceforge.net/__tracker/?group_id=81968&atid=__564599>

        <https://sourceforge.net/__tracker/?group_id=81968&atid=__564599
        <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
        <mailto:sympa@lists.bath.ac.uk>
             <mailto:sympa@lists.bath.ac.uk
        <mailto: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
    <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
    <mailto: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"



Date2012-08-22 17:25
Frompeiman khosravi
SubjectRe: [Csnd] CsoundQT question
PS also when restarting, I'd like the table to be refreshed with newly entered values, hence putting the whole thing inside one instrument block.

P

On 22 August 2012 17:24, peiman khosravi <peimankhosravi@gmail.com> wrote:
Thanks, so at least I'm not doing something completely stupid!

Well, ideally I should be able to start/pause/carry and reinitiate the playback. But for now (re)start/stop will do I think.

Cheers,
Peiman


On 22 August 2012 16:40, joachim heintz <jh@joachimheintz.de> wrote:
good question; just one of the developers might be able to answer.

but i think there can be found another way. what do you actually want to do when you set the play button to 1 respectively 0?


Am 22.08.2012 17:13, schrieb peiman khosravi:
great, amazing.

One question: any idea why the attached csd crashes after the third
triggering of instrument 2 (with the "play" button)?

This is the error I get this error when turning off the instrument.

PERF ERROR in instr 2: StrayNumToFt: not initialised

ift iftlen StrayNumToFt Stray 0 -1 -1 0

note aborted



Thanks very much
Peiman

On 22 August 2012 15:52, joachim heintz <jh@joachimheintz.de
<mailto:jh@joachimheintz.de>> wrote:

    thanks - glad you find it useful.
    if you like - i always do a
    #include strays.inc
    with the attached file. it prevents from inserting so many lines in
    the csd file.
    have fun, and keep us posted -
             joachim


    Am 22.08.2012 16:25, schrieb peiman khosravi:

        Wow, I don't believe I didn't use your UDO before! It's amazing.

        Thanks for sharing
        P

        On 22 August 2012 11:35, joachim heintz <jh@joachimheintz.de
        <mailto:jh@joachimheintz.de>
        <mailto:jh@joachimheintz.de <mailto:jh@joachimheintz.de>>> wrote:

             my way would be:
             1) to transform the lineedit widget input to a function
        table. as
             tarmo said, this can be done with
        http://www.csounds.com/udo/____displayOpcode.php?opcode_id=____118
        <http://www.csounds.com/udo/__displayOpcode.php?opcode_id=__118>



        <http://www.csounds.com/udo/__displayOpcode.php?opcode_id=__118
        <http://www.csounds.com/udo/displayOpcode.php?opcode_id=118>> (it
             looks more complex than it should, because it supports some
        simple math)
             you can have a look at CsoundQt examples > miscellaneous >
             midi-tunings for an application.
             2) to read the values in the table as if they are linseg
        parts. see
             below for a possible solution.
             hope this helps, all best -
                      j


             <CsoundSynthesizer>
             <CsOptions>
             </CsOptions>
             <CsInstruments>

             giLin1     ftgen      1, 0, -5, -2, 0, 3, 1, 2, 0
             giLin2     ftgen      2, 0, -7, -2, -3, 1, 0, 5, 1, 1, 0

                opcode TabToLin, k, i
             ift        xin
             iftlen     tableng    ift
             indx1      =          0
             indx2      =          1
             indx3      =          2
             segment:
             if indx3 >= iftlen igoto end
             iStart     table      indx1, ift
             iDur       table      indx2, ift
             iTarget    table      indx3, ift
                         timout     0, iDur, do
                         reinit     segment
             do:
             kOut       linseg     iStart, iDur, iTarget
             indx1      =          indx1+2
             indx2      =          indx2+2
             indx3      =          indx3+2
             end:
                         xout       kOut
                endop


             instr test
             kOut       TabToLin   p4
                         printk     .5, kOut
             endin
             </CsInstruments>
             <CsScore>
             i "test" 0 6 1
             i "test" 7 10 2
             </CsScore>
             </CsoundSynthesizer>







             Am 22.08.2012 12:07, schrieb Tarmo Johannes:

                 Hi,

                 Then Joachims string-array udos would help you or use
        csound string
                 manipulation opcodes or use coundqt python functions like
                 q.getChannelString and process it in python.
                 Sorry, I am not behind a computer to try out some examples.
                 I think there is also a perl script with tk gui in the
        standard
                 csound
                 installation to create linseg points graphically.
                 Please let know, if you need further hints, I'll get to
        it later.
                 Tarmo

                 2012 8 22 12:42 kirjutas kuupäeval "peiman khosravi"
                 <peimankhosravi@gmail.com
        <mailto:peimankhosravi@gmail.com>
        <mailto:peimankhosravi@gmail.__com
        <mailto:peimankhosravi@gmail.com>>
                 <mailto:peimankhosravi@gmail.
        <mailto:peimankhosravi@gmail.>____com


                 <mailto:peimankhosravi@gmail.__com
        <mailto:peimankhosravi@gmail.com>>>>:


                      Hi Joachim,

                      Yes exactly. Sorry my communication skills are a
        bit rusty
                 at the
                      moment!

                      Best,
                      Peiman

                      On 22 August 2012 10:30, joachim heintz
                 <jh@joachimheintz.de <mailto:jh@joachimheintz.de>
        <mailto:jh@joachimheintz.de <mailto:jh@joachimheintz.de>>
                      <mailto:jh@joachimheintz.de
        <mailto:jh@joachimheintz.de> <mailto:jh@joachimheintz.de
        <mailto:jh@joachimheintz.de>>>>

                 wrote:

                          hi peiman -

                          do you mean to transfer the string
                          "0 3 1 2 0"
                          to something like
                          kLin linseg 0, 3, 1, 2, 0
                          ?

                          ciao -
                                   joachim


                          Am 22.08.2012 10:50, schrieb peiman khosravi:

                              Hi tarmo,

                              Yes I meant LineEdit. Basically I'm
        wondering if
                 there is
                              anyway to
                              construct line segments (at i-rate) from an
                 arbitrary number
                              of values
                              entered in LineEdit. I don't suppose there
        is but
                 you never
                              know.

                              I suppose one way would be to read the
        values into
                 a table
                              and then read
                              the table with a phasor but then you can't
        define
                 exact time
                              durations.

                              Thanks
                              Peiman

                              On 22 August 2012 09:24, Tarmo Johannes
                              <tarmo@otsakool.edu.ee
        <mailto:tarmo@otsakool.edu.ee>
                 <mailto:tarmo@otsakool.edu.ee
        <mailto:tarmo@otsakool.edu.ee>> <mailto:tarmo@otsakool.edu.ee
        <mailto:tarmo@otsakool.edu.ee>
                 <mailto:tarmo@otsakool.edu.ee
        <mailto:tarmo@otsakool.edu.ee>>__>
                              <mailto:tarmo@otsakool.edu.ee
        <mailto:tarmo@otsakool.edu.ee>
                 <mailto:tarmo@otsakool.edu.ee
        <mailto:tarmo@otsakool.edu.ee>>

                              <mailto:tarmo@otsakool.edu.ee
        <mailto:tarmo@otsakool.edu.ee>
                 <mailto:tarmo@otsakool.edu.ee
        <mailto:tarmo@otsakool.edu.ee>>__>__>__> wrote:

                                   __


                                   HEllo,

                                   could you be a bit more precise, what
        do you
                 need to
                              do, what do you
                                   mean by " string widget"? LineEdit?

                                   greetings,

                                   tarmo

                                   On Tuesday 21 August 2012 23:32:11 peiman
                 khosravi wrote:

                                   Hello,

                                   I'm preparing some teaching material for
                 September and
                              was wondering
                                   if there is an easy way to type the
        data for a
                 linseg
                              in a string
                                   widget? Or some other way of defining
        a linseg
                 with
                              arbitrary segments.

                                   Thanks
                                   Peiman






                          Send bugs reports to the Sourceforge bug tracker
        https://sourceforge.net/______tracker/?group_id=81968&atid=______564599
        <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599>


        <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599
        <https://sourceforge.net/__tracker/?group_id=81968&atid=__564599>>




        <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599
        <https://sourceforge.net/__tracker/?group_id=81968&atid=__564599>

        <https://sourceforge.net/__tracker/?group_id=81968&atid=__564599
        <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 <mailto:sympa@lists.bath.ac.uk>
                 <mailto:sympa@lists.bath.ac.uk
        <mailto:sympa@lists.bath.ac.uk>__>
                          <mailto:sympa@lists.bath.ac.uk
        <mailto:sympa@lists.bath.ac.uk>
                 <mailto:sympa@lists.bath.ac.uk
        <mailto: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
        <https://sourceforge.net/__tracker/?group_id=81968&atid=__564599>

        <https://sourceforge.net/__tracker/?group_id=81968&atid=__564599
        <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
        <mailto:sympa@lists.bath.ac.uk>
             <mailto:sympa@lists.bath.ac.uk
        <mailto: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
    <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
    <mailto: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"




Date2012-08-22 17:46
Fromjoachim heintz
SubjectRe: [Csnd] CsoundQT question
ah, now i remember - i once had a similar problem with turnoff2.
it works with the other option of stopping an instrument, a negative p1:
http://www.csounds.com/manual/html/i.html

so, just use the line
event "i", -2, 0, 0
instead of the turnoff2 statement, and it should work (does for me).

best -
	j


Am 22.08.2012 18:25, schrieb peiman khosravi:
> PS also when restarting, I'd like the table to be refreshed with newly
> entered values, hence putting the whole thing inside one instrument block.
>
> P
>
> On 22 August 2012 17:24, peiman khosravi  > wrote:
>
>     Thanks, so at least I'm not doing something completely stupid!
>
>     Well, ideally I should be able to start/pause/carry and reinitiate
>     the playback. But for now (re)start/stop will do I think.
>
>     Cheers,
>     Peiman
>
>
>     On 22 August 2012 16:40, joachim heintz      > wrote:
>
>         good question; just one of the developers might be able to answer.
>
>         but i think there can be found another way. what do you actually
>         want to do when you set the play button to 1 respectively 0?
>
>
>         Am 22.08.2012 17:13, schrieb peiman khosravi:
>
>             great, amazing.
>
>             One question: any idea why the attached csd crashes after
>             the third
>             triggering of instrument 2 (with the "play" button)?
>
>             This is the error I get this error when turning off the
>             instrument.
>
>             PERF ERROR in instr 2: StrayNumToFt: not initialised
>
>             ift iftlen StrayNumToFt Stray 0 -1 -1 0
>
>             note aborted
>
>
>
>             Thanks very much
>             Peiman
>
>             On 22 August 2012 15:52, joachim heintz              
>             >>
>             wrote:
>
>                  thanks - glad you find it useful.
>                  if you like - i always do a
>                  #include strays.inc
>                  with the attached file. it prevents from inserting so
>             many lines in
>                  the csd file.
>                  have fun, and keep us posted -
>                           joachim
>
>
>                  Am 22.08.2012 16:25, schrieb peiman khosravi:
>
>                      Wow, I don't believe I didn't use your UDO before!
>             It's amazing.
>
>                      Thanks for sharing
>                      P
>
>                      On 22 August 2012 11:35, joachim heintz
>             
>                                   >
>                                                 >>> wrote:
>
>                           my way would be:
>                           1) to transform the lineedit widget input to a
>             function
>                      table. as
>                           tarmo said, this can be done with
>             http://www.csounds.com/udo/______displayOpcode.php?opcode_id=______118
>             
>
>                          >
>
>
>
>
>                          
>
>                          >>
>             (it
>                           looks more complex than it should, because it
>             supports some
>                      simple math)
>                           you can have a look at CsoundQt examples >
>             miscellaneous >
>                           midi-tunings for an application.
>                           2) to read the values in the table as if they
>             are linseg
>                      parts. see
>                           below for a possible solution.
>                           hope this helps, all best -
>                                    j
>
>
>                           
>                           
>                           
>                           
>
>                           giLin1     ftgen      1, 0, -5, -2, 0, 3, 1, 2, 0
>                           giLin2     ftgen      2, 0, -7, -2, -3, 1, 0,
>             5, 1, 1, 0
>
>                              opcode TabToLin, k, i
>                           ift        xin
>                           iftlen     tableng    ift
>                           indx1      =          0
>                           indx2      =          1
>                           indx3      =          2
>                           segment:
>                           if indx3 >= iftlen igoto end
>                           iStart     table      indx1, ift
>                           iDur       table      indx2, ift
>                           iTarget    table      indx3, ift
>                                       timout     0, iDur, do
>                                       reinit     segment
>                           do:
>                           kOut       linseg     iStart, iDur, iTarget
>                           indx1      =          indx1+2
>                           indx2      =          indx2+2
>                           indx3      =          indx3+2
>                           end:
>                                       xout       kOut
>                              endop
>
>
>                           instr test
>                           kOut       TabToLin   p4
>                                       printk     .5, kOut
>                           endin
>                           
>                           
>                           i "test" 0 6 1
>                           i "test" 7 10 2
>                           
>                           
>
>
>
>
>
>
>
>                           Am 22.08.2012 12:07, schrieb Tarmo Johannes:
>
>                               Hi,
>
>                               Then Joachims string-array udos would help
>             you or use
>                      csound string
>                               manipulation opcodes or use coundqt python
>             functions like
>                               q.getChannelString and process it in python.
>                               Sorry, I am not behind a computer to try
>             out some examples.
>                               I think there is also a perl script with
>             tk gui in the
>                      standard
>                               csound
>                               installation to create linseg points
>             graphically.
>                               Please let know, if you need further
>             hints, I'll get to
>                      it later.
>                               Tarmo
>
>                               2012 8 22 12:42 kirjutas kuupäeval "peiman
>             khosravi"
>                                            
>                                   >
>                                   ____com
>                                   >>
>                                            .
>                                   .>______com
>
>
>                                            ____com
>                                   >>>>:
>
>
>                                    Hi Joachim,
>
>                                    Yes exactly. Sorry my communication
>             skills are a
>                      bit rusty
>                               at the
>                                    moment!
>
>                                    Best,
>                                    Peiman
>
>                                    On 22 August 2012 10:30, joachim heintz
>                                                          >
>                                                 >>
>                                                 
>                                   >              
>                                   >>>__>
>
>                               wrote:
>
>                                        hi peiman -
>
>                                        do you mean to transfer the string
>                                        "0 3 1 2 0"
>                                        to something like
>                                        kLin linseg 0, 3, 1, 2, 0
>                                        ?
>
>                                        ciao -
>                                                 joachim
>
>
>                                        Am 22.08.2012 10:50, schrieb
>             peiman khosravi:
>
>                                            Hi tarmo,
>
>                                            Yes I meant LineEdit.
>             Basically I'm
>                      wondering if
>                               there is
>                                            anyway to
>                                            construct line segments (at
>             i-rate) from an
>                               arbitrary number
>                                            of values
>                                            entered in LineEdit. I don't
>             suppose there
>                      is but
>                               you never
>                                            know.
>
>                                            I suppose one way would be to
>             read the
>                      values into
>                               a table
>                                            and then read
>                                            the table with a phasor but
>             then you can't
>                      define
>                               exact time
>                                            durations.
>
>                                            Thanks
>                                            Peiman
>
>                                            On 22 August 2012 09:24,
>             Tarmo Johannes
>                                                         
>                                   >
>                                            
>                                   >__>
>             
>                                   >
>                                            
>                                   >__>__>
>                                                         
>                                   >
>                                            
>                                   >__>
>
>                                                         
>                                   >
>                                            
>                                   >__>__>__>__> wrote:
>
>                                                 __
>
>
>                                                 HEllo,
>
>                                                 could you be a bit more
>             precise, what
>                      do you
>                               need to
>                                            do, what do you
>                                                 mean by " string
>             widget"? LineEdit?
>
>                                                 greetings,
>
>                                                 tarmo
>
>                                                 On Tuesday 21 August
>             2012 23:32:11 peiman
>                               khosravi wrote:
>
>                                                 Hello,
>
>                                                 I'm preparing some
>             teaching material for
>                               September and
>                                            was wondering
>                                                 if there is an easy way
>             to type the
>                      data for a
>                               linseg
>                                            in a string
>                                                 widget? Or some other
>             way of defining
>                      a linseg
>                               with
>                                            arbitrary segments.
>
>                                                 Thanks
>                                                 Peiman
>
>
>
>
>
>
>                                        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"
>
>
>

Date2012-08-22 17:59
Frompeiman khosravi
SubjectRe: [Csnd] CsoundQT question
Amazing, Thanks so much. Add a few more beers to the long list!

Best,
Peiman

On 22 August 2012 17:46, joachim heintz <jh@joachimheintz.de> wrote:
ah, now i remember - i once had a similar problem with turnoff2.
it works with the other option of stopping an instrument, a negative p1:
http://www.csounds.com/manual/html/i.html

so, just use the line
event "i", -2, 0, 0
instead of the turnoff2 statement, and it should work (does for me).

best -
        j


Am 22.08.2012 18:25, schrieb peiman khosravi:
PS also when restarting, I'd like the table to be refreshed with newly
entered values, hence putting the whole thing inside one instrument block.

P

On 22 August 2012 17:24, peiman khosravi <peimankhosravi@gmail.com
<mailto:peimankhosravi@gmail.com>> wrote:

    Thanks, so at least I'm not doing something completely stupid!

    Well, ideally I should be able to start/pause/carry and reinitiate
    the playback. But for now (re)start/stop will do I think.

    Cheers,
    Peiman


    On 22 August 2012 16:40, joachim heintz <jh@joachimheintz.de
    <mailto:jh@joachimheintz.de>> wrote:

        good question; just one of the developers might be able to answer.

        but i think there can be found another way. what do you actually
        want to do when you set the play button to 1 respectively 0?


        Am 22.08.2012 17:13, schrieb peiman khosravi:

            great, amazing.

            One question: any idea why the attached csd crashes after
            the third
            triggering of instrument 2 (with the "play" button)?

            This is the error I get this error when turning off the
            instrument.

            PERF ERROR in instr 2: StrayNumToFt: not initialised

            ift iftlen StrayNumToFt Stray 0 -1 -1 0

            note aborted



            Thanks very much
            Peiman

            On 22 August 2012 15:52, joachim heintz <jh@joachimheintz.de
            <mailto:jh@joachimheintz.de>
            <mailto:jh@joachimheintz.de <mailto:jh@joachimheintz.de>>>
            wrote:

                 thanks - glad you find it useful.
                 if you like - i always do a
                 #include strays.inc
                 with the attached file. it prevents from inserting so
            many lines in
                 the csd file.
                 have fun, and keep us posted -
                          joachim


                 Am 22.08.2012 16:25, schrieb peiman khosravi:

                     Wow, I don't believe I didn't use your UDO before!
            It's amazing.

                     Thanks for sharing
                     P

                     On 22 August 2012 11:35, joachim heintz
            <jh@joachimheintz.de <mailto:jh@joachimheintz.de>
                     <mailto:jh@joachimheintz.de
            <mailto:jh@joachimheintz.de>>
                     <mailto:jh@joachimheintz.de
            <mailto:jh@joachimheintz.de> <mailto:jh@joachimheintz.de
            <mailto:jh@joachimheintz.de>>>> wrote:

                          my way would be:
                          1) to transform the lineedit widget input to a
            function
                     table. as
                          tarmo said, this can be done with
            http://www.csounds.com/udo/______displayOpcode.php?opcode_id=______118
            <http://www.csounds.com/udo/____displayOpcode.php?opcode_id=____118>


            <http://www.csounds.com/udo/____displayOpcode.php?opcode_id=____118
            <http://www.csounds.com/udo/__displayOpcode.php?opcode_id=__118>>




            <http://www.csounds.com/udo/____displayOpcode.php?opcode_id=____118
            <http://www.csounds.com/udo/__displayOpcode.php?opcode_id=__118>

            <http://www.csounds.com/udo/__displayOpcode.php?opcode_id=__118
            <http://www.csounds.com/udo/displayOpcode.php?opcode_id=118>>>
            (it
                          looks more complex than it should, because it
            supports some
                     simple math)
                          you can have a look at CsoundQt examples >
            miscellaneous >
                          midi-tunings for an application.
                          2) to read the values in the table as if they
            are linseg
                     parts. see
                          below for a possible solution.
                          hope this helps, all best -
                                   j


                          <CsoundSynthesizer>
                          <CsOptions>
                          </CsOptions>
                          <CsInstruments>

                          giLin1     ftgen      1, 0, -5, -2, 0, 3, 1, 2, 0
                          giLin2     ftgen      2, 0, -7, -2, -3, 1, 0,
            5, 1, 1, 0

                             opcode TabToLin, k, i
                          ift        xin
                          iftlen     tableng    ift
                          indx1      =          0
                          indx2      =          1
                          indx3      =          2
                          segment:
                          if indx3 >= iftlen igoto end
                          iStart     table      indx1, ift
                          iDur       table      indx2, ift
                          iTarget    table      indx3, ift
                                      timout     0, iDur, do
                                      reinit     segment
                          do:
                          kOut       linseg     iStart, iDur, iTarget
                          indx1      =          indx1+2
                          indx2      =          indx2+2
                          indx3      =          indx3+2
                          end:
                                      xout       kOut
                             endop


                          instr test
                          kOut       TabToLin   p4
                                      printk     .5, kOut
                          endin
                          </CsInstruments>
                          <CsScore>
                          i "test" 0 6 1
                          i "test" 7 10 2
                          </CsScore>
                          </CsoundSynthesizer>







                          Am 22.08.2012 12:07, schrieb Tarmo Johannes:

                              Hi,

                              Then Joachims string-array udos would help
            you or use
                     csound string
                              manipulation opcodes or use coundqt python
            functions like
                              q.getChannelString and process it in python.
                              Sorry, I am not behind a computer to try
            out some examples.
                              I think there is also a perl script with
            tk gui in the
                     standard
                              csound
                              installation to create linseg points
            graphically.
                              Please let know, if you need further
            hints, I'll get to
                     it later.
                              Tarmo

                              2012 8 22 12:42 kirjutas kuupäeval "peiman
            khosravi"
                              <peimankhosravi@gmail.com
            <mailto:peimankhosravi@gmail.com>
                     <mailto:peimankhosravi@gmail.__com
            <mailto:peimankhosravi@gmail.com>>
                     <mailto:peimankhosravi@gmail.
            <mailto:peimankhosravi@gmail.>____com
                     <mailto:peimankhosravi@gmail.__com
            <mailto:peimankhosravi@gmail.com>>>
                              <mailto:peimankhosravi@gmail
            <mailto:peimankhosravi@gmail>.
                     <mailto:peimankhosravi@gmail
            <mailto:peimankhosravi@gmail>.>______com



                              <mailto:peimankhosravi@gmail.
            <mailto:peimankhosravi@gmail.>____com
                     <mailto:peimankhosravi@gmail.__com
            <mailto:peimankhosravi@gmail.com>>>>>:


                                   Hi Joachim,

                                   Yes exactly. Sorry my communication
            skills are a
                     bit rusty
                              at the
                                   moment!

                                   Best,
                                   Peiman

                                   On 22 August 2012 10:30, joachim heintz
                              <jh@joachimheintz.de
            <mailto:jh@joachimheintz.de> <mailto:jh@joachimheintz.de
            <mailto:jh@joachimheintz.de>>
                     <mailto:jh@joachimheintz.de
            <mailto:jh@joachimheintz.de> <mailto:jh@joachimheintz.de
            <mailto:jh@joachimheintz.de>>>
                                   <mailto:jh@joachimheintz.de
            <mailto:jh@joachimheintz.de>
                     <mailto:jh@joachimheintz.de
            <mailto:jh@joachimheintz.de>> <mailto:jh@joachimheintz.de
            <mailto:jh@joachimheintz.de>
                     <mailto:jh@joachimheintz.de
            <mailto:jh@joachimheintz.de>>>>__>


                              wrote:

                                       hi peiman -

                                       do you mean to transfer the string
                                       "0 3 1 2 0"
                                       to something like
                                       kLin linseg 0, 3, 1, 2, 0
                                       ?

                                       ciao -
                                                joachim


                                       Am 22.08.2012 10:50, schrieb
            peiman khosravi:

                                           Hi tarmo,

                                           Yes I meant LineEdit.
            Basically I'm
                     wondering if
                              there is
                                           anyway to
                                           construct line segments (at
            i-rate) from an
                              arbitrary number
                                           of values
                                           entered in LineEdit. I don't
            suppose there
                     is but
                              you never
                                           know.

                                           I suppose one way would be to
            read the
                     values into
                              a table
                                           and then read
                                           the table with a phasor but
            then you can't
                     define
                              exact time
                                           durations.

                                           Thanks
                                           Peiman

                                           On 22 August 2012 09:24,
            Tarmo Johannes
                                           <tarmo@otsakool.edu.ee
            <mailto:tarmo@otsakool.edu.ee>
                     <mailto:tarmo@otsakool.edu.ee
            <mailto:tarmo@otsakool.edu.ee>>
                              <mailto:tarmo@otsakool.edu.ee
            <mailto:tarmo@otsakool.edu.ee>
                     <mailto:tarmo@otsakool.edu.ee
            <mailto:tarmo@otsakool.edu.ee>>__>
            <mailto:tarmo@otsakool.edu.ee <mailto:tarmo@otsakool.edu.ee>
                     <mailto:tarmo@otsakool.edu.ee
            <mailto:tarmo@otsakool.edu.ee>>
                              <mailto:tarmo@otsakool.edu.ee
            <mailto:tarmo@otsakool.edu.ee>
                     <mailto:tarmo@otsakool.edu.ee
            <mailto:tarmo@otsakool.edu.ee>>__>__>
                                           <mailto:tarmo@otsakool.edu.ee
            <mailto:tarmo@otsakool.edu.ee>
                     <mailto:tarmo@otsakool.edu.ee
            <mailto:tarmo@otsakool.edu.ee>>
                              <mailto:tarmo@otsakool.edu.ee
            <mailto:tarmo@otsakool.edu.ee>
                     <mailto:tarmo@otsakool.edu.ee
            <mailto:tarmo@otsakool.edu.ee>>__>

                                           <mailto:tarmo@otsakool.edu.ee
            <mailto:tarmo@otsakool.edu.ee>
                     <mailto:tarmo@otsakool.edu.ee
            <mailto:tarmo@otsakool.edu.ee>>
                              <mailto:tarmo@otsakool.edu.ee
            <mailto:tarmo@otsakool.edu.ee>
                     <mailto:tarmo@otsakool.edu.ee
            <mailto:tarmo@otsakool.edu.ee>>__>__>__>__> wrote:

                                                __


                                                HEllo,

                                                could you be a bit more
            precise, what
                     do you
                              need to
                                           do, what do you
                                                mean by " string
            widget"? LineEdit?

                                                greetings,

                                                tarmo

                                                On Tuesday 21 August
            2012 23:32:11 peiman
                              khosravi wrote:

                                                Hello,

                                                I'm preparing some
            teaching material for
                              September and
                                           was wondering
                                                if there is an easy way
            to type the
                     data for a
                              linseg
                                           in a string
                                                widget? Or some other
            way of defining
                     a linseg
                              with
                                           arbitrary segments.

                                                Thanks
                                                Peiman






                                       Send bugs reports to the
            Sourceforge bug tracker
            https://sourceforge.net/________tracker/?group_id=81968&atid=________564599
            <https://sourceforge.net/______tracker/?group_id=81968&atid=______564599>


            <https://sourceforge.net/______tracker/?group_id=81968&atid=______564599
            <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599>>



            <https://sourceforge.net/______tracker/?group_id=81968&atid=______564599
            <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599>

            <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599
            <https://sourceforge.net/__tracker/?group_id=81968&atid=__564599>>>





            <https://sourceforge.net/______tracker/?group_id=81968&atid=______564599
            <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599>

            <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599
            <https://sourceforge.net/__tracker/?group_id=81968&atid=__564599>>


            <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599
            <https://sourceforge.net/__tracker/?group_id=81968&atid=__564599>

            <https://sourceforge.net/__tracker/?group_id=81968&atid=__564599
            <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 <mailto:sympa@lists.bath.ac.uk>
            <mailto:sympa@lists.bath.ac.uk
            <mailto:sympa@lists.bath.ac.uk>__>
                              <mailto:sympa@lists.bath.ac.uk
            <mailto:sympa@lists.bath.ac.uk>
                     <mailto:sympa@lists.bath.ac.uk
            <mailto:sympa@lists.bath.ac.uk>__>__>
                                       <mailto:sympa@lists.bath.ac.uk
            <mailto:sympa@lists.bath.ac.uk>
                     <mailto:sympa@lists.bath.ac.uk
            <mailto:sympa@lists.bath.ac.uk>__>
                              <mailto:sympa@lists.bath.ac.uk
            <mailto:sympa@lists.bath.ac.uk>
                     <mailto:sympa@lists.bath.ac.uk
            <mailto: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
            <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599>

            <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599
            <https://sourceforge.net/__tracker/?group_id=81968&atid=__564599>>


            <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599
            <https://sourceforge.net/__tracker/?group_id=81968&atid=__564599>

            <https://sourceforge.net/__tracker/?group_id=81968&atid=__564599
            <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 <mailto:sympa@lists.bath.ac.uk>
                     <mailto:sympa@lists.bath.ac.uk
            <mailto:sympa@lists.bath.ac.uk>__>
                          <mailto:sympa@lists.bath.ac.uk
            <mailto:sympa@lists.bath.ac.uk>
                     <mailto:sympa@lists.bath.ac.uk
            <mailto: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
            <https://sourceforge.net/__tracker/?group_id=81968&atid=__564599>

            <https://sourceforge.net/__tracker/?group_id=81968&atid=__564599
            <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
            <mailto:sympa@lists.bath.ac.uk>
                 <mailto:sympa@lists.bath.ac.uk
            <mailto: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
        <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
        <mailto: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"



Date2012-08-22 18:04
Frompeiman khosravi
SubjectRe: [Csnd] CsoundQT question
PS I'm really happy with CsoundQT, it's really stable now on OS X.

Thanks
P

On 22 August 2012 17:59, peiman khosravi <peimankhosravi@gmail.com> wrote:
Amazing, Thanks so much. Add a few more beers to the long list!

Best,
Peiman


On 22 August 2012 17:46, joachim heintz <jh@joachimheintz.de> wrote:
ah, now i remember - i once had a similar problem with turnoff2.
it works with the other option of stopping an instrument, a negative p1:
http://www.csounds.com/manual/html/i.html

so, just use the line
event "i", -2, 0, 0
instead of the turnoff2 statement, and it should work (does for me).

best -
        j


Am 22.08.2012 18:25, schrieb peiman khosravi:
PS also when restarting, I'd like the table to be refreshed with newly
entered values, hence putting the whole thing inside one instrument block.

P

On 22 August 2012 17:24, peiman khosravi <peimankhosravi@gmail.com
<mailto:peimankhosravi@gmail.com>> wrote:

    Thanks, so at least I'm not doing something completely stupid!

    Well, ideally I should be able to start/pause/carry and reinitiate
    the playback. But for now (re)start/stop will do I think.

    Cheers,
    Peiman


    On 22 August 2012 16:40, joachim heintz <jh@joachimheintz.de
    <mailto:jh@joachimheintz.de>> wrote:

        good question; just one of the developers might be able to answer.

        but i think there can be found another way. what do you actually
        want to do when you set the play button to 1 respectively 0?


        Am 22.08.2012 17:13, schrieb peiman khosravi:

            great, amazing.

            One question: any idea why the attached csd crashes after
            the third
            triggering of instrument 2 (with the "play" button)?

            This is the error I get this error when turning off the
            instrument.

            PERF ERROR in instr 2: StrayNumToFt: not initialised

            ift iftlen StrayNumToFt Stray 0 -1 -1 0

            note aborted



            Thanks very much
            Peiman

            On 22 August 2012 15:52, joachim heintz <jh@joachimheintz.de
            <mailto:jh@joachimheintz.de>
            <mailto:jh@joachimheintz.de <mailto:jh@joachimheintz.de>>>
            wrote:

                 thanks - glad you find it useful.
                 if you like - i always do a
                 #include strays.inc
                 with the attached file. it prevents from inserting so
            many lines in
                 the csd file.
                 have fun, and keep us posted -
                          joachim


                 Am 22.08.2012 16:25, schrieb peiman khosravi:

                     Wow, I don't believe I didn't use your UDO before!
            It's amazing.

                     Thanks for sharing
                     P

                     On 22 August 2012 11:35, joachim heintz
            <jh@joachimheintz.de <mailto:jh@joachimheintz.de>
                     <mailto:jh@joachimheintz.de
            <mailto:jh@joachimheintz.de>>
                     <mailto:jh@joachimheintz.de
            <mailto:jh@joachimheintz.de> <mailto:jh@joachimheintz.de
            <mailto:jh@joachimheintz.de>>>> wrote:

                          my way would be:
                          1) to transform the lineedit widget input to a
            function
                     table. as
                          tarmo said, this can be done with
            http://www.csounds.com/udo/______displayOpcode.php?opcode_id=______118
            <http://www.csounds.com/udo/____displayOpcode.php?opcode_id=____118>


            <http://www.csounds.com/udo/____displayOpcode.php?opcode_id=____118
            <http://www.csounds.com/udo/__displayOpcode.php?opcode_id=__118>>




            <http://www.csounds.com/udo/____displayOpcode.php?opcode_id=____118
            <http://www.csounds.com/udo/__displayOpcode.php?opcode_id=__118>

            <http://www.csounds.com/udo/__displayOpcode.php?opcode_id=__118
            <http://www.csounds.com/udo/displayOpcode.php?opcode_id=118>>>
            (it
                          looks more complex than it should, because it
            supports some
                     simple math)
                          you can have a look at CsoundQt examples >
            miscellaneous >
                          midi-tunings for an application.
                          2) to read the values in the table as if they
            are linseg
                     parts. see
                          below for a possible solution.
                          hope this helps, all best -
                                   j


                          <CsoundSynthesizer>
                          <CsOptions>
                          </CsOptions>
                          <CsInstruments>

                          giLin1     ftgen      1, 0, -5, -2, 0, 3, 1, 2, 0
                          giLin2     ftgen      2, 0, -7, -2, -3, 1, 0,
            5, 1, 1, 0

                             opcode TabToLin, k, i
                          ift        xin
                          iftlen     tableng    ift
                          indx1      =          0
                          indx2      =          1
                          indx3      =          2
                          segment:
                          if indx3 >= iftlen igoto end
                          iStart     table      indx1, ift
                          iDur       table      indx2, ift
                          iTarget    table      indx3, ift
                                      timout     0, iDur, do
                                      reinit     segment
                          do:
                          kOut       linseg     iStart, iDur, iTarget
                          indx1      =          indx1+2
                          indx2      =          indx2+2
                          indx3      =          indx3+2
                          end:
                                      xout       kOut
                             endop


                          instr test
                          kOut       TabToLin   p4
                                      printk     .5, kOut
                          endin
                          </CsInstruments>
                          <CsScore>
                          i "test" 0 6 1
                          i "test" 7 10 2
                          </CsScore>
                          </CsoundSynthesizer>







                          Am 22.08.2012 12:07, schrieb Tarmo Johannes:

                              Hi,

                              Then Joachims string-array udos would help
            you or use
                     csound string
                              manipulation opcodes or use coundqt python
            functions like
                              q.getChannelString and process it in python.
                              Sorry, I am not behind a computer to try
            out some examples.
                              I think there is also a perl script with
            tk gui in the
                     standard
                              csound
                              installation to create linseg points
            graphically.
                              Please let know, if you need further
            hints, I'll get to
                     it later.
                              Tarmo

                              2012 8 22 12:42 kirjutas kuupäeval "peiman
            khosravi"
                              <peimankhosravi@gmail.com
            <mailto:peimankhosravi@gmail.com>
                     <mailto:peimankhosravi@gmail.__com
            <mailto:peimankhosravi@gmail.com>>
                     <mailto:peimankhosravi@gmail.
            <mailto:peimankhosravi@gmail.>____com
                     <mailto:peimankhosravi@gmail.__com
            <mailto:peimankhosravi@gmail.com>>>
                              <mailto:peimankhosravi@gmail
            <mailto:peimankhosravi@gmail>.
                     <mailto:peimankhosravi@gmail
            <mailto:peimankhosravi@gmail>.>______com



                              <mailto:peimankhosravi@gmail.
            <mailto:peimankhosravi@gmail.>____com
                     <mailto:peimankhosravi@gmail.__com
            <mailto:peimankhosravi@gmail.com>>>>>:


                                   Hi Joachim,

                                   Yes exactly. Sorry my communication
            skills are a
                     bit rusty
                              at the
                                   moment!

                                   Best,
                                   Peiman

                                   On 22 August 2012 10:30, joachim heintz
                              <jh@joachimheintz.de
            <mailto:jh@joachimheintz.de> <mailto:jh@joachimheintz.de
            <mailto:jh@joachimheintz.de>>
                     <mailto:jh@joachimheintz.de
            <mailto:jh@joachimheintz.de> <mailto:jh@joachimheintz.de
            <mailto:jh@joachimheintz.de>>>
                                   <mailto:jh@joachimheintz.de
            <mailto:jh@joachimheintz.de>
                     <mailto:jh@joachimheintz.de
            <mailto:jh@joachimheintz.de>> <mailto:jh@joachimheintz.de
            <mailto:jh@joachimheintz.de>
                     <mailto:jh@joachimheintz.de
            <mailto:jh@joachimheintz.de>>>>__>


                              wrote:

                                       hi peiman -

                                       do you mean to transfer the string
                                       "0 3 1 2 0"
                                       to something like
                                       kLin linseg 0, 3, 1, 2, 0
                                       ?

                                       ciao -
                                                joachim


                                       Am 22.08.2012 10:50, schrieb
            peiman khosravi:

                                           Hi tarmo,

                                           Yes I meant LineEdit.
            Basically I'm
                     wondering if
                              there is
                                           anyway to
                                           construct line segments (at
            i-rate) from an
                              arbitrary number
                                           of values
                                           entered in LineEdit. I don't
            suppose there
                     is but
                              you never
                                           know.

                                           I suppose one way would be to
            read the
                     values into
                              a table
                                           and then read
                                           the table with a phasor but
            then you can't
                     define
                              exact time
                                           durations.

                                           Thanks
                                           Peiman

                                           On 22 August 2012 09:24,
            Tarmo Johannes
                                           <tarmo@otsakool.edu.ee
            <mailto:tarmo@otsakool.edu.ee>
                     <mailto:tarmo@otsakool.edu.ee
            <mailto:tarmo@otsakool.edu.ee>>
                              <mailto:tarmo@otsakool.edu.ee
            <mailto:tarmo@otsakool.edu.ee>
                     <mailto:tarmo@otsakool.edu.ee
            <mailto:tarmo@otsakool.edu.ee>>__>
            <mailto:tarmo@otsakool.edu.ee <mailto:tarmo@otsakool.edu.ee>
                     <mailto:tarmo@otsakool.edu.ee
            <mailto:tarmo@otsakool.edu.ee>>
                              <mailto:tarmo@otsakool.edu.ee
            <mailto:tarmo@otsakool.edu.ee>
                     <mailto:tarmo@otsakool.edu.ee
            <mailto:tarmo@otsakool.edu.ee>>__>__>
                                           <mailto:tarmo@otsakool.edu.ee
            <mailto:tarmo@otsakool.edu.ee>
                     <mailto:tarmo@otsakool.edu.ee
            <mailto:tarmo@otsakool.edu.ee>>
                              <mailto:tarmo@otsakool.edu.ee
            <mailto:tarmo@otsakool.edu.ee>
                     <mailto:tarmo@otsakool.edu.ee
            <mailto:tarmo@otsakool.edu.ee>>__>

                                           <mailto:tarmo@otsakool.edu.ee
            <mailto:tarmo@otsakool.edu.ee>
                     <mailto:tarmo@otsakool.edu.ee
            <mailto:tarmo@otsakool.edu.ee>>
                              <mailto:tarmo@otsakool.edu.ee
            <mailto:tarmo@otsakool.edu.ee>
                     <mailto:tarmo@otsakool.edu.ee
            <mailto:tarmo@otsakool.edu.ee>>__>__>__>__> wrote:

                                                __


                                                HEllo,

                                                could you be a bit more
            precise, what
                     do you
                              need to
                                           do, what do you
                                                mean by " string
            widget"? LineEdit?

                                                greetings,

                                                tarmo

                                                On Tuesday 21 August
            2012 23:32:11 peiman
                              khosravi wrote:

                                                Hello,

                                                I'm preparing some
            teaching material for
                              September and
                                           was wondering
                                                if there is an easy way
            to type the
                     data for a
                              linseg
                                           in a string
                                                widget? Or some other
            way of defining
                     a linseg
                              with
                                           arbitrary segments.

                                                Thanks
                                                Peiman






                                       Send bugs reports to the
            Sourceforge bug tracker
            https://sourceforge.net/________tracker/?group_id=81968&atid=________564599
            <https://sourceforge.net/______tracker/?group_id=81968&atid=______564599>


            <https://sourceforge.net/______tracker/?group_id=81968&atid=______564599
            <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599>>



            <https://sourceforge.net/______tracker/?group_id=81968&atid=______564599
            <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599>

            <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599
            <https://sourceforge.net/__tracker/?group_id=81968&atid=__564599>>>





            <https://sourceforge.net/______tracker/?group_id=81968&atid=______564599
            <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599>

            <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599
            <https://sourceforge.net/__tracker/?group_id=81968&atid=__564599>>


            <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599
            <https://sourceforge.net/__tracker/?group_id=81968&atid=__564599>

            <https://sourceforge.net/__tracker/?group_id=81968&atid=__564599
            <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 <mailto:sympa@lists.bath.ac.uk>
            <mailto:sympa@lists.bath.ac.uk
            <mailto:sympa@lists.bath.ac.uk>__>
                              <mailto:sympa@lists.bath.ac.uk
            <mailto:sympa@lists.bath.ac.uk>
                     <mailto:sympa@lists.bath.ac.uk
            <mailto:sympa@lists.bath.ac.uk>__>__>
                                       <mailto:sympa@lists.bath.ac.uk
            <mailto:sympa@lists.bath.ac.uk>
                     <mailto:sympa@lists.bath.ac.uk
            <mailto:sympa@lists.bath.ac.uk>__>
                              <mailto:sympa@lists.bath.ac.uk
            <mailto:sympa@lists.bath.ac.uk>
                     <mailto:sympa@lists.bath.ac.uk
            <mailto: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
            <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599>

            <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599
            <https://sourceforge.net/__tracker/?group_id=81968&atid=__564599>>


            <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599
            <https://sourceforge.net/__tracker/?group_id=81968&atid=__564599>

            <https://sourceforge.net/__tracker/?group_id=81968&atid=__564599
            <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 <mailto:sympa@lists.bath.ac.uk>
                     <mailto:sympa@lists.bath.ac.uk
            <mailto:sympa@lists.bath.ac.uk>__>
                          <mailto:sympa@lists.bath.ac.uk
            <mailto:sympa@lists.bath.ac.uk>
                     <mailto:sympa@lists.bath.ac.uk
            <mailto: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
            <https://sourceforge.net/__tracker/?group_id=81968&atid=__564599>

            <https://sourceforge.net/__tracker/?group_id=81968&atid=__564599
            <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
            <mailto:sympa@lists.bath.ac.uk>
                 <mailto:sympa@lists.bath.ac.uk
            <mailto: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
        <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
        <mailto: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"




Date2012-08-22 18:16
Frompeiman khosravi
SubjectRe: [Csnd] CsoundQT question
Next I'm going to add a second separator to be able to combine linear and exponential segments. It'll just as powerful as any automation editing available in a DAW.

P

On 22 August 2012 18:04, peiman khosravi <peimankhosravi@gmail.com> wrote:
PS I'm really happy with CsoundQT, it's really stable now on OS X.

Thanks
P


On 22 August 2012 17:59, peiman khosravi <peimankhosravi@gmail.com> wrote:
Amazing, Thanks so much. Add a few more beers to the long list!

Best,
Peiman


On 22 August 2012 17:46, joachim heintz <jh@joachimheintz.de> wrote:
ah, now i remember - i once had a similar problem with turnoff2.
it works with the other option of stopping an instrument, a negative p1:
http://www.csounds.com/manual/html/i.html

so, just use the line
event "i", -2, 0, 0
instead of the turnoff2 statement, and it should work (does for me).

best -
        j


Am 22.08.2012 18:25, schrieb peiman khosravi:
PS also when restarting, I'd like the table to be refreshed with newly
entered values, hence putting the whole thing inside one instrument block.

P

On 22 August 2012 17:24, peiman khosravi <peimankhosravi@gmail.com
<mailto:peimankhosravi@gmail.com>> wrote:

    Thanks, so at least I'm not doing something completely stupid!

    Well, ideally I should be able to start/pause/carry and reinitiate
    the playback. But for now (re)start/stop will do I think.

    Cheers,
    Peiman


    On 22 August 2012 16:40, joachim heintz <jh@joachimheintz.de
    <mailto:jh@joachimheintz.de>> wrote:

        good question; just one of the developers might be able to answer.

        but i think there can be found another way. what do you actually
        want to do when you set the play button to 1 respectively 0?


        Am 22.08.2012 17:13, schrieb peiman khosravi:

            great, amazing.

            One question: any idea why the attached csd crashes after
            the third
            triggering of instrument 2 (with the "play" button)?

            This is the error I get this error when turning off the
            instrument.

            PERF ERROR in instr 2: StrayNumToFt: not initialised

            ift iftlen StrayNumToFt Stray 0 -1 -1 0

            note aborted



            Thanks very much
            Peiman

            On 22 August 2012 15:52, joachim heintz <jh@joachimheintz.de
            <mailto:jh@joachimheintz.de>
            <mailto:jh@joachimheintz.de <mailto:jh@joachimheintz.de>>>
            wrote:

                 thanks - glad you find it useful.
                 if you like - i always do a
                 #include strays.inc
                 with the attached file. it prevents from inserting so
            many lines in
                 the csd file.
                 have fun, and keep us posted -
                          joachim


                 Am 22.08.2012 16:25, schrieb peiman khosravi:

                     Wow, I don't believe I didn't use your UDO before!
            It's amazing.

                     Thanks for sharing
                     P

                     On 22 August 2012 11:35, joachim heintz
            <jh@joachimheintz.de <mailto:jh@joachimheintz.de>
                     <mailto:jh@joachimheintz.de
            <mailto:jh@joachimheintz.de>>
                     <mailto:jh@joachimheintz.de
            <mailto:jh@joachimheintz.de> <mailto:jh@joachimheintz.de
            <mailto:jh@joachimheintz.de>>>> wrote:

                          my way would be:
                          1) to transform the lineedit widget input to a
            function
                     table. as
                          tarmo said, this can be done with
            http://www.csounds.com/udo/______displayOpcode.php?opcode_id=______118
            <http://www.csounds.com/udo/____displayOpcode.php?opcode_id=____118>


            <http://www.csounds.com/udo/____displayOpcode.php?opcode_id=____118
            <http://www.csounds.com/udo/__displayOpcode.php?opcode_id=__118>>




            <http://www.csounds.com/udo/____displayOpcode.php?opcode_id=____118
            <http://www.csounds.com/udo/__displayOpcode.php?opcode_id=__118>

            <http://www.csounds.com/udo/__displayOpcode.php?opcode_id=__118
            <http://www.csounds.com/udo/displayOpcode.php?opcode_id=118>>>
            (it
                          looks more complex than it should, because it
            supports some
                     simple math)
                          you can have a look at CsoundQt examples >
            miscellaneous >
                          midi-tunings for an application.
                          2) to read the values in the table as if they
            are linseg
                     parts. see
                          below for a possible solution.
                          hope this helps, all best -
                                   j


                          <CsoundSynthesizer>
                          <CsOptions>
                          </CsOptions>
                          <CsInstruments>

                          giLin1     ftgen      1, 0, -5, -2, 0, 3, 1, 2, 0
                          giLin2     ftgen      2, 0, -7, -2, -3, 1, 0,
            5, 1, 1, 0

                             opcode TabToLin, k, i
                          ift        xin
                          iftlen     tableng    ift
                          indx1      =          0
                          indx2      =          1
                          indx3      =          2
                          segment:
                          if indx3 >= iftlen igoto end
                          iStart     table      indx1, ift
                          iDur       table      indx2, ift
                          iTarget    table      indx3, ift
                                      timout     0, iDur, do
                                      reinit     segment
                          do:
                          kOut       linseg     iStart, iDur, iTarget
                          indx1      =          indx1+2
                          indx2      =          indx2+2
                          indx3      =          indx3+2
                          end:
                                      xout       kOut
                             endop


                          instr test
                          kOut       TabToLin   p4
                                      printk     .5, kOut
                          endin
                          </CsInstruments>
                          <CsScore>
                          i "test" 0 6 1
                          i "test" 7 10 2
                          </CsScore>
                          </CsoundSynthesizer>







                          Am 22.08.2012 12:07, schrieb Tarmo Johannes:

                              Hi,

                              Then Joachims string-array udos would help
            you or use
                     csound string
                              manipulation opcodes or use coundqt python
            functions like
                              q.getChannelString and process it in python.
                              Sorry, I am not behind a computer to try
            out some examples.
                              I think there is also a perl script with
            tk gui in the
                     standard
                              csound
                              installation to create linseg points
            graphically.
                              Please let know, if you need further
            hints, I'll get to
                     it later.
                              Tarmo

                              2012 8 22 12:42 kirjutas kuupäeval "peiman
            khosravi"
                              <peimankhosravi@gmail.com
            <mailto:peimankhosravi@gmail.com>
                     <mailto:peimankhosravi@gmail.__com
            <mailto:peimankhosravi@gmail.com>>
                     <mailto:peimankhosravi@gmail.
            <mailto:peimankhosravi@gmail.>____com
                     <mailto:peimankhosravi@gmail.__com
            <mailto:peimankhosravi@gmail.com>>>
                              <mailto:peimankhosravi@gmail
            <mailto:peimankhosravi@gmail>.
                     <mailto:peimankhosravi@gmail
            <mailto:peimankhosravi@gmail>.>______com



                              <mailto:peimankhosravi@gmail.
            <mailto:peimankhosravi@gmail.>____com
                     <mailto:peimankhosravi@gmail.__com
            <mailto:peimankhosravi@gmail.com>>>>>:


                                   Hi Joachim,

                                   Yes exactly. Sorry my communication
            skills are a
                     bit rusty
                              at the
                                   moment!

                                   Best,
                                   Peiman

                                   On 22 August 2012 10:30, joachim heintz
                              <jh@joachimheintz.de
            <mailto:jh@joachimheintz.de> <mailto:jh@joachimheintz.de
            <mailto:jh@joachimheintz.de>>
                     <mailto:jh@joachimheintz.de
            <mailto:jh@joachimheintz.de> <mailto:jh@joachimheintz.de
            <mailto:jh@joachimheintz.de>>>
                                   <mailto:jh@joachimheintz.de
            <mailto:jh@joachimheintz.de>
                     <mailto:jh@joachimheintz.de
            <mailto:jh@joachimheintz.de>> <mailto:jh@joachimheintz.de
            <mailto:jh@joachimheintz.de>
                     <mailto:jh@joachimheintz.de
            <mailto:jh@joachimheintz.de>>>>__>


                              wrote:

                                       hi peiman -

                                       do you mean to transfer the string
                                       "0 3 1 2 0"
                                       to something like
                                       kLin linseg 0, 3, 1, 2, 0
                                       ?

                                       ciao -
                                                joachim


                                       Am 22.08.2012 10:50, schrieb
            peiman khosravi:

                                           Hi tarmo,

                                           Yes I meant LineEdit.
            Basically I'm
                     wondering if
                              there is
                                           anyway to
                                           construct line segments (at
            i-rate) from an
                              arbitrary number
                                           of values
                                           entered in LineEdit. I don't
            suppose there
                     is but
                              you never
                                           know.

                                           I suppose one way would be to
            read the
                     values into
                              a table
                                           and then read
                                           the table with a phasor but
            then you can't
                     define
                              exact time
                                           durations.

                                           Thanks
                                           Peiman

                                           On 22 August 2012 09:24,
            Tarmo Johannes
                                           <tarmo@otsakool.edu.ee
            <mailto:tarmo@otsakool.edu.ee>
                     <mailto:tarmo@otsakool.edu.ee
            <mailto:tarmo@otsakool.edu.ee>>
                              <mailto:tarmo@otsakool.edu.ee
            <mailto:tarmo@otsakool.edu.ee>
                     <mailto:tarmo@otsakool.edu.ee
            <mailto:tarmo@otsakool.edu.ee>>__>
            <mailto:tarmo@otsakool.edu.ee <mailto:tarmo@otsakool.edu.ee>
                     <mailto:tarmo@otsakool.edu.ee
            <mailto:tarmo@otsakool.edu.ee>>
                              <mailto:tarmo@otsakool.edu.ee
            <mailto:tarmo@otsakool.edu.ee>
                     <mailto:tarmo@otsakool.edu.ee
            <mailto:tarmo@otsakool.edu.ee>>__>__>
                                           <mailto:tarmo@otsakool.edu.ee
            <mailto:tarmo@otsakool.edu.ee>
                     <mailto:tarmo@otsakool.edu.ee
            <mailto:tarmo@otsakool.edu.ee>>
                              <mailto:tarmo@otsakool.edu.ee
            <mailto:tarmo@otsakool.edu.ee>
                     <mailto:tarmo@otsakool.edu.ee
            <mailto:tarmo@otsakool.edu.ee>>__>

                                           <mailto:tarmo@otsakool.edu.ee
            <mailto:tarmo@otsakool.edu.ee>
                     <mailto:tarmo@otsakool.edu.ee
            <mailto:tarmo@otsakool.edu.ee>>
                              <mailto:tarmo@otsakool.edu.ee
            <mailto:tarmo@otsakool.edu.ee>
                     <mailto:tarmo@otsakool.edu.ee
            <mailto:tarmo@otsakool.edu.ee>>__>__>__>__> wrote:

                                                __


                                                HEllo,

                                                could you be a bit more
            precise, what
                     do you
                              need to
                                           do, what do you
                                                mean by " string
            widget"? LineEdit?

                                                greetings,

                                                tarmo

                                                On Tuesday 21 August
            2012 23:32:11 peiman
                              khosravi wrote:

                                                Hello,

                                                I'm preparing some
            teaching material for
                              September and
                                           was wondering
                                                if there is an easy way
            to type the
                     data for a
                              linseg
                                           in a string
                                                widget? Or some other
            way of defining
                     a linseg
                              with
                                           arbitrary segments.

                                                Thanks
                                                Peiman






                                       Send bugs reports to the
            Sourceforge bug tracker
            https://sourceforge.net/________tracker/?group_id=81968&atid=________564599
            <https://sourceforge.net/______tracker/?group_id=81968&atid=______564599>


            <https://sourceforge.net/______tracker/?group_id=81968&atid=______564599
            <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599>>



            <https://sourceforge.net/______tracker/?group_id=81968&atid=______564599
            <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599>

            <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599
            <https://sourceforge.net/__tracker/?group_id=81968&atid=__564599>>>





            <https://sourceforge.net/______tracker/?group_id=81968&atid=______564599
            <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599>

            <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599
            <https://sourceforge.net/__tracker/?group_id=81968&atid=__564599>>


            <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599
            <https://sourceforge.net/__tracker/?group_id=81968&atid=__564599>

            <https://sourceforge.net/__tracker/?group_id=81968&atid=__564599
            <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 <mailto:sympa@lists.bath.ac.uk>
            <mailto:sympa@lists.bath.ac.uk
            <mailto:sympa@lists.bath.ac.uk>__>
                              <mailto:sympa@lists.bath.ac.uk
            <mailto:sympa@lists.bath.ac.uk>
                     <mailto:sympa@lists.bath.ac.uk
            <mailto:sympa@lists.bath.ac.uk>__>__>
                                       <mailto:sympa@lists.bath.ac.uk
            <mailto:sympa@lists.bath.ac.uk>
                     <mailto:sympa@lists.bath.ac.uk
            <mailto:sympa@lists.bath.ac.uk>__>
                              <mailto:sympa@lists.bath.ac.uk
            <mailto:sympa@lists.bath.ac.uk>
                     <mailto:sympa@lists.bath.ac.uk
            <mailto: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
            <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599>

            <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599
            <https://sourceforge.net/__tracker/?group_id=81968&atid=__564599>>


            <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599
            <https://sourceforge.net/__tracker/?group_id=81968&atid=__564599>

            <https://sourceforge.net/__tracker/?group_id=81968&atid=__564599
            <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 <mailto:sympa@lists.bath.ac.uk>
                     <mailto:sympa@lists.bath.ac.uk
            <mailto:sympa@lists.bath.ac.uk>__>
                          <mailto:sympa@lists.bath.ac.uk
            <mailto:sympa@lists.bath.ac.uk>
                     <mailto:sympa@lists.bath.ac.uk
            <mailto: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
            <https://sourceforge.net/__tracker/?group_id=81968&atid=__564599>

            <https://sourceforge.net/__tracker/?group_id=81968&atid=__564599
            <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
            <mailto:sympa@lists.bath.ac.uk>
                 <mailto:sympa@lists.bath.ac.uk
            <mailto: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
        <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
        <mailto: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"





Date2012-08-22 18:20
Frompeiman khosravi
SubjectRe: [Csnd] CsoundQT question
AttachmentstableLinSegRevised.csd  
Here is a test CSD (without exponential interpolation) that seems to be working very nicely.

I'm thinking a tick-box next to each slider for whatever instrument and a master play/stop button to read the automations is a must have too.

P

On 22 August 2012 18:16, peiman khosravi <peimankhosravi@gmail.com> wrote:
Next I'm going to add a second separator to be able to combine linear and exponential segments. It'll just as powerful as any automation editing available in a DAW.

P


On 22 August 2012 18:04, peiman khosravi <peimankhosravi@gmail.com> wrote:
PS I'm really happy with CsoundQT, it's really stable now on OS X.

Thanks
P


On 22 August 2012 17:59, peiman khosravi <peimankhosravi@gmail.com> wrote:
Amazing, Thanks so much. Add a few more beers to the long list!

Best,
Peiman


On 22 August 2012 17:46, joachim heintz <jh@joachimheintz.de> wrote:
ah, now i remember - i once had a similar problem with turnoff2.
it works with the other option of stopping an instrument, a negative p1:
http://www.csounds.com/manual/html/i.html

so, just use the line
event "i", -2, 0, 0
instead of the turnoff2 statement, and it should work (does for me).

best -
        j


Am 22.08.2012 18:25, schrieb peiman khosravi:
PS also when restarting, I'd like the table to be refreshed with newly
entered values, hence putting the whole thing inside one instrument block.

P

On 22 August 2012 17:24, peiman khosravi <peimankhosravi@gmail.com
<mailto:peimankhosravi@gmail.com>> wrote:

    Thanks, so at least I'm not doing something completely stupid!

    Well, ideally I should be able to start/pause/carry and reinitiate
    the playback. But for now (re)start/stop will do I think.

    Cheers,
    Peiman


    On 22 August 2012 16:40, joachim heintz <jh@joachimheintz.de
    <mailto:jh@joachimheintz.de>> wrote:

        good question; just one of the developers might be able to answer.

        but i think there can be found another way. what do you actually
        want to do when you set the play button to 1 respectively 0?


        Am 22.08.2012 17:13, schrieb peiman khosravi:

            great, amazing.

            One question: any idea why the attached csd crashes after
            the third
            triggering of instrument 2 (with the "play" button)?

            This is the error I get this error when turning off the
            instrument.

            PERF ERROR in instr 2: StrayNumToFt: not initialised

            ift iftlen StrayNumToFt Stray 0 -1 -1 0

            note aborted



            Thanks very much
            Peiman

            On 22 August 2012 15:52, joachim heintz <jh@joachimheintz.de
            <mailto:jh@joachimheintz.de>
            <mailto:jh@joachimheintz.de <mailto:jh@joachimheintz.de>>>
            wrote:

                 thanks - glad you find it useful.
                 if you like - i always do a
                 #include strays.inc
                 with the attached file. it prevents from inserting so
            many lines in
                 the csd file.
                 have fun, and keep us posted -
                          joachim


                 Am 22.08.2012 16:25, schrieb peiman khosravi:

                     Wow, I don't believe I didn't use your UDO before!
            It's amazing.

                     Thanks for sharing
                     P

                     On 22 August 2012 11:35, joachim heintz
            <jh@joachimheintz.de <mailto:jh@joachimheintz.de>
                     <mailto:jh@joachimheintz.de
            <mailto:jh@joachimheintz.de>>
                     <mailto:jh@joachimheintz.de
            <mailto:jh@joachimheintz.de> <mailto:jh@joachimheintz.de
            <mailto:jh@joachimheintz.de>>>> wrote:

                          my way would be:
                          1) to transform the lineedit widget input to a
            function
                     table. as
                          tarmo said, this can be done with
            http://www.csounds.com/udo/______displayOpcode.php?opcode_id=______118
            <http://www.csounds.com/udo/____displayOpcode.php?opcode_id=____118>


            <http://www.csounds.com/udo/____displayOpcode.php?opcode_id=____118
            <http://www.csounds.com/udo/__displayOpcode.php?opcode_id=__118>>




            <http://www.csounds.com/udo/____displayOpcode.php?opcode_id=____118
            <http://www.csounds.com/udo/__displayOpcode.php?opcode_id=__118>

            <http://www.csounds.com/udo/__displayOpcode.php?opcode_id=__118
            <http://www.csounds.com/udo/displayOpcode.php?opcode_id=118>>>
            (it
                          looks more complex than it should, because it
            supports some
                     simple math)
                          you can have a look at CsoundQt examples >
            miscellaneous >
                          midi-tunings for an application.
                          2) to read the values in the table as if they
            are linseg
                     parts. see
                          below for a possible solution.
                          hope this helps, all best -
                                   j


                          <CsoundSynthesizer>
                          <CsOptions>
                          </CsOptions>
                          <CsInstruments>

                          giLin1     ftgen      1, 0, -5, -2, 0, 3, 1, 2, 0
                          giLin2     ftgen      2, 0, -7, -2, -3, 1, 0,
            5, 1, 1, 0

                             opcode TabToLin, k, i
                          ift        xin
                          iftlen     tableng    ift
                          indx1      =          0
                          indx2      =          1
                          indx3      =          2
                          segment:
                          if indx3 >= iftlen igoto end
                          iStart     table      indx1, ift
                          iDur       table      indx2, ift
                          iTarget    table      indx3, ift
                                      timout     0, iDur, do
                                      reinit     segment
                          do:
                          kOut       linseg     iStart, iDur, iTarget
                          indx1      =          indx1+2
                          indx2      =          indx2+2
                          indx3      =          indx3+2
                          end:
                                      xout       kOut
                             endop


                          instr test
                          kOut       TabToLin   p4
                                      printk     .5, kOut
                          endin
                          </CsInstruments>
                          <CsScore>
                          i "test" 0 6 1
                          i "test" 7 10 2
                          </CsScore>
                          </CsoundSynthesizer>







                          Am 22.08.2012 12:07, schrieb Tarmo Johannes:

                              Hi,

                              Then Joachims string-array udos would help
            you or use
                     csound string
                              manipulation opcodes or use coundqt python
            functions like
                              q.getChannelString and process it in python.
                              Sorry, I am not behind a computer to try
            out some examples.
                              I think there is also a perl script with
            tk gui in the
                     standard
                              csound
                              installation to create linseg points
            graphically.
                              Please let know, if you need further
            hints, I'll get to
                     it later.
                              Tarmo

                              2012 8 22 12:42 kirjutas kuupäeval "peiman
            khosravi"
                              <peimankhosravi@gmail.com
            <mailto:peimankhosravi@gmail.com>
                     <mailto:peimankhosravi@gmail.__com
            <mailto:peimankhosravi@gmail.com>>
                     <mailto:peimankhosravi@gmail.
            <mailto:peimankhosravi@gmail.>____com
                     <mailto:peimankhosravi@gmail.__com
            <mailto:peimankhosravi@gmail.com>>>
                              <mailto:peimankhosravi@gmail
            <mailto:peimankhosravi@gmail>.
                     <mailto:peimankhosravi@gmail
            <mailto:peimankhosravi@gmail>.>______com



                              <mailto:peimankhosravi@gmail.
            <mailto:peimankhosravi@gmail.>____com
                     <mailto:peimankhosravi@gmail.__com
            <mailto:peimankhosravi@gmail.com>>>>>:


                                   Hi Joachim,

                                   Yes exactly. Sorry my communication
            skills are a
                     bit rusty
                              at the
                                   moment!

                                   Best,
                                   Peiman

                                   On 22 August 2012 10:30, joachim heintz
                              <jh@joachimheintz.de
            <mailto:jh@joachimheintz.de> <mailto:jh@joachimheintz.de
            <mailto:jh@joachimheintz.de>>
                     <mailto:jh@joachimheintz.de
            <mailto:jh@joachimheintz.de> <mailto:jh@joachimheintz.de
            <mailto:jh@joachimheintz.de>>>
                                   <mailto:jh@joachimheintz.de
            <mailto:jh@joachimheintz.de>
                     <mailto:jh@joachimheintz.de
            <mailto:jh@joachimheintz.de>> <mailto:jh@joachimheintz.de
            <mailto:jh@joachimheintz.de>
                     <mailto:jh@joachimheintz.de
            <mailto:jh@joachimheintz.de>>>>__>


                              wrote:

                                       hi peiman -

                                       do you mean to transfer the string
                                       "0 3 1 2 0"
                                       to something like
                                       kLin linseg 0, 3, 1, 2, 0
                                       ?

                                       ciao -
                                                joachim


                                       Am 22.08.2012 10:50, schrieb
            peiman khosravi:

                                           Hi tarmo,

                                           Yes I meant LineEdit.
            Basically I'm
                     wondering if
                              there is
                                           anyway to
                                           construct line segments (at
            i-rate) from an
                              arbitrary number
                                           of values
                                           entered in LineEdit. I don't
            suppose there
                     is but
                              you never
                                           know.

                                           I suppose one way would be to
            read the
                     values into
                              a table
                                           and then read
                                           the table with a phasor but
            then you can't
                     define
                              exact time
                                           durations.

                                           Thanks
                                           Peiman

                                           On 22 August 2012 09:24,
            Tarmo Johannes
                                           <tarmo@otsakool.edu.ee
            <mailto:tarmo@otsakool.edu.ee>
                     <mailto:tarmo@otsakool.edu.ee
            <mailto:tarmo@otsakool.edu.ee>>
                              <mailto:tarmo@otsakool.edu.ee
            <mailto:tarmo@otsakool.edu.ee>
                     <mailto:tarmo@otsakool.edu.ee
            <mailto:tarmo@otsakool.edu.ee>>__>
            <mailto:tarmo@otsakool.edu.ee <mailto:tarmo@otsakool.edu.ee>
                     <mailto:tarmo@otsakool.edu.ee
            <mailto:tarmo@otsakool.edu.ee>>
                              <mailto:tarmo@otsakool.edu.ee
            <mailto:tarmo@otsakool.edu.ee>
                     <mailto:tarmo@otsakool.edu.ee
            <mailto:tarmo@otsakool.edu.ee>>__>__>
                                           <mailto:tarmo@otsakool.edu.ee
            <mailto:tarmo@otsakool.edu.ee>
                     <mailto:tarmo@otsakool.edu.ee
            <mailto:tarmo@otsakool.edu.ee>>
                              <mailto:tarmo@otsakool.edu.ee
            <mailto:tarmo@otsakool.edu.ee>
                     <mailto:tarmo@otsakool.edu.ee
            <mailto:tarmo@otsakool.edu.ee>>__>

                                           <mailto:tarmo@otsakool.edu.ee
            <mailto:tarmo@otsakool.edu.ee>
                     <mailto:tarmo@otsakool.edu.ee
            <mailto:tarmo@otsakool.edu.ee>>
                              <mailto:tarmo@otsakool.edu.ee
            <mailto:tarmo@otsakool.edu.ee>
                     <mailto:tarmo@otsakool.edu.ee
            <mailto:tarmo@otsakool.edu.ee>>__>__>__>__> wrote:

                                                __


                                                HEllo,

                                                could you be a bit more
            precise, what
                     do you
                              need to
                                           do, what do you
                                                mean by " string
            widget"? LineEdit?

                                                greetings,

                                                tarmo

                                                On Tuesday 21 August
            2012 23:32:11 peiman
                              khosravi wrote:

                                                Hello,

                                                I'm preparing some
            teaching material for
                              September and
                                           was wondering
                                                if there is an easy way
            to type the
                     data for a
                              linseg
                                           in a string
                                                widget? Or some other
            way of defining
                     a linseg
                              with
                                           arbitrary segments.

                                                Thanks
                                                Peiman






                                       Send bugs reports to the
            Sourceforge bug tracker
            https://sourceforge.net/________tracker/?group_id=81968&atid=________564599
            <https://sourceforge.net/______tracker/?group_id=81968&atid=______564599>


            <https://sourceforge.net/______tracker/?group_id=81968&atid=______564599
            <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599>>



            <https://sourceforge.net/______tracker/?group_id=81968&atid=______564599
            <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599>

            <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599
            <https://sourceforge.net/__tracker/?group_id=81968&atid=__564599>>>





            <https://sourceforge.net/______tracker/?group_id=81968&atid=______564599
            <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599>

            <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599
            <https://sourceforge.net/__tracker/?group_id=81968&atid=__564599>>


            <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599
            <https://sourceforge.net/__tracker/?group_id=81968&atid=__564599>

            <https://sourceforge.net/__tracker/?group_id=81968&atid=__564599
            <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 <mailto:sympa@lists.bath.ac.uk>
            <mailto:sympa@lists.bath.ac.uk
            <mailto:sympa@lists.bath.ac.uk>__>
                              <mailto:sympa@lists.bath.ac.uk
            <mailto:sympa@lists.bath.ac.uk>
                     <mailto:sympa@lists.bath.ac.uk
            <mailto:sympa@lists.bath.ac.uk>__>__>
                                       <mailto:sympa@lists.bath.ac.uk
            <mailto:sympa@lists.bath.ac.uk>
                     <mailto:sympa@lists.bath.ac.uk
            <mailto:sympa@lists.bath.ac.uk>__>
                              <mailto:sympa@lists.bath.ac.uk
            <mailto:sympa@lists.bath.ac.uk>
                     <mailto:sympa@lists.bath.ac.uk
            <mailto: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
            <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599>

            <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599
            <https://sourceforge.net/__tracker/?group_id=81968&atid=__564599>>


            <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599
            <https://sourceforge.net/__tracker/?group_id=81968&atid=__564599>

            <https://sourceforge.net/__tracker/?group_id=81968&atid=__564599
            <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 <mailto:sympa@lists.bath.ac.uk>
                     <mailto:sympa@lists.bath.ac.uk
            <mailto:sympa@lists.bath.ac.uk>__>
                          <mailto:sympa@lists.bath.ac.uk
            <mailto:sympa@lists.bath.ac.uk>
                     <mailto:sympa@lists.bath.ac.uk
            <mailto: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
            <https://sourceforge.net/__tracker/?group_id=81968&atid=__564599>

            <https://sourceforge.net/__tracker/?group_id=81968&atid=__564599
            <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
            <mailto:sympa@lists.bath.ac.uk>
                 <mailto:sympa@lists.bath.ac.uk
            <mailto: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
        <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
        <mailto: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"






Date2012-08-22 18:26
Fromjoachim heintz
SubjectRe: [Csnd] CsoundQT question
which version do you use?

Am 22.08.2012 19:04, schrieb peiman khosravi:
> PS I'm really happy with CsoundQT, it's really stable now on OS X.
>
> Thanks
> P
>
> On 22 August 2012 17:59, peiman khosravi  > wrote:
>
>     Amazing, Thanks so much. Add a few more beers to the long list!
>
>     Best,
>     Peiman
>
>
>     On 22 August 2012 17:46, joachim heintz      > wrote:
>
>         ah, now i remember - i once had a similar problem with turnoff2.
>         it works with the other option of stopping an instrument, a
>         negative p1:
>         http://www.csounds.com/manual/__html/i.html
>         
>
>         so, just use the line
>         event "i", -2, 0, 0
>         instead of the turnoff2 statement, and it should work (does for me).
>
>         best -
>                  j
>
>
>         Am 22.08.2012 18:25, schrieb peiman khosravi:
>
>             PS also when restarting, I'd like the table to be refreshed
>             with newly
>             entered values, hence putting the whole thing inside one
>             instrument block.
>
>             P
>
>             On 22 August 2012 17:24, peiman khosravi
>             
>                          >> wrote:
>
>                  Thanks, so at least I'm not doing something completely
>             stupid!
>
>                  Well, ideally I should be able to start/pause/carry and
>             reinitiate
>                  the playback. But for now (re)start/stop will do I think.
>
>                  Cheers,
>                  Peiman
>
>
>                  On 22 August 2012 16:40, joachim heintz
>             
>                               >> wrote:
>
>                      good question; just one of the developers might be
>             able to answer.
>
>                      but i think there can be found another way. what do
>             you actually
>                      want to do when you set the play button to 1
>             respectively 0?
>
>
>                      Am 22.08.2012 17:13, schrieb peiman khosravi:
>
>                          great, amazing.
>
>                          One question: any idea why the attached csd
>             crashes after
>                          the third
>                          triggering of instrument 2 (with the "play"
>             button)?
>
>                          This is the error I get this error when turning
>             off the
>                          instrument.
>
>                          PERF ERROR in instr 2: StrayNumToFt: not
>             initialised
>
>                          ift iftlen StrayNumToFt Stray 0 -1 -1 0
>
>                          note aborted
>
>
>
>                          Thanks very much
>                          Peiman
>
>                          On 22 August 2012 15:52, joachim heintz
>             
>                                       >
>                                                     >>>
>                          wrote:
>
>                               thanks - glad you find it useful.
>                               if you like - i always do a
>                               #include strays.inc
>                               with the attached file. it prevents from
>             inserting so
>                          many lines in
>                               the csd file.
>                               have fun, and keep us posted -
>                                        joachim
>
>
>                               Am 22.08.2012 16:25, schrieb peiman khosravi:
>
>                                   Wow, I don't believe I didn't use your
>             UDO before!
>                          It's amazing.
>
>                                   Thanks for sharing
>                                   P
>
>                                   On 22 August 2012 11:35, joachim heintz
>                                                     >
>                                                
>                                       >>
>                                                
>                                       >              
>                                       >>>__> wrote:
>
>                                        my way would be:
>                                        1) to transform the lineedit
>             widget input to a
>                          function
>                                   table. as
>                                        tarmo said, this can be done with
>             http://www.csounds.com/udo/________displayOpcode.php?opcode___id=______118
>             
>
>                          >
>
>
>
>                          
>
>                          >>
>
>
>
>
>
>                          
>
>                          >
>
>
>                          
>
>                          >>>
>                          (it
>                                        looks more complex than it
>             should, because it
>                          supports some
>                                   simple math)
>                                        you can have a look at CsoundQt
>             examples >
>                          miscellaneous >
>                                        midi-tunings for an application.
>                                        2) to read the values in the
>             table as if they
>                          are linseg
>                                   parts. see
>                                        below for a possible solution.
>                                        hope this helps, all best -
>                                                 j
>
>
>                                        
>                                        
>                                        
>                                        
>
>                                        giLin1     ftgen      1, 0, -5,
>             -2, 0, 3, 1, 2, 0
>                                        giLin2     ftgen      2, 0, -7,
>             -2, -3, 1, 0,
>                          5, 1, 1, 0
>
>                                           opcode TabToLin, k, i
>                                        ift        xin
>                                        iftlen     tableng    ift
>                                        indx1      =          0
>                                        indx2      =          1
>                                        indx3      =          2
>                                        segment:
>                                        if indx3 >= iftlen igoto end
>                                        iStart     table      indx1, ift
>                                        iDur       table      indx2, ift
>                                        iTarget    table      indx3, ift
>                                                    timout     0, iDur, do
>                                                    reinit     segment
>                                        do:
>                                        kOut       linseg     iStart,
>             iDur, iTarget
>                                        indx1      =          indx1+2
>                                        indx2      =          indx2+2
>                                        indx3      =          indx3+2
>                                        end:
>                                                    xout       kOut
>                                           endop
>
>
>                                        instr test
>                                        kOut       TabToLin   p4
>                                                    printk     .5, kOut
>                                        endin
>                                        
>                                        
>                                        i "test" 0 6 1
>                                        i "test" 7 10 2
>                                        
>                                        
>
>
>
>
>
>
>
>                                        Am 22.08.2012 12:07, schrieb
>             Tarmo Johannes:
>
>                                            Hi,
>
>                                            Then Joachims string-array
>             udos would help
>                          you or use
>                                   csound string
>                                            manipulation opcodes or use
>             coundqt python
>                          functions like
>                                            q.getChannelString and
>             process it in python.
>                                            Sorry, I am not behind a
>             computer to try
>                          out some examples.
>                                            I think there is also a perl
>             script with
>                          tk gui in the
>                                   standard
>                                            csound
>                                            installation to create linseg
>             points
>                          graphically.
>                                            Please let know, if you need
>             further
>                          hints, I'll get to
>                                   it later.
>                                            Tarmo
>
>                                            2012 8 22 12:42 kirjutas
>             kuupäeval "peiman
>                          khosravi"
>                                                         
>                                       >
>                                                ____com
>                                       >>
>                                                .
>                                       .>______com
>                                                ____com
>                                       >>>
>                                                         
>                                       >.
>                                                
>                                       >.__>______com
>
>
>
>                                                         .
>                                       .>______com
>                                                ____com
>                                       >>>>>:
>
>
>                                                 Hi Joachim,
>
>                                                 Yes exactly. Sorry my
>             communication
>                          skills are a
>                                   bit rusty
>                                            at the
>                                                 moment!
>
>                                                 Best,
>                                                 Peiman
>
>                                                 On 22 August 2012 10:30,
>             joachim heintz
>                                                         
>                                       >              
>                                       >>
>                                                
>                                       >              
>                                       >>>
>
>               
>                                       >
>                                                
>                                       >>              
>                                       >
>                                                
>                                       >>>__>__>
>
>
>                                            wrote:
>
>                                                     hi peiman -
>
>                                                     do you mean to
>             transfer the string
>                                                     "0 3 1 2 0"
>                                                     to something like
>                                                     kLin linseg 0, 3, 1,
>             2, 0
>                                                     ?
>
>                                                     ciao -
>                                                              joachim
>
>
>                                                     Am 22.08.2012 10:50,
>             schrieb
>                          peiman khosravi:
>
>                                                         Hi tarmo,
>
>                                                         Yes I meant
>             LineEdit.
>                          Basically I'm
>                                   wondering if
>                                            there is
>                                                         anyway to
>                                                         construct line
>             segments (at
>                          i-rate) from an
>                                            arbitrary number
>                                                         of values
>                                                         entered in
>             LineEdit. I don't
>                          suppose there
>                                   is but
>                                            you never
>                                                         know.
>
>                                                         I suppose one
>             way would be to
>                          read the
>                                   values into
>                                            a table
>                                                         and then read
>                                                         the table with a
>             phasor but
>                          then you can't
>                                   define
>                                            exact time
>                                                         durations.
>
>                                                         Thanks
>                                                         Peiman
>
>                                                         On 22 August
>             2012 09:24,
>                          Tarmo Johannes
>
>               
>                                       >
>                                                
>                                       >__>
>                                                         
>                                       >
>                                                
>                                       >__>__>
>                                                     >
>                                                
>                                       >__>
>                                                         
>                                       >
>                                                
>                                       >__>__>__>
>
>               
>                                       >
>                                                
>                                       >__>
>                                                         
>                                       >
>                                                
>                                       >__>__>
>
>
>               
>                                       >
>                                                
>                                       >__>
>                                                         
>                                       >
>                                                
>                                       >__>__>__>__>__> wrote:
>
>                                                              __
>
>
>                                                              HEllo,
>
>                                                              could you
>             be a bit more
>                          precise, what
>                                   do you
>                                            need to
>                                                         do, what do you
>                                                              mean by "
>             string
>                          widget"? LineEdit?
>
>                                                              greetings,
>
>                                                              tarmo
>
>                                                              On Tuesday
>             21 August
>                          2012 23:32:11 peiman
>                                            khosravi wrote:
>
>                                                              Hello,
>
>                                                              I'm
>             preparing some
>                          teaching material for
>                                            September and
>                                                         was wondering
>                                                              if there is
>             an easy way
>                          to type the
>                                   data for a
>                                            linseg
>                                                         in a string
>                                                              widget? Or
>             some other
>                          way of defining
>                                   a linseg
>                                            with
>                                                         arbitrary segments.
>
>                                                              Thanks
>                                                              Peiman
>
>
>
>
>
>
>                                                     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"
>
>
>

Date2012-08-22 18:51
Frompeiman khosravi
SubjectRe: [Csnd] CsoundQT question
The very latest 0.6.1. Although I would love it if the double precision version could also be distributed with Csound.

On 22 August 2012 18:26, joachim heintz <jh@joachimheintz.de> wrote:
which version do you use?

Am 22.08.2012 19:04, schrieb peiman khosravi:
PS I'm really happy with CsoundQT, it's really stable now on OS X.

Thanks
P

On 22 August 2012 17:59, peiman khosravi <peimankhosravi@gmail.com
<mailto:peimankhosravi@gmail.com>> wrote:

    Amazing, Thanks so much. Add a few more beers to the long list!

    Best,
    Peiman


    On 22 August 2012 17:46, joachim heintz <jh@joachimheintz.de
    <mailto:jh@joachimheintz.de>> wrote:

        ah, now i remember - i once had a similar problem with turnoff2.
        it works with the other option of stopping an instrument, a
        negative p1:
        http://www.csounds.com/manual/__html/i.html

        <http://www.csounds.com/manual/html/i.html>

        so, just use the line
        event "i", -2, 0, 0
        instead of the turnoff2 statement, and it should work (does for me).

        best -
                 j


        Am 22.08.2012 18:25, schrieb peiman khosravi:

            PS also when restarting, I'd like the table to be refreshed
            with newly
            entered values, hence putting the whole thing inside one
            instrument block.

            P

            On 22 August 2012 17:24, peiman khosravi
            <peimankhosravi@gmail.com <mailto:peimankhosravi@gmail.com>
            <mailto:peimankhosravi@gmail.__com

            <mailto:peimankhosravi@gmail.com>>> wrote:

                 Thanks, so at least I'm not doing something completely
            stupid!

                 Well, ideally I should be able to start/pause/carry and
            reinitiate
                 the playback. But for now (re)start/stop will do I think.

                 Cheers,
                 Peiman


                 On 22 August 2012 16:40, joachim heintz
            <jh@joachimheintz.de <mailto:jh@joachimheintz.de>
                 <mailto:jh@joachimheintz.de
            <mailto:jh@joachimheintz.de>>> wrote:

                     good question; just one of the developers might be
            able to answer.

                     but i think there can be found another way. what do
            you actually
                     want to do when you set the play button to 1
            respectively 0?


                     Am 22.08.2012 17:13, schrieb peiman khosravi:

                         great, amazing.

                         One question: any idea why the attached csd
            crashes after
                         the third
                         triggering of instrument 2 (with the "play"
            button)?

                         This is the error I get this error when turning
            off the
                         instrument.

                         PERF ERROR in instr 2: StrayNumToFt: not
            initialised

                         ift iftlen StrayNumToFt Stray 0 -1 -1 0

                         note aborted



                         Thanks very much
                         Peiman

                         On 22 August 2012 15:52, joachim heintz
            <jh@joachimheintz.de <mailto:jh@joachimheintz.de>
                         <mailto:jh@joachimheintz.de
            <mailto:jh@joachimheintz.de>>
                         <mailto:jh@joachimheintz.de
            <mailto:jh@joachimheintz.de> <mailto:jh@joachimheintz.de
            <mailto:jh@joachimheintz.de>>>>
                         wrote:

                              thanks - glad you find it useful.
                              if you like - i always do a
                              #include strays.inc
                              with the attached file. it prevents from
            inserting so
                         many lines in
                              the csd file.
                              have fun, and keep us posted -
                                       joachim


                              Am 22.08.2012 16:25, schrieb peiman khosravi:

                                  Wow, I don't believe I didn't use your
            UDO before!
                         It's amazing.

                                  Thanks for sharing
                                  P

                                  On 22 August 2012 11:35, joachim heintz
                         <jh@joachimheintz.de
            <mailto:jh@joachimheintz.de> <mailto:jh@joachimheintz.de
            <mailto:jh@joachimheintz.de>>
                                  <mailto:jh@joachimheintz.de
            <mailto:jh@joachimheintz.de>
                         <mailto:jh@joachimheintz.de
            <mailto:jh@joachimheintz.de>>>
                                  <mailto:jh@joachimheintz.de
            <mailto:jh@joachimheintz.de>
                         <mailto:jh@joachimheintz.de
            <mailto:jh@joachimheintz.de>> <mailto:jh@joachimheintz.de
            <mailto:jh@joachimheintz.de>
                         <mailto:jh@joachimheintz.de
            <mailto:jh@joachimheintz.de>>>>__> wrote:

                                       my way would be:
                                       1) to transform the lineedit
            widget input to a
                         function
                                  table. as
                                       tarmo said, this can be done with
            http://www.csounds.com/udo/________displayOpcode.php?opcode___id=______118
            <http://www.csounds.com/udo/______displayOpcode.php?opcode_id=______118>


            <http://www.csounds.com/udo/______displayOpcode.php?opcode_id=______118
            <http://www.csounds.com/udo/____displayOpcode.php?opcode_id=____118>>



            <http://www.csounds.com/udo/______displayOpcode.php?opcode_id=______118
            <http://www.csounds.com/udo/____displayOpcode.php?opcode_id=____118>

            <http://www.csounds.com/udo/____displayOpcode.php?opcode_id=____118
            <http://www.csounds.com/udo/__displayOpcode.php?opcode_id=__118>>>





            <http://www.csounds.com/udo/______displayOpcode.php?opcode_id=______118
            <http://www.csounds.com/udo/____displayOpcode.php?opcode_id=____118>

            <http://www.csounds.com/udo/____displayOpcode.php?opcode_id=____118
            <http://www.csounds.com/udo/__displayOpcode.php?opcode_id=__118>>


            <http://www.csounds.com/udo/____displayOpcode.php?opcode_id=____118
            <http://www.csounds.com/udo/__displayOpcode.php?opcode_id=__118>

            <http://www.csounds.com/udo/__displayOpcode.php?opcode_id=__118
            <http://www.csounds.com/udo/displayOpcode.php?opcode_id=118>>>>
                         (it
                                       looks more complex than it
            should, because it
                         supports some
                                  simple math)
                                       you can have a look at CsoundQt
            examples >
                         miscellaneous >
                                       midi-tunings for an application.
                                       2) to read the values in the
            table as if they
                         are linseg
                                  parts. see
                                       below for a possible solution.
                                       hope this helps, all best -
                                                j


                                       <CsoundSynthesizer>
                                       <CsOptions>
                                       </CsOptions>
                                       <CsInstruments>

                                       giLin1     ftgen      1, 0, -5,
            -2, 0, 3, 1, 2, 0
                                       giLin2     ftgen      2, 0, -7,
            -2, -3, 1, 0,
                         5, 1, 1, 0

                                          opcode TabToLin, k, i
                                       ift        xin
                                       iftlen     tableng    ift
                                       indx1      =          0
                                       indx2      =          1
                                       indx3      =          2
                                       segment:
                                       if indx3 >= iftlen igoto end
                                       iStart     table      indx1, ift
                                       iDur       table      indx2, ift
                                       iTarget    table      indx3, ift
                                                   timout     0, iDur, do
                                                   reinit     segment
                                       do:
                                       kOut       linseg     iStart,
            iDur, iTarget
                                       indx1      =          indx1+2
                                       indx2      =          indx2+2
                                       indx3      =          indx3+2
                                       end:
                                                   xout       kOut
                                          endop


                                       instr test
                                       kOut       TabToLin   p4
                                                   printk     .5, kOut
                                       endin
                                       </CsInstruments>
                                       <CsScore>
                                       i "test" 0 6 1
                                       i "test" 7 10 2
                                       </CsScore>
                                       </CsoundSynthesizer>







                                       Am 22.08.2012 12:07, schrieb
            Tarmo Johannes:

                                           Hi,

                                           Then Joachims string-array
            udos would help
                         you or use
                                  csound string
                                           manipulation opcodes or use
            coundqt python
                         functions like
                                           q.getChannelString and
            process it in python.
                                           Sorry, I am not behind a
            computer to try
                         out some examples.
                                           I think there is also a perl
            script with
                         tk gui in the
                                  standard
                                           csound
                                           installation to create linseg
            points
                         graphically.
                                           Please let know, if you need
            further
                         hints, I'll get to
                                  it later.
                                           Tarmo

                                           2012 8 22 12:42 kirjutas
            kuupäeval "peiman
                         khosravi"
                                           <peimankhosravi@gmail.com
            <mailto:peimankhosravi@gmail.com>
                         <mailto:peimankhosravi@gmail.__com
            <mailto:peimankhosravi@gmail.com>>
                                  <mailto:peimankhosravi@gmail.
            <mailto:peimankhosravi@gmail.>____com
                         <mailto:peimankhosravi@gmail.__com
            <mailto:peimankhosravi@gmail.com>>>
                                  <mailto:peimankhosravi@gmail
            <mailto:peimankhosravi@gmail>.
                         <mailto:peimankhosravi@gmail
            <mailto:peimankhosravi@gmail>.>______com
                                  <mailto:peimankhosravi@gmail.
            <mailto:peimankhosravi@gmail.>____com
                         <mailto:peimankhosravi@gmail.__com
            <mailto:peimankhosravi@gmail.com>>>>
                                           <mailto:peimankhosravi@gmail
            <mailto:peimankhosravi@gmail>

                         <mailto:peimankhosravi@gmail
            <mailto:peimankhosravi@gmail>>.
                                  <mailto:peimankhosravi@gmail
            <mailto:peimankhosravi@gmail>
                         <mailto:peimankhosravi@gmail
            <mailto:peimankhosravi@gmail>>.__>______com




                                           <mailto:peimankhosravi@gmail
            <mailto:peimankhosravi@gmail>.
                         <mailto:peimankhosravi@gmail
            <mailto:peimankhosravi@gmail>.>______com
                                  <mailto:peimankhosravi@gmail.
            <mailto:peimankhosravi@gmail.>____com
                         <mailto:peimankhosravi@gmail.__com
            <mailto:peimankhosravi@gmail.com>>>>>>:


                                                Hi Joachim,

                                                Yes exactly. Sorry my
            communication
                         skills are a
                                  bit rusty
                                           at the
                                                moment!

                                                Best,
                                                Peiman

                                                On 22 August 2012 10:30,
            joachim heintz
                                           <jh@joachimheintz.de
            <mailto:jh@joachimheintz.de>
                         <mailto:jh@joachimheintz.de
            <mailto:jh@joachimheintz.de>> <mailto:jh@joachimheintz.de
            <mailto:jh@joachimheintz.de>
                         <mailto:jh@joachimheintz.de
            <mailto:jh@joachimheintz.de>>>
                                  <mailto:jh@joachimheintz.de
            <mailto:jh@joachimheintz.de>
                         <mailto:jh@joachimheintz.de
            <mailto:jh@joachimheintz.de>> <mailto:jh@joachimheintz.de
            <mailto:jh@joachimheintz.de>
                         <mailto:jh@joachimheintz.de
            <mailto:jh@joachimheintz.de>>>>

              <mailto:jh@joachimheintz.de <mailto:jh@joachimheintz.de>
                         <mailto:jh@joachimheintz.de
            <mailto:jh@joachimheintz.de>>
                                  <mailto:jh@joachimheintz.de
            <mailto:jh@joachimheintz.de>
                         <mailto:jh@joachimheintz.de
            <mailto:jh@joachimheintz.de>>> <mailto:jh@joachimheintz.de
            <mailto:jh@joachimheintz.de>
                         <mailto:jh@joachimheintz.de
            <mailto:jh@joachimheintz.de>>
                                  <mailto:jh@joachimheintz.de
            <mailto:jh@joachimheintz.de>
                         <mailto:jh@joachimheintz.de
            <mailto:jh@joachimheintz.de>>>>__>__>



                                           wrote:

                                                    hi peiman -

                                                    do you mean to
            transfer the string
                                                    "0 3 1 2 0"
                                                    to something like
                                                    kLin linseg 0, 3, 1,
            2, 0
                                                    ?

                                                    ciao -
                                                             joachim


                                                    Am 22.08.2012 10:50,
            schrieb
                         peiman khosravi:

                                                        Hi tarmo,

                                                        Yes I meant
            LineEdit.
                         Basically I'm
                                  wondering if
                                           there is
                                                        anyway to
                                                        construct line
            segments (at
                         i-rate) from an
                                           arbitrary number
                                                        of values
                                                        entered in
            LineEdit. I don't
                         suppose there
                                  is but
                                           you never
                                                        know.

                                                        I suppose one
            way would be to
                         read the
                                  values into
                                           a table
                                                        and then read
                                                        the table with a
            phasor but
                         then you can't
                                  define
                                           exact time
                                                        durations.

                                                        Thanks
                                                        Peiman

                                                        On 22 August
            2012 09:24,
                         Tarmo Johannes

              <tarmo@otsakool.edu.ee <mailto:tarmo@otsakool.edu.ee>
                         <mailto:tarmo@otsakool.edu.ee
            <mailto:tarmo@otsakool.edu.ee>>
                                  <mailto:tarmo@otsakool.edu.ee
            <mailto:tarmo@otsakool.edu.ee>
                         <mailto:tarmo@otsakool.edu.ee
            <mailto:tarmo@otsakool.edu.ee>>__>
                                           <mailto:tarmo@otsakool.edu.ee
            <mailto:tarmo@otsakool.edu.ee>
                         <mailto:tarmo@otsakool.edu.ee
            <mailto:tarmo@otsakool.edu.ee>>
                                  <mailto:tarmo@otsakool.edu.ee
            <mailto:tarmo@otsakool.edu.ee>
                         <mailto:tarmo@otsakool.edu.ee
            <mailto:tarmo@otsakool.edu.ee>>__>__>
                         <mailto:tarmo@otsakool.edu.ee
            <mailto:tarmo@otsakool.edu.ee> <mailto:tarmo@otsakool.edu.ee
            <mailto:tarmo@otsakool.edu.ee>>
                                  <mailto:tarmo@otsakool.edu.ee
            <mailto:tarmo@otsakool.edu.ee>
                         <mailto:tarmo@otsakool.edu.ee
            <mailto:tarmo@otsakool.edu.ee>>__>
                                           <mailto:tarmo@otsakool.edu.ee
            <mailto:tarmo@otsakool.edu.ee>
                         <mailto:tarmo@otsakool.edu.ee
            <mailto:tarmo@otsakool.edu.ee>>
                                  <mailto:tarmo@otsakool.edu.ee
            <mailto:tarmo@otsakool.edu.ee>
                         <mailto:tarmo@otsakool.edu.ee
            <mailto:tarmo@otsakool.edu.ee>>__>__>__>

              <mailto:tarmo@otsakool.edu.ee <mailto:tarmo@otsakool.edu.ee>
                         <mailto:tarmo@otsakool.edu.ee
            <mailto:tarmo@otsakool.edu.ee>>
                                  <mailto:tarmo@otsakool.edu.ee
            <mailto:tarmo@otsakool.edu.ee>
                         <mailto:tarmo@otsakool.edu.ee
            <mailto:tarmo@otsakool.edu.ee>>__>
                                           <mailto:tarmo@otsakool.edu.ee
            <mailto:tarmo@otsakool.edu.ee>
                         <mailto:tarmo@otsakool.edu.ee
            <mailto:tarmo@otsakool.edu.ee>>
                                  <mailto:tarmo@otsakool.edu.ee
            <mailto:tarmo@otsakool.edu.ee>
                         <mailto:tarmo@otsakool.edu.ee
            <mailto:tarmo@otsakool.edu.ee>>__>__>


              <mailto:tarmo@otsakool.edu.ee <mailto:tarmo@otsakool.edu.ee>
                         <mailto:tarmo@otsakool.edu.ee
            <mailto:tarmo@otsakool.edu.ee>>
                                  <mailto:tarmo@otsakool.edu.ee
            <mailto:tarmo@otsakool.edu.ee>
                         <mailto:tarmo@otsakool.edu.ee
            <mailto:tarmo@otsakool.edu.ee>>__>
                                           <mailto:tarmo@otsakool.edu.ee
            <mailto:tarmo@otsakool.edu.ee>
                         <mailto:tarmo@otsakool.edu.ee
            <mailto:tarmo@otsakool.edu.ee>>
                                  <mailto:tarmo@otsakool.edu.ee
            <mailto:tarmo@otsakool.edu.ee>
                         <mailto:tarmo@otsakool.edu.ee
            <mailto:tarmo@otsakool.edu.ee>>__>__>__>__>__> wrote:

                                                             __


                                                             HEllo,

                                                             could you
            be a bit more
                         precise, what
                                  do you
                                           need to
                                                        do, what do you
                                                             mean by "
            string
                         widget"? LineEdit?

                                                             greetings,

                                                             tarmo

                                                             On Tuesday
            21 August
                         2012 23:32:11 peiman
                                           khosravi wrote:

                                                             Hello,

                                                             I'm
            preparing some
                         teaching material for
                                           September and
                                                        was wondering
                                                             if there is
            an easy way
                         to type the
                                  data for a
                                           linseg
                                                        in a string
                                                             widget? Or
            some other
                         way of defining
                                  a linseg
                                           with
                                                        arbitrary segments.

                                                             Thanks
                                                             Peiman






                                                    Send bugs reports to the
                         Sourceforge bug tracker
            https://sourceforge.net/__________tracker/?group_id=81968&__atid=________564599
            <https://sourceforge.net/________tracker/?group_id=81968&atid=________564599>


            <https://sourceforge.net/________tracker/?group_id=81968&atid=________564599
            <https://sourceforge.net/______tracker/?group_id=81968&atid=______564599>>



            <https://sourceforge.net/________tracker/?group_id=81968&atid=________564599
            <https://sourceforge.net/______tracker/?group_id=81968&atid=______564599>

            <https://sourceforge.net/______tracker/?group_id=81968&atid=______564599
            <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599>>>




            <https://sourceforge.net/________tracker/?group_id=81968&atid=________564599
            <https://sourceforge.net/______tracker/?group_id=81968&atid=______564599>

            <https://sourceforge.net/______tracker/?group_id=81968&atid=______564599
            <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599>>


            <https://sourceforge.net/______tracker/?group_id=81968&atid=______564599
            <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599>

            <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599
            <https://sourceforge.net/__tracker/?group_id=81968&atid=__564599>>>>






            <https://sourceforge.net/________tracker/?group_id=81968&atid=________564599
            <https://sourceforge.net/______tracker/?group_id=81968&atid=______564599>

            <https://sourceforge.net/______tracker/?group_id=81968&atid=______564599
            <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599>>


            <https://sourceforge.net/______tracker/?group_id=81968&atid=______564599
            <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599>

            <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599
            <https://sourceforge.net/__tracker/?group_id=81968&atid=__564599>>>



            <https://sourceforge.net/______tracker/?group_id=81968&atid=______564599
            <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599>

            <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599
            <https://sourceforge.net/__tracker/?group_id=81968&atid=__564599>>


            <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599
            <https://sourceforge.net/__tracker/?group_id=81968&atid=__564599>

            <https://sourceforge.net/__tracker/?group_id=81968&atid=__564599
            <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 <mailto:sympa@lists.bath.ac.uk>
            <mailto:sympa@lists.bath.ac.uk
            <mailto:sympa@lists.bath.ac.uk>__>
                         <mailto:sympa@lists.bath.ac.uk
            <mailto:sympa@lists.bath.ac.uk>
                         <mailto:sympa@lists.bath.ac.uk
            <mailto:sympa@lists.bath.ac.uk>__>__>

            <mailto:sympa@lists.bath.ac.uk <mailto:sympa@lists.bath.ac.uk>
                         <mailto:sympa@lists.bath.ac.uk
            <mailto:sympa@lists.bath.ac.uk>__>
                                  <mailto:sympa@lists.bath.ac.uk
            <mailto:sympa@lists.bath.ac.uk>
                         <mailto:sympa@lists.bath.ac.uk
            <mailto:sympa@lists.bath.ac.uk>__>__>__>

              <mailto:sympa@lists.bath.ac.uk <mailto:sympa@lists.bath.ac.uk>
                         <mailto:sympa@lists.bath.ac.uk
            <mailto:sympa@lists.bath.ac.uk>__>
                                  <mailto:sympa@lists.bath.ac.uk
            <mailto:sympa@lists.bath.ac.uk>
                         <mailto:sympa@lists.bath.ac.uk
            <mailto:sympa@lists.bath.ac.uk>__>__>

            <mailto:sympa@lists.bath.ac.uk <mailto:sympa@lists.bath.ac.uk>
                         <mailto:sympa@lists.bath.ac.uk
            <mailto:sympa@lists.bath.ac.uk>__>
                                  <mailto:sympa@lists.bath.ac.uk
            <mailto:sympa@lists.bath.ac.uk>
                         <mailto:sympa@lists.bath.ac.uk
            <mailto: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
            <https://sourceforge.net/______tracker/?group_id=81968&atid=______564599>

            <https://sourceforge.net/______tracker/?group_id=81968&atid=______564599
            <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599>>


            <https://sourceforge.net/______tracker/?group_id=81968&atid=______564599
            <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599>

            <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599
            <https://sourceforge.net/__tracker/?group_id=81968&atid=__564599>>>



            <https://sourceforge.net/______tracker/?group_id=81968&atid=______564599
            <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599>

            <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599
            <https://sourceforge.net/__tracker/?group_id=81968&atid=__564599>>


            <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599
            <https://sourceforge.net/__tracker/?group_id=81968&atid=__564599>

            <https://sourceforge.net/__tracker/?group_id=81968&atid=__564599
            <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 <mailto:sympa@lists.bath.ac.uk>
            <mailto:sympa@lists.bath.ac.uk
            <mailto:sympa@lists.bath.ac.uk>__>
                                  <mailto:sympa@lists.bath.ac.uk
            <mailto:sympa@lists.bath.ac.uk>
                         <mailto:sympa@lists.bath.ac.uk
            <mailto:sympa@lists.bath.ac.uk>__>__>
                                       <mailto:sympa@lists.bath.ac.uk
            <mailto:sympa@lists.bath.ac.uk>
                         <mailto:sympa@lists.bath.ac.uk
            <mailto:sympa@lists.bath.ac.uk>__>
                                  <mailto:sympa@lists.bath.ac.uk
            <mailto:sympa@lists.bath.ac.uk>
                         <mailto:sympa@lists.bath.ac.uk
            <mailto: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
            <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599>

            <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599
            <https://sourceforge.net/__tracker/?group_id=81968&atid=__564599>>


            <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599
            <https://sourceforge.net/__tracker/?group_id=81968&atid=__564599>

            <https://sourceforge.net/__tracker/?group_id=81968&atid=__564599
            <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 <mailto:sympa@lists.bath.ac.uk>
                         <mailto:sympa@lists.bath.ac.uk
            <mailto:sympa@lists.bath.ac.uk>__>
                              <mailto:sympa@lists.bath.ac.uk
            <mailto:sympa@lists.bath.ac.uk>
                         <mailto:sympa@lists.bath.ac.uk
            <mailto: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
            <https://sourceforge.net/__tracker/?group_id=81968&atid=__564599>

            <https://sourceforge.net/__tracker/?group_id=81968&atid=__564599
            <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
            <mailto:sympa@lists.bath.ac.uk>
                     <mailto:sympa@lists.bath.ac.uk
            <mailto: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
        <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
        <mailto: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"



Date2012-08-22 19:06
Fromjoachim heintz
SubjectRe: [Csnd] CsoundQT question
does 0.7.0 alpha not work for you? it is certainly less stable, but you 
will *love* the python integration (see for instance the example tarmo 
has committed some weeks ago). it's here:
http://sourceforge.net/projects/qutecsound/files/CsoundQt/0.7.0-alpha/

if i recall correctly, on osx 10.6 i found the alpha5 more stable than 
the alpha6. recently i have built myself on osx 10.7 which i found 
fairly easy:
http://sourceforge.net/apps/mediawiki/qutecsound/index.php?title=Building_CsoundQt_with_OSX_Lion

just an idea ...

all best -
	joachim


Am 22.08.2012 19:51, schrieb peiman khosravi:
> The very latest 0.6.1. Although I would love it if the double precision
> version could also be distributed with Csound.
>
> On 22 August 2012 18:26, joachim heintz  > wrote:
>
>     which version do you use?
>
>     Am 22.08.2012 19:04, schrieb peiman khosravi:
>
>         PS I'm really happy with CsoundQT, it's really stable now on OS X.
>
>         Thanks
>         P
>
>         On 22 August 2012 17:59, peiman khosravi
>         
>                  >> wrote:
>
>              Amazing, Thanks so much. Add a few more beers to the long list!
>
>              Best,
>              Peiman
>
>
>              On 22 August 2012 17:46, joachim heintz
>         
>              >>
>         wrote:
>
>                  ah, now i remember - i once had a similar problem with
>         turnoff2.
>                  it works with the other option of stopping an instrument, a
>                  negative p1:
>         http://www.csounds.com/manual/____html/i.html
>         
>
>                           >
>
>                  so, just use the line
>                  event "i", -2, 0, 0
>                  instead of the turnoff2 statement, and it should work
>         (does for me).
>
>                  best -
>                           j
>
>
>                  Am 22.08.2012 18:25, schrieb peiman khosravi:
>
>                      PS also when restarting, I'd like the table to be
>         refreshed
>                      with newly
>                      entered values, hence putting the whole thing
>         inside one
>                      instrument block.
>
>                      P
>
>                      On 22 August 2012 17:24, peiman khosravi
>                               
>                  >
>                               ____com
>
>                               >>> wrote:
>
>                           Thanks, so at least I'm not doing something
>         completely
>                      stupid!
>
>                           Well, ideally I should be able to
>         start/pause/carry and
>                      reinitiate
>                           the playback. But for now (re)start/stop will
>         do I think.
>
>                           Cheers,
>                           Peiman
>
>
>                           On 22 August 2012 16:40, joachim heintz
>                      
>         >
>                                    
>                               >>> wrote:
>
>                               good question; just one of the developers
>         might be
>                      able to answer.
>
>                               but i think there can be found another
>         way. what do
>                      you actually
>                               want to do when you set the play button to 1
>                      respectively 0?
>
>
>                               Am 22.08.2012 17:13, schrieb peiman khosravi:
>
>                                   great, amazing.
>
>                                   One question: any idea why the
>         attached csd
>                      crashes after
>                                   the third
>                                   triggering of instrument 2 (with the
>         "play"
>                      button)?
>
>                                   This is the error I get this error
>         when turning
>                      off the
>                                   instrument.
>
>                                   PERF ERROR in instr 2: StrayNumToFt: not
>                      initialised
>
>                                   ift iftlen StrayNumToFt Stray 0 -1 -1 0
>
>                                   note aborted
>
>
>
>                                   Thanks very much
>                                   Peiman
>
>                                   On 22 August 2012 15:52, joachim heintz
>                      
>         >
>                                            
>                               >>
>                                            
>                               >          
>                               >>>__>
>                                   wrote:
>
>                                        thanks - glad you find it useful.
>                                        if you like - i always do a
>                                        #include strays.inc
>                                        with the attached file. it
>         prevents from
>                      inserting so
>                                   many lines in
>                                        the csd file.
>                                        have fun, and keep us posted -
>                                                 joachim
>
>
>                                        Am 22.08.2012 16:25, schrieb
>         peiman khosravi:
>
>                                            Wow, I don't believe I didn't
>         use your
>                      UDO before!
>                                   It's amazing.
>
>                                            Thanks for sharing
>                                            P
>
>                                            On 22 August 2012 11:35,
>         joachim heintz
>                                            
>                               >          
>                               >>
>                                                     
>                               >
>                                            
>                               >>>
>                                                     
>                               >
>                                            
>                               >>          
>                               >
>                                            
>                               >>>__>__> wrote:
>
>                                                 my way would be:
>                                                 1) to transform the lineedit
>                      widget input to a
>                                   function
>                                            table. as
>                                                 tarmo said, this can be
>         done with
>         http://www.csounds.com/udo/__________displayOpcode.php?opcode_____id=______118
>         
>
>                  >
>
>
>
>                  
>
>                  >>
>
>
>
>
>                  
>
>                  >
>
>
>                  
>
>                  >>>
>
>
>
>
>
>
>                  
>
>                  >
>
>
>                  
>
>                  >>
>
>
>
>                  
>
>                  >
>
>
>                  
>
>                  >>>>
>                                   (it
>                                                 looks more complex than it
>                      should, because it
>                                   supports some
>                                            simple math)
>                                                 you can have a look at
>         CsoundQt
>                      examples >
>                                   miscellaneous >
>                                                 midi-tunings for an
>         application.
>                                                 2) to read the values in the
>                      table as if they
>                                   are linseg
>                                            parts. see
>                                                 below for a possible
>         solution.
>                                                 hope this helps, all best -
>                                                          j
>
>
>                                                 
>                                                 
>                                                 
>                                                 
>
>                                                 giLin1     ftgen      1,
>         0, -5,
>                      -2, 0, 3, 1, 2, 0
>                                                 giLin2     ftgen      2,
>         0, -7,
>                      -2, -3, 1, 0,
>                                   5, 1, 1, 0
>
>                                                    opcode TabToLin, k, i
>                                                 ift        xin
>                                                 iftlen     tableng    ift
>                                                 indx1      =          0
>                                                 indx2      =          1
>                                                 indx3      =          2
>                                                 segment:
>                                                 if indx3 >= iftlen igoto end
>                                                 iStart     table
>           indx1, ift
>                                                 iDur       table
>           indx2, ift
>                                                 iTarget    table
>           indx3, ift
>                                                             timout
>         0, iDur, do
>                                                             reinit
>         segment
>                                                 do:
>                                                 kOut       linseg
>         iStart,
>                      iDur, iTarget
>                                                 indx1      =
>           indx1+2
>                                                 indx2      =
>           indx2+2
>                                                 indx3      =
>           indx3+2
>                                                 end:
>                                                             xout       kOut
>                                                    endop
>
>
>                                                 instr test
>                                                 kOut       TabToLin   p4
>                                                             printk
>         .5, kOut
>                                                 endin
>                                                 
>                                                 
>                                                 i "test" 0 6 1
>                                                 i "test" 7 10 2
>                                                 
>                                                 
>
>
>
>
>
>
>
>                                                 Am 22.08.2012 12:07, schrieb
>                      Tarmo Johannes:
>
>                                                     Hi,
>
>                                                     Then Joachims
>         string-array
>                      udos would help
>                                   you or use
>                                            csound string
>                                                     manipulation opcodes
>         or use
>                      coundqt python
>                                   functions like
>                                                     q.getChannelString and
>                      process it in python.
>                                                     Sorry, I am not behind a
>                      computer to try
>                                   out some examples.
>                                                     I think there is
>         also a perl
>                      script with
>                                   tk gui in the
>                                            standard
>                                                     csound
>                                                     installation to
>         create linseg
>                      points
>                                   graphically.
>                                                     Please let know, if
>         you need
>                      further
>                                   hints, I'll get to
>                                            it later.
>                                                     Tarmo
>
>                                                     2012 8 22 12:42 kirjutas
>                      kuupäeval "peiman
>                                   khosravi"
>
>           
>                               >
>                                            ____com
>                               >>
>                                                     .
>                               .>______com
>                                            ____com
>                               >>>
>                                                     
>                               >.
>                                            
>                               >.__>______com
>                                                     .
>                               .>______com
>                                            ____com
>                               >>>>
>
>           
>                               >
>
>                                            
>                               >>__.
>                                                     
>                               >
>                                            
>                               >>__.__>______com
>
>
>
>
>
>           
>                               >.
>                                            
>                               >.__>______com
>                                                     .
>                               .>______com
>                                            ____com
>                               >>>>>>:
>
>
>                                                          Hi Joachim,
>
>                                                          Yes exactly.
>         Sorry my
>                      communication
>                                   skills are a
>                                            bit rusty
>                                                     at the
>                                                          moment!
>
>                                                          Best,
>                                                          Peiman
>
>                                                          On 22 August
>         2012 10:30,
>                      joachim heintz
>                                                              
>                               >
>                                            
>                               >>          
>                               >
>                                            
>                               >>>
>                                                     
>                               >
>                                            
>                               >>          
>                               >
>                                            
>                               >>>__>
>
>                                           >
>                                            
>                               >>
>                                                     
>                               >
>                                            
>                               >>>          
>                               >
>                                            
>                               >>
>                                                     
>                               >
>                                            
>                               >>>__>__>__>
>
>
>
>                                                     wrote:
>
>                                                              hi peiman -
>
>                                                              do you mean to
>                      transfer the string
>                                                              "0 3 1 2 0"
>                                                              to
>         something like
>                                                              kLin linseg
>         0, 3, 1,
>                      2, 0
>                                                              ?
>
>                                                              ciao -
>
>           joachim
>
>
>                                                              Am
>         22.08.2012 10:50,
>                      schrieb
>                                   peiman khosravi:
>
>                                                                  Hi tarmo,
>
>                                                                  Yes I meant
>                      LineEdit.
>                                   Basically I'm
>                                            wondering if
>                                                     there is
>                                                                  anyway to
>
>         construct line
>                      segments (at
>                                   i-rate) from an
>                                                     arbitrary number
>                                                                  of values
>                                                                  entered in
>                      LineEdit. I don't
>                                   suppose there
>                                            is but
>                                                     you never
>                                                                  know.
>
>                                                                  I
>         suppose one
>                      way would be to
>                                   read the
>                                            values into
>                                                     a table
>                                                                  and
>         then read
>                                                                  the
>         table with a
>                      phasor but
>                                   then you can't
>                                            define
>                                                     exact time
>                                                                  durations.
>
>                                                                  Thanks
>                                                                  Peiman
>
>                                                                  On 22
>         August
>                      2012 09:24,
>                                   Tarmo Johannes
>
>                                           >
>                                            
>                               >__>
>                                                     
>                               >
>                                            
>                               >__>__>
>
>           
>                               >
>                                            
>                               >__>
>                                                     
>                               >
>                                            
>                               >__>__>__>
>                                            
>                               >          
>                               >__>
>                                                     
>                               >
>                                            
>                               >__>__>
>
>           
>                               >
>                                            
>                               >__>
>                                                     
>                               >
>                                            
>                               >__>__>__>__>
>
>                                           >
>                                            
>                               >__>
>                                                     
>                               >
>                                            
>                               >__>__>
>
>           
>                               >
>                                            
>                               >__>
>                                                     
>                               >
>                                            
>                               >__>__>__>
>
>
>                                           >
>                                            
>                               >__>
>                                                     
>                               >
>                                            
>                               >__>__>
>
>           
>                               >
>                                            
>                               >__>
>                                                     
>                               >
>                                            
>                               >__>__>__>__>__>__> wrote:
>
>                                                                       __
>
>
>                                                                       HEllo,
>
>
>           could you
>                      be a bit more
>                                   precise, what
>                                            do you
>                                                     need to
>                                                                  do,
>         what do you
>
>           mean by "
>                      string
>                                   widget"? LineEdit?
>
>
>           greetings,
>
>                                                                       tarmo
>
>                                                                       On
>         Tuesday
>                      21 August
>                                   2012 23:32:11 peiman
>                                                     khosravi wrote:
>
>                                                                       Hello,
>
>                                                                       I'm
>                      preparing some
>                                   teaching material for
>                                                     September and
>                                                                  was
>         wondering
>                                                                       if
>         there is
>                      an easy way
>                                   to type the
>                                            data for a
>                                                     linseg
>                                                                  in a string
>
>           widget? Or
>                      some other
>                                   way of defining
>                                            a linseg
>                                                     with
>
>         arbitrary segments.
>
>                                                                       Thanks
>                                                                       Peiman
>
>
>
>
>
>
>                                                              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"
>
>
>
>
>
>     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"
>
>

Date2012-08-22 20:10
Frompeiman khosravi
SubjectRe: [Csnd] CsoundQT question
Oh thanks, I'll try it later tonight. Having actually looked at it yet.

Best,
P

On 22 August 2012 19:06, joachim heintz <jh@joachimheintz.de> wrote:
does 0.7.0 alpha not work for you? it is certainly less stable, but you will *love* the python integration (see for instance the example tarmo has committed some weeks ago). it's here:
http://sourceforge.net/projects/qutecsound/files/CsoundQt/0.7.0-alpha/

if i recall correctly, on osx 10.6 i found the alpha5 more stable than the alpha6. recently i have built myself on osx 10.7 which i found fairly easy:
http://sourceforge.net/apps/mediawiki/qutecsound/index.php?title=Building_CsoundQt_with_OSX_Lion

just an idea ...

all best -
        joachim


Am 22.08.2012 19:51, schrieb peiman khosravi:
The very latest 0.6.1. Although I would love it if the double precision
version could also be distributed with Csound.

On 22 August 2012 18:26, joachim heintz <jh@joachimheintz.de
<mailto:jh@joachimheintz.de>> wrote:

    which version do you use?

    Am 22.08.2012 19:04, schrieb peiman khosravi:

        PS I'm really happy with CsoundQT, it's really stable now on OS X.

        Thanks
        P

        On 22 August 2012 17:59, peiman khosravi
        <peimankhosravi@gmail.com <mailto:peimankhosravi@gmail.com>
        <mailto:peimankhosravi@gmail.__com
        <mailto:peimankhosravi@gmail.com>>> wrote:

             Amazing, Thanks so much. Add a few more beers to the long list!

             Best,
             Peiman


             On 22 August 2012 17:46, joachim heintz
        <jh@joachimheintz.de <mailto:jh@joachimheintz.de>
             <mailto:jh@joachimheintz.de <mailto:jh@joachimheintz.de>>>
        wrote:

                 ah, now i remember - i once had a similar problem with
        turnoff2.
                 it works with the other option of stopping an instrument, a
                 negative p1:
        http://www.csounds.com/manual/____html/i.html
        <http://www.csounds.com/manual/__html/i.html>

                 <http://www.csounds.com/__manual/html/i.html
        <http://www.csounds.com/manual/html/i.html>>

                 so, just use the line
                 event "i", -2, 0, 0
                 instead of the turnoff2 statement, and it should work
        (does for me).

                 best -
                          j


                 Am 22.08.2012 18:25, schrieb peiman khosravi:

                     PS also when restarting, I'd like the table to be
        refreshed
                     with newly
                     entered values, hence putting the whole thing
        inside one
                     instrument block.

                     P

                     On 22 August 2012 17:24, peiman khosravi
                     <peimankhosravi@gmail.com
        <mailto:peimankhosravi@gmail.com>
        <mailto:peimankhosravi@gmail.__com
        <mailto:peimankhosravi@gmail.com>>
                     <mailto:peimankhosravi@gmail.
        <mailto:peimankhosravi@gmail.>____com

                     <mailto:peimankhosravi@gmail.__com
        <mailto:peimankhosravi@gmail.com>>>> wrote:

                          Thanks, so at least I'm not doing something
        completely
                     stupid!

                          Well, ideally I should be able to
        start/pause/carry and
                     reinitiate
                          the playback. But for now (re)start/stop will
        do I think.

                          Cheers,
                          Peiman


                          On 22 August 2012 16:40, joachim heintz
                     <jh@joachimheintz.de <mailto:jh@joachimheintz.de>
        <mailto:jh@joachimheintz.de <mailto:jh@joachimheintz.de>>
                          <mailto:jh@joachimheintz.de
        <mailto:jh@joachimheintz.de>
                     <mailto:jh@joachimheintz.de
        <mailto:jh@joachimheintz.de>>>> wrote:

                              good question; just one of the developers
        might be
                     able to answer.

                              but i think there can be found another
        way. what do
                     you actually
                              want to do when you set the play button to 1
                     respectively 0?


                              Am 22.08.2012 17:13, schrieb peiman khosravi:

                                  great, amazing.

                                  One question: any idea why the
        attached csd
                     crashes after
                                  the third
                                  triggering of instrument 2 (with the
        "play"
                     button)?

                                  This is the error I get this error
        when turning
                     off the
                                  instrument.

                                  PERF ERROR in instr 2: StrayNumToFt: not
                     initialised

                                  ift iftlen StrayNumToFt Stray 0 -1 -1 0

                                  note aborted



                                  Thanks very much
                                  Peiman

                                  On 22 August 2012 15:52, joachim heintz
                     <jh@joachimheintz.de <mailto:jh@joachimheintz.de>
        <mailto:jh@joachimheintz.de <mailto:jh@joachimheintz.de>>
                                  <mailto:jh@joachimheintz.de
        <mailto:jh@joachimheintz.de>
                     <mailto:jh@joachimheintz.de
        <mailto:jh@joachimheintz.de>>>
                                  <mailto:jh@joachimheintz.de
        <mailto:jh@joachimheintz.de>
                     <mailto:jh@joachimheintz.de
        <mailto:jh@joachimheintz.de>> <mailto:jh@joachimheintz.de
        <mailto:jh@joachimheintz.de>
                     <mailto:jh@joachimheintz.de
        <mailto:jh@joachimheintz.de>>>>__>
                                  wrote:

                                       thanks - glad you find it useful.
                                       if you like - i always do a
                                       #include strays.inc
                                       with the attached file. it
        prevents from
                     inserting so
                                  many lines in
                                       the csd file.
                                       have fun, and keep us posted -
                                                joachim


                                       Am 22.08.2012 16:25, schrieb
        peiman khosravi:

                                           Wow, I don't believe I didn't
        use your
                     UDO before!
                                  It's amazing.

                                           Thanks for sharing
                                           P

                                           On 22 August 2012 11:35,
        joachim heintz
                                  <jh@joachimheintz.de
        <mailto:jh@joachimheintz.de>
                     <mailto:jh@joachimheintz.de
        <mailto:jh@joachimheintz.de>> <mailto:jh@joachimheintz.de
        <mailto:jh@joachimheintz.de>
                     <mailto:jh@joachimheintz.de
        <mailto:jh@joachimheintz.de>>>
                                           <mailto:jh@joachimheintz.de
        <mailto:jh@joachimheintz.de>
                     <mailto:jh@joachimheintz.de
        <mailto:jh@joachimheintz.de>>
                                  <mailto:jh@joachimheintz.de
        <mailto:jh@joachimheintz.de>
                     <mailto:jh@joachimheintz.de
        <mailto:jh@joachimheintz.de>>>>
                                           <mailto:jh@joachimheintz.de
        <mailto:jh@joachimheintz.de>
                     <mailto:jh@joachimheintz.de
        <mailto:jh@joachimheintz.de>>
                                  <mailto:jh@joachimheintz.de
        <mailto:jh@joachimheintz.de>
                     <mailto:jh@joachimheintz.de
        <mailto:jh@joachimheintz.de>>> <mailto:jh@joachimheintz.de
        <mailto:jh@joachimheintz.de>
                     <mailto:jh@joachimheintz.de
        <mailto:jh@joachimheintz.de>>
                                  <mailto:jh@joachimheintz.de
        <mailto:jh@joachimheintz.de>
                     <mailto:jh@joachimheintz.de
        <mailto:jh@joachimheintz.de>>>>__>__> wrote:

                                                my way would be:
                                                1) to transform the lineedit
                     widget input to a
                                  function
                                           table. as
                                                tarmo said, this can be
        done with
        http://www.csounds.com/udo/__________displayOpcode.php?opcode_____id=______118
        <http://www.csounds.com/udo/________displayOpcode.php?opcode___id=______118>

        <http://www.csounds.com/udo/________displayOpcode.php?opcode___id=______118
        <http://www.csounds.com/udo/______displayOpcode.php?opcode_id=______118>>



        <http://www.csounds.com/udo/________displayOpcode.php?opcode___id=______118
        <http://www.csounds.com/udo/______displayOpcode.php?opcode_id=______118>

        <http://www.csounds.com/udo/______displayOpcode.php?opcode_id=______118
        <http://www.csounds.com/udo/____displayOpcode.php?opcode_id=____118>>>




        <http://www.csounds.com/udo/________displayOpcode.php?opcode___id=______118
        <http://www.csounds.com/udo/______displayOpcode.php?opcode_id=______118>

        <http://www.csounds.com/udo/______displayOpcode.php?opcode_id=______118
        <http://www.csounds.com/udo/____displayOpcode.php?opcode_id=____118>>


        <http://www.csounds.com/udo/______displayOpcode.php?opcode_id=______118
        <http://www.csounds.com/udo/____displayOpcode.php?opcode_id=____118>

        <http://www.csounds.com/udo/____displayOpcode.php?opcode_id=____118
        <http://www.csounds.com/udo/__displayOpcode.php?opcode_id=__118>>>>






        <http://www.csounds.com/udo/________displayOpcode.php?opcode___id=______118
        <http://www.csounds.com/udo/______displayOpcode.php?opcode_id=______118>

        <http://www.csounds.com/udo/______displayOpcode.php?opcode_id=______118
        <http://www.csounds.com/udo/____displayOpcode.php?opcode_id=____118>>


        <http://www.csounds.com/udo/______displayOpcode.php?opcode_id=______118
        <http://www.csounds.com/udo/____displayOpcode.php?opcode_id=____118>

        <http://www.csounds.com/udo/____displayOpcode.php?opcode_id=____118
        <http://www.csounds.com/udo/__displayOpcode.php?opcode_id=__118>>>



        <http://www.csounds.com/udo/______displayOpcode.php?opcode_id=______118
        <http://www.csounds.com/udo/____displayOpcode.php?opcode_id=____118>

        <http://www.csounds.com/udo/____displayOpcode.php?opcode_id=____118
        <http://www.csounds.com/udo/__displayOpcode.php?opcode_id=__118>>


        <http://www.csounds.com/udo/____displayOpcode.php?opcode_id=____118
        <http://www.csounds.com/udo/__displayOpcode.php?opcode_id=__118>

        <http://www.csounds.com/udo/__displayOpcode.php?opcode_id=__118
        <http://www.csounds.com/udo/displayOpcode.php?opcode_id=118>>>>>
                                  (it
                                                looks more complex than it
                     should, because it
                                  supports some
                                           simple math)
                                                you can have a look at
        CsoundQt
                     examples >
                                  miscellaneous >
                                                midi-tunings for an
        application.
                                                2) to read the values in the
                     table as if they
                                  are linseg
                                           parts. see
                                                below for a possible
        solution.
                                                hope this helps, all best -
                                                         j


                                                <CsoundSynthesizer>
                                                <CsOptions>
                                                </CsOptions>
                                                <CsInstruments>

                                                giLin1     ftgen      1,
        0, -5,
                     -2, 0, 3, 1, 2, 0
                                                giLin2     ftgen      2,
        0, -7,
                     -2, -3, 1, 0,
                                  5, 1, 1, 0

                                                   opcode TabToLin, k, i
                                                ift        xin
                                                iftlen     tableng    ift
                                                indx1      =          0
                                                indx2      =          1
                                                indx3      =          2
                                                segment:
                                                if indx3 >= iftlen igoto end
                                                iStart     table
          indx1, ift
                                                iDur       table
          indx2, ift
                                                iTarget    table
          indx3, ift
                                                            timout
        0, iDur, do
                                                            reinit
        segment
                                                do:
                                                kOut       linseg
        iStart,
                     iDur, iTarget
                                                indx1      =
          indx1+2
                                                indx2      =
          indx2+2
                                                indx3      =
          indx3+2
                                                end:
                                                            xout       kOut
                                                   endop


                                                instr test
                                                kOut       TabToLin   p4
                                                            printk
        .5, kOut
                                                endin
                                                </CsInstruments>
                                                <CsScore>
                                                i "test" 0 6 1
                                                i "test" 7 10 2
                                                </CsScore>
                                                </CsoundSynthesizer>







                                                Am 22.08.2012 12:07, schrieb
                     Tarmo Johannes:

                                                    Hi,

                                                    Then Joachims
        string-array
                     udos would help
                                  you or use
                                           csound string
                                                    manipulation opcodes
        or use
                     coundqt python
                                  functions like
                                                    q.getChannelString and
                     process it in python.
                                                    Sorry, I am not behind a
                     computer to try
                                  out some examples.
                                                    I think there is
        also a perl
                     script with
                                  tk gui in the
                                           standard
                                                    csound
                                                    installation to
        create linseg
                     points
                                  graphically.
                                                    Please let know, if
        you need
                     further
                                  hints, I'll get to
                                           it later.
                                                    Tarmo

                                                    2012 8 22 12:42 kirjutas
                     kuupäeval "peiman
                                  khosravi"

          <peimankhosravi@gmail.com <mailto:peimankhosravi@gmail.com>
                     <mailto:peimankhosravi@gmail.__com
        <mailto:peimankhosravi@gmail.com>>
                                  <mailto:peimankhosravi@gmail.
        <mailto:peimankhosravi@gmail.>____com
                     <mailto:peimankhosravi@gmail.__com
        <mailto:peimankhosravi@gmail.com>>>
                                           <mailto:peimankhosravi@gmail
        <mailto:peimankhosravi@gmail>.
                     <mailto:peimankhosravi@gmail
        <mailto:peimankhosravi@gmail>.>______com
                                  <mailto:peimankhosravi@gmail.
        <mailto:peimankhosravi@gmail.>____com
                     <mailto:peimankhosravi@gmail.__com
        <mailto:peimankhosravi@gmail.com>>>>
                                           <mailto:peimankhosravi@gmail
        <mailto:peimankhosravi@gmail>
                     <mailto:peimankhosravi@gmail
        <mailto:peimankhosravi@gmail>>.
                                  <mailto:peimankhosravi@gmail
        <mailto:peimankhosravi@gmail>
                     <mailto:peimankhosravi@gmail
        <mailto:peimankhosravi@gmail>>.__>______com
                                           <mailto:peimankhosravi@gmail
        <mailto:peimankhosravi@gmail>.
                     <mailto:peimankhosravi@gmail
        <mailto:peimankhosravi@gmail>.>______com
                                  <mailto:peimankhosravi@gmail.
        <mailto:peimankhosravi@gmail.>____com
                     <mailto:peimankhosravi@gmail.__com
        <mailto:peimankhosravi@gmail.com>>>>>

          <mailto:peimankhosravi@gmail <mailto:peimankhosravi@gmail>
                     <mailto:peimankhosravi@gmail
        <mailto:peimankhosravi@gmail>>

                                  <mailto:peimankhosravi@gmail
        <mailto:peimankhosravi@gmail>
                     <mailto:peimankhosravi@gmail
        <mailto:peimankhosravi@gmail>>>__.
                                           <mailto:peimankhosravi@gmail
        <mailto:peimankhosravi@gmail>
                     <mailto:peimankhosravi@gmail
        <mailto:peimankhosravi@gmail>>
                                  <mailto:peimankhosravi@gmail
        <mailto:peimankhosravi@gmail>
                     <mailto:peimankhosravi@gmail
        <mailto:peimankhosravi@gmail>>>__.__>______com





          <mailto:peimankhosravi@gmail <mailto:peimankhosravi@gmail>
                     <mailto:peimankhosravi@gmail
        <mailto:peimankhosravi@gmail>>.
                                  <mailto:peimankhosravi@gmail
        <mailto:peimankhosravi@gmail>
                     <mailto:peimankhosravi@gmail
        <mailto:peimankhosravi@gmail>>.__>______com
                                           <mailto:peimankhosravi@gmail
        <mailto:peimankhosravi@gmail>.
                     <mailto:peimankhosravi@gmail
        <mailto:peimankhosravi@gmail>.>______com
                                  <mailto:peimankhosravi@gmail.
        <mailto:peimankhosravi@gmail.>____com
                     <mailto:peimankhosravi@gmail.__com
        <mailto:peimankhosravi@gmail.com>>>>>>>:


                                                         Hi Joachim,

                                                         Yes exactly.
        Sorry my
                     communication
                                  skills are a
                                           bit rusty
                                                    at the
                                                         moment!

                                                         Best,
                                                         Peiman

                                                         On 22 August
        2012 10:30,
                     joachim heintz
                                                    <jh@joachimheintz.de
        <mailto:jh@joachimheintz.de>
                     <mailto:jh@joachimheintz.de
        <mailto:jh@joachimheintz.de>>
                                  <mailto:jh@joachimheintz.de
        <mailto:jh@joachimheintz.de>
                     <mailto:jh@joachimheintz.de
        <mailto:jh@joachimheintz.de>>> <mailto:jh@joachimheintz.de
        <mailto:jh@joachimheintz.de>
                     <mailto:jh@joachimheintz.de
        <mailto:jh@joachimheintz.de>>
                                  <mailto:jh@joachimheintz.de
        <mailto:jh@joachimheintz.de>
                     <mailto:jh@joachimheintz.de
        <mailto:jh@joachimheintz.de>>>>
                                           <mailto:jh@joachimheintz.de
        <mailto:jh@joachimheintz.de>
                     <mailto:jh@joachimheintz.de
        <mailto:jh@joachimheintz.de>>
                                  <mailto:jh@joachimheintz.de
        <mailto:jh@joachimheintz.de>
                     <mailto:jh@joachimheintz.de
        <mailto:jh@joachimheintz.de>>> <mailto:jh@joachimheintz.de
        <mailto:jh@joachimheintz.de>
                     <mailto:jh@joachimheintz.de
        <mailto:jh@joachimheintz.de>>
                                  <mailto:jh@joachimheintz.de
        <mailto:jh@joachimheintz.de>
                     <mailto:jh@joachimheintz.de
        <mailto:jh@joachimheintz.de>>>>__>

                       <mailto:jh@joachimheintz.de
        <mailto:jh@joachimheintz.de> <mailto:jh@joachimheintz.de
        <mailto:jh@joachimheintz.de>>
                                  <mailto:jh@joachimheintz.de
        <mailto:jh@joachimheintz.de>
                     <mailto:jh@joachimheintz.de
        <mailto:jh@joachimheintz.de>>>
                                           <mailto:jh@joachimheintz.de
        <mailto:jh@joachimheintz.de>
                     <mailto:jh@joachimheintz.de
        <mailto:jh@joachimheintz.de>>
                                  <mailto:jh@joachimheintz.de
        <mailto:jh@joachimheintz.de>
                     <mailto:jh@joachimheintz.de
        <mailto:jh@joachimheintz.de>>>> <mailto:jh@joachimheintz.de
        <mailto:jh@joachimheintz.de>
                     <mailto:jh@joachimheintz.de
        <mailto:jh@joachimheintz.de>>
                                  <mailto:jh@joachimheintz.de
        <mailto:jh@joachimheintz.de>
                     <mailto:jh@joachimheintz.de
        <mailto:jh@joachimheintz.de>>>
                                           <mailto:jh@joachimheintz.de
        <mailto:jh@joachimheintz.de>
                     <mailto:jh@joachimheintz.de
        <mailto:jh@joachimheintz.de>>
                                  <mailto:jh@joachimheintz.de
        <mailto:jh@joachimheintz.de>
                     <mailto:jh@joachimheintz.de
        <mailto:jh@joachimheintz.de>>>>__>__>__>



                                                    wrote:

                                                             hi peiman -

                                                             do you mean to
                     transfer the string
                                                             "0 3 1 2 0"
                                                             to
        something like
                                                             kLin linseg
        0, 3, 1,
                     2, 0
                                                             ?

                                                             ciao -

          joachim


                                                             Am
        22.08.2012 10:50,
                     schrieb
                                  peiman khosravi:

                                                                 Hi tarmo,

                                                                 Yes I meant
                     LineEdit.
                                  Basically I'm
                                           wondering if
                                                    there is
                                                                 anyway to

        construct line
                     segments (at
                                  i-rate) from an
                                                    arbitrary number
                                                                 of values
                                                                 entered in
                     LineEdit. I don't
                                  suppose there
                                           is but
                                                    you never
                                                                 know.

                                                                 I
        suppose one
                     way would be to
                                  read the
                                           values into
                                                    a table
                                                                 and
        then read
                                                                 the
        table with a
                     phasor but
                                  then you can't
                                           define
                                                    exact time
                                                                 durations.

                                                                 Thanks
                                                                 Peiman

                                                                 On 22
        August
                     2012 09:24,
                                  Tarmo Johannes

                       <tarmo@otsakool.edu.ee
        <mailto:tarmo@otsakool.edu.ee> <mailto:tarmo@otsakool.edu.ee
        <mailto:tarmo@otsakool.edu.ee>>
                                  <mailto:tarmo@otsakool.edu.ee
        <mailto:tarmo@otsakool.edu.ee>
                     <mailto:tarmo@otsakool.edu.ee
        <mailto:tarmo@otsakool.edu.ee>>__>
                                           <mailto:tarmo@otsakool.edu.ee
        <mailto:tarmo@otsakool.edu.ee>
                     <mailto:tarmo@otsakool.edu.ee
        <mailto:tarmo@otsakool.edu.ee>>
                                  <mailto:tarmo@otsakool.edu.ee
        <mailto:tarmo@otsakool.edu.ee>
                     <mailto:tarmo@otsakool.edu.ee
        <mailto:tarmo@otsakool.edu.ee>>__>__>

          <mailto:tarmo@otsakool.edu.ee <mailto:tarmo@otsakool.edu.ee>
                     <mailto:tarmo@otsakool.edu.ee
        <mailto:tarmo@otsakool.edu.ee>>
                                  <mailto:tarmo@otsakool.edu.ee
        <mailto:tarmo@otsakool.edu.ee>
                     <mailto:tarmo@otsakool.edu.ee
        <mailto:tarmo@otsakool.edu.ee>>__>
                                           <mailto:tarmo@otsakool.edu.ee
        <mailto:tarmo@otsakool.edu.ee>
                     <mailto:tarmo@otsakool.edu.ee
        <mailto:tarmo@otsakool.edu.ee>>
                                  <mailto:tarmo@otsakool.edu.ee
        <mailto:tarmo@otsakool.edu.ee>
                     <mailto:tarmo@otsakool.edu.ee
        <mailto:tarmo@otsakool.edu.ee>>__>__>__>
                                  <mailto:tarmo@otsakool.edu.ee
        <mailto:tarmo@otsakool.edu.ee>
                     <mailto:tarmo@otsakool.edu.ee
        <mailto:tarmo@otsakool.edu.ee>> <mailto:tarmo@otsakool.edu.ee
        <mailto:tarmo@otsakool.edu.ee>
                     <mailto:tarmo@otsakool.edu.ee
        <mailto:tarmo@otsakool.edu.ee>>__>
                                           <mailto:tarmo@otsakool.edu.ee
        <mailto:tarmo@otsakool.edu.ee>
                     <mailto:tarmo@otsakool.edu.ee
        <mailto:tarmo@otsakool.edu.ee>>
                                  <mailto:tarmo@otsakool.edu.ee
        <mailto:tarmo@otsakool.edu.ee>
                     <mailto:tarmo@otsakool.edu.ee
        <mailto:tarmo@otsakool.edu.ee>>__>__>

          <mailto:tarmo@otsakool.edu.ee <mailto:tarmo@otsakool.edu.ee>
                     <mailto:tarmo@otsakool.edu.ee
        <mailto:tarmo@otsakool.edu.ee>>
                                  <mailto:tarmo@otsakool.edu.ee
        <mailto:tarmo@otsakool.edu.ee>
                     <mailto:tarmo@otsakool.edu.ee
        <mailto:tarmo@otsakool.edu.ee>>__>
                                           <mailto:tarmo@otsakool.edu.ee
        <mailto:tarmo@otsakool.edu.ee>
                     <mailto:tarmo@otsakool.edu.ee
        <mailto:tarmo@otsakool.edu.ee>>
                                  <mailto:tarmo@otsakool.edu.ee
        <mailto:tarmo@otsakool.edu.ee>
                     <mailto:tarmo@otsakool.edu.ee
        <mailto:tarmo@otsakool.edu.ee>>__>__>__>__>

                       <mailto:tarmo@otsakool.edu.ee
        <mailto:tarmo@otsakool.edu.ee> <mailto:tarmo@otsakool.edu.ee
        <mailto:tarmo@otsakool.edu.ee>>
                                  <mailto:tarmo@otsakool.edu.ee
        <mailto:tarmo@otsakool.edu.ee>
                     <mailto:tarmo@otsakool.edu.ee
        <mailto:tarmo@otsakool.edu.ee>>__>
                                           <mailto:tarmo@otsakool.edu.ee
        <mailto:tarmo@otsakool.edu.ee>
                     <mailto:tarmo@otsakool.edu.ee
        <mailto:tarmo@otsakool.edu.ee>>
                                  <mailto:tarmo@otsakool.edu.ee
        <mailto:tarmo@otsakool.edu.ee>
                     <mailto:tarmo@otsakool.edu.ee
        <mailto:tarmo@otsakool.edu.ee>>__>__>

          <mailto:tarmo@otsakool.edu.ee <mailto:tarmo@otsakool.edu.ee>
                     <mailto:tarmo@otsakool.edu.ee
        <mailto:tarmo@otsakool.edu.ee>>
                                  <mailto:tarmo@otsakool.edu.ee
        <mailto:tarmo@otsakool.edu.ee>
                     <mailto:tarmo@otsakool.edu.ee
        <mailto:tarmo@otsakool.edu.ee>>__>
                                           <mailto:tarmo@otsakool.edu.ee
        <mailto:tarmo@otsakool.edu.ee>
                     <mailto:tarmo@otsakool.edu.ee
        <mailto:tarmo@otsakool.edu.ee>>
                                  <mailto:tarmo@otsakool.edu.ee
        <mailto:tarmo@otsakool.edu.ee>
                     <mailto:tarmo@otsakool.edu.ee
        <mailto:tarmo@otsakool.edu.ee>>__>__>__>


                       <mailto:tarmo@otsakool.edu.ee
        <mailto:tarmo@otsakool.edu.ee> <mailto:tarmo@otsakool.edu.ee
        <mailto:tarmo@otsakool.edu.ee>>
                                  <mailto:tarmo@otsakool.edu.ee
        <mailto:tarmo@otsakool.edu.ee>
                     <mailto:tarmo@otsakool.edu.ee
        <mailto:tarmo@otsakool.edu.ee>>__>
                                           <mailto:tarmo@otsakool.edu.ee
        <mailto:tarmo@otsakool.edu.ee>
                     <mailto:tarmo@otsakool.edu.ee
        <mailto:tarmo@otsakool.edu.ee>>
                                  <mailto:tarmo@otsakool.edu.ee
        <mailto:tarmo@otsakool.edu.ee>
                     <mailto:tarmo@otsakool.edu.ee
        <mailto:tarmo@otsakool.edu.ee>>__>__>

          <mailto:tarmo@otsakool.edu.ee <mailto:tarmo@otsakool.edu.ee>
                     <mailto:tarmo@otsakool.edu.ee
        <mailto:tarmo@otsakool.edu.ee>>
                                  <mailto:tarmo@otsakool.edu.ee
        <mailto:tarmo@otsakool.edu.ee>
                     <mailto:tarmo@otsakool.edu.ee
        <mailto:tarmo@otsakool.edu.ee>>__>
                                           <mailto:tarmo@otsakool.edu.ee
        <mailto:tarmo@otsakool.edu.ee>
                     <mailto:tarmo@otsakool.edu.ee
        <mailto:tarmo@otsakool.edu.ee>>
                                  <mailto:tarmo@otsakool.edu.ee
        <mailto:tarmo@otsakool.edu.ee>
                     <mailto:tarmo@otsakool.edu.ee
        <mailto:tarmo@otsakool.edu.ee>>__>__>__>__>__>__> wrote:

                                                                      __


                                                                      HEllo,


          could you
                     be a bit more
                                  precise, what
                                           do you
                                                    need to
                                                                 do,
        what do you

          mean by "
                     string
                                  widget"? LineEdit?


          greetings,

                                                                      tarmo

                                                                      On
        Tuesday
                     21 August
                                  2012 23:32:11 peiman
                                                    khosravi wrote:

                                                                      Hello,

                                                                      I'm
                     preparing some
                                  teaching material for
                                                    September and
                                                                 was
        wondering
                                                                      if
        there is
                     an easy way
                                  to type the
                                           data for a
                                                    linseg
                                                                 in a string

          widget? Or
                     some other
                                  way of defining
                                           a linseg
                                                    with

        arbitrary segments.

                                                                      Thanks
                                                                      Peiman






                                                             Send bugs
        reports to the
                                  Sourceforge bug tracker
        https://sourceforge.net/____________tracker/?group_id=81968&____atid=________564599
        <https://sourceforge.net/__________tracker/?group_id=81968&__atid=________564599>

        <https://sourceforge.net/__________tracker/?group_id=81968&__atid=________564599
        <https://sourceforge.net/________tracker/?group_id=81968&atid=________564599>>



        <https://sourceforge.net/__________tracker/?group_id=81968&__atid=________564599
        <https://sourceforge.net/________tracker/?group_id=81968&atid=________564599>

        <https://sourceforge.net/________tracker/?group_id=81968&atid=________564599
        <https://sourceforge.net/______tracker/?group_id=81968&atid=______564599>>>




        <https://sourceforge.net/__________tracker/?group_id=81968&__atid=________564599
        <https://sourceforge.net/________tracker/?group_id=81968&atid=________564599>

        <https://sourceforge.net/________tracker/?group_id=81968&atid=________564599
        <https://sourceforge.net/______tracker/?group_id=81968&atid=______564599>>


        <https://sourceforge.net/________tracker/?group_id=81968&atid=________564599
        <https://sourceforge.net/______tracker/?group_id=81968&atid=______564599>

        <https://sourceforge.net/______tracker/?group_id=81968&atid=______564599
        <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599>>>>





        <https://sourceforge.net/__________tracker/?group_id=81968&__atid=________564599
        <https://sourceforge.net/________tracker/?group_id=81968&atid=________564599>

        <https://sourceforge.net/________tracker/?group_id=81968&atid=________564599
        <https://sourceforge.net/______tracker/?group_id=81968&atid=______564599>>


        <https://sourceforge.net/________tracker/?group_id=81968&atid=________564599
        <https://sourceforge.net/______tracker/?group_id=81968&atid=______564599>

        <https://sourceforge.net/______tracker/?group_id=81968&atid=______564599
        <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599>>>



        <https://sourceforge.net/________tracker/?group_id=81968&atid=________564599
        <https://sourceforge.net/______tracker/?group_id=81968&atid=______564599>

        <https://sourceforge.net/______tracker/?group_id=81968&atid=______564599
        <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599>>


        <https://sourceforge.net/______tracker/?group_id=81968&atid=______564599
        <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599>

        <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599
        <https://sourceforge.net/__tracker/?group_id=81968&atid=__564599>>>>>







        <https://sourceforge.net/__________tracker/?group_id=81968&__atid=________564599
        <https://sourceforge.net/________tracker/?group_id=81968&atid=________564599>

        <https://sourceforge.net/________tracker/?group_id=81968&atid=________564599
        <https://sourceforge.net/______tracker/?group_id=81968&atid=______564599>>


        <https://sourceforge.net/________tracker/?group_id=81968&atid=________564599
        <https://sourceforge.net/______tracker/?group_id=81968&atid=______564599>

        <https://sourceforge.net/______tracker/?group_id=81968&atid=______564599
        <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599>>>



        <https://sourceforge.net/________tracker/?group_id=81968&atid=________564599
        <https://sourceforge.net/______tracker/?group_id=81968&atid=______564599>

        <https://sourceforge.net/______tracker/?group_id=81968&atid=______564599
        <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599>>


        <https://sourceforge.net/______tracker/?group_id=81968&atid=______564599
        <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599>

        <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599
        <https://sourceforge.net/__tracker/?group_id=81968&atid=__564599>>>>




        <https://sourceforge.net/________tracker/?group_id=81968&atid=________564599
        <https://sourceforge.net/______tracker/?group_id=81968&atid=______564599>

        <https://sourceforge.net/______tracker/?group_id=81968&atid=______564599
        <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599>>


        <https://sourceforge.net/______tracker/?group_id=81968&atid=______564599
        <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599>

        <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599
        <https://sourceforge.net/__tracker/?group_id=81968&atid=__564599>>>



        <https://sourceforge.net/______tracker/?group_id=81968&atid=______564599
        <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599>

        <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599
        <https://sourceforge.net/__tracker/?group_id=81968&atid=__564599>>


        <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599
        <https://sourceforge.net/__tracker/?group_id=81968&atid=__564599>

        <https://sourceforge.net/__tracker/?group_id=81968&atid=__564599
        <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 <mailto:sympa@lists.bath.ac.uk>
        <mailto:sympa@lists.bath.ac.uk <mailto:sympa@lists.bath.ac.uk>__>
                     <mailto:sympa@lists.bath.ac.uk
        <mailto:sympa@lists.bath.ac.uk>
                     <mailto:sympa@lists.bath.ac.uk
        <mailto:sympa@lists.bath.ac.uk>__>__>
                                  <mailto:sympa@lists.bath.ac.uk
        <mailto:sympa@lists.bath.ac.uk>
                     <mailto:sympa@lists.bath.ac.uk
        <mailto:sympa@lists.bath.ac.uk>__>
                                  <mailto:sympa@lists.bath.ac.uk
        <mailto:sympa@lists.bath.ac.uk>
                     <mailto:sympa@lists.bath.ac.uk
        <mailto:sympa@lists.bath.ac.uk>__>__>__>

                     <mailto:sympa@lists.bath.ac.uk
        <mailto:sympa@lists.bath.ac.uk> <mailto:sympa@lists.bath.ac.uk
        <mailto:sympa@lists.bath.ac.uk>__>
                                  <mailto:sympa@lists.bath.ac.uk
        <mailto:sympa@lists.bath.ac.uk>
                     <mailto:sympa@lists.bath.ac.uk
        <mailto:sympa@lists.bath.ac.uk>__>__>

        <mailto:sympa@lists.bath.ac.uk <mailto:sympa@lists.bath.ac.uk>
                     <mailto:sympa@lists.bath.ac.uk
        <mailto:sympa@lists.bath.ac.uk>__>
                                  <mailto:sympa@lists.bath.ac.uk
        <mailto:sympa@lists.bath.ac.uk>
                     <mailto:sympa@lists.bath.ac.uk
        <mailto:sympa@lists.bath.ac.uk>__>__>__>__>

                       <mailto:sympa@lists.bath.ac.uk
        <mailto:sympa@lists.bath.ac.uk> <mailto:sympa@lists.bath.ac.uk
        <mailto:sympa@lists.bath.ac.uk>__>
                                  <mailto:sympa@lists.bath.ac.uk
        <mailto:sympa@lists.bath.ac.uk>
                     <mailto:sympa@lists.bath.ac.uk
        <mailto:sympa@lists.bath.ac.uk>__>__>

        <mailto:sympa@lists.bath.ac.uk <mailto:sympa@lists.bath.ac.uk>
                     <mailto:sympa@lists.bath.ac.uk
        <mailto:sympa@lists.bath.ac.uk>__>
                                  <mailto:sympa@lists.bath.ac.uk
        <mailto:sympa@lists.bath.ac.uk>
                     <mailto:sympa@lists.bath.ac.uk
        <mailto:sympa@lists.bath.ac.uk>__>__>__>

                     <mailto:sympa@lists.bath.ac.uk
        <mailto:sympa@lists.bath.ac.uk> <mailto:sympa@lists.bath.ac.uk
        <mailto:sympa@lists.bath.ac.uk>__>
                                  <mailto:sympa@lists.bath.ac.uk
        <mailto:sympa@lists.bath.ac.uk>
                     <mailto:sympa@lists.bath.ac.uk
        <mailto:sympa@lists.bath.ac.uk>__>__>

        <mailto:sympa@lists.bath.ac.uk <mailto:sympa@lists.bath.ac.uk>
                     <mailto:sympa@lists.bath.ac.uk
        <mailto:sympa@lists.bath.ac.uk>__>
                                  <mailto:sympa@lists.bath.ac.uk
        <mailto:sympa@lists.bath.ac.uk>
                     <mailto:sympa@lists.bath.ac.uk
        <mailto: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
        <https://sourceforge.net/________tracker/?group_id=81968&atid=________564599>

        <https://sourceforge.net/________tracker/?group_id=81968&atid=________564599
        <https://sourceforge.net/______tracker/?group_id=81968&atid=______564599>>


        <https://sourceforge.net/________tracker/?group_id=81968&atid=________564599
        <https://sourceforge.net/______tracker/?group_id=81968&atid=______564599>

        <https://sourceforge.net/______tracker/?group_id=81968&atid=______564599
        <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599>>>



        <https://sourceforge.net/________tracker/?group_id=81968&atid=________564599
        <https://sourceforge.net/______tracker/?group_id=81968&atid=______564599>

        <https://sourceforge.net/______tracker/?group_id=81968&atid=______564599
        <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599>>


        <https://sourceforge.net/______tracker/?group_id=81968&atid=______564599
        <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599>

        <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599
        <https://sourceforge.net/__tracker/?group_id=81968&atid=__564599>>>>




        <https://sourceforge.net/________tracker/?group_id=81968&atid=________564599
        <https://sourceforge.net/______tracker/?group_id=81968&atid=______564599>

        <https://sourceforge.net/______tracker/?group_id=81968&atid=______564599
        <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599>>


        <https://sourceforge.net/______tracker/?group_id=81968&atid=______564599
        <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599>

        <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599
        <https://sourceforge.net/__tracker/?group_id=81968&atid=__564599>>>



        <https://sourceforge.net/______tracker/?group_id=81968&atid=______564599
        <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599>

        <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599
        <https://sourceforge.net/__tracker/?group_id=81968&atid=__564599>>


        <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599
        <https://sourceforge.net/__tracker/?group_id=81968&atid=__564599>

        <https://sourceforge.net/__tracker/?group_id=81968&atid=__564599
        <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 <mailto:sympa@lists.bath.ac.uk>
        <mailto:sympa@lists.bath.ac.uk <mailto:sympa@lists.bath.ac.uk>__>
                     <mailto:sympa@lists.bath.ac.uk
        <mailto:sympa@lists.bath.ac.uk>
                     <mailto:sympa@lists.bath.ac.uk
        <mailto:sympa@lists.bath.ac.uk>__>__>

        <mailto:sympa@lists.bath.ac.uk <mailto:sympa@lists.bath.ac.uk>
                     <mailto:sympa@lists.bath.ac.uk
        <mailto:sympa@lists.bath.ac.uk>__>
                                  <mailto:sympa@lists.bath.ac.uk
        <mailto:sympa@lists.bath.ac.uk>
                     <mailto:sympa@lists.bath.ac.uk
        <mailto:sympa@lists.bath.ac.uk>__>__>__>

          <mailto:sympa@lists.bath.ac.uk <mailto:sympa@lists.bath.ac.uk>
                     <mailto:sympa@lists.bath.ac.uk
        <mailto:sympa@lists.bath.ac.uk>__>
                                  <mailto:sympa@lists.bath.ac.uk
        <mailto:sympa@lists.bath.ac.uk>
                     <mailto:sympa@lists.bath.ac.uk
        <mailto:sympa@lists.bath.ac.uk>__>__>

        <mailto:sympa@lists.bath.ac.uk <mailto:sympa@lists.bath.ac.uk>
                     <mailto:sympa@lists.bath.ac.uk
        <mailto:sympa@lists.bath.ac.uk>__>
                                  <mailto:sympa@lists.bath.ac.uk
        <mailto:sympa@lists.bath.ac.uk>
                     <mailto:sympa@lists.bath.ac.uk
        <mailto: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
        <https://sourceforge.net/______tracker/?group_id=81968&atid=______564599>

        <https://sourceforge.net/______tracker/?group_id=81968&atid=______564599
        <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599>>


        <https://sourceforge.net/______tracker/?group_id=81968&atid=______564599
        <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599>

        <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599
        <https://sourceforge.net/__tracker/?group_id=81968&atid=__564599>>>



        <https://sourceforge.net/______tracker/?group_id=81968&atid=______564599
        <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599>

        <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599
        <https://sourceforge.net/__tracker/?group_id=81968&atid=__564599>>


        <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599
        <https://sourceforge.net/__tracker/?group_id=81968&atid=__564599>

        <https://sourceforge.net/__tracker/?group_id=81968&atid=__564599
        <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 <mailto:sympa@lists.bath.ac.uk>
        <mailto:sympa@lists.bath.ac.uk <mailto:sympa@lists.bath.ac.uk>__>
                                  <mailto:sympa@lists.bath.ac.uk
        <mailto:sympa@lists.bath.ac.uk>
                     <mailto:sympa@lists.bath.ac.uk
        <mailto:sympa@lists.bath.ac.uk>__>__>
                                       <mailto:sympa@lists.bath.ac.uk
        <mailto:sympa@lists.bath.ac.uk>
                     <mailto:sympa@lists.bath.ac.uk
        <mailto:sympa@lists.bath.ac.uk>__>
                                  <mailto:sympa@lists.bath.ac.uk
        <mailto:sympa@lists.bath.ac.uk>
                     <mailto:sympa@lists.bath.ac.uk
        <mailto: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
        <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599>

        <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599
        <https://sourceforge.net/__tracker/?group_id=81968&atid=__564599>>


        <https://sourceforge.net/____tracker/?group_id=81968&atid=____564599
        <https://sourceforge.net/__tracker/?group_id=81968&atid=__564599>

        <https://sourceforge.net/__tracker/?group_id=81968&atid=__564599
        <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 <mailto:sympa@lists.bath.ac.uk>
                     <mailto:sympa@lists.bath.ac.uk
        <mailto:sympa@lists.bath.ac.uk>__>
                              <mailto:sympa@lists.bath.ac.uk
        <mailto:sympa@lists.bath.ac.uk>
                     <mailto:sympa@lists.bath.ac.uk
        <mailto: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
        <https://sourceforge.net/__tracker/?group_id=81968&atid=__564599>

        <https://sourceforge.net/__tracker/?group_id=81968&atid=__564599
        <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
        <mailto:sympa@lists.bath.ac.uk>
                 <mailto:sympa@lists.bath.ac.uk
        <mailto: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
    <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
    <mailto: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"



Date2012-08-23 00:16
FromTarmo Johannes
SubjectRe: [Csnd] CsoundQT question
AttachmentspythonLinSeg.csd  pythonLinSeg.py  

Hello,

 

wow, this thread has grown long!

 

I think Joachim's idea with the UDOs is best, but while we are at it, I bring an example how to use CsoundQt python API for it.

 

You have to have CsoundQt compiled with python qt support (and version 0.6.1 does not have that possibility yet), so I warmly recommend to try out 07-alpha - I would not say, it is unstable, perhaps works even better.

 

My approach is a bit different - read the values from the lineedit "string" (and the csd does not have to run for that), replace spaces with commas and write the line to orchestra where it is expected; calculate the duration of the instrument adding up durations of the segments, write accordind score line into score and then play the csd.

 

Copy the lines below to python scratchpad and evaluate (run) them with shift-alt-e (or from menu Edit-> Evaluate section) or open the python file and run it with pressing to the "play" button of CsoundQt. Open 'pythonLinSeg.csd' in CsoundQt before that.

 

The python srcipt looks like (heavily commented):

 

---------------

#!/usr/bin/python

from string import *

 

csd = q.getDocument("pythonLinSeg.csd") # get thes index of the csd

orc = q.getOrc(csd) # read the contents of the orchestra

newOrc = "" # that will be written later here

 

inputline = q.getChannelString("string",csd) # get the contets of channel 'string'

data = inputline.split() # split into list

durations = map(float,data[1: :2]) # extract every odd member, convert strings to floats

duration = sum(durations) # get the sum of durations of the segments

 

withCommas = join(data,",") # join again with commas

 

for line in orc.split("\n"): # split orchestra into lines, scan them for insertLinSegHere

if ( string.find(line,";insertLinSegHere") > 0 ) :

line = "kOut linseg " + withCommas + ";insertLinSegHere"# form the new line

print line

newOrc = newOrc + line + "\n" # put the lines to new orchestra-string

q.setOrc(newOrc,csd) # replace the orchestra

q.setSco("i 1 0 " + str(duration)) # write a line into score

q.play(csd) # and play it

 

------------

(also attached)

 

and csd:

-----------------

<CsoundSynthesizer>

<CsOptions>

 

</CsOptions>

<CsInstruments>

sr = 44100 ;SAMPLE RATE

ksmps = 16 ;NUMBER OF AUDIO SAMPLES IN EACH CONTROL CYCLE

nchnls = 2 ;NUMBER OF CHANNELS (2=STEREO)

0dbfs = 1 ;MAXIMUM AMPLITUDE REGARDLESS OF BIT DEPTH

 

instr 1 ; the linseg line is overwritten here by python script

kOut linseg 0,0,0 ;insertLinSegHere

outvalue "index", kOut

 

endin

 

</CsInstruments>

<CsScore>

i 1 0 0

</CsScore>

</CsoundSynthesizer>

 

 

-------------

Less lines, isn't it? Of course, you have to overwrite and restart the csd every time this way. As I have understood, in Csound6 redefining the instruments on the fly will be possible. Wonderful! I I suggest CsoundQt with its widgets and interface can be a great tool for that.

 

And there is a lot that you can do with the python API in CounsQt! More information on

http://sourceforge.net/apps/mediawiki/qutecsound/index.php?title=Python_API_in_CsoundQt

 

But I agree, for beginner students it might be wiser to stay just inside the language of Csound.

 

best regards,

tarmo

 

 

On Wednesday 22 August 2012 12:35:56 peiman khosravi wrote:

Thanks Richard,

That's very interesting. It's actually a good idea to dedicate one or two sessions to using python to create patterns. This would be a good excuse to introduce blue as well as it comes with jython: no need to worry about having python installed.

I need to think about this for a few days.

Best,
Peiman  

On 22 August 2012 12:12, Richard Dobson <richarddobson@blueyonder.co.uk> wrote:

On the other hand, Python is widely used and promoted in UK schools for teaching computing, certainly for the 14-16 age group, and in some cases earlier. It is one of the "approved" languages for use in the new school CS curriculum (whereas C and C++ are not). It would be very useful to have some "simple" examples of using Python (with or without Csound) to variously generate waveforms, note patterns, drive MIDI, etc; which could be posted as resources teachers could learn from, use and develop.

At least one UK exam board lists domain-specific languages as something students should know about, and digital audio is already an explicit topic, albeit currently a minor and badly documented one. There is therefore a small chink in the door into which the Csound foot could well be put.

Richard Dobson





On 22/08/2012 11:24, peiman khosravi wrote:

Thanks Tarmo,

I think python isn't really appropriate for the beginner students.
Sounds like Joachim's udo is the way forward. I'll have a look in a min.

Thanks for your help.

Best,
Peiman





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"





Date2012-08-23 02:03
Frompeiman khosravi
SubjectRe: [Csnd] CsoundQT question
Thanks tarmo, this is all wonderful stuff. I'll be using it for my own work if nothing else!

Best,
Peiman

On 23 August 2012 00:16, Tarmo Johannes <tarmo@otsakool.edu.ee> wrote:

Hello,

 

wow, this thread has grown long!

 

I think Joachim's idea with the UDOs is best, but while we are at it, I bring an example how to use CsoundQt python API for it.

 

You have to have CsoundQt compiled with python qt support (and version 0.6.1 does not have that possibility yet), so I warmly recommend to try out 07-alpha - I would not say, it is unstable, perhaps works even better.

 

My approach is a bit different - read the values from the lineedit "string" (and the csd does not have to run for that), replace spaces with commas and write the line to orchestra where it is expected; calculate the duration of the instrument adding up durations of the segments, write accordind score line into score and then play the csd.

 

Copy the lines below to python scratchpad and evaluate (run) them with shift-alt-e (or from menu Edit-> Evaluate section) or open the python file and run it with pressing to the "play" button of CsoundQt. Open 'pythonLinSeg.csd' in CsoundQt before that.

 

The python srcipt looks like (heavily commented):

 

---------------

#!/usr/bin/python

from string import *

 

csd = q.getDocument("pythonLinSeg.csd") # get thes index of the csd

orc = q.getOrc(csd) # read the contents of the orchestra

newOrc = "" # that will be written later here

 

inputline = q.getChannelString("string",csd) # get the contets of channel 'string'

data = inputline.split() # split into list

durations = map(float,data[1: :2]) # extract every odd member, convert strings to floats

duration = sum(durations) # get the sum of durations of the segments

 

withCommas = join(data,",") # join again with commas

 

for line in orc.split("\n"): # split orchestra into lines, scan them for insertLinSegHere

if ( string.find(line,";insertLinSegHere") > 0 ) :

line = "kOut linseg " + withCommas + ";insertLinSegHere"# form the new line

print line

newOrc = newOrc + line + "\n" # put the lines to new orchestra-string

q.setOrc(newOrc,csd) # replace the orchestra

q.setSco("i 1 0 " + str(duration)) # write a line into score

q.play(csd) # and play it

 

------------

(also attached)

 

and csd:

-----------------

<CsoundSynthesizer>

<CsOptions>

 

</CsOptions>

<CsInstruments>

sr = 44100 ;SAMPLE RATE

ksmps = 16 ;NUMBER OF AUDIO SAMPLES IN EACH CONTROL CYCLE

nchnls = 2 ;NUMBER OF CHANNELS (2=STEREO)

0dbfs = 1 ;MAXIMUM AMPLITUDE REGARDLESS OF BIT DEPTH

 

instr 1 ; the linseg line is overwritten here by python script

kOut linseg 0,0,0 ;insertLinSegHere

outvalue "index", kOut

 

endin

 

</CsInstruments>

<CsScore>

i 1 0 0

</CsScore>

</CsoundSynthesizer>

 

 

-------------

Less lines, isn't it? Of course, you have to overwrite and restart the csd every time this way. As I have understood, in Csound6 redefining the instruments on the fly will be possible. Wonderful! I I suggest CsoundQt with its widgets and interface can be a great tool for that.

 

And there is a lot that you can do with the python API in CounsQt! More information on

http://sourceforge.net/apps/mediawiki/qutecsound/index.php?title=Python_API_in_CsoundQt

 

But I agree, for beginner students it might be wiser to stay just inside the language of Csound.

 

best regards,

tarmo

 

 

On Wednesday 22 August 2012 12:35:56 peiman khosravi wrote:

Thanks Richard,

That's very interesting. It's actually a good idea to dedicate one or two sessions to using python to create patterns. This would be a good excuse to introduce blue as well as it comes with jython: no need to worry about having python installed.

I need to think about this for a few days.

Best,
Peiman  

On 22 August 2012 12:12, Richard Dobson <richarddobson@blueyonder.co.uk> wrote:

On the other hand, Python is widely used and promoted in UK schools for teaching computing, certainly for the 14-16 age group, and in some cases earlier. It is one of the "approved" languages for use in the new school CS curriculum (whereas C and C++ are not). It would be very useful to have some "simple" examples of using Python (with or without Csound) to variously generate waveforms, note patterns, drive MIDI, etc; which could be posted as resources teachers could learn from, use and develop.

At least one UK exam board lists domain-specific languages as something students should know about, and digital audio is already an explicit topic, albeit currently a minor and badly documented one. There is therefore a small chink in the door into which the Csound foot could well be put.

Richard Dobson





On 22/08/2012 11:24, peiman khosravi wrote:

Thanks Tarmo,

I think python isn't really appropriate for the beginner students.
Sounds like Joachim's udo is the way forward. I'll have a look in a min.

Thanks for your help.

Best,
Peiman





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"






Date2012-08-23 02:37
Frompeiman khosravi
SubjectRe: [Csnd] CsoundQT question
Hi tarmo,

I just tried this and I get this error in the python console:

py>

Traceback (most recent call last):

File "<string>", line 16, in <module>

NameError: name 'string' is not defined

Evaluated 22 lines.

py>



I did make a lineEdit widget with the name string.

Thanks
Peiman 

Date2012-08-23 11:03
FromTarmo Johannes
SubjectRe: [Csnd] CsoundQT question
AttachmentspythonLinSeg.py  
Oh, sorry,

it should be 
find(line,";insertLinSegHere") 
without the string. prefix

- first i had a line

import string

in the beginning of the script, then you need add the string module name 
before every of its funstions. Then I decided it to replace it to

from string import *

since I had done "import string" earlier in the same session, the python 
interpreter remembered it and I got no error message.

Thanks for pointing it out and thanks for the interest!

corrected file in attachment.

tarmo

On Thursday 23 August 2012 02:37:33 peiman khosravi wrote:
> Hi tarmo,
> 
> I just tried this and I get this error in the python console:
> 
>  py>
> 
> Traceback (most recent call last):
> 
> File "", line 16, in 
> 
> NameError: name 'string' is not defined
> 
> Evaluated 22 lines.
> 
> py>
> 
> 
> I did make a lineEdit widget with the name string.
> 
> Thanks
> Peiman
> 
> 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"

Date2012-08-23 11:09
Frompeiman khosravi
SubjectRe: [Csnd] CsoundQT question
Thanks for the explanation Tarmo,

Running this actually crashes CsoundQt. :(

Cheers
Peiman


On 23 August 2012 11:03, Tarmo Johannes <tarmo.johannes@otsakool.edu.ee> wrote:
Oh, sorry,

it should be
find(line,";insertLinSegHere")
without the string. prefix

- first i had a line

import string

in the beginning of the script, then you need add the string module name
before every of its funstions. Then I decided it to replace it to

from string import *

since I had done "import string" earlier in the same session, the python
interpreter remembered it and I got no error message.

Thanks for pointing it out and thanks for the interest!

corrected file in attachment.

tarmo

On Thursday 23 August 2012 02:37:33 peiman khosravi wrote:
> Hi tarmo,
>
> I just tried this and I get this error in the python console:
>
>  py>
>
> Traceback (most recent call last):
>
> File "<string>", line 16, in <module>
>
> NameError: name 'string' is not defined
>
> Evaluated 22 lines.
>
> py>
>
>
> I did make a lineEdit widget with the name string.
>
> Thanks
> Peiman
>
> 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"



Date2012-08-23 11:09
Frompeiman khosravi
SubjectRe: [Csnd] CsoundQT question
Or rather, freezes it.

On 23 August 2012 11:09, peiman khosravi <peimankhosravi@gmail.com> wrote:
Thanks for the explanation Tarmo,

Running this actually crashes CsoundQt. :(

Cheers
Peiman



On 23 August 2012 11:03, Tarmo Johannes <tarmo.johannes@otsakool.edu.ee> wrote:
Oh, sorry,

it should be
find(line,";insertLinSegHere")
without the string. prefix

- first i had a line

import string

in the beginning of the script, then you need add the string module name
before every of its funstions. Then I decided it to replace it to

from string import *

since I had done "import string" earlier in the same session, the python
interpreter remembered it and I got no error message.

Thanks for pointing it out and thanks for the interest!

corrected file in attachment.

tarmo

On Thursday 23 August 2012 02:37:33 peiman khosravi wrote:
> Hi tarmo,
>
> I just tried this and I get this error in the python console:
>
>  py>
>
> Traceback (most recent call last):
>
> File "<string>", line 16, in <module>
>
> NameError: name 'string' is not defined
>
> Evaluated 22 lines.
>
> py>
>
>
> I did make a lineEdit widget with the name string.
>
> Thanks
> Peiman
>
> 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"




Date2012-08-23 17:11
FromAndres Cabrera
SubjectRe: [Csnd] CsoundQT question
Hi Peiman,

This can be an issue currently with the Python interpreter. It runs
synchronously, so if you create an infinite loop, it will freeze
CsoundQt, so you have to be careful with that. If you have a process
that is very time consuming, you can use the function q.refresh() to
yield control to the Qt loop momentarily.

Cheers,
Andrés

On 8/23/12, peiman khosravi  wrote:
> Or rather, freezes it.
>
> On 23 August 2012 11:09, peiman khosravi  wrote:
>
>> Thanks for the explanation Tarmo,
>>
>> Running this actually crashes CsoundQt. :(
>>
>> Cheers
>> Peiman
>>
>>
>>
>> On 23 August 2012 11:03, Tarmo Johannes
>> wrote:
>>
>>> Oh, sorry,
>>>
>>> it should be
>>> find(line,";insertLinSegHere")
>>> without the string. prefix
>>>
>>> - first i had a line
>>>
>>> import string
>>>
>>> in the beginning of the script, then you need add the string module name
>>> before every of its funstions. Then I decided it to replace it to
>>>
>>> from string import *
>>>
>>> since I had done "import string" earlier in the same session, the python
>>> interpreter remembered it and I got no error message.
>>>
>>> Thanks for pointing it out and thanks for the interest!
>>>
>>> corrected file in attachment.
>>>
>>> tarmo
>>>
>>> On Thursday 23 August 2012 02:37:33 peiman khosravi wrote:
>>> > Hi tarmo,
>>> >
>>> > I just tried this and I get this error in the python console:
>>> >
>>> >  py>
>>> >
>>> > Traceback (most recent call last):
>>> >
>>> > File "", line 16, in 
>>> >
>>> > NameError: name 'string' is not defined
>>> >
>>> > Evaluated 22 lines.
>>> >
>>> > py>
>>> >
>>> >
>>> > I did make a lineEdit widget with the name string.
>>> >
>>> > Thanks
>>> > Peiman
>>> >
>>> > 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"
>
>


-- 


Andrés


Date2012-08-23 17:25
Fromjoachim heintz
SubjectRe: [Csnd] CsoundQT question
hi andrés -

in this case i think something is wrong with the file itself. it does 
not run in csoundqt either. i will look at it later if nobody (tarmo?) 
beats me to.

	joachim


Am 23.08.2012 18:11, schrieb Andres Cabrera:
> Hi Peiman,
>
> This can be an issue currently with the Python interpreter. It runs
> synchronously, so if you create an infinite loop, it will freeze
> CsoundQt, so you have to be careful with that. If you have a process
> that is very time consuming, you can use the function q.refresh() to
> yield control to the Qt loop momentarily.
>
> Cheers,
> Andrés
>
> On 8/23/12, peiman khosravi  wrote:
>> Or rather, freezes it.
>>
>> On 23 August 2012 11:09, peiman khosravi  wrote:
>>
>>> Thanks for the explanation Tarmo,
>>>
>>> Running this actually crashes CsoundQt. :(
>>>
>>> Cheers
>>> Peiman
>>>
>>>
>>>
>>> On 23 August 2012 11:03, Tarmo Johannes
>>> wrote:
>>>
>>>> Oh, sorry,
>>>>
>>>> it should be
>>>> find(line,";insertLinSegHere")
>>>> without the string. prefix
>>>>
>>>> - first i had a line
>>>>
>>>> import string
>>>>
>>>> in the beginning of the script, then you need add the string module name
>>>> before every of its funstions. Then I decided it to replace it to
>>>>
>>>> from string import *
>>>>
>>>> since I had done "import string" earlier in the same session, the python
>>>> interpreter remembered it and I got no error message.
>>>>
>>>> Thanks for pointing it out and thanks for the interest!
>>>>
>>>> corrected file in attachment.
>>>>
>>>> tarmo
>>>>
>>>> On Thursday 23 August 2012 02:37:33 peiman khosravi wrote:
>>>>> Hi tarmo,
>>>>>
>>>>> I just tried this and I get this error in the python console:
>>>>>
>>>>>   py>
>>>>>
>>>>> Traceback (most recent call last):
>>>>>
>>>>> File "", line 16, in 
>>>>>
>>>>> NameError: name 'string' is not defined
>>>>>
>>>>> Evaluated 22 lines.
>>>>>
>>>>> py>
>>>>>
>>>>>
>>>>> I did make a lineEdit widget with the name string.
>>>>>
>>>>> Thanks
>>>>> Peiman
>>>>>
>>>>> 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"
>>
>>
>
>

Date2012-08-23 18:47
Fromjoachim heintz
SubjectRe: [Csnd] CsoundQT question
AttachmentspythonLinSeg2.csd  pythonLinSeg2.py  
ok - got it. there was some corruption with the file. i have attached a 
working version. i also changed the code slightly; hope it is even 
easier so.

tarmo, many thanks for this instructive example! i didn't know it is 
possible to run the python file in a tab and refer to the csd by name. 
this again gives so much possibilities.

ciao -

	j


Am 23.08.2012 18:25, schrieb joachim heintz:
> hi andrés -
>
> in this case i think something is wrong with the file itself. it does
> not run in csoundqt either. i will look at it later if nobody (tarmo?)
> beats me to.
>
>      joachim
>
>
> Am 23.08.2012 18:11, schrieb Andres Cabrera:
>> Hi Peiman,
>>
>> This can be an issue currently with the Python interpreter. It runs
>> synchronously, so if you create an infinite loop, it will freeze
>> CsoundQt, so you have to be careful with that. If you have a process
>> that is very time consuming, you can use the function q.refresh() to
>> yield control to the Qt loop momentarily.
>>
>> Cheers,
>> Andrés
>>
>> On 8/23/12, peiman khosravi  wrote:
>>> Or rather, freezes it.
>>>
>>> On 23 August 2012 11:09, peiman khosravi 
>>> wrote:
>>>
>>>> Thanks for the explanation Tarmo,
>>>>
>>>> Running this actually crashes CsoundQt. :(
>>>>
>>>> Cheers
>>>> Peiman
>>>>
>>>>
>>>>
>>>> On 23 August 2012 11:03, Tarmo Johannes
>>>> wrote:
>>>>
>>>>> Oh, sorry,
>>>>>
>>>>> it should be
>>>>> find(line,";insertLinSegHere")
>>>>> without the string. prefix
>>>>>
>>>>> - first i had a line
>>>>>
>>>>> import string
>>>>>
>>>>> in the beginning of the script, then you need add the string module
>>>>> name
>>>>> before every of its funstions. Then I decided it to replace it to
>>>>>
>>>>> from string import *
>>>>>
>>>>> since I had done "import string" earlier in the same session, the
>>>>> python
>>>>> interpreter remembered it and I got no error message.
>>>>>
>>>>> Thanks for pointing it out and thanks for the interest!
>>>>>
>>>>> corrected file in attachment.
>>>>>
>>>>> tarmo
>>>>>
>>>>> On Thursday 23 August 2012 02:37:33 peiman khosravi wrote:
>>>>>> Hi tarmo,
>>>>>>
>>>>>> I just tried this and I get this error in the python console:
>>>>>>
>>>>>>   py>
>>>>>>
>>>>>> Traceback (most recent call last):
>>>>>>
>>>>>> File "", line 16, in 
>>>>>>
>>>>>> NameError: name 'string' is not defined
>>>>>>
>>>>>> Evaluated 22 lines.
>>>>>>
>>>>>> py>
>>>>>>
>>>>>>
>>>>>> I did make a lineEdit widget with the name string.
>>>>>>
>>>>>> Thanks
>>>>>> Peiman
>>>>>>
>>>>>> 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"
>
>

Date2012-08-23 21:49
Frompeiman khosravi
SubjectRe: [Csnd] CsoundQT question
Thank very much. Amazing as ever.


Best,
Peiman

On 23 August 2012 18:47, joachim heintz <jh@joachimheintz.de> wrote:
ok - got it. there was some corruption with the file. i have attached a working version. i also changed the code slightly; hope it is even easier so.

tarmo, many thanks for this instructive example! i didn't know it is possible to run the python file in a tab and refer to the csd by name. this again gives so much possibilities.

ciao -

        j


Am 23.08.2012 18:25, schrieb joachim heintz:

hi andrés -

in this case i think something is wrong with the file itself. it does
not run in csoundqt either. i will look at it later if nobody (tarmo?)
beats me to.

     joachim


Am 23.08.2012 18:11, schrieb Andres Cabrera:
Hi Peiman,

This can be an issue currently with the Python interpreter. It runs
synchronously, so if you create an infinite loop, it will freeze
CsoundQt, so you have to be careful with that. If you have a process
that is very time consuming, you can use the function q.refresh() to
yield control to the Qt loop momentarily.

Cheers,
Andrés

On 8/23/12, peiman khosravi <peimankhosravi@gmail.com> wrote:
Or rather, freezes it.

On 23 August 2012 11:09, peiman khosravi <peimankhosravi@gmail.com>
wrote:

Thanks for the explanation Tarmo,

Running this actually crashes CsoundQt. :(

Cheers
Peiman



On 23 August 2012 11:03, Tarmo Johannes
<tarmo.johannes@otsakool.edu.ee>wrote:

Oh, sorry,

it should be
find(line,";insertLinSegHere")
without the string. prefix

- first i had a line

import string

in the beginning of the script, then you need add the string module
name
before every of its funstions. Then I decided it to replace it to

from string import *

since I had done "import string" earlier in the same session, the
python
interpreter remembered it and I got no error message.

Thanks for pointing it out and thanks for the interest!

corrected file in attachment.

tarmo

On Thursday 23 August 2012 02:37:33 peiman khosravi wrote:
Hi tarmo,

I just tried this and I get this error in the python console:

  py>

Traceback (most recent call last):

File "<string>", line 16, in <module>

NameError: name 'string' is not defined

Evaluated 22 lines.

py>


I did make a lineEdit widget with the name string.

Thanks
Peiman

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"



Date2012-08-23 21:53
FromTarmo Johannes
SubjectRe: [Csnd] CsoundQT question
Joachim, 

Thank you very much for sorting it out!

tarmo

On Thursday 23 August 2012 19:47:22 joachim heintz wrote:
> ok - got it. there was some corruption with the file. i have attached a
> working version. i also changed the code slightly; hope it is even
> easier so.
> 
> tarmo, many thanks for this instructive example! i didn't know it is
> possible to run the python file in a tab and refer to the csd by name.
> this again gives so much possibilities.
> 
> ciao -
> 
> 	j
> 
> Am 23.08.2012 18:25, schrieb joachim heintz:
> > hi andrés -
> > 
> > in this case i think something is wrong with the file itself. it does
> > not run in csoundqt either. i will look at it later if nobody (tarmo?)
> > beats me to.
> > 
> >      joachim
> > 
> > Am 23.08.2012 18:11, schrieb Andres Cabrera:
> >> Hi Peiman,
> >> 
> >> This can be an issue currently with the Python interpreter. It runs
> >> synchronously, so if you create an infinite loop, it will freeze
> >> CsoundQt, so you have to be careful with that. If you have a process
> >> that is very time consuming, you can use the function q.refresh() to
> >> yield control to the Qt loop momentarily.
> >> 
> >> Cheers,
> >> Andrés
> >> 
> >> On 8/23/12, peiman khosravi  wrote:
> >>> Or rather, freezes it.
> >>> 
> >>> On 23 August 2012 11:09, peiman khosravi 
> >>> 
> >>> wrote:
> >>>> Thanks for the explanation Tarmo,
> >>>> 
> >>>> Running this actually crashes CsoundQt. :(
> >>>> 
> >>>> Cheers
> >>>> Peiman
> >>>> 
> >>>> 
> >>>> 
> >>>> On 23 August 2012 11:03, Tarmo Johannes
> >>>> 
> >>>> wrote:
> >>>>> Oh, sorry,
> >>>>> 
> >>>>> it should be
> >>>>> find(line,";insertLinSegHere")
> >>>>> without the string. prefix
> >>>>> 
> >>>>> - first i had a line
> >>>>> 
> >>>>> import string
> >>>>> 
> >>>>> in the beginning of the script, then you need add the string module
> >>>>> name
> >>>>> before every of its funstions. Then I decided it to replace it to
> >>>>> 
> >>>>> from string import *
> >>>>> 
> >>>>> since I had done "import string" earlier in the same session, the
> >>>>> python
> >>>>> interpreter remembered it and I got no error message.
> >>>>> 
> >>>>> Thanks for pointing it out and thanks for the interest!
> >>>>> 
> >>>>> corrected file in attachment.
> >>>>> 
> >>>>> tarmo
> >>>>> 
> >>>>> On Thursday 23 August 2012 02:37:33 peiman khosravi wrote:
> >>>>>> Hi tarmo,
> >>>>>> 
> >>>>>> I just tried this and I get this error in the python console:
> >>>>>>   py>
> >>>>>> 
> >>>>>> Traceback (most recent call last):
> >>>>>> 
> >>>>>> File "", line 16, in 
> >>>>>> 
> >>>>>> NameError: name 'string' is not defined
> >>>>>> 
> >>>>>> Evaluated 22 lines.
> >>>>>> 
> >>>>>> py>
> >>>>>> 
> >>>>>> 
> >>>>>> I did make a lineEdit widget with the name string.
> >>>>>> 
> >>>>>> Thanks
> >>>>>> Peiman
> >>>>>> 
> >>>>>> 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"


Date2012-08-23 22:58
Frompeiman khosravi
SubjectRe: [Csnd] CsoundQT question
Unfortunately this is again crashing here. I think it must be an OS X thing.

P

On 23 August 2012 21:53, Tarmo Johannes <tarmo@otsakool.edu.ee> wrote:
Joachim,

Thank you very much for sorting it out!

tarmo

On Thursday 23 August 2012 19:47:22 joachim heintz wrote:
> ok - got it. there was some corruption with the file. i have attached a
> working version. i also changed the code slightly; hope it is even
> easier so.
>
> tarmo, many thanks for this instructive example! i didn't know it is
> possible to run the python file in a tab and refer to the csd by name.
> this again gives so much possibilities.
>
> ciao -
>
>       j
>
> Am 23.08.2012 18:25, schrieb joachim heintz:
> > hi andrés -
> >
> > in this case i think something is wrong with the file itself. it does
> > not run in csoundqt either. i will look at it later if nobody (tarmo?)
> > beats me to.
> >
> >      joachim
> >
> > Am 23.08.2012 18:11, schrieb Andres Cabrera:
> >> Hi Peiman,
> >>
> >> This can be an issue currently with the Python interpreter. It runs
> >> synchronously, so if you create an infinite loop, it will freeze
> >> CsoundQt, so you have to be careful with that. If you have a process
> >> that is very time consuming, you can use the function q.refresh() to
> >> yield control to the Qt loop momentarily.
> >>
> >> Cheers,
> >> Andrés
> >>
> >> On 8/23/12, peiman khosravi <peimankhosravi@gmail.com> wrote:
> >>> Or rather, freezes it.
> >>>
> >>> On 23 August 2012 11:09, peiman khosravi <peimankhosravi@gmail.com>
> >>>
> >>> wrote:
> >>>> Thanks for the explanation Tarmo,
> >>>>
> >>>> Running this actually crashes CsoundQt. :(
> >>>>
> >>>> Cheers
> >>>> Peiman
> >>>>
> >>>>
> >>>>
> >>>> On 23 August 2012 11:03, Tarmo Johannes
> >>>>
> >>>> <tarmo.johannes@otsakool.edu.ee>wrote:
> >>>>> Oh, sorry,
> >>>>>
> >>>>> it should be
> >>>>> find(line,";insertLinSegHere")
> >>>>> without the string. prefix
> >>>>>
> >>>>> - first i had a line
> >>>>>
> >>>>> import string
> >>>>>
> >>>>> in the beginning of the script, then you need add the string module
> >>>>> name
> >>>>> before every of its funstions. Then I decided it to replace it to
> >>>>>
> >>>>> from string import *
> >>>>>
> >>>>> since I had done "import string" earlier in the same session, the
> >>>>> python
> >>>>> interpreter remembered it and I got no error message.
> >>>>>
> >>>>> Thanks for pointing it out and thanks for the interest!
> >>>>>
> >>>>> corrected file in attachment.
> >>>>>
> >>>>> tarmo
> >>>>>
> >>>>> On Thursday 23 August 2012 02:37:33 peiman khosravi wrote:
> >>>>>> Hi tarmo,
> >>>>>>
> >>>>>> I just tried this and I get this error in the python console:
> >>>>>>   py>
> >>>>>>
> >>>>>> Traceback (most recent call last):
> >>>>>>
> >>>>>> File "<string>", line 16, in <module>
> >>>>>>
> >>>>>> NameError: name 'string' is not defined
> >>>>>>
> >>>>>> Evaluated 22 lines.
> >>>>>>
> >>>>>> py>
> >>>>>>
> >>>>>>
> >>>>>> I did make a lineEdit widget with the name string.
> >>>>>>
> >>>>>> Thanks
> >>>>>> Peiman
> >>>>>>
> >>>>>> 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"


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"



Date2012-08-24 09:13
Fromjoachim heintz
SubjectRe: [Csnd] CsoundQT question
strange ...
you could comment out the last line of the python file q.play(csd). then 
you should see the linseg values inserted in the csd. does it crash or 
freeze if you start the csd now manually? then it is again something 
with the file. what i did yesterday was just copy paste both the code 
and the widgets in an empty file, and it worked.

	j


Am 23.08.2012 23:58, schrieb peiman khosravi:
> Unfortunately this is again crashing here. I think it must be an OS X thing.
>
> P
>
> On 23 August 2012 21:53, Tarmo Johannes  > wrote:
>
>     Joachim,
>
>     Thank you very much for sorting it out!
>
>     tarmo
>
>     On Thursday 23 August 2012 19:47:22 joachim heintz wrote:
>      > ok - got it. there was some corruption with the file. i have
>     attached a
>      > working version. i also changed the code slightly; hope it is even
>      > easier so.
>      >
>      > tarmo, many thanks for this instructive example! i didn't know it is
>      > possible to run the python file in a tab and refer to the csd by
>     name.
>      > this again gives so much possibilities.
>      >
>      > ciao -
>      >
>      >       j
>      >
>      > Am 23.08.2012 18:25, schrieb joachim heintz:
>      > > hi andrés -
>      > >
>      > > in this case i think something is wrong with the file itself.
>     it does
>      > > not run in csoundqt either. i will look at it later if nobody
>     (tarmo?)
>      > > beats me to.
>      > >
>      > >      joachim
>      > >
>      > > Am 23.08.2012 18:11, schrieb Andres Cabrera:
>      > >> Hi Peiman,
>      > >>
>      > >> This can be an issue currently with the Python interpreter. It
>     runs
>      > >> synchronously, so if you create an infinite loop, it will freeze
>      > >> CsoundQt, so you have to be careful with that. If you have a
>     process
>      > >> that is very time consuming, you can use the function
>     q.refresh() to
>      > >> yield control to the Qt loop momentarily.
>      > >>
>      > >> Cheers,
>      > >> Andrés
>      > >>
>      > >> On 8/23/12, peiman khosravi      > wrote:
>      > >>> Or rather, freezes it.
>      > >>>
>      > >>> On 23 August 2012 11:09, peiman khosravi
>     >
>      > >>>
>      > >>> wrote:
>      > >>>> Thanks for the explanation Tarmo,
>      > >>>>
>      > >>>> Running this actually crashes CsoundQt. :(
>      > >>>>
>      > >>>> Cheers
>      > >>>> Peiman
>      > >>>>
>      > >>>>
>      > >>>>
>      > >>>> On 23 August 2012 11:03, Tarmo Johannes
>      > >>>>
>      > >>>>      >wrote:
>      > >>>>> Oh, sorry,
>      > >>>>>
>      > >>>>> it should be
>      > >>>>> find(line,";insertLinSegHere")
>      > >>>>> without the string. prefix
>      > >>>>>
>      > >>>>> - first i had a line
>      > >>>>>
>      > >>>>> import string
>      > >>>>>
>      > >>>>> in the beginning of the script, then you need add the
>     string module
>      > >>>>> name
>      > >>>>> before every of its funstions. Then I decided it to replace
>     it to
>      > >>>>>
>      > >>>>> from string import *
>      > >>>>>
>      > >>>>> since I had done "import string" earlier in the same
>     session, the
>      > >>>>> python
>      > >>>>> interpreter remembered it and I got no error message.
>      > >>>>>
>      > >>>>> Thanks for pointing it out and thanks for the interest!
>      > >>>>>
>      > >>>>> corrected file in attachment.
>      > >>>>>
>      > >>>>> tarmo
>      > >>>>>
>      > >>>>> On Thursday 23 August 2012 02:37:33 peiman khosravi wrote:
>      > >>>>>> Hi tarmo,
>      > >>>>>>
>      > >>>>>> I just tried this and I get this error in the python console:
>      > >>>>>>   py>
>      > >>>>>>
>      > >>>>>> Traceback (most recent call last):
>      > >>>>>>
>      > >>>>>> File "", line 16, in 
>      > >>>>>>
>      > >>>>>> NameError: name 'string' is not defined
>      > >>>>>>
>      > >>>>>> Evaluated 22 lines.
>      > >>>>>>
>      > >>>>>> py>
>      > >>>>>>
>      > >>>>>>
>      > >>>>>> I did make a lineEdit widget with the name string.
>      > >>>>>>
>      > >>>>>> Thanks
>      > >>>>>> Peiman
>      > >>>>>>
>      > >>>>>> 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"
>
>
>     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"
>
>

Date2012-08-24 10:13
Frompeiman khosravi
SubjectRe: [Csnd] CsoundQT question

Thanks joachim,

Yes you're right. The python script works. It's Csound that freezes csoundqt. Strange, I copy pasted the csd and widget into a new file and it dosn't seem to make a difference.

The csd also runs in winXound so I expect the corruption is in the GUI chunk of the code.

P

<CsoundSynthesizer>

<CsOptions>

 

</CsOptions>

<CsInstruments>

sr = 44100 ;SAMPLE RATE
ksmps = 16 ;NUMBER OF AUDIO SAMPLES IN EACH CONTROL CYCLE

nchnls = 2 ;NUMBER OF CHANNELS (2=STEREO)

0dbfs = 1 ;MAXIMUM AMPLITUDE REGARDLESS OF BIT DEPTH

 

instr 1 ; the linseg line is overwritten here by python script

kOut linseg 0,10,9;insertLinSegHere

outvalue "index", kOut

 

endin

 



</CsInstruments>

<CsScore>
i 1 0 10.0
</CsScore>

</CsoundSynthesizer>

<bsbPanel>
 <label>Widgets</label>
 <objectName/>
 <x>72</x>
 <y>179</y>
 <width>400</width>
 <height>200</height>
 <visible>true</visible>
 <uuid/>
 <bgcolor mode="nobackground">
  <r>231</r>
  <g>46</g>
  <b>255</b>
 </bgcolor>
 <bsbObject version="2" type="BSBLineEdit">
  <objectName>string</objectName>
  <x>9</x>
  <y>16</y>
  <width>100</width>
  <height>25</height>
  <uuid>{ecab12d7-012e-44e3-bac5-06be7e0d9da4}</uuid>
  <visible>true</visible>
  <midichan>0</midichan>
  <midicc>0</midicc>
  <label>0 10 9 </label>
  <alignment>left</alignment>
  <font>Arial</font>
  <fontsize>10</fontsize>
  <precision>3</precision>
  <color>
   <r>0</r>
   <g>0</g>
   <b>0</b>
  </color>
  <bgcolor mode="nobackground">
   <r>232</r>
   <g>232</g>
   <b>232</b>
  </bgcolor>
  <background>nobackground</background>
 </bsbObject>
</bsbPanel>
<bsbPresets>
</bsbPresets>
<MacOptions>
Version: 3
Render: Real
Ask: Yes
Functions: ioObject
Listing: Window
WindowBounds: 72 179 400 200
CurrentView: io
IOViewEdit: On
Options:
</MacOptions>

<MacGUI>
ioView nobackground {59367, 11822, 65535}
ioText {9, 16} {100, 25} edit 0.000000 0.00100 "string"  "Arial" 10 {0, 0, 0} {59392, 59392, 59392} falsenoborder 0 10 9
</MacGUI>