Csound Csound-dev Csound-tekno Search About

[Csnd] Carry

Date2014-09-01 15:14
FromCOCHEDELAFERTE
Subject[Csnd] Carry
Hi all,


I have a score like this :

i3	0	8	622.254		64	0	0	0	0	0	2


Is it possible to replace the "0" in the columns 6-10 by any character which
mean that the p-field is really present, but has no value and doesn't be
read, and what as character (or another solution) ?


Greatings

Sergio





--
View this message in context: http://csound.1045644.n5.nabble.com/Carry-tp5737270.html
Sent from the Csound - General mailing list archive at Nabble.com.

Date2014-09-01 23:28
FromKevin Welsh
SubjectRe: [Csnd] Carry
Hello Sergio,

I'm not sure I understand your question correctly, however it sounds
like you might be able to achieve what you're looking for with
"no-carry" and perhaps the opcode "pset"?
http://csound.github.io/docs/manual/ScoreTop.html#ScoreCarry
http://csound.github.io/docs/manual/pset.html

The manual entry for pset is a little confusing in it's wording, but
it allows you to set a "default" value for pfields that aren't there.
Then, if a note in the score doesn't have those fields it gets the
value given.  You could then use the no-carry symbol "!" in your score
to clear out the remaining pfields.

The caveat I see for your usage:  Any pfields after the no-carry
symbol are dropped, so you might need to rearrange your pfields so
that the ones you want to be able to blank are always at the end of
the score's i-statement.

Here's an example that may be useful.  You will see that in the second
note p4 becomes -99 (the default I chose), and p5 is lost.



; Select audio/midi flags here according to platform
-odac     ;;;realtime audio out
;-iadc    ;;;uncomment -iadc if realtime audio input is needed too
; For Non-realtime ouput leave only the line below:
; -o ftgenonce.wav -W ;;; for file output any platform



sr = 44100
ksmps = 32
nchnls = 2
0dbfs  = 1

instr 1
  pset 0, 0, 0, -99
  print p4, p5
endin





i 1 1 1 1 2
i 1 2 1 ! 2
e





On Mon, Sep 1, 2014 at 10:14 AM, COCHEDELAFERTE  wrote:
> Hi all,
>
>
> I have a score like this :
>
> i3      0       8       622.254         64      0       0       0       0       0       2
>
>
> Is it possible to replace the "0" in the columns 6-10 by any character which
> mean that the p-field is really present, but has no value and doesn't be
> read, and what as character (or another solution) ?
>
>
> Greatings
>
> Sergio
>
>
>
>
>
> --
> View this message in context: http://csound.1045644.n5.nabble.com/Carry-tp5737270.html
> Sent from the Csound - General mailing list archive at Nabble.com.
>
>
> Send bugs reports to
>         https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>
>
>

Date2014-09-04 15:12
FromCOCHEDELAFERTE
Subject[Csnd] Re: Carry
Hi tgrey,


Thank's for this lot of new informations, including the pset. First i need
to learn all carefully. And sorry for my no fast answer, just i bad declared
my subscription to my own thread !


Greatings,

Sergio



--
View this message in context: http://csound.1045644.n5.nabble.com/Carry-tp5737270p5737324.html
Sent from the Csound - General mailing list archive at Nabble.com.

Date2014-09-04 17:11
FromKevin Welsh
SubjectRe: [Csnd] Re: Carry
No problem, hopefully that helps!  You only need to use pset if you
want a value other than 0 for any missing pfields.  If 0 is an
acceptable value, than the no-carry symbol alone should do the trick.

Good luck!

On Thu, Sep 4, 2014 at 10:12 AM, COCHEDELAFERTE  wrote:
> Hi tgrey,
>
>
> Thank's for this lot of new informations, including the pset. First i need
> to learn all carefully. And sorry for my no fast answer, just i bad declared
> my subscription to my own thread !
>
>
> Greatings,
>
> Sergio
>
>
>
> --
> View this message in context: http://csound.1045644.n5.nabble.com/Carry-tp5737270p5737324.html
> Sent from the Csound - General mailing list archive at Nabble.com.
>
>
> Send bugs reports to
>         https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>
>
>

Date2014-09-06 15:36
FromCOCHEDELAFERTE
Subject[Csnd] Re: Carry
Hi tgrey,


I discovered (or remembered) that the symbol "-", maybe, makes the job,
assuming that the zero value can in certain cases be not acceptable.

That gives something like this :

i3      0       8       622.254         64      -       -       -       -      
-       2

Are i right, or is it a bad idea ? Playing, looks good.


Greatings,

Sergio






--
View this message in context: http://csound.1045644.n5.nabble.com/Carry-tp5737270p5737336.html
Sent from the Csound - General mailing list archive at Nabble.com.