[Csnd] trouble adding phase deviation to fog pointer
Date | 2018-12-03 16:18 |
From | pacos1989 |
Subject | [Csnd] trouble adding phase deviation to fog pointer |
hi all, On the way to build a real time Granular Synthetizer of a sound source some unaspected results come out,one of this when adding phase deviation values to the reading pointer. It s seem that adding random values to the pointer implicate a double reading of one full cycle of the writing table. In this way we listen after first table cycle the delayed signal with the new signal of the second cycle of the table. That doesn't happen with no phase deviation. Anyone have an explanation for this? - win 7 intel core duo , 4 gb ram , csoundqt 0.9.3 |
Date | 2018-12-03 16:53 |
From | Oeyvind Brandtsegg |
Subject | Re: [Csnd] trouble adding phase deviation to fog pointer |
I haven't tested your code, but it is highly likely that the random deviation to the time pointer will interact with the write position. What happens is probably that some grains are started just after the write position (which is fine, they get a few milliseconds delay), while some grains are started just before the write position (which will create a delay equal to the buffer size of the circular buffer you are using to write the live audio input). Taking care that the write and read pointers do not cross each other is important to maintain a predictable output. You might also get odd glitches if you start reading just before the write position but you also transpose up, making the read pointer "overtake" the write pointer, and then there is a discontinuity in the circular buffer right there. An easy fix *might* be to try areadpnt = gapnt + abs(kph) as you would then avoid the bipolar randomness. This is a quick guess from my side,m so please don't shoot if it does not work ;-) Oeyvind Den man. 3. des. 2018 kl. 17:28 skrev pacos1989 <p.graziano89@gmail.com>: hi all, Oeyvind Brandtsegg Professor of Music Technology NTNU 7491 Trondheim Norway Cell: +47 92 203 205 http://www.partikkelaudio.com/ http://crossadaptive.hf.ntnu.no http://gdsp.hf.ntnu.no/ http://soundcloud.com/brandtsegg http://flyndresang.no/ http://soundcloud.com/t-emp |
Date | 2018-12-03 22:16 |
From | pacos1989 |
Subject | Re: [Csnd] trouble adding phase deviation to fog pointer |
i had already considered to circumscribe pointer boundaries, using linrand in a similar patch to add jitter to the pointer. Unfortunately it seems doesn 't work as expected, making me even more perplexed and curious about how the pointer can still delay a table cycle. Anyway thanks me to remind me that -- Sent from: http://csound.1045644.n5.nabble.com/Csound-General-f1093014.html 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-12-04 07:48 |
From | Oeyvind Brandtsegg |
Subject | Re: [Csnd] trouble adding phase deviation to fog pointer |
IIRC there are some examples of how to do this in the Springer Csound book, using partikkel. Den man. 3. des. 2018, 11:16 p.m. skrev pacos1989 <p.graziano89@gmail.com: i had already considered to circumscribe pointer boundaries, using linrand in |
Date | 2018-12-04 10:55 |
From | pacos1989 |
Subject | Re: [Csnd] trouble adding phase deviation to fog pointer |
I ve that book (Springer) and already checked the exhaustive 15th chapter about granular synthesis. i will do it again more carefully! -- Sent from: http://csound.1045644.n5.nabble.com/Csound-General-f1093014.html 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 |