sox-users@lists.sourceforge.net unofficial mirror
 help / color / Atom feed
* Question about effects and reading data to the buffer
@ 2018-08-19 13:59 Lakomkin Egor
  0 siblings, 0 replies; only message in thread
From: Lakomkin Egor @ 2018-08-19 13:59 UTC (permalink / raw)
  To: sox-users

[-- Attachment #1.1: Type: text/plain, Size: 682 bytes --]

Hello,

I am trying to programmatically load an audio file, apply tempo effect and
read the output to the buffer for the further processing. I uploaded the
gist of the example here:
https://gist.github.com/EgorLakomkin/124a4b86dd8869d5536e2edceec0cc84
If I use tempo values < 1 I get the correct number of samples from the
output, but if I change it for example to 1.2 I suddenly get a very small
number of sample and 0 if I use the value of 1.0. I am wondering if there
is a bug in my chain configuration or data reading from the output? It is
my first experience with libsox and I tried to follow examples, but I got
stuck here.

Thank you in advance for the help!

Regards, Egor

[-- Attachment #1.2: Type: text/html, Size: 877 bytes --]

<div dir="ltr">Hello,<div><br></div><div>I am trying to programmatically load an audio file, apply tempo effect and read the output to the buffer for the further processing. I uploaded the gist of the example here: <a href="https://gist.github.com/EgorLakomkin/124a4b86dd8869d5536e2edceec0cc84">https://gist.github.com/EgorLakomkin/124a4b86dd8869d5536e2edceec0cc84</a></div><div>If I use tempo values &lt; 1 I get the correct number of samples from the output, but if I change it for example to 1.2 I suddenly get a very small number of sample and 0 if I use the value of 1.0. I am wondering if there is a bug in my chain configuration or data reading from the output? It is my first experience with libsox and I tried to follow examples, but I got stuck here.</div><div><br></div><div>Thank you in advance for the help!</div><div><br></div><div>Regards, Egor </div></div>

[-- Attachment #2: Type: text/plain, Size: 202 bytes --]

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot

[-- Attachment #3: Type: text/plain, Size: 158 bytes --]

_______________________________________________
Sox-users mailing list
Sox-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-users

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, back to index

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-19 13:59 Question about effects and reading data to the buffer Lakomkin Egor

sox-users@lists.sourceforge.net unofficial mirror

Archives are clonable: git clone --mirror https://public-inbox.org/sox-users

Newsgroups are available over NNTP:
	nntp://news.public-inbox.org/inbox.comp.audio.sox
	nntp://ou63pmih66umazou.onion/inbox.comp.audio.sox
	nntp://news.gmane.org/gmane.comp.audio.sox

 note: .onion URLs require Tor: https://www.torproject.org/

AGPL code for this site: git clone https://public-inbox.org/ public-inbox