|
Thanks the tip. Looking at these already have me thinking about ways of
recreating some of your noteProcessors. Some of them should be fairly
straight forward. For example, using the code snippet from the top thread,
all that is necessary to do something similar to the Multiply Processor is
to swap out the swap_pan_position() function for something like this:
def mulitply(pf, m): return pf * m
However, the ones that require a bit more logic and reference other selected
events, such as the Rotate Processor, will require more thought on my end on
how to handle such cases.
The CSD package itself may or may note come with NoteProcessors. The goal
is to have a package that, among other things, makes building NoteProcessors
quick, easy and intuitive.
Best,
Jake
Steven Yi wrote:
>
> Hi Jake,
>
> Just a note, blue contains a number of these types of operations via
> it's noteProcessors system. The reference manual for blue's
> noteProcessors are here:
>
> http://www.csounds.com/stevenyi/blue/usermanual/html/noteProcessors.html
>
> I haven't looked through your library yet, but I thought there might
> be things from blue you might want to have in your system as well.
>
> Cheers!
> steven
>
> On Fri, Jul 17, 2009 at 2:25 PM, Jacob Joaquin
> wrote:
>>
>> The Python CSD Package 0.0.3 alpha
>> http://www.thumbuki.com/csound/files/mailinglist/csd_v0.0.3alpha.zip
>>
>> Online Documentation
>> http://www.thumbuki.com/csound/files/mailinglist/csd_docs/
>>
>> New features allows for simple matching and matrix operations of scores,
>> allowing users to write very short, and highly custom scripts capable of
>> saving you time and many strokes of the keyboard.
>>
>> Imagine this scenario. You’ve listened to your piece and have decided
>> that
>> the panning in instrument 2 would sound better if the left and right
>> channels were swapped. How could you do this with CSD?
>>
>> 1. Define a pf_function, swap_pan_position()
>> 2. Select all i-events for instr 2 from the score
>> 3. Operate on every pfield 6 in the selection with swap_pan_position()
>> 4. Merge the modifications with the original score
>>
>> __python code__
>> def swap_pan_position(x):
>> return 1.0 - x
>>
>> selection = sco.select(score, {0: 'i', 1: 2})
>> selection = sco.operate_numeric(selection, 6, swap_pan_position)
>> new_score = sco.merge(score, selection)
>> __end__
>>
>> That will turn this:
>>
>> __original score__
>> i 2 0 4 1.0 880 1.0 ; p6 is pan
>> i 2 + . . . 0.25
>> i 2 + . . . 0.999
>> i 2 + . . . 0.0
>> ...
>> __end__
>>
>> Into this:
>>
>> __modified score__
>> i 2 0 4 1.0 880 0.0 ; p6 is pan
>> i 2 + . . . 0.75
>> i 2 + . . . 0.001
>> i 2 + . . . 1.0
>> ...
>> __end__
>>
>> Learn more here:
>> http://www.thumbuki.com/csound/files/mailinglist/csd_docs/demo/index.html#module-swap_pan_position
>>
>> Upcoming features include an easy installer, homepage, and an online
>> repository for any coders out there interested in either developing CSD,
>> or
>> incorporating CSD into a Csound based app.
>>
>> Best,
>> Jake
>> --
>> View this message in context:
>> http://www.nabble.com/-ANN--Python-CSD-0.0.3-alpha-tp24541930p24541930.html
>> Sent from the Csound - General mailing list archive at Nabble.com.
>>
>>
>>
>> Send bugs reports to this list.
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
>
--
View this message in context: http://www.nabble.com/-ANN--Python-CSD-0.0.3-alpha-tp24541930p24543693.html
Sent from the Csound - General mailing list archive at Nabble.com.
|