[Csnd] about mincer
Date | 2018-09-19 09:27 |
From | Francesco Porta |
Subject | [Csnd] about mincer |
Hello All, a question about mincer. i write a table with a 3 seconds of audio and a instrument that uses mincer to slowing down the reading. the mincer time pointer is a oscil reading a table that go from 0 to 3 (duration of audio file in table). at the end of mincer output i hear something like a reverse reading of audio (apologies for my poor language). i do not understand why. i have tested mincer using a GEN 1 table with same sample and it seems ok. i have tested reading audio table written by instr 12 and it seems ok. Thanks for any help, ciao, francesco. here is my minimal example csd. audio file is a single guitar note with duration of 6 sec. but sampled only for 3 sec by instrs 10 and 12. |
Date | 2018-09-19 15:33 |
From | jpff |
Subject | Re: [Csnd] about mincer |
Have you tried with a ksmps that is an exact divisor of sr? Or set --sample-accurate ? Just a thought On Wed, 19 Sep 2018, Francesco Porta wrote: > Hello All, > a question about mincer. > i write a table with a 3 seconds of audio and a instrument that uses mincer to > slowing down the reading. the mincer time pointer is a oscil reading a table > that go from 0 to 3 (duration of audio file in table). > at the end of mincer output i hear something like a reverse reading of audio > (apologies for my poor language). i do not understand why. > > i have tested mincer using a GEN 1 table with same sample and it seems ok. > i have tested reading audio table written by instr 12 and it seems ok. > > Thanks for any help, > ciao, > francesco. > > here is my minimal example csd. audio file is a single guitar note with duration > of 6 sec. but sampled only for 3 sec by instrs 10 and 12. > > |
Date | 2018-09-19 18:25 |
From | joachim heintz |
Subject | Re: [Csnd] about mincer |
hi francesco - for what you want to do, i think it is better to use a linear pointer instead of an oscillator in your instrument 20. rather than atime poscil 1, 1/p3, ifntime you can perhaps try apnter linseg 0, p3, 2047 atime tablei apnter, ifntime not tested, but perhaps worth to try. it might also be good to have a bigger table than 2048. ciao - joachim On 19/09/18 10:27, Francesco Porta wrote: > Hello All, > a question about mincer. > i write a table with a 3 seconds of audio and a instrument that uses mincer to > slowing down the reading. the mincer time pointer is a oscil reading a table > that go from 0 to 3 (duration of audio file in table). > at the end of mincer output i hear something like a reverse reading of audio > (apologies for my poor language). i do not understand why. > > i have tested mincer using a GEN 1 table with same sample and it seems ok. > i have tested reading audio table written by instr 12 and it seems ok. > > Thanks for any help, > ciao, > francesco. > > here is my minimal example csd. audio file is a single guitar note with duration > of 6 sec. but sampled only for 3 sec by instrs 10 and 12. > > |
Date | 2018-09-20 12:19 |
From | fra |
Subject | Re: [Csnd] about mincer |
Thanks, John using ksmps = 1 and --sample-accurate gives me same result. Joachim You are right and i tried a linear time pointer getting same result. but i would like to have the possibilities to reply the note, i mean i use mincer to obtain a note with a duration almost 10 times the original but instrument with mincer will have a long duration (i.e. 180 sec). So i need oscillating time pointer. Hope i was clear ... the solution i found is to setting the time pointer ending to 0.95 * note duration, if i'm correct that means reading the sample from 0 to 95% jumping the final 5% of sample duration. Only i cannot understand why this happens. (please refer to my csd in first mail) if i use mincer loading the sampled guitar note i obtain the right result. instr 20 ifn ftgen 0, 0, 0, 1, "guitar_C.wav", 0, 0, 0 ilock = 1 ifntime ftgen 0, 0, 2048, -7, 0, 2048, giNoteDur atime poscil 1, 1/10, ifntime audio mincer atime, 1, 1, ifn, ilock outs audio, audio endin if i read recorded table of sampled sound with a oscillator i have it right. where p4 is table number created by instr 12 instr 20 ifn = p4 audio poscil 1, 1/giNoteDur, ifn outs audio, audio endin it seems that in my workflow something is wrong. thanks, ciao, francesco. 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-09-20 13:05 |
From | Oeyvind Brandtsegg |
Subject | Re: [Csnd] about mincer |
Could it be that you are using an interpolating time pointer, such that it will also interpolate when wrapping around from the end to the beginning? If you get a quick sweep of going backwards through the whole file, this might be an explanation. It could happen in the time pointer you generate, or in the way mincer treats the time pointer. Writing the time pointer you generate to an audio file and examine what it looks lie might give you additional clues. I did not look into details of your code, so, sorry if I misunderstood anything. It is just that I recognise the perceived artifact from other contexts. best Oeyvind Den tor. 20. sep. 2018 kl. 13:19 skrev fra <francescoarmandoporta@gmail.com>: Thanks, 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-09-20 19:57 |
From | joachim heintz |
Subject | Re: [Csnd] about mincer |
the reson for the 95% might be that mincer uses fft. the default window size is 2048 samples, so i would assume that if you point to end minus 2048 samples (certainly not 100%), you point to the end of the table. victor can certainly tell more precise. j On 20/09/18 13:19, fra wrote: > Thanks, > > John using ksmps = 1 and --sample-accurate gives me same result. > > Joachim You are right and i tried a linear time pointer getting same > result. > but i would like to have the possibilities to reply > the note, i mean i use mincer to obtain a note with a duration almost > 10 times the original but instrument with mincer will have a long > duration (i.e. 180 sec). So i need oscillating time pointer. > Hope i was clear ... > > the solution i found is to setting the time pointer ending to 0.95 * > note duration, > if i'm correct that means reading the sample from 0 to 95% jumping the > final 5% of sample duration. > Only i cannot understand why this happens. > > (please refer to my csd in first mail) > > if i use mincer loading the sampled guitar note i obtain the right result. > > instr 20 > > ifn ftgen 0, 0, 0, 1, "guitar_C.wav", 0, 0, 0 > ilock = 1 > > ifntime ftgen 0, 0, 2048, -7, 0, 2048, giNoteDur > > atime poscil 1, 1/10, ifntime > audio mincer atime, 1, 1, ifn, ilock > outs audio, audio > endin > > > if i read recorded table of sampled sound with a oscillator i have it > right. > > where p4 is table number created by instr 12 > > instr 20 > > ifn = p4 > audio poscil 1, 1/giNoteDur, ifn > outs audio, audio > endin > > > it seems that in my workflow something is wrong. > > thanks, > ciao, > francesco. > > 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-09-24 09:02 |
From | fra |
Subject | Re: [Csnd] about mincer |
Thanks, You are right. In fact my calculations give me near 0.5%. Assuming sr 44100: 2048/44100 = 0.046439909. Am i right? Many Thanks All, ciao, francesco. 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 |