[Csnd] The Joy of Non-interpolating Oscillators
Date | 2018-02-24 02:38 |
From | Steven Yi |
Subject | [Csnd] The Joy of Non-interpolating Oscillators |
Attachments | oscil_freq.csd |
Hi All, I've been enjoying using non-interpolating oscillators a lot lately in live coding events (using the xosc UDO in my csound-live-code project) but I had been planning to experiment a bit with oscil for while to use them at control rate. I finally got around to it today and got a nice arpeggiator effect going and I thought I'd share the CSD here. The interesting bit is probably the Shimmer instrument and using the form of oscil that takes in an array to use as a table. One thing I found was that it would have been nice if oscil allowed non-power-of-two table sizes. Otherwise, was happy to get a joyful sound. :) All best, steven Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here |
Date | 2018-02-24 07:03 |
From | Victor Lazzarini |
Subject | Re: [Csnd] The Joy of Non-interpolating Oscillators |
We can make a version of poscil that truncates. Victor Lazzarini Dean of Arts, Celtic Studies, and Philosophy Maynooth University Ireland > On 24 Feb 2018, at 02:38, Steven Yi |
Date | 2018-02-24 08:43 |
From | Richard |
Subject | Re: [Csnd] The Joy of Non-interpolating Oscillators |
Would love to hear this. What command should I send to get any sound? Richard On 24/02/18 03:38, Steven Yi wrote: > Hi All, > > I've been enjoying using non-interpolating oscillators a lot lately in > live coding events (using the xosc UDO in my csound-live-code project) > but I had been planning to experiment a bit with oscil for while to > use them at control rate. I finally got around to it today and got a > nice arpeggiator effect going and I thought I'd share the CSD here. > The interesting bit is probably the Shimmer instrument and using the > form of oscil that takes in an array to use as a table. > > One thing I found was that it would have been nice if oscil allowed > non-power-of-two table sizes. > > Otherwise, was happy to get a joyful sound. :) > > All best, > steven > > Csound mailing list > Csound@listserv.heanet.ie > https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND > Send bugs reports to > https://github.com/csound/csound/issues > Discussions of bugs and features can be posted here Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here |
Date | 2018-02-24 13:32 |
From | Justin Rosander |
Subject | Re: [Csnd] The Joy of Non-interpolating Oscillators |
I must be experiencing the same thing as Richard—it isn’t playing for me, and seems to be stuck at: “PortAudio: selected output device 'Analog (1+2) (RME HDSP 9632)' writing 4096 sample blks of 64-bit floats to dac SECTION 1:”
Sent from Mail for Windows 10
From: Richard
Would love to hear this. What command should I send to get any sound?
Richard
On 24/02/18 03:38, Steven Yi wrote: > Hi All, >
> I've been enjoying using non-interpolating oscillators a lot lately in > live coding events (using the xosc UDO in my csound-live-code project) > but I had been planning to experiment a bit with oscil for while to > use them at control rate. I finally got around to it today and got a > nice arpeggiator effect going and I thought I'd share the CSD here. > The interesting bit is probably the Shimmer instrument and using the > form of oscil that takes in an array to use as a table. >
> One thing I found was that it would have been nice if oscil allowed > non-power-of-two table sizes. >
> Otherwise, was happy to get a joyful sound. :) >
> All best, > steven >
> Csound mailing list > Csound@listserv.heanet.ie > https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND > Send bugs reports to > https://github.com/csound/csound/issues > Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
|
Date | 2018-02-24 13:43 |
From | Steven Yi |
Subject | Re: [Csnd] The Joy of Non-interpolating Oscillators |
Perhaps I'm confused but I'm not sure what that gets? I also realized just now that I could write a very simple UDO for this. I'll post a revised CSD in a moment. :) On Sat, Feb 24, 2018 at 2:03 AM, Victor Lazzarini |
Date | 2018-02-24 14:03 |
From | Steven Yi |
Subject | Re: [Csnd] The Joy of Non-interpolating Oscillators |
Attachments | oscil_array.csd |
Hi Justin and Richard, I'm not sure what's the issue as I'm able to run the file here. I had one guess that maybe having --port=10000 in the CsOptions might not be working well with the version of Csound on your systems? It could also be something was fixed in Csound in the develop branch that I'm not recalling (I'm using latest from develop.) I've attached a new version that removes using Csound's oscil and instead uses a custom UDO oscil I wrote: ;; custom oscil that takes in kfrequency and array to use as oscillator table data opcode oscil, k, kk[] kfreq, kin[] xin ilen = lenarray(kin) kphs = phasor:k(kfreq) kout = kin[int(kphs * ilen)] xout kout endop This works with any length array (you can test changes in the array() in line 33 of the CSD to get different arpeggiations). This file also removes --port from the CsOptions and includes an "e" event to end the file. If it doesn't render to dac, you should be able to render with "-o out.wav" to render to disk. I've pushed a render of this file for anyone wanting a quick listen: http://www.kunstmusik.com/oscil_array.mp3 http://www.kunstmusik.com/oscil_array.wav (If you do try the CSD and it still doesn't run there for real time, it'd be good to get some information about Csound versions so we can investigate.) Thanks! steven On Sat, Feb 24, 2018 at 8:32 AM, Justin Rosander |
Date | 2018-02-24 14:15 |
From | Victor Lazzarini |
Subject | Re: [Csnd] The Joy of Non-interpolating Oscillators |
poscil allows non-power of two you had asked for. ======================== Prof. Victor Lazzarini Dean of Arts, Celtic Studies, and Philosophy, Maynooth University, Maynooth, Co Kildare, Ireland Tel: 00 353 7086936 Fax: 00 353 1 7086952 > On 24 Feb 2018, at 13:43, Steven Yi |
Date | 2018-02-24 14:20 |
From | Steven Yi |
Subject | Re: [Csnd] The Joy of Non-interpolating Oscillators |
Ahhh, I get it now, thanks! I think that the UDO version I posted should do for the short-term so I'll probably leave that there for now. On Sat, Feb 24, 2018 at 9:15 AM, Victor Lazzarini |
Date | 2018-02-24 14:49 |
From | Justin Rosander |
Subject | Re: [Csnd] The Joy of Non-interpolating Oscillators |
Yeah, I’m still stuck on 6.07 because up until recently it was all that worked with Max4Live. Thanks for posting the sound clips. Yes, that sounds pretty rad!
Sent from Mail for Windows 10
From: Steven Yi
Hi Justin and Richard,
I'm not sure what's the issue as I'm able to run the file here. I had one guess that maybe having --port=10000 in the CsOptions might not be working well with the version of Csound on your systems? It could also be something was fixed in Csound in the develop branch that I'm not recalling (I'm using latest from develop.)
I've attached a new version that removes using Csound's oscil and instead uses a custom UDO oscil I wrote:
;; custom oscil that takes in kfrequency and array to use as oscillator table data opcode oscil, k, kk[] kfreq, kin[] xin
ilen = lenarray(kin)
kphs = phasor:k(kfreq)
kout = kin[int(kphs * ilen)] xout kout endop
This works with any length array (you can test changes in the array() in line 33 of the CSD to get different arpeggiations).
This file also removes --port from the CsOptions and includes an "e" event to end the file. If it doesn't render to dac, you should be able to render with "-o out.wav" to render to disk.
I've pushed a render of this file for anyone wanting a quick listen:
http://www.kunstmusik.com/oscil_array.mp3 http://www.kunstmusik.com/oscil_array.wav
(If you do try the CSD and it still doesn't run there for real time, it'd be good to get some information about Csound versions so we can investigate.)
Thanks! steven
On Sat, Feb 24, 2018 at 8:32 AM, Justin Rosander <justinrosander@gmail.com> wrote: > I must be experiencing the same thing as Richard—it isn’t playing for me, > and seems to be stuck at: >
> “PortAudio: selected output device 'Analog (1+2) (RME HDSP 9632)' >
> writing 4096 sample blks of 64-bit floats to dac >
> SECTION 1:” >
>
>
> Sent from Mail for Windows 10 >
>
>
> From: Richard > Sent: Saturday, February 24, 2018 3:43 AM > To: CSOUND@LISTSERV.HEANET.IE > Subject: Re: [Csnd] The Joy of Non-interpolating Oscillators >
>
>
> Would love to hear this. What command should I send to get any sound? >
>
>
> Richard >
>
>
>
>
> On 24/02/18 03:38, Steven Yi wrote: >
>> Hi All, >
>>
>
>> I've been enjoying using non-interpolating oscillators a lot lately in >
>> live coding events (using the xosc UDO in my csound-live-code project) >
>> but I had been planning to experiment a bit with oscil for while to >
>> use them at control rate. I finally got around to it today and got a >
>> nice arpeggiator effect going and I thought I'd share the CSD here. >
>> The interesting bit is probably the Shimmer instrument and using the >
>> form of oscil that takes in an array to use as a table. >
>>
>
>> One thing I found was that it would have been nice if oscil allowed >
>> non-power-of-two table sizes. >
>>
>
>> Otherwise, was happy to get a joyful sound. :) >
>>
>
>> All best, >
>> steven >
>>
>
>> Csound mailing list >
>> Csound@listserv.heanet.ie >
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND >
>> Send bugs reports to >
>> https://github.com/csound/csound/issues >
>> Discussions of bugs and features can be posted here >
>
>
> Csound mailing list >
> Csound@listserv.heanet.ie >
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND >
> Send bugs reports to >
> https://github.com/csound/csound/issues >
> Discussions of bugs and features can be posted here >
>
>
> Csound mailing list Csound@listserv.heanet.ie > https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to > https://github.com/csound/csound/issues Discussions of bugs and features can > be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
|
Date | 2018-02-24 16:13 |
From | Anders Genell |
Subject | Re: [Csnd] The Joy of Non-interpolating Oscillators |
I believe the K35 filter isn’t present in 6.07? I tried the csd in the RunloopSound app on iPhone and got an error due to lack of K35 opcodes. Regards, Anders
|
Date | 2018-02-24 16:19 |
From | Steven Yi |
Subject | Re: [Csnd] The Joy of Non-interpolating Oscillators |
Makes sense. (Just checked and that filter was released in 6.09.1 last year.) You could try changing the filter to something like moogladder to experiment, something like: asig = moogladder(asig, expseg(12000, 8, 3000, 0.1, 3000), 0.8) On Sat, Feb 24, 2018 at 11:13 AM, Anders Genell |
Date | 2018-02-24 16:21 |
From | Anders Genell |
Subject | Re: [Csnd] The Joy of Non-interpolating Oscillators |
Thanks! I’ll give it a try to see if it works otherwise on the iPhone. Regards, Anders > 24 feb. 2018 kl. 17:19 skrev Steven Yi |
Date | 2018-02-24 16:24 |
From | Justin Rosander |
Subject | Re: [Csnd] The Joy of Non-interpolating Oscillators |
Yeah, that worked. 😊
Sent from Mail for Windows 10
From: Steven Yi
Makes sense. (Just checked and that filter was released in 6.09.1 last year.) You could try changing the filter to something like moogladder to experiment, something like:
asig = moogladder(asig, expseg(12000, 8, 3000, 0.1, 3000), 0.8)
On Sat, Feb 24, 2018 at 11:13 AM, Anders Genell <anders.genell@gmail.com> wrote: > I believe the K35 filter isn’t present in 6.07? > I tried the csd in the RunloopSound app on iPhone and got an error due to > lack of K35 opcodes. >
> Regards, > Anders >
> 24 feb. 2018 kl. 15:49 skrev Justin Rosander <justinrosander@GMAIL.COM>: >
> Yeah, I’m still stuck on 6.07 because up until recently it was all that > worked with Max4Live. Thanks for posting the sound clips. Yes, that sounds > pretty rad! >
>
>
>
>
> Sent from Mail for Windows 10 >
>
>
> From: Steven Yi > Sent: Saturday, February 24, 2018 9:03 AM > To: CSOUND@LISTSERV.HEANET.IE > Subject: Re: [Csnd] The Joy of Non-interpolating Oscillators >
>
>
> Hi Justin and Richard, >
>
>
> I'm not sure what's the issue as I'm able to run the file here. I had >
> one guess that maybe having --port=10000 in the CsOptions might not be >
> working well with the version of Csound on your systems? It could >
> also be something was fixed in Csound in the develop branch that I'm >
> not recalling (I'm using latest from develop.) >
>
>
> I've attached a new version that removes using Csound's oscil and >
> instead uses a custom UDO oscil I wrote: >
>
>
> ;; custom oscil that takes in kfrequency and array to use as >
> oscillator table data >
> opcode oscil, k, kk[] >
> kfreq, kin[] xin >
>
>
> ilen = lenarray(kin) >
>
>
> kphs = phasor:k(kfreq) >
>
>
> kout = kin[int(kphs * ilen)] >
> xout kout >
> endop >
>
>
> This works with any length array (you can test changes in the array() >
> in line 33 of the CSD to get different arpeggiations). >
>
>
> This file also removes --port from the CsOptions and includes an "e" >
> event to end the file. If it doesn't render to dac, you should be >
> able to render with "-o out.wav" to render to disk. >
>
>
> I've pushed a render of this file for anyone wanting a quick listen: >
>
>
> http://www.kunstmusik.com/oscil_array.mp3 >
> http://www.kunstmusik.com/oscil_array.wav >
>
>
>
>
> (If you do try the CSD and it still doesn't run there for real time, >
> it'd be good to get some information about Csound versions so we can >
> investigate.) >
>
>
> Thanks! >
> steven >
>
>
>
>
>
>
>
>
> On Sat, Feb 24, 2018 at 8:32 AM, Justin Rosander >
> <justinrosander@gmail.com> wrote: >
>> I must be experiencing the same thing as Richard—it isn’t playing for me, >
>> and seems to be stuck at: >
>>
>
>> “PortAudio: selected output device 'Analog (1+2) (RME HDSP 9632)' >
>>
>
>> writing 4096 sample blks of 64-bit floats to dac >
>>
>
>> SECTION 1:” >
>>
>
>>
>
>>
>
>> Sent from Mail for Windows 10 >
>>
>
>>
>
>>
>
>> From: Richard >
>> Sent: Saturday, February 24, 2018 3:43 AM >
>> To: CSOUND@LISTSERV.HEANET.IE >
>> Subject: Re: [Csnd] The Joy of Non-interpolating Oscillators >
>>
>
>>
>
>>
>
>> Would love to hear this. What command should I send to get any sound? >
>>
>
>>
>
>>
>
>> Richard >
>>
>
>>
>
>>
>
>>
>
>>
>
>> On 24/02/18 03:38, Steven Yi wrote: >
>>
>
>>> Hi All, >
>>
>
>>>
>
>>
>
>>> I've been enjoying using non-interpolating oscillators a lot lately in >
>>
>
>>> live coding events (using the xosc UDO in my csound-live-code project) >
>>
>
>>> but I had been planning to experiment a bit with oscil for while to >
>>
>
>>> use them at control rate. I finally got around to it today and got a >
>>
>
>>> nice arpeggiator effect going and I thought I'd share the CSD here. >
>>
>
>>> The interesting bit is probably the Shimmer instrument and using the >
>>
>
>>> form of oscil that takes in an array to use as a table. >
>>
>
>>>
>
>>
>
>>> One thing I found was that it would have been nice if oscil allowed >
>>
>
>>> non-power-of-two table sizes. >
>>
>
>>>
>
>>
>
>>> Otherwise, was happy to get a joyful sound. :) >
>>
>
>>>
>
>>
>
>>> All best, >
>>
>
>>> steven >
>>
>
>>>
>
>>
>
>>> Csound mailing list >
>>
>
>>> Csound@listserv.heanet.ie >
>>
>
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND >
>>
>
>>> Send bugs reports to >
>>
>
>>> https://github.com/csound/csound/issues >
>>
>
>>> Discussions of bugs and features can be posted here >
>>
>
>>
>
>>
>
>> Csound mailing list >
>>
>
>> Csound@listserv.heanet.ie >
>>
>
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND >
>>
>
>> Send bugs reports to >
>>
>
>> https://github.com/csound/csound/issues >
>>
>
>> Discussions of bugs and features can be posted here >
>>
>
>>
>
>>
>
>> Csound mailing list Csound@listserv.heanet.ie >
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to >
>> https://github.com/csound/csound/issues Discussions of bugs and features >> can >
>> be posted here >
>
>
> Csound mailing list >
> Csound@listserv.heanet.ie >
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND >
> Send bugs reports to >
> https://github.com/csound/csound/issues >
> Discussions of bugs and features can be posted here >
>
>
> Csound mailing list Csound@listserv.heanet.ie > https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to > https://github.com/csound/csound/issues Discussions of bugs and features can > be posted here >
> Csound mailing list Csound@listserv.heanet.ie > https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to > https://github.com/csound/csound/issues Discussions of bugs and features can > be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
|
Date | 2018-02-24 16:27 |
From | Anders Genell |
Subject | Re: [Csnd] The Joy of Non-interpolating Oscillators |
Well, I get a new error on the iPhone after changing to moogladder: oscil_freq.csd (1) error: Unable to find opcode entry for '=' with matching argument types: Found: i = @ Line: 29 Line 29 is in the UDO and says indx += 1 Regards, Anders
|
Date | 2018-02-24 17:02 |
From | Steven Yi |
Subject | Re: [Csnd] The Joy of Non-interpolating Oscillators |
I would try using the oscil_array.csd file if that will work as it is a little more straightforward. Otherwise you could rewrite that line to: indx = indx + 1 On Sat, Feb 24, 2018 at 11:27 AM, Anders Genell |
Date | 2018-02-24 17:17 |
From | jpff |
Subject | Re: [Csnd] The Joy of Non-interpolating Oscillators |
I cannot see how indx += 1 causes that error; woks for me in straightforward context. what is te coplete csd? On Sat, 24 Feb 2018, Steven Yi wrote: > I would try using the oscil_array.csd file if that will work as it is > a little more straightforward. Otherwise you could rewrite that line > to: > > indx = indx + 1 > > > On Sat, Feb 24, 2018 at 11:27 AM, Anders Genell |
Date | 2018-02-24 17:19 |
From | Anders Genell |
Subject | Re: [Csnd] The Joy of Non-interpolating Oscillators |
That works just fine (with moogladder instead of K35) in RunloopSound, except for after awhile when there are dropouts and warnings like WARNING: Array index 4 out of range (0,3) for dimension 1 WARNING: Array index 4 out of range (0,3) for dimension 1 but the app has been updated regularly so I assume It’ll be up to 6.10 (or 11) soon enough and then stuff should be working ok I guess. Nice sounds!! Regards, Anders
|