|
http://luisantunespena.eu
joachim heintz schrieb:
>i think it only depends on how you would like to select. for instance:
>"each key selects one sample, and the transposition depends on the velocity"
>or:
>"keys 57-59 denote sample 'bla.wav': 57 with a transposition of -50
>cent, 58 with no transposition, 59 with +50 cent"
>or whatever.
>
>if you like, write here what you would like to have, and i am happy to
>suggest a way which hopefully leads to this.
>
>best -
>
> joachim
>
>
>Am 04.02.2014 15:09, schrieb k_o_m_p:
>> Joachim, thank you! This should work well. My problem at this point is that I'm not really sure how to select the sample and transposition if you have just a limited numbers of samples available - or if you use midi input with quarter tone intonation like 60.5 for example.
>> Any ideas?
>> Luis
>>
>> http://luisantunespena.eu
>>
>> joachim heintz schrieb:
>>
>>> hi luis -
>>>
>>> this should be very easy to do. the midi note triggers an instrument
>>> instance, and this instance selects the sample, and applies any other
>>> transformations. something like:
>>>
>>> strset 60, "sample1.wav"
>>> strset 61, "sample2.wav"
>>> ...
>>>
>>> massign 0, "Play"
>>>
>>> instr Play
>>> iSample notnum
>>> iTransp = 100 ;cent
>>> aPlay diskin iSample, cent(iTransp)
>>> out aPlay
>>> endin
>>>
>>> this is not tested, but you will know what i mean. not sure, though, in
>>> your example, how you get the sample and the transposition.
>>>
>>> hoe this helps, best -
>>>
>>> joachim
>>>
>>>
>>> Am 04.02.2014 00:08, schrieb Luis Antunes Pena:
>>>> Hello,
>>>>
>>>> I'm building a patch in PWGL/Lisp that generates score events to trigger 61
>>>> samples within a csound orchestra. This works fine until now. My problem
>>>> is that the PWGL Patch is becoming more complex and it takes quite a
>>>> long time to generate the csound score. One solution would be to move
>>>> some tasks from PWGL to Csound which should be more much faster. This is
>>>> where I would like to ask your opinion. How would you do the following:
>>>> Csound receives a midi note number and has to decide according to the
>>>> available samples which one to choose and which transposition should be
>>>> applied. Something like this:
>>>>
>>>> Samples available (60 63 66 69)
>>>> Input Midi note: 61
>>>> Output: sample 60 transposition 2^1/12
>>>>
>>>> I thought about using tables but also about arrays - I'm not yet
>>>> familiar with arrays.
>>>>
>>>> Thanks.
>>>>
>>>> Luís
>>>>
>>>> --
>>>> signatur http://luisantunespena.eu
>>>>
>>>
>>>
>>> Send bugs reports to the Sourceforge bug trackers
>>> csound6:
>>> https://sourceforge.net/p/csound/tickets/
>>> csound5:
>>> https://sourceforge.net/p/csound/bugs/
>>> 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 trackers
>> csound6:
>> https://sourceforge.net/p/csound/tickets/
>> csound5:
>> https://sourceforge.net/p/csound/bugs/
>> 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 trackers
>csound6:
> https://sourceforge.net/p/csound/tickets/
>csound5:
> https://sourceforge.net/p/csound/bugs/
>Discussions of bugs and features can be posted here
>To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>
>
|